- text mode character blinking feature implemented
[bochs-mirror.git] / configure
blob2f121b9b044fa52df7f73ca38fdb96e7edcd1fc9
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.358 2008/01/21 21:36:54 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 BIN_SH=xpg4; export BIN_SH # for Tru64
26 DUALCASE=1; export DUALCASE # for MKS sh
29 # PATH needs CR
30 # Avoid depending upon Character Ranges.
31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34 as_cr_digits='0123456789'
35 as_cr_alnum=$as_cr_Letters$as_cr_digits
37 # The user is always right.
38 if test "${PATH_SEPARATOR+set}" != set; then
39 echo "#! /bin/sh" >conf$$.sh
40 echo "exit 0" >>conf$$.sh
41 chmod +x conf$$.sh
42 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43 PATH_SEPARATOR=';'
44 else
45 PATH_SEPARATOR=:
47 rm -f conf$$.sh
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52 as_unset=unset
53 else
54 as_unset=false
58 # IFS
59 # We need space, tab and new line, in precisely that order. Quoting is
60 # there to prevent editors from complaining about space-tab.
61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
62 # splitting by setting IFS to empty value.)
63 as_nl='
65 IFS=" "" $as_nl"
67 # Find who we are. Look in the path if we contain no directory separator.
68 case $0 in
69 *[\\/]* ) as_myself=$0 ;;
70 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71 for as_dir in $PATH
73 IFS=$as_save_IFS
74 test -z "$as_dir" && as_dir=.
75 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
76 done
77 IFS=$as_save_IFS
80 esac
81 # We did not find ourselves, most probably we were run as `sh COMMAND'
82 # in which case we are not to be found in the path.
83 if test "x$as_myself" = x; then
84 as_myself=$0
86 if test ! -f "$as_myself"; then
87 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
88 { (exit 1); exit 1; }
91 # Work around bugs in pre-3.0 UWIN ksh.
92 for as_var in ENV MAIL MAILPATH
93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
94 done
95 PS1='$ '
96 PS2='> '
97 PS4='+ '
99 # NLS nuisances.
100 for as_var in \
101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103 LC_TELEPHONE LC_TIME
105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106 eval $as_var=C; export $as_var
107 else
108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 done
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
115 as_expr=expr
116 else
117 as_expr=false
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121 as_basename=basename
122 else
123 as_basename=false
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130 X"$0" : 'X\(//\)$' \| \
131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 echo X/"$0" |
133 sed '/^.*\/\([^/][^/]*\)\/*$/{
134 s//\1/
137 /^X\/\(\/\/\)$/{
138 s//\1/
141 /^X\/\(\/\).*/{
142 s//\1/
145 s/.*/./; q'`
147 # CDPATH.
148 $as_unset CDPATH
151 if test "x$CONFIG_SHELL" = x; then
152 if (eval ":") 2>/dev/null; then
153 as_have_required=yes
154 else
155 as_have_required=no
158 if test $as_have_required = yes && (eval ":
159 (as_func_return () {
160 (exit \$1)
162 as_func_success () {
163 as_func_return 0
165 as_func_failure () {
166 as_func_return 1
168 as_func_ret_success () {
169 return 0
171 as_func_ret_failure () {
172 return 1
175 exitcode=0
176 if as_func_success; then
178 else
179 exitcode=1
180 echo as_func_success failed.
183 if as_func_failure; then
184 exitcode=1
185 echo as_func_failure succeeded.
188 if as_func_ret_success; then
190 else
191 exitcode=1
192 echo as_func_ret_success failed.
195 if as_func_ret_failure; then
196 exitcode=1
197 echo as_func_ret_failure succeeded.
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 else
203 exitcode=1
204 echo positional parameters were not saved.
207 test \$exitcode = 0) || { (exit 1); exit 1; }
210 as_lineno_1=\$LINENO
211 as_lineno_2=\$LINENO
212 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
216 else
217 as_candidate_shells=
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
223 case $as_dir in
225 for as_base in sh bash ksh sh5; do
226 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227 done;;
228 esac
229 done
230 IFS=$as_save_IFS
233 for as_shell in $as_candidate_shells $SHELL; do
234 # Try only shells that exist, to save several forks.
235 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239 emulate sh
240 NULLCMD=:
241 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242 # is contrary to our usage. Disable this feature.
243 alias -g '${1+"$@"}'='"$@"'
244 setopt NO_GLOB_SUBST
245 else
246 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
252 _ASEOF
253 }; then
254 CONFIG_SHELL=$as_shell
255 as_have_required=yes
256 if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259 emulate sh
260 NULLCMD=:
261 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262 # is contrary to our usage. Disable this feature.
263 alias -g '${1+"$@"}'='"$@"'
264 setopt NO_GLOB_SUBST
265 else
266 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
272 (as_func_return () {
273 (exit $1)
275 as_func_success () {
276 as_func_return 0
278 as_func_failure () {
279 as_func_return 1
281 as_func_ret_success () {
282 return 0
284 as_func_ret_failure () {
285 return 1
288 exitcode=0
289 if as_func_success; then
291 else
292 exitcode=1
293 echo as_func_success failed.
296 if as_func_failure; then
297 exitcode=1
298 echo as_func_failure succeeded.
301 if as_func_ret_success; then
303 else
304 exitcode=1
305 echo as_func_ret_success failed.
308 if as_func_ret_failure; then
309 exitcode=1
310 echo as_func_ret_failure succeeded.
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 else
316 exitcode=1
317 echo positional parameters were not saved.
320 test $exitcode = 0) || { (exit 1); exit 1; }
323 as_lineno_1=$LINENO
324 as_lineno_2=$LINENO
325 test "x$as_lineno_1" != "x$as_lineno_2" &&
326 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328 _ASEOF
329 }; then
330 break
335 done
337 if test "x$CONFIG_SHELL" != x; then
338 for as_var in BASH_ENV ENV
339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340 done
341 export CONFIG_SHELL
342 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 if test $as_have_required = no; then
347 echo This script requires a shell more modern than all the
348 echo shells that I found on your system. Please install a
349 echo modern shell, or manually run the script under such a
350 echo shell if you do have one.
351 { (exit 1); exit 1; }
361 (eval "as_func_return () {
362 (exit \$1)
364 as_func_success () {
365 as_func_return 0
367 as_func_failure () {
368 as_func_return 1
370 as_func_ret_success () {
371 return 0
373 as_func_ret_failure () {
374 return 1
377 exitcode=0
378 if as_func_success; then
380 else
381 exitcode=1
382 echo as_func_success failed.
385 if as_func_failure; then
386 exitcode=1
387 echo as_func_failure succeeded.
390 if as_func_ret_success; then
392 else
393 exitcode=1
394 echo as_func_ret_success failed.
397 if as_func_ret_failure; then
398 exitcode=1
399 echo as_func_ret_failure succeeded.
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 else
405 exitcode=1
406 echo positional parameters were not saved.
409 test \$exitcode = 0") || {
410 echo No shell found that supports shell functions.
411 echo Please tell autoconf@gnu.org about your system,
412 echo including any error possibly output before this
413 echo message
418 as_lineno_1=$LINENO
419 as_lineno_2=$LINENO
420 test "x$as_lineno_1" != "x$as_lineno_2" &&
421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424 # uniformly replaced by the line number. The first 'sed' inserts a
425 # line-number line after each line using $LINENO; the second 'sed'
426 # does the real work. The second script uses 'N' to pair each
427 # line-number line with the line containing $LINENO, and appends
428 # trailing '-' during substitution so that $LINENO is not a special
429 # case at line end.
430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431 # scripts with optimization help from Paolo Bonzini. Blame Lee
432 # E. McMahon (1931-1989) for sed's syntax. :-)
433 sed -n '
435 /[$]LINENO/=
436 ' <$as_myself |
437 sed '
438 s/[$]LINENO.*/&-/
439 t lineno
441 :lineno
443 :loop
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 t loop
446 s/-\n.*//
447 ' >$as_me.lineno &&
448 chmod +x "$as_me.lineno" ||
449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450 { (exit 1); exit 1; }; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462 as_dirname=dirname
463 else
464 as_dirname=false
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in
469 -n*)
470 case `echo 'x\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) ECHO_C='\c';;
473 esac;;
475 ECHO_N='-n';;
476 esac
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479 test "X`expr 00001 : '.*\(...\)'`" = X001; then
480 as_expr=expr
481 else
482 as_expr=false
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir
492 echo >conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
509 if mkdir -p . 2>/dev/null; then
510 as_mkdir_p=:
511 else
512 test -d ./-p && rmdir ./-p
513 as_mkdir_p=false
516 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
519 #! /bin/sh
520 exit 0
521 _ASEOF
522 chmod +x conf$$.file
523 if test -x conf$$.file >/dev/null 2>&1; then
524 as_executable_p="test -x"
525 else
526 as_executable_p=:
528 rm -f conf$$.file
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
542 case X$ECHO in
543 X*--fallback-echo)
544 # Remove one level of quotation (which was required for Make).
545 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547 esac
549 echo=${ECHO-echo}
550 if test "X$1" = X--no-reexec; then
551 # Discard the --no-reexec flag, and continue.
552 shift
553 elif test "X$1" = X--fallback-echo; then
554 # Avoid inline document here, it may be left over
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557 # Yippee, $echo works!
559 else
560 # Restart under the correct shell.
561 exec $SHELL "$0" --no-reexec ${1+"$@"}
564 if test "X$1" = X--fallback-echo; then
565 # used as fallback echo
566 shift
567 cat <<EOF
570 exit 0
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 # if CDPATH is set.
575 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
583 echo_test_string="`eval $cmd`" &&
584 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585 then
586 break
588 done
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
595 else
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
600 # So, first we look for a working echo in the user's PATH.
602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603 for dir in $PATH /usr/ucb; do
604 IFS="$lt_save_ifs"
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 echo="$dir/echo"
610 break
612 done
613 IFS="$lt_save_ifs"
615 if test "X$echo" = Xecho; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
621 echo='print -r'
622 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623 test "X$CONFIG_SHELL" != X/bin/ksh; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL=/bin/ksh
628 export CONFIG_SHELL
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630 else
631 # Try using printf.
632 echo='printf %s\n'
633 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # Cool, printf works
638 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 export CONFIG_SHELL
644 SHELL="$CONFIG_SHELL"
645 export SHELL
646 echo="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 echo="$CONFIG_SHELL $0 --fallback-echo"
652 else
653 # maybe with a smaller string...
654 prev=:
656 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
658 then
659 break
661 prev="$cmd"
662 done
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 else
669 # Oops. We lost completely, so just stick with echo.
670 echo=echo
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 ECHO=$echo
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688 tagnames=${tagnames+${tagnames},}CXX
690 tagnames=${tagnames+${tagnames},}F77
692 exec 7<&0 </dev/null 6>&1
694 # Name of the host.
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700 # Initializations.
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710 SHELL=${CONFIG_SHELL-/bin/sh}
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
719 ac_unique_file="bochs.h"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 # include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 # include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 build
794 build_cpu
795 build_vendor
796 build_os
797 host
798 host_cpu
799 host_vendor
800 host_os
801 target
802 target_cpu
803 target_vendor
804 target_os
806 CFLAGS
807 LDFLAGS
808 CPPFLAGS
809 ac_ct_CC
810 EXEEXT
811 OBJEXT
813 CXXFLAGS
814 ac_ct_CXX
815 SET_MAKE
816 GREP
817 EGREP
818 LN_S
819 ECHO
821 RANLIB
822 STRIP
824 CXXCPP
826 FFLAGS
827 ac_ct_F77
828 LIBTOOL
829 LIBADD_DL
830 XMKMF
831 X_CFLAGS
832 X_PRE_LIBS
833 X_LIBS
834 X_EXTRA_LIBS
835 BX_USE_IDLE_HACK
836 DEFINE_PLUGIN_PATH
837 NONPLUGIN_GUI_LINK_OPTS
838 OBJS64
839 IOAPIC_OBJS
840 BX_COMPRESSED_HD_SUPPORT
841 NE2K_OBJS
842 BX_SUPPORT_ACPI
843 PCI_OBJ
844 KERNELDIR
845 LSMOD
846 INSMOD
847 RMMOD
848 DEPMOD
849 PCIDEV_MODULE_MAKE_ALL
850 KERNEL_MODULE_SUFFIX
851 USBDEV_OBJS
852 SCSI_OBJS
853 NETLOW_OBJS
854 SUFFIX_LINE
855 CPP_SUFFIX
856 DEBUGGER_VAR
857 BX_EXTERNAL_DEBUGGER
858 DISASM_VAR
859 READLINE_LIB
860 INSTRUMENT_DIR
861 INSTRUMENT_VAR
862 FPU_VAR
863 CDROM_OBJS
864 SB16_OBJS
865 SOUNDLOW_OBJS
866 GAME_OBJS
867 GDBSTUB_VAR
868 IODEBUG_OBJS
869 DOCBOOK2HTML
870 BUILD_DOCBOOK_VAR
871 INSTALL_DOCBOOK_VAR
872 IODEV_LIB_VAR
873 EXTRA_BX_OBJS
874 NONINLINE_VAR
875 INLINE_VAR
876 EXTERNAL_DEPENDENCY
877 EXT_DEBUG_OBJS
878 RC_CMD
879 WX_CONFIG
880 XPM_LIB
881 PKG_CONFIG
882 GTK_CFLAGS
883 GTK_LIBS
884 GUI_CFLAGS
885 GUI_CXXFLAGS
886 WX_CFLAGS
887 WX_CXXFLAGS
888 WGET
889 DIALOG_OBJS
890 EXPORT_DYNAMIC
891 PTHREAD_CC
892 PTHREAD_LIBS
893 PTHREAD_CFLAGS
894 INSTALL_TARGET
895 INSTALL_LIST_FOR_PLATFORM
896 RFB_LIBS
897 GUI_OBJS
898 DEVICE_LINK_OPTS
899 GUI_LINK_OPTS
900 GUI_LINK_OPTS_TERM
901 GUI_LINK_OPTS_WX
902 BXIMAGE_LINK_OPTS
903 DASH
904 SLASH
905 CXXFP
908 MAKELIB
909 RMCOMMAND
910 LINK
911 LINK_CONSOLE
913 PRIMARY_TARGET
914 PLUGIN_LIBNAME_TRANSFORMATION
915 COMMAND_SEPARATOR
916 CD_UP_ONE
917 CD_UP_TWO
918 CD_UP_THREE
919 VERSION
920 VER_STRING
921 REL_STRING
922 EXTRA_LINK_OPTS
923 GUI_NON_PLUGIN_OBJS
924 GUI_PLUGIN_OBJS
925 IODEV_NON_PLUGIN_OBJS
926 IODEV_PLUGIN_OBJS
927 PLUGIN_VAR
928 PLUGIN_TARGET
929 INSTALL_PLUGINS_VAR
930 GZIP
932 LIBOBJS
933 LTLIBOBJS'
934 ac_subst_files=''
935 ac_precious_vars='build_alias
936 host_alias
937 target_alias
939 CFLAGS
940 LDFLAGS
941 CPPFLAGS
943 CXXFLAGS
946 CXXCPP
948 FFLAGS
949 XMKMF
950 PKG_CONFIG
951 GTK_CFLAGS
952 GTK_LIBS'
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 includedir='${prefix}/include'
990 oldincludedir='/usr/include'
991 docdir='${datarootdir}/doc/${PACKAGE}'
992 infodir='${datarootdir}/info'
993 htmldir='${docdir}'
994 dvidir='${docdir}'
995 pdfdir='${docdir}'
996 psdir='${docdir}'
997 libdir='${exec_prefix}/lib'
998 localedir='${datarootdir}/locale'
999 mandir='${datarootdir}/man'
1001 ac_prev=
1002 ac_dashdash=
1003 for ac_option
1005 # If the previous option needs an argument, assign it.
1006 if test -n "$ac_prev"; then
1007 eval $ac_prev=\$ac_option
1008 ac_prev=
1009 continue
1012 case $ac_option in
1013 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014 *) ac_optarg=yes ;;
1015 esac
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1021 ac_dashdash=yes ;;
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1059 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1062 eval enable_$ac_feature=no ;;
1064 -docdir | --docdir | --docdi | --doc | --do)
1065 ac_prev=docdir ;;
1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067 docdir=$ac_optarg ;;
1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070 ac_prev=dvidir ;;
1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072 dvidir=$ac_optarg ;;
1074 -enable-* | --enable-*)
1075 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1079 { (exit 1); exit 1; }; }
1080 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1081 eval enable_$ac_feature=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1275 { echo "$as_me: error: invalid package name: $ac_package" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_package=`echo $ac_package| sed 's/-/_/g'`
1278 eval with_$ac_package=\$ac_optarg ;;
1280 -without-* | --without-*)
1281 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1284 { echo "$as_me: error: invalid package name: $ac_package" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_package=`echo $ac_package | sed 's/-/_/g'`
1287 eval with_$ac_package=no ;;
1289 --x)
1290 # Obsolete; use --with-x.
1291 with_x=yes ;;
1293 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294 | --x-incl | --x-inc | --x-in | --x-i)
1295 ac_prev=x_includes ;;
1296 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298 x_includes=$ac_optarg ;;
1300 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302 ac_prev=x_libraries ;;
1303 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305 x_libraries=$ac_optarg ;;
1307 -*) { echo "$as_me: error: unrecognized option: $ac_option
1308 Try \`$0 --help' for more information." >&2
1309 { (exit 1); exit 1; }; }
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1316 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1317 { (exit 1); exit 1; }; }
1318 eval $ac_envvar=\$ac_optarg
1319 export $ac_envvar ;;
1322 # FIXME: should be removed in autoconf 3.0.
1323 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329 esac
1330 done
1332 if test -n "$ac_prev"; then
1333 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334 { echo "$as_me: error: missing argument to $ac_option" >&2
1335 { (exit 1); exit 1; }; }
1338 # Be sure to have absolute directory names.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val=\$$ac_var
1345 case $ac_val in
1346 [\\/$]* | ?:[\\/]* ) continue;;
1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 esac
1349 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1350 { (exit 1); exit 1; }; }
1351 done
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1356 build=$build_alias
1357 host=$host_alias
1358 target=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x; then
1362 if test "x$build_alias" = x; then
1363 cross_compiling=maybe
1364 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used." >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1367 cross_compiling=yes
1371 ac_tool_prefix=
1372 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374 test "$silent" = yes && exec 6>/dev/null
1377 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di=`ls -di .` &&
1379 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380 { echo "$as_me: error: Working directory cannot be determined" >&2
1381 { (exit 1); exit 1; }; }
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 { echo "$as_me: error: pwd does not report name of working directory" >&2
1384 { (exit 1); exit 1; }; }
1387 # Find the source files, if location was not specified.
1388 if test -z "$srcdir"; then
1389 ac_srcdir_defaulted=yes
1390 # Try the directory containing this script, then the parent directory.
1391 ac_confdir=`$as_dirname -- "$0" ||
1392 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1393 X"$0" : 'X\(//\)[^/]' \| \
1394 X"$0" : 'X\(//\)$' \| \
1395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1396 echo X"$0" |
1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 s//\1/
1401 /^X\(\/\/\)[^/].*/{
1402 s//\1/
1405 /^X\(\/\/\)$/{
1406 s//\1/
1409 /^X\(\/\).*/{
1410 s//\1/
1413 s/.*/./; q'`
1414 srcdir=$ac_confdir
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 srcdir=..
1418 else
1419 ac_srcdir_defaulted=no
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1423 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1424 { (exit 1); exit 1; }; }
1426 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427 ac_abs_confdir=`(
1428 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1429 { (exit 1); exit 1; }; }
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures this package to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1508 _ACEOF
1510 cat <<\_ACEOF
1512 X features:
1513 --x-includes=DIR X include files are in DIR
1514 --x-libraries=DIR X library files are in DIR
1516 System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520 _ACEOF
1523 if test -n "$ac_init_help"; then
1525 cat <<\_ACEOF
1527 Optional Features:
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-static[=PKGS] build static libraries [default=no]
1531 --enable-shared[=PKGS] build shared libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535 --enable-ltdl-install install libltdl
1536 --disable-largefile omit support for large files
1537 --enable-idle-hack use Roland Mainz's idle hack
1538 --enable-plugins enable plugins
1539 --enable-x86-64 compile in support for x86-64 instructions
1540 --enable-smp compile in support for SMP configurations
1541 --enable-cpu-level select cpu level (3,4,5,6)
1542 --enable-apic enable APIC support
1543 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1544 --enable-ne2000 enable limited ne2000 support
1545 --enable-acpi enable ACPI support
1546 --enable-pci enable limited i440FX PCI support
1547 --enable-pcidev enable PCI host device mapping support (linux host only)
1548 --enable-usb enable limited USB support
1549 --enable-pnic enable PCI pseudo NIC support
1550 --enable-large-pages support for large pages (2M/4M pages)
1551 --enable-pae support Physical Address Extensions
1552 --enable-global-pages support for global pages in PDE/PTE
1553 --enable-mtrr support for MTRRs
1554 --enable-guest2host-tlb support guest to host addr TLB for speed
1555 --enable-repeat-speedups support repeated IO and mem copy speedups
1556 --enable-trace-cache support instruction trace cache
1557 --enable-icache support instruction cache
1558 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1559 --enable-host-specific-asms support for host specific inline assembly
1560 --enable-ignore-bad-msr ignore bad MSR references
1561 --enable-port-e9-hack writes to port e9 go to console
1562 --enable-show-ips show IPS in Bochs log file
1563 --enable-cpp use .cpp as C++ suffix
1564 --enable-debugger compile in support for Bochs internal debugger
1565 --enable-external-debugger enable external debugger support (win32 only)
1566 --enable-disasm compile in support for disassembler
1567 --enable-all-optimizations compile in all possible optimizations
1568 --enable-readline use readline library, if available
1569 --enable-instrumentation compile in support for instrumentation
1570 --enable-logging enable logging
1571 --enable-raw-serial use raw serial port access
1572 --enable-vbe use VESA BIOS extensions
1573 --enable-clgd54xx enable CLGD54XX emulation
1574 --enable-fpu compile in FPU emulation
1575 --enable-vme virtual 8086 mode extensions
1576 --enable-mmx MMX support
1577 --enable-3dnow 3DNow! support
1578 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1579 --enable-sse-extension support for SSE extensions
1580 --enable-daz denormals-are-zeroes support
1581 --enable-alignment-check alignment check (#AC) support
1582 --enable-misaligned-sse misaligned SSE support
1583 --enable-sep SYSENTER/SYSEXIT support
1584 --enable-popcnt support for POPCNT instruction
1585 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1586 --enable-x86-debugger x86 debugger support
1587 --enable-cdrom CDROM support
1588 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1589 --enable-gameport enable standard PC gameport support
1590 --enable-gdb-stub enable gdb stub support
1591 --enable-iodebug enable I/O interface to debugger
1592 --enable-docbook build the Docbook documentation
1593 --enable-xpm enable the check for XPM support
1594 --enable-magic-breakpoints enables magic breakpoints (deprecated)
1595 --enable-save-restore enables save/restore (deprecated)
1596 --enable-reset-on-triple-fault reset when cpu detects a triple fault (deprecated)
1597 --enable-pni PNI support (deprecated)
1599 Optional Packages:
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1603 --with-pic try to use only PIC/non-PIC objects [default=use
1604 both]
1605 --with-tags[=TAGS] include additional configurations [automatic]
1606 --with-x use the X Window System
1607 --with-x11 use X11 GUI
1608 --with-beos use BeOS GUI
1609 --with-win32 use Win32 GUI
1610 --with-macos use Macintosh/CodeWarrior environment
1611 --with-carbon compile for MacOS X with Carbon GUI
1612 --with-nogui no native GUI, just use blank stubs
1613 --with-term textmode terminal environment
1614 --with-rfb use RFB protocol, works with VNC viewer
1615 --with-amigaos use AmigaOS (or MorphOS) GUI
1616 --with-sdl use SDL libraries
1617 --with-svga use SVGALib libraries
1618 --with-wx use wxWidgets libraries
1619 --with-all-libs compile all guis that Bochs supports
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
1630 CPP C preprocessor
1631 CXXCPP C++ preprocessor
1632 F77 Fortran 77 compiler command
1633 FFLAGS Fortran 77 compiler flags
1634 XMKMF Path to xmkmf, Makefile generator for X Window System
1635 PKG_CONFIG path to pkg-config utility
1636 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1637 GTK_LIBS linker flags for GTK, overriding pkg-config
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1642 _ACEOF
1643 ac_status=$?
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" || continue
1650 ac_builddir=.
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 configure
1703 generated by GNU Autoconf 2.60
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.60. Invocation command line was
1719 $ $0 $@
1721 _ACEOF
1722 exec 5>>config.log
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746 _ASUNAME
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1757 } >&5
1759 cat >&5 <<_ACEOF
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1766 _ACEOF
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1780 for ac_arg
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1825 echo
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1841 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 *) $as_unset $ac_var ;;
1846 esac ;;
1847 esac
1848 done
1849 (set) 2>&1 |
1850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1851 *${as_nl}ac_space=\ *)
1852 sed -n \
1853 "s/'\''/'\''\\\\'\'''\''/g;
1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1855 ;; #(
1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 esac |
1860 sort
1862 echo
1864 cat <<\_ASBOX
1865 ## ----------------- ##
1866 ## Output variables. ##
1867 ## ----------------- ##
1868 _ASBOX
1869 echo
1870 for ac_var in $ac_subst_vars
1872 eval ac_val=\$$ac_var
1873 case $ac_val in
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875 esac
1876 echo "$ac_var='\''$ac_val'\''"
1877 done | sort
1878 echo
1880 if test -n "$ac_subst_files"; then
1881 cat <<\_ASBOX
1882 ## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##
1885 _ASBOX
1886 echo
1887 for ac_var in $ac_subst_files
1889 eval ac_val=\$$ac_var
1890 case $ac_val in
1891 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 esac
1893 echo "$ac_var='\''$ac_val'\''"
1894 done | sort
1895 echo
1898 if test -s confdefs.h; then
1899 cat <<\_ASBOX
1900 ## ----------- ##
1901 ## confdefs.h. ##
1902 ## ----------- ##
1903 _ASBOX
1904 echo
1905 cat confdefs.h
1906 echo
1908 test "$ac_signal" != 0 &&
1909 echo "$as_me: caught signal $ac_signal"
1910 echo "$as_me: exit $exit_status"
1911 } >&5
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914 exit $exit_status
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1918 done
1919 ac_signal=0
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1924 # Predefined preprocessor variables.
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_NAME "$PACKAGE_NAME"
1928 _ACEOF
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1933 _ACEOF
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1938 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1948 _ACEOF
1951 # Let the site file select an alternate cache file if it wants to.
1952 # Prefer explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954 set x "$CONFIG_SITE"
1955 elif test "x$prefix" != xNONE; then
1956 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1957 else
1958 set x "$ac_default_prefix/share/config.site" \
1959 "$ac_default_prefix/etc/config.site"
1961 shift
1962 for ac_site_file
1964 if test -r "$ac_site_file"; then
1965 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1968 . "$ac_site_file"
1970 done
1972 if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 echo "$as_me: loading cache $cache_file" >&6;}
1978 case $cache_file in
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1981 esac
1983 else
1984 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 echo "$as_me: creating cache $cache_file" >&6;}
1986 >$cache_file
1989 # Check that the precious variables saved in the cache have kept the same
1990 # value.
1991 ac_cache_corrupted=false
1992 for ac_var in $ac_precious_vars; do
1993 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994 eval ac_new_set=\$ac_env_${ac_var}_set
1995 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996 eval ac_new_val=\$ac_env_${ac_var}_value
1997 case $ac_old_set,$ac_new_set in
1998 set,)
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2002 ,set)
2003 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,);;
2008 if test "x$ac_old_val" != "x$ac_new_val"; then
2009 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2012 echo "$as_me: former value: $ac_old_val" >&2;}
2013 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2014 echo "$as_me: current value: $ac_new_val" >&2;}
2015 ac_cache_corrupted=:
2016 fi;;
2017 esac
2018 # Pass precious variables to config.status.
2019 if test "$ac_new_set" = set; then
2020 case $ac_new_val in
2021 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 *) ac_arg=$ac_var=$ac_new_val ;;
2023 esac
2024 case " $ac_configure_args " in
2025 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2026 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2027 esac
2029 done
2030 if $ac_cache_corrupted; then
2031 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2032 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2033 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2034 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2035 { (exit 1); exit 1; }; }
2054 ac_ext=c
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 ac_config_headers="$ac_config_headers config.h"
2064 ac_config_headers="$ac_config_headers ltdlconf.h"
2067 VERSION="2.3.6.cvs"
2068 VER_STRING="2.3.6.cvs"
2069 REL_STRING="Build from CVS snapshot, after release 2.3.6"
2074 ac_aux_dir=
2075 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2076 if test -f "$ac_dir/install-sh"; then
2077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/install-sh -c"
2079 break
2080 elif test -f "$ac_dir/install.sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install.sh -c"
2083 break
2084 elif test -f "$ac_dir/shtool"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/shtool install -c"
2087 break
2089 done
2090 if test -z "$ac_aux_dir"; then
2091 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2092 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2093 { (exit 1); exit 1; }; }
2096 # These three variables are undocumented and unsupported,
2097 # and are intended to be withdrawn in a future Autoconf release.
2098 # They can cause serious problems if a builder's source tree is in a directory
2099 # whose full name contains unusual characters.
2100 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2101 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2102 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2132 *-*-*) ;;
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2136 esac
2137 build=$ac_cv_build
2138 ac_save_IFS=$IFS; IFS='-'
2139 set x $ac_cv_build
2140 shift
2141 build_cpu=$1
2142 build_vendor=$2
2143 shift; shift
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2146 build_os=$*
2147 IFS=$ac_save_IFS
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156 if test "x$host_alias" = x; then
2157 ac_cv_host=$ac_cv_build
2158 else
2159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2168 case $ac_cv_host in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 host=$ac_cv_host
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_host
2177 shift
2178 host_cpu=$1
2179 host_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 host_os=$*
2184 IFS=$ac_save_IFS
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking target system type" >&5
2189 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_target+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 if test "x$target_alias" = x; then
2194 ac_cv_target=$ac_cv_host
2195 else
2196 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2204 echo "${ECHO_T}$ac_cv_target" >&6; }
2205 case $ac_cv_target in
2206 *-*-*) ;;
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2208 echo "$as_me: error: invalid value of canonical target" >&2;}
2209 { (exit 1); exit 1; }; };;
2210 esac
2211 target=$ac_cv_target
2212 ac_save_IFS=$IFS; IFS='-'
2213 set x $ac_cv_target
2214 shift
2215 target_cpu=$1
2216 target_vendor=$2
2217 shift; shift
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2220 target_os=$*
2221 IFS=$ac_save_IFS
2222 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2225 # The aliases save the names the user supplied, while $host etc.
2226 # will get canonicalized.
2227 test -n "$target_alias" &&
2228 test "$program_prefix$program_suffix$program_transform_name" = \
2229 NONENONEs,x,x, &&
2230 program_prefix=${target_alias}-
2232 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2233 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2234 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2235 { echo "$as_me:$LINENO: result: yes" >&5
2236 echo "${ECHO_T}yes" >&6; }
2237 cross_configure=1
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 cross_configure=0
2244 # this case statement defines the compile flags which are needed to
2245 # compile bochs on a platform. Don't put things like optimization settings
2246 # into the configure.in file, since people will want to be able to change
2247 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2248 NO_LT=0
2249 need_dlcompat_for_plugins=0
2250 case "$target" in
2251 *-pc-windows* | *-pc-winnt*)
2252 DEFAULT_GUI=win32 # default to win32 gui
2254 *-pc-cygwin* | *-pc-mingw32*)
2255 NO_LT=1 # do not use libtool at all on cygwin
2256 if test "$with_term" = yes; then
2257 # ncurses won't compile with -mno-cygwin or -DWIN32
2258 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2259 # see /usr/include/curses.h for details.
2260 ADD_FLAGS="-DBROKEN_LINKER=1"
2261 else
2262 # default case
2263 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2264 DEFAULT_GUI=win32 # default to win32 gui
2267 *-macosx* | *-darwin*)
2268 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2269 DEFAULT_GUI=carbon # default to carbon
2270 need_dlcompat_for_plugins=1
2272 *-macos*)
2273 DEFAULT_GUI=macos # macos defaults to macos
2275 *-beos*)
2276 ADD_FLAGS="-Wno-multichar"
2277 DEFAULT_GUI=beos # beos defaults to beos
2279 *-amigaos* | *-morphos*)
2280 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2282 *-solaris*)
2283 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2284 LIBS="$LIBS -lsocket -lnsl"
2285 DEFAULT_GUI=x11
2288 DEFAULT_GUI=x11
2290 esac
2291 if test "${ADD_FLAGS:+set}" = set; then
2292 CFLAGS="$CFLAGS $ADD_FLAGS"
2293 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2294 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2297 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2298 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2299 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2300 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2302 if (test "$with_sdl" != yes) && \
2303 (test "$with_svga" != yes) && \
2304 (test "$with_x11" != yes) && \
2305 (test "$with_beos" != yes) && \
2306 (test "$with_win32" != yes) && \
2307 (test "$with_nogui" != yes) && \
2308 (test "$with_term" != yes) && \
2309 (test "$with_rfb" != yes) && \
2310 (test "$with_amigaos" != yes) && \
2311 (test "$with_carbon" != yes) && \
2312 (test "$with_wx" != yes) && \
2313 (test "$with_macos" != yes); then
2314 # use DEFAULT_GUI. Set the appropriate variable.
2315 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2316 # valid $with_* variable will be set and who knows what will happen?
2317 eval "with_${DEFAULT_GUI}=yes"
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 if test -n "$ac_tool_prefix"; then
2326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 for ac_exec_ext in '' $ac_executable_extensions; do
2342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 break 2
2347 done
2348 done
2349 IFS=$as_save_IFS
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355 { echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6; }
2357 else
2358 { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2364 if test -z "$ac_cv_prog_CC"; then
2365 ac_ct_CC=$CC
2366 # Extract the first word of "gcc", so it can be a program name with args.
2367 set dummy gcc; ac_word=$2
2368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 if test -n "$ac_ct_CC"; then
2374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2383 ac_cv_prog_ac_ct_CC="gcc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2387 done
2388 done
2389 IFS=$as_save_IFS
2393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2394 if test -n "$ac_ct_CC"; then
2395 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2396 echo "${ECHO_T}$ac_ct_CC" >&6; }
2397 else
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2402 if test "x$ac_ct_CC" = x; then
2403 CC=""
2404 else
2405 case $cross_compiling:$ac_tool_warned in
2406 yes:)
2407 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&5
2410 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2413 ac_tool_warned=yes ;;
2414 esac
2415 CC=$ac_ct_CC
2417 else
2418 CC="$ac_cv_prog_CC"
2421 if test -z "$CC"; then
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}cc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}cc"
2441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2444 done
2445 done
2446 IFS=$as_save_IFS
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452 { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455 { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2462 if test -z "$CC"; then
2463 # Extract the first word of "cc", so it can be a program name with args.
2464 set dummy cc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 ac_prog_rejected=no
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
2480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2482 ac_prog_rejected=yes
2483 continue
2485 ac_cv_prog_CC="cc"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 break 2
2489 done
2490 done
2491 IFS=$as_save_IFS
2493 if test $ac_prog_rejected = yes; then
2494 # We found a bogon in the path, so make sure we never use it.
2495 set dummy $ac_cv_prog_CC
2496 shift
2497 if test $# != 0; then
2498 # We chose a different compiler from the bogus one.
2499 # However, it has the same basename, so the bogon will be chosen
2500 # first if we set CC to just the basename; use the full file name.
2501 shift
2502 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2507 CC=$ac_cv_prog_CC
2508 if test -n "$CC"; then
2509 { echo "$as_me:$LINENO: result: $CC" >&5
2510 echo "${ECHO_T}$CC" >&6; }
2511 else
2512 { echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6; }
2518 if test -z "$CC"; then
2519 if test -n "$ac_tool_prefix"; then
2520 for ac_prog in cl.exe
2522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2526 if test "${ac_cv_prog_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528 else
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2539 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2543 done
2544 done
2545 IFS=$as_save_IFS
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551 { echo "$as_me:$LINENO: result: $CC" >&5
2552 echo "${ECHO_T}$CC" >&6; }
2553 else
2554 { echo "$as_me:$LINENO: result: no" >&5
2555 echo "${ECHO_T}no" >&6; }
2559 test -n "$CC" && break
2560 done
2562 if test -z "$CC"; then
2563 ac_ct_CC=$CC
2564 for ac_prog in cl.exe
2566 # Extract the first word of "$ac_prog", so it can be a program name with args.
2567 set dummy $ac_prog; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 if test -n "$ac_ct_CC"; then
2574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2579 IFS=$as_save_IFS
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_ac_ct_CC="$ac_prog"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 break 2
2587 done
2588 done
2589 IFS=$as_save_IFS
2593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2594 if test -n "$ac_ct_CC"; then
2595 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2596 echo "${ECHO_T}$ac_ct_CC" >&6; }
2597 else
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2603 test -n "$ac_ct_CC" && break
2604 done
2606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&5
2614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet. If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2617 ac_tool_warned=yes ;;
2618 esac
2619 CC=$ac_ct_CC
2626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&2;}
2630 { (exit 1); exit 1; }; }
2632 # Provide some information about the compiler.
2633 echo "$as_me:$LINENO: checking for C compiler version" >&5
2634 ac_compiler=`set X $ac_compile; echo $2`
2635 { (ac_try="$ac_compiler --version >&5"
2636 case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compiler --version >&5") 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }
2645 { (ac_try="$ac_compiler -v >&5"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compiler -v >&5") 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }
2655 { (ac_try="$ac_compiler -V >&5"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compiler -V >&5") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }
2666 cat >conftest.$ac_ext <<_ACEOF
2667 /* confdefs.h. */
2668 _ACEOF
2669 cat confdefs.h >>conftest.$ac_ext
2670 cat >>conftest.$ac_ext <<_ACEOF
2671 /* end confdefs.h. */
2674 main ()
2678 return 0;
2680 _ACEOF
2681 ac_clean_files_save=$ac_clean_files
2682 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2683 # Try to create an executable without -o first, disregard a.out.
2684 # It will help us diagnose broken compilers, and finding out an intuition
2685 # of exeext.
2686 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2687 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2688 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2690 # List of possible output files, starting from the most likely.
2691 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2692 # only as a last resort. b.out is created by i960 compilers.
2693 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2695 # The IRIX 6 linker writes into existing files which may not be
2696 # executable, retaining their permissions. Remove them first so a
2697 # subsequent execution test works.
2698 ac_rmfiles=
2699 for ac_file in $ac_files
2701 case $ac_file in
2702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2703 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2704 esac
2705 done
2706 rm -f $ac_rmfiles
2708 if { (ac_try="$ac_link_default"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_link_default") 2>&5
2715 ac_status=$?
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2719 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2720 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2721 # so that the user can short-circuit this test for compilers unknown to
2722 # Autoconf.
2723 for ac_file in $ac_files
2725 test -f "$ac_file" || continue
2726 case $ac_file in
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2729 [ab].out )
2730 # We found the default executable, but exeext='' is most
2731 # certainly right.
2732 break;;
2733 *.* )
2734 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2735 then :; else
2736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2738 # We set ac_cv_exeext here because the later test for it is not
2739 # safe: cross compilers may not add the suffix if given an `-o'
2740 # argument, so we may need to know it at that point already.
2741 # Even if this section looks crufty: it has the advantage of
2742 # actually working.
2743 break;;
2745 break;;
2746 esac
2747 done
2748 test "$ac_cv_exeext" = no && ac_cv_exeext=
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2755 See \`config.log' for more details." >&5
2756 echo "$as_me: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&2;}
2758 { (exit 77); exit 77; }; }
2761 ac_exeext=$ac_cv_exeext
2762 { echo "$as_me:$LINENO: result: $ac_file" >&5
2763 echo "${ECHO_T}$ac_file" >&6; }
2765 # Check that the compiler produces executables we can run. If not, either
2766 # the compiler is broken, or we cross compile.
2767 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2768 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2769 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2770 # If not cross compiling, check that we can run a simple program.
2771 if test "$cross_compiling" != yes; then
2772 if { ac_try='./$ac_file'
2773 { (case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_try") 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 cross_compiling=no
2783 else
2784 if test "$cross_compiling" = maybe; then
2785 cross_compiling=yes
2786 else
2787 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details." >&5
2790 echo "$as_me: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&2;}
2793 { (exit 1); exit 1; }; }
2797 { echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6; }
2800 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2801 ac_clean_files=$ac_clean_files_save
2802 # Check that the compiler produces executables we can run. If not, either
2803 # the compiler is broken, or we cross compile.
2804 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2805 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2806 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2807 echo "${ECHO_T}$cross_compiling" >&6; }
2809 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2810 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2811 if { (ac_try="$ac_link"
2812 case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2822 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2823 # work properly (i.e., refer to `conftest.exe'), while it won't with
2824 # `rm'.
2825 for ac_file in conftest.exe conftest conftest.*; do
2826 test -f "$ac_file" || continue
2827 case $ac_file in
2828 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2830 break;;
2831 * ) break;;
2832 esac
2833 done
2834 else
2835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2836 See \`config.log' for more details." >&5
2837 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&2;}
2839 { (exit 1); exit 1; }; }
2842 rm -f conftest$ac_cv_exeext
2843 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2844 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2846 rm -f conftest.$ac_ext
2847 EXEEXT=$ac_cv_exeext
2848 ac_exeext=$EXEEXT
2849 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2850 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2851 if test "${ac_cv_objext+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2862 main ()
2866 return 0;
2868 _ACEOF
2869 rm -f conftest.o conftest.obj
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; then
2880 for ac_file in conftest.o conftest.obj conftest.*; do
2881 test -f "$ac_file" || continue;
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2885 break;;
2886 esac
2887 done
2888 else
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2901 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2902 echo "${ECHO_T}$ac_cv_objext" >&6; }
2903 OBJEXT=$ac_cv_objext
2904 ac_objext=$OBJEXT
2905 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 cat >conftest.$ac_ext <<_ACEOF
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2918 main ()
2920 #ifndef __GNUC__
2921 choke me
2922 #endif
2925 return 0;
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (ac_try="$ac_compile"
2930 case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compile") 2>conftest.er1
2936 ac_status=$?
2937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
2942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2943 { (case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_try") 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; } &&
2952 { ac_try='test -s conftest.$ac_objext'
2953 { (case "(($ac_try" in
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2962 ac_compiler_gnu=yes
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 ac_compiler_gnu=no
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2975 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2976 GCC=`test $ac_compiler_gnu = yes && echo yes`
2977 ac_test_CFLAGS=${CFLAGS+set}
2978 ac_save_CFLAGS=$CFLAGS
2979 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2980 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_g+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 ac_save_c_werror_flag=$ac_c_werror_flag
2985 ac_c_werror_flag=yes
2986 ac_cv_prog_cc_g=no
2987 CFLAGS="-g"
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3005 case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008 esac
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 ac_cv_prog_cc_g=yes
3038 else
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3042 CFLAGS=""
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3051 main ()
3055 return 0;
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3066 ac_status=$?
3067 grep -v '^ *+' conftest.er1 >conftest.err
3068 rm -f conftest.er1
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } &&
3072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3073 { (case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_try") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086 esac
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3093 else
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3097 ac_c_werror_flag=$ac_save_c_werror_flag
3098 CFLAGS="-g"
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3107 main ()
3111 return 0;
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_prog_cc_g=yes
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3167 if test "$ac_test_CFLAGS" = set; then
3168 CFLAGS=$ac_save_CFLAGS
3169 elif test $ac_cv_prog_cc_g = yes; then
3170 if test "$GCC" = yes; then
3171 CFLAGS="-g -O2"
3172 else
3173 CFLAGS="-g"
3175 else
3176 if test "$GCC" = yes; then
3177 CFLAGS="-O2"
3178 else
3179 CFLAGS=
3182 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3183 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_c89+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_cv_prog_cc_c89=no
3188 ac_save_CC=$CC
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #include <stdarg.h>
3196 #include <stdio.h>
3197 #include <sys/types.h>
3198 #include <sys/stat.h>
3199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3200 struct buf { int x; };
3201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202 static char *e (p, i)
3203 char **p;
3204 int i;
3206 return p[i];
3208 static char *f (char * (*g) (char **, int), char **p, ...)
3210 char *s;
3211 va_list v;
3212 va_start (v,p);
3213 s = g (p, va_arg (v,int));
3214 va_end (v);
3215 return s;
3218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3219 function prototypes and stuff, but not '\xHH' hex character constants.
3220 These don't provoke an error unfortunately, instead are silently treated
3221 as 'x'. The following induces an error, until -std is added to get
3222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3223 array size at least. It's necessary to write '\x00'==0 to get something
3224 that's true only with -std. */
3225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3227 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3228 inside strings and character constants. */
3229 #define FOO(x) 'x'
3230 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3232 int test (int i, double x);
3233 struct s1 {int (*f) (int a);};
3234 struct s2 {int (*f) (double a);};
3235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 int argc;
3237 char **argv;
3239 main ()
3241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3243 return 0;
3245 _ACEOF
3246 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3249 CC="$ac_save_CC $ac_arg"
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3265 { (case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_try") 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_try") 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3284 ac_cv_prog_cc_c89=$ac_arg
3285 else
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 done
3295 rm -f conftest.$ac_ext
3296 CC=$ac_save_CC
3299 # AC_CACHE_VAL
3300 case "x$ac_cv_prog_cc_c89" in
3302 { echo "$as_me:$LINENO: result: none needed" >&5
3303 echo "${ECHO_T}none needed" >&6; } ;;
3304 xno)
3305 { echo "$as_me:$LINENO: result: unsupported" >&5
3306 echo "${ECHO_T}unsupported" >&6; } ;;
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3310 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3311 esac
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320 ac_ext=cpp
3321 ac_cpp='$CXXCPP $CPPFLAGS'
3322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3325 if test -z "$CXX"; then
3326 if test -n "$CCC"; then
3327 CXX=$CCC
3328 else
3329 if test -n "$ac_tool_prefix"; then
3330 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_CXX+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if test -n "$CXX"; then
3340 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3353 done
3354 done
3355 IFS=$as_save_IFS
3359 CXX=$ac_cv_prog_CXX
3360 if test -n "$CXX"; then
3361 { echo "$as_me:$LINENO: result: $CXX" >&5
3362 echo "${ECHO_T}$CXX" >&6; }
3363 else
3364 { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3369 test -n "$CXX" && break
3370 done
3372 if test -z "$CXX"; then
3373 ac_ct_CXX=$CXX
3374 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3376 # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383 if test -n "$ac_ct_CXX"; then
3384 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_ac_ct_CXX="$ac_prog"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3404 if test -n "$ac_ct_CXX"; then
3405 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3406 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3407 else
3408 { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3413 test -n "$ac_ct_CXX" && break
3414 done
3416 if test "x$ac_ct_CXX" = x; then
3417 CXX="g++"
3418 else
3419 case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3422 whose name does not start with the host triplet. If you think this
3423 configuration is useful to you, please write to autoconf@gnu.org." >&5
3424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3425 whose name does not start with the host triplet. If you think this
3426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CXX=$ac_ct_CXX
3435 # Provide some information about the compiler.
3436 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3437 ac_compiler=`set X $ac_compile; echo $2`
3438 { (ac_try="$ac_compiler --version >&5"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_compiler --version >&5") 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }
3448 { (ac_try="$ac_compiler -v >&5"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compiler -v >&5") 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }
3458 { (ac_try="$ac_compiler -V >&5"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464 (eval "$ac_compiler -V >&5") 2>&5
3465 ac_status=$?
3466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467 (exit $ac_status); }
3469 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3470 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3471 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3482 main ()
3484 #ifndef __GNUC__
3485 choke me
3486 #endif
3489 return 0;
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (ac_try="$ac_compile"
3494 case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_compile") 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3507 { (case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_try") 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }; } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_try") 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_compiler_gnu=yes
3527 else
3528 echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3531 ac_compiler_gnu=no
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3538 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3539 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3540 GXX=`test $ac_compiler_gnu = yes && echo yes`
3541 ac_test_CXXFLAGS=${CXXFLAGS+set}
3542 ac_save_CXXFLAGS=$CXXFLAGS
3543 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3544 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_cxx_g+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3549 ac_cxx_werror_flag=yes
3550 ac_cv_prog_cxx_g=no
3551 CXXFLAGS="-g"
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574 (eval "$ac_compile") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } &&
3581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3582 { (case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_try") 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest.$ac_objext'
3592 { (case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_try") 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; }; then
3601 ac_cv_prog_cxx_g=yes
3602 else
3603 echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 CXXFLAGS=""
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629 (eval "$ac_compile") 2>conftest.er1
3630 ac_status=$?
3631 grep -v '^ *+' conftest.er1 >conftest.err
3632 rm -f conftest.er1
3633 cat conftest.err >&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_try") 2>&5
3643 ac_status=$?
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); }; } &&
3646 { ac_try='test -s conftest.$ac_objext'
3647 { (case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_try") 2>&5
3653 ac_status=$?
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); }; }; then
3657 else
3658 echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3662 CXXFLAGS="-g"
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 main ()
3675 return 0;
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
3692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3693 { (case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; } &&
3702 { ac_try='test -s conftest.$ac_objext'
3703 { (case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3709 ac_status=$?
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_prog_cxx_g=yes
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3730 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3731 if test "$ac_test_CXXFLAGS" = set; then
3732 CXXFLAGS=$ac_save_CXXFLAGS
3733 elif test $ac_cv_prog_cxx_g = yes; then
3734 if test "$GXX" = yes; then
3735 CXXFLAGS="-g -O2"
3736 else
3737 CXXFLAGS="-g"
3739 else
3740 if test "$GXX" = yes; then
3741 CXXFLAGS="-O2"
3742 else
3743 CXXFLAGS=
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3753 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3754 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3755 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758 cat >conftest.make <<\_ACEOF
3759 SHELL = /bin/sh
3760 all:
3761 @echo '@@@%%%=$(MAKE)=@@@%%%'
3762 _ACEOF
3763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3765 *@@@%%%=?*=@@@%%%*)
3766 eval ac_cv_prog_make_${ac_make}_set=yes;;
3768 eval ac_cv_prog_make_${ac_make}_set=no;;
3769 esac
3770 rm -f conftest.make
3772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3773 { echo "$as_me:$LINENO: result: yes" >&5
3774 echo "${ECHO_T}yes" >&6; }
3775 SET_MAKE=
3776 else
3777 { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3779 SET_MAKE="MAKE=${MAKE-make}"
3783 # Check whether --enable-static was given.
3784 if test "${enable_static+set}" = set; then
3785 enableval=$enable_static; p=${PACKAGE-default}
3786 case $enableval in
3787 yes) enable_static=yes ;;
3788 no) enable_static=no ;;
3790 enable_static=no
3791 # Look at the argument we got. We use all the common list separators.
3792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3793 for pkg in $enableval; do
3794 IFS="$lt_save_ifs"
3795 if test "X$pkg" = "X$p"; then
3796 enable_static=yes
3798 done
3799 IFS="$lt_save_ifs"
3801 esac
3802 else
3803 enable_static=no
3810 # Check whether --enable-shared was given.
3811 if test "${enable_shared+set}" = set; then
3812 enableval=$enable_shared; p=${PACKAGE-default}
3813 case $enableval in
3814 yes) enable_shared=yes ;;
3815 no) enable_shared=no ;;
3817 enable_shared=no
3818 # Look at the argument we got. We use all the common list separators.
3819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3820 for pkg in $enableval; do
3821 IFS="$lt_save_ifs"
3822 if test "X$pkg" = "X$p"; then
3823 enable_shared=yes
3825 done
3826 IFS="$lt_save_ifs"
3828 esac
3829 else
3830 enable_shared=yes
3834 # Check whether --enable-fast-install was given.
3835 if test "${enable_fast_install+set}" = set; then
3836 enableval=$enable_fast_install; p=${PACKAGE-default}
3837 case $enableval in
3838 yes) enable_fast_install=yes ;;
3839 no) enable_fast_install=no ;;
3841 enable_fast_install=no
3842 # Look at the argument we got. We use all the common list separators.
3843 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3844 for pkg in $enableval; do
3845 IFS="$lt_save_ifs"
3846 if test "X$pkg" = "X$p"; then
3847 enable_fast_install=yes
3849 done
3850 IFS="$lt_save_ifs"
3852 esac
3853 else
3854 enable_fast_install=yes
3858 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3859 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3860 if test "${lt_cv_path_SED+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 # Loop through the user's path and test for sed and gsed.
3864 # Then use that list of sed's as ones to test for truncation.
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for lt_ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3873 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3875 done
3876 done
3877 done
3878 lt_ac_max=0
3879 lt_ac_count=0
3880 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3881 # along with /bin/sed that truncates output.
3882 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3883 test ! -f $lt_ac_sed && break
3884 cat /dev/null > conftest.in
3885 lt_ac_count=0
3886 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3887 # Check for GNU sed and select it if it is found.
3888 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3889 lt_cv_path_SED=$lt_ac_sed
3890 break
3892 while true; do
3893 cat conftest.in conftest.in >conftest.tmp
3894 mv conftest.tmp conftest.in
3895 cp conftest.in conftest.nl
3896 echo >>conftest.nl
3897 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3898 cmp -s conftest.out conftest.nl || break
3899 # 10000 chars as input seems more than enough
3900 test $lt_ac_count -gt 10 && break
3901 lt_ac_count=`expr $lt_ac_count + 1`
3902 if test $lt_ac_count -gt $lt_ac_max; then
3903 lt_ac_max=$lt_ac_count
3904 lt_cv_path_SED=$lt_ac_sed
3906 done
3907 done
3908 SED=$lt_cv_path_SED
3912 { echo "$as_me:$LINENO: result: $SED" >&5
3913 echo "${ECHO_T}$SED" >&6; }
3915 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3916 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3917 if test "${ac_cv_path_GREP+set}" = set; then
3918 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 else
3920 # Extract the first word of "grep ggrep" to use in msg output
3921 if test -z "$GREP"; then
3922 set dummy grep ggrep; ac_prog_name=$2
3923 if test "${ac_cv_path_GREP+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926 ac_path_GREP_found=false
3927 # Loop through the user's path and test for each of PROGNAME-LIST
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_prog in grep ggrep; do
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3936 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3937 # Check for GNU ac_path_GREP and select it if it is found.
3938 # Check for GNU $ac_path_GREP
3939 case `"$ac_path_GREP" --version 2>&1` in
3940 *GNU*)
3941 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3943 ac_count=0
3944 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3945 while :
3947 cat "conftest.in" "conftest.in" >"conftest.tmp"
3948 mv "conftest.tmp" "conftest.in"
3949 cp "conftest.in" "conftest.nl"
3950 echo 'GREP' >> "conftest.nl"
3951 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953 ac_count=`expr $ac_count + 1`
3954 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3955 # Best one so far, save it but keep looking for a better one
3956 ac_cv_path_GREP="$ac_path_GREP"
3957 ac_path_GREP_max=$ac_count
3959 # 10*(2^10) chars as input seems more than enough
3960 test $ac_count -gt 10 && break
3961 done
3962 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963 esac
3966 $ac_path_GREP_found && break 3
3967 done
3968 done
3970 done
3971 IFS=$as_save_IFS
3976 GREP="$ac_cv_path_GREP"
3977 if test -z "$GREP"; then
3978 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3979 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3980 { (exit 1); exit 1; }; }
3983 else
3984 ac_cv_path_GREP=$GREP
3989 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3990 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3991 GREP="$ac_cv_path_GREP"
3994 { echo "$as_me:$LINENO: checking for egrep" >&5
3995 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4000 then ac_cv_path_EGREP="$GREP -E"
4001 else
4002 # Extract the first word of "egrep" to use in msg output
4003 if test -z "$EGREP"; then
4004 set dummy egrep; ac_prog_name=$2
4005 if test "${ac_cv_path_EGREP+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 else
4008 ac_path_EGREP_found=false
4009 # Loop through the user's path and test for each of PROGNAME-LIST
4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_prog in egrep; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4018 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4019 # Check for GNU ac_path_EGREP and select it if it is found.
4020 # Check for GNU $ac_path_EGREP
4021 case `"$ac_path_EGREP" --version 2>&1` in
4022 *GNU*)
4023 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4025 ac_count=0
4026 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4027 while :
4029 cat "conftest.in" "conftest.in" >"conftest.tmp"
4030 mv "conftest.tmp" "conftest.in"
4031 cp "conftest.in" "conftest.nl"
4032 echo 'EGREP' >> "conftest.nl"
4033 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4035 ac_count=`expr $ac_count + 1`
4036 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4037 # Best one so far, save it but keep looking for a better one
4038 ac_cv_path_EGREP="$ac_path_EGREP"
4039 ac_path_EGREP_max=$ac_count
4041 # 10*(2^10) chars as input seems more than enough
4042 test $ac_count -gt 10 && break
4043 done
4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4045 esac
4048 $ac_path_EGREP_found && break 3
4049 done
4050 done
4052 done
4053 IFS=$as_save_IFS
4058 EGREP="$ac_cv_path_EGREP"
4059 if test -z "$EGREP"; then
4060 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4061 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4062 { (exit 1); exit 1; }; }
4065 else
4066 ac_cv_path_EGREP=$EGREP
4072 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4073 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4074 EGREP="$ac_cv_path_EGREP"
4078 # Check whether --with-gnu-ld was given.
4079 if test "${with_gnu_ld+set}" = set; then
4080 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4081 else
4082 with_gnu_ld=no
4085 ac_prog=ld
4086 if test "$GCC" = yes; then
4087 # Check if gcc -print-prog-name=ld gives a path.
4088 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4089 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4090 case $host in
4091 *-*-mingw*)
4092 # gcc leaves a trailing carriage return which upsets mingw
4093 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4095 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4096 esac
4097 case $ac_prog in
4098 # Accept absolute paths.
4099 [\\/]* | ?:[\\/]*)
4100 re_direlt='/[^/][^/]*/\.\./'
4101 # Canonicalize the pathname of ld
4102 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4103 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4104 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4105 done
4106 test -z "$LD" && LD="$ac_prog"
4109 # If it fails, then pretend we aren't using GCC.
4110 ac_prog=ld
4113 # If it is relative, then search for the first ld in PATH.
4114 with_gnu_ld=unknown
4116 esac
4117 elif test "$with_gnu_ld" = yes; then
4118 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4119 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4120 else
4121 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4122 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4124 if test "${lt_cv_path_LD+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127 if test -z "$LD"; then
4128 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4129 for ac_dir in $PATH; do
4130 IFS="$lt_save_ifs"
4131 test -z "$ac_dir" && ac_dir=.
4132 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4133 lt_cv_path_LD="$ac_dir/$ac_prog"
4134 # Check to see if the program is GNU ld. I'd rather use --version,
4135 # but apparently some GNU ld's only accept -v.
4136 # Break only if it was the GNU/non-GNU ld that we prefer.
4137 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4138 *GNU* | *'with BFD'*)
4139 test "$with_gnu_ld" != no && break
4142 test "$with_gnu_ld" != yes && break
4144 esac
4146 done
4147 IFS="$lt_save_ifs"
4148 else
4149 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4153 LD="$lt_cv_path_LD"
4154 if test -n "$LD"; then
4155 { echo "$as_me:$LINENO: result: $LD" >&5
4156 echo "${ECHO_T}$LD" >&6; }
4157 else
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4163 { (exit 1); exit 1; }; }
4164 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4166 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4170 case `$LD -v 2>&1 </dev/null` in
4171 *GNU* | *'with BFD'*)
4172 lt_cv_prog_gnu_ld=yes
4175 lt_cv_prog_gnu_ld=no
4177 esac
4179 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4180 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4181 with_gnu_ld=$lt_cv_prog_gnu_ld
4184 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4185 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4186 if test "${lt_cv_ld_reload_flag+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189 lt_cv_ld_reload_flag='-r'
4191 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4192 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4193 reload_flag=$lt_cv_ld_reload_flag
4194 case $reload_flag in
4195 "" | " "*) ;;
4196 *) reload_flag=" $reload_flag" ;;
4197 esac
4198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4201 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4202 if test "${lt_cv_path_NM+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$NM"; then
4206 # Let the user override the test.
4207 lt_cv_path_NM="$NM"
4208 else
4209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4210 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4211 IFS="$lt_save_ifs"
4212 test -z "$ac_dir" && ac_dir=.
4213 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4214 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4215 # Check to see if the nm accepts a BSD-compat flag.
4216 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4217 # nm: unknown option "B" ignored
4218 # Tru64's nm complains that /dev/null is an invalid object file
4219 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4220 */dev/null* | *'Invalid file or object type'*)
4221 lt_cv_path_NM="$tmp_nm -B"
4222 break
4225 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4226 */dev/null*)
4227 lt_cv_path_NM="$tmp_nm -p"
4228 break
4231 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4232 continue # so that we can try to find one that supports BSD flags
4234 esac
4235 esac
4237 done
4238 IFS="$lt_save_ifs"
4239 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4242 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4243 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4244 NM="$lt_cv_path_NM"
4246 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4247 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4248 LN_S=$as_ln_s
4249 if test "$LN_S" = "ln -s"; then
4250 { echo "$as_me:$LINENO: result: yes" >&5
4251 echo "${ECHO_T}yes" >&6; }
4252 else
4253 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4254 echo "${ECHO_T}no, using $LN_S" >&6; }
4257 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4258 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4259 if test "${lt_cv_deplibs_check_method+set}" = set; then
4260 echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262 lt_cv_file_magic_cmd='$MAGIC_CMD'
4263 lt_cv_file_magic_test_file=
4264 lt_cv_deplibs_check_method='unknown'
4265 # Need to set the preceding variable on all platforms that support
4266 # interlibrary dependencies.
4267 # 'none' -- dependencies not supported.
4268 # `unknown' -- same as none, but documents that we really don't know.
4269 # 'pass_all' -- all dependencies passed with no checks.
4270 # 'test_compile' -- check by making test program.
4271 # 'file_magic [[regex]]' -- check by looking for files in library path
4272 # which responds to the $file_magic_cmd with a given extended regex.
4273 # If you have `file' or equivalent on your system and you're not sure
4274 # whether `pass_all' will *always* work, you probably want this one.
4276 case $host_os in
4277 aix4* | aix5*)
4278 lt_cv_deplibs_check_method=pass_all
4281 beos*)
4282 lt_cv_deplibs_check_method=pass_all
4285 bsdi4*)
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4287 lt_cv_file_magic_cmd='/usr/bin/file -L'
4288 lt_cv_file_magic_test_file=/shlib/libc.so
4291 cygwin* | mingw* | pw32*)
4292 # win32_libid is a shell function defined in ltmain.sh
4293 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4294 lt_cv_file_magic_cmd='win32_libid'
4297 darwin* | rhapsody*)
4298 # this will be overwritten by pass_all, but leave it in just in case
4299 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4300 lt_cv_file_magic_cmd='/usr/bin/file -L'
4301 case "$host_os" in
4302 rhapsody* | darwin1.[012])
4303 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4305 *) # Darwin 1.3 on
4306 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4308 esac
4309 lt_cv_deplibs_check_method=pass_all
4312 freebsd* | kfreebsd*-gnu)
4313 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4314 case $host_cpu in
4315 i*86 )
4316 # Not sure whether the presence of OpenBSD here was a mistake.
4317 # Let's accept both of them until this is cleared up.
4318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4319 lt_cv_file_magic_cmd=/usr/bin/file
4320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4322 esac
4323 else
4324 lt_cv_deplibs_check_method=pass_all
4328 gnu*)
4329 lt_cv_deplibs_check_method=pass_all
4332 hpux10.20* | hpux11*)
4333 lt_cv_file_magic_cmd=/usr/bin/file
4334 case "$host_cpu" in
4335 ia64*)
4336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4339 hppa*64*)
4340 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]'
4341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4347 esac
4350 irix5* | irix6* | nonstopux*)
4351 case $host_os in
4352 irix5* | nonstopux*)
4353 # this will be overridden with pass_all, but let us keep it just in case
4354 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4357 case $LD in
4358 *-32|*"-32 ") libmagic=32-bit;;
4359 *-n32|*"-n32 ") libmagic=N32;;
4360 *-64|*"-64 ") libmagic=64-bit;;
4361 *) libmagic=never-match;;
4362 esac
4363 # this will be overridden with pass_all, but let us keep it just in case
4364 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4366 esac
4367 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4368 lt_cv_deplibs_check_method=pass_all
4371 # This must be Linux ELF.
4372 linux*)
4373 case $host_cpu in
4374 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4375 lt_cv_deplibs_check_method=pass_all ;;
4377 # glibc up to 2.1.1 does not perform some relocations on ARM
4378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4379 esac
4380 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4383 netbsd*)
4384 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4385 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4386 else
4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4391 newos6*)
4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4393 lt_cv_file_magic_cmd=/usr/bin/file
4394 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4397 nto-qnx*)
4398 lt_cv_deplibs_check_method=unknown
4401 openbsd*)
4402 lt_cv_file_magic_cmd=/usr/bin/file
4403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4404 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4406 else
4407 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4411 osf3* | osf4* | osf5*)
4412 # this will be overridden with pass_all, but let us keep it just in case
4413 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4414 lt_cv_file_magic_test_file=/shlib/libc.so
4415 lt_cv_deplibs_check_method=pass_all
4418 sco3.2v5*)
4419 lt_cv_deplibs_check_method=pass_all
4422 solaris*)
4423 lt_cv_deplibs_check_method=pass_all
4424 lt_cv_file_magic_test_file=/lib/libc.so
4427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4428 case $host_vendor in
4429 motorola)
4430 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]'
4431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4433 ncr)
4434 lt_cv_deplibs_check_method=pass_all
4436 sequent)
4437 lt_cv_file_magic_cmd='/bin/file'
4438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4440 sni)
4441 lt_cv_file_magic_cmd='/bin/file'
4442 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4443 lt_cv_file_magic_test_file=/lib/libc.so
4445 siemens)
4446 lt_cv_deplibs_check_method=pass_all
4448 esac
4451 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4452 lt_cv_deplibs_check_method=pass_all
4454 esac
4457 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4458 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4459 file_magic_cmd=$lt_cv_file_magic_cmd
4460 deplibs_check_method=$lt_cv_deplibs_check_method
4461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4466 # If no C compiler was specified, use CC.
4467 LTCC=${LTCC-"$CC"}
4469 # Allow CC to be a program name with arguments.
4470 compiler=$CC
4473 # Check whether --enable-libtool-lock was given.
4474 if test "${enable_libtool_lock+set}" = set; then
4475 enableval=$enable_libtool_lock;
4478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4480 # Some flags need to be propagated to the compiler or linker for good
4481 # libtool support.
4482 case $host in
4483 ia64-*-hpux*)
4484 # Find out which ABI we are using.
4485 echo 'int i;' > conftest.$ac_ext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; then
4491 case `/usr/bin/file conftest.$ac_objext` in
4492 *ELF-32*)
4493 HPUX_IA64_MODE="32"
4495 *ELF-64*)
4496 HPUX_IA64_MODE="64"
4498 esac
4500 rm -rf conftest*
4502 *-*-irix6*)
4503 # Find out which ABI we are using.
4504 echo '#line 4504 "configure"' > conftest.$ac_ext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; then
4510 if test "$lt_cv_prog_gnu_ld" = yes; then
4511 case `/usr/bin/file conftest.$ac_objext` in
4512 *32-bit*)
4513 LD="${LD-ld} -melf32bsmip"
4515 *N32*)
4516 LD="${LD-ld} -melf32bmipn32"
4518 *64-bit*)
4519 LD="${LD-ld} -melf64bmip"
4521 esac
4522 else
4523 case `/usr/bin/file conftest.$ac_objext` in
4524 *32-bit*)
4525 LD="${LD-ld} -32"
4527 *N32*)
4528 LD="${LD-ld} -n32"
4530 *64-bit*)
4531 LD="${LD-ld} -64"
4533 esac
4536 rm -rf conftest*
4539 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4540 # Find out which ABI we are using.
4541 echo 'int i;' > conftest.$ac_ext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; then
4547 case "`/usr/bin/file conftest.o`" in
4548 *32-bit*)
4549 case $host in
4550 x86_64-*linux*)
4551 LD="${LD-ld} -m elf_i386"
4553 ppc64-*linux*|powerpc64-*linux*)
4554 LD="${LD-ld} -m elf32ppclinux"
4556 s390x-*linux*)
4557 LD="${LD-ld} -m elf_s390"
4559 sparc64-*linux*)
4560 LD="${LD-ld} -m elf32_sparc"
4562 esac
4564 *64-bit*)
4565 case $host in
4566 x86_64-*linux*)
4567 LD="${LD-ld} -m elf_x86_64"
4569 ppc*-*linux*|powerpc*-*linux*)
4570 LD="${LD-ld} -m elf64ppc"
4572 s390*-*linux*)
4573 LD="${LD-ld} -m elf64_s390"
4575 sparc*-*linux*)
4576 LD="${LD-ld} -m elf64_sparc"
4578 esac
4580 esac
4582 rm -rf conftest*
4585 *-*-sco3.2v5*)
4586 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4587 SAVE_CFLAGS="$CFLAGS"
4588 CFLAGS="$CFLAGS -belf"
4589 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4590 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4591 if test "${lt_cv_cc_needs_belf+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 ac_ext=c
4595 ac_cpp='$CPP $CPPFLAGS'
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h. */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h. */
4608 main ()
4612 return 0;
4614 _ACEOF
4615 rm -f conftest.$ac_objext conftest$ac_exeext
4616 if { (ac_try="$ac_link"
4617 case "(($ac_try" in
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622 (eval "$ac_link") 2>conftest.er1
4623 ac_status=$?
4624 grep -v '^ *+' conftest.er1 >conftest.err
4625 rm -f conftest.er1
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4630 { (case "(($ac_try" in
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632 *) ac_try_echo=$ac_try;;
4633 esac
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_try") 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest$ac_exeext'
4640 { (case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_try") 2>&5
4646 ac_status=$?
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4649 lt_cv_cc_needs_belf=yes
4650 else
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4654 lt_cv_cc_needs_belf=no
4657 rm -f core conftest.err conftest.$ac_objext \
4658 conftest$ac_exeext conftest.$ac_ext
4659 ac_ext=c
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4666 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4667 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4668 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4669 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4670 CFLAGS="$SAVE_CFLAGS"
4674 esac
4676 need_locks="$enable_libtool_lock"
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4686 # On Suns, sometimes $CPP names a directory.
4687 if test -n "$CPP" && test -d "$CPP"; then
4688 CPP=
4690 if test -z "$CPP"; then
4691 if test "${ac_cv_prog_CPP+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 # Double quotes because CPP needs to be expanded
4695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4697 ac_preproc_ok=false
4698 for ac_c_preproc_warn_flag in '' yes
4700 # Use a header file that comes with gcc, so configuring glibc
4701 # with a fresh cross-compiler works.
4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703 # <limits.h> exists even on freestanding compilers.
4704 # On the NeXT, cc -E runs the code through the compiler's parser,
4705 # not just through cpp. "Syntax error" is here to catch this case.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null; then
4732 if test -s conftest.err; then
4733 ac_cpp_err=$ac_c_preproc_warn_flag
4734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4735 else
4736 ac_cpp_err=
4738 else
4739 ac_cpp_err=yes
4741 if test -z "$ac_cpp_err"; then
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4748 continue
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null; then
4776 if test -s conftest.err; then
4777 ac_cpp_err=$ac_c_preproc_warn_flag
4778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4779 else
4780 ac_cpp_err=
4782 else
4783 ac_cpp_err=yes
4785 if test -z "$ac_cpp_err"; then
4786 # Broken: success on invalid input.
4787 continue
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 # Passes both tests.
4793 ac_preproc_ok=:
4794 break
4797 rm -f conftest.err conftest.$ac_ext
4799 done
4800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801 rm -f conftest.err conftest.$ac_ext
4802 if $ac_preproc_ok; then
4803 break
4806 done
4807 ac_cv_prog_CPP=$CPP
4810 CPP=$ac_cv_prog_CPP
4811 else
4812 ac_cv_prog_CPP=$CPP
4814 { echo "$as_me:$LINENO: result: $CPP" >&5
4815 echo "${ECHO_T}$CPP" >&6; }
4816 ac_preproc_ok=false
4817 for ac_c_preproc_warn_flag in '' yes
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #ifdef __STDC__
4832 # include <limits.h>
4833 #else
4834 # include <assert.h>
4835 #endif
4836 Syntax error
4837 _ACEOF
4838 if { (ac_try="$ac_cpp conftest.$ac_ext"
4839 case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842 esac
4843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_c_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4854 else
4855 ac_cpp_err=
4857 else
4858 ac_cpp_err=yes
4860 if test -z "$ac_cpp_err"; then
4862 else
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4867 continue
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4881 _ACEOF
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4883 case "(($ac_try" in
4884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885 *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null; then
4895 if test -s conftest.err; then
4896 ac_cpp_err=$ac_c_preproc_warn_flag
4897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4898 else
4899 ac_cpp_err=
4901 else
4902 ac_cpp_err=yes
4904 if test -z "$ac_cpp_err"; then
4905 # Broken: success on invalid input.
4906 continue
4907 else
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4916 rm -f conftest.err conftest.$ac_ext
4918 done
4919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4920 rm -f conftest.err conftest.$ac_ext
4921 if $ac_preproc_ok; then
4923 else
4924 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4925 See \`config.log' for more details." >&5
4926 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&2;}
4928 { (exit 1); exit 1; }; }
4931 ac_ext=c
4932 ac_cpp='$CPP $CPPFLAGS'
4933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4938 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4939 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4940 if test "${ac_cv_header_stdc+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4949 #include <stdlib.h>
4950 #include <stdarg.h>
4951 #include <string.h>
4952 #include <float.h>
4955 main ()
4959 return 0;
4961 _ACEOF
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4964 case "(($ac_try" in
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4977 { (case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4982 (eval "$ac_try") 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest.$ac_objext'
4987 { (case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990 esac
4991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_try") 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_header_stdc=yes
4997 else
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 ac_cv_header_stdc=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 if test $ac_cv_header_stdc = yes; then
5007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <string.h>
5016 _ACEOF
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "memchr" >/dev/null 2>&1; then
5020 else
5021 ac_cv_header_stdc=no
5023 rm -f conftest*
5027 if test $ac_cv_header_stdc = yes; then
5028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5029 cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h. */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5035 #include <stdlib.h>
5037 _ACEOF
5038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039 $EGREP "free" >/dev/null 2>&1; then
5041 else
5042 ac_cv_header_stdc=no
5044 rm -f conftest*
5048 if test $ac_cv_header_stdc = yes; then
5049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5050 if test "$cross_compiling" = yes; then
5052 else
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 #include <ctype.h>
5060 #include <stdlib.h>
5061 #if ((' ' & 0x0FF) == 0x020)
5062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064 #else
5065 # define ISLOWER(c) \
5066 (('a' <= (c) && (c) <= 'i') \
5067 || ('j' <= (c) && (c) <= 'r') \
5068 || ('s' <= (c) && (c) <= 'z'))
5069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070 #endif
5072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074 main ()
5076 int i;
5077 for (i = 0; i < 256; i++)
5078 if (XOR (islower (i), ISLOWER (i))
5079 || toupper (i) != TOUPPER (i))
5080 return 2;
5081 return 0;
5083 _ACEOF
5084 rm -f conftest$ac_exeext
5085 if { (ac_try="$ac_link"
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_link") 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5095 { (case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100 (eval "$ac_try") 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5105 else
5106 echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ( exit $ac_status )
5111 ac_cv_header_stdc=no
5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5121 if test $ac_cv_header_stdc = yes; then
5123 cat >>confdefs.h <<\_ACEOF
5124 #define STDC_HEADERS 1
5125 _ACEOF
5129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5140 inttypes.h stdint.h unistd.h
5142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5156 #include <$ac_header>
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } &&
5172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5173 { (case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_try") 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_try") 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); }; }; then
5192 eval "$as_ac_Header=yes"
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 eval "$as_ac_Header=no"
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202 ac_res=`eval echo '${'$as_ac_Header'}'`
5203 { echo "$as_me:$LINENO: result: $ac_res" >&5
5204 echo "${ECHO_T}$ac_res" >&6; }
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206 cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208 _ACEOF
5212 done
5216 for ac_header in dlfcn.h
5218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_res=`eval echo '${'$as_ac_Header'}'`
5226 { echo "$as_me:$LINENO: result: $ac_res" >&5
5227 echo "${ECHO_T}$ac_res" >&6; }
5228 else
5229 # Is the header compilable?
5230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 #include <$ac_header>
5240 _ACEOF
5241 rm -f conftest.$ac_objext
5242 if { (ac_try="$ac_compile"
5243 case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246 esac
5247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_compile") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5256 { (case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259 esac
5260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_try") 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269 esac
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_header_compiler=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_header_compiler=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5285 echo "${ECHO_T}$ac_header_compiler" >&6; }
5287 # Is the header present?
5288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296 #include <$ac_header>
5297 _ACEOF
5298 if { (ac_try="$ac_cpp conftest.$ac_ext"
5299 case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } >/dev/null; then
5311 if test -s conftest.err; then
5312 ac_cpp_err=$ac_c_preproc_warn_flag
5313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314 else
5315 ac_cpp_err=
5317 else
5318 ac_cpp_err=yes
5320 if test -z "$ac_cpp_err"; then
5321 ac_header_preproc=yes
5322 else
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_preproc=no
5329 rm -f conftest.err conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6; }
5333 # So? What about this header?
5334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335 yes:no: )
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340 ac_header_preproc=yes
5342 no:yes:* )
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5357 esac
5358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5361 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363 eval "$as_ac_Header=\$ac_header_preproc"
5365 ac_res=`eval echo '${'$as_ac_Header'}'`
5366 { echo "$as_me:$LINENO: result: $ac_res" >&5
5367 echo "${ECHO_T}$ac_res" >&6; }
5370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5371 cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5377 done
5379 ac_ext=cpp
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5384 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5385 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5386 if test -z "$CXXCPP"; then
5387 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390 # Double quotes because CXXCPP needs to be expanded
5391 for CXXCPP in "$CXX -E" "/lib/cpp"
5393 ac_preproc_ok=false
5394 for ac_cxx_preproc_warn_flag in '' yes
5396 # Use a header file that comes with gcc, so configuring glibc
5397 # with a fresh cross-compiler works.
5398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5399 # <limits.h> exists even on freestanding compilers.
5400 # On the NeXT, cc -E runs the code through the compiler's parser,
5401 # not just through cpp. "Syntax error" is here to catch this case.
5402 cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h. */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h. */
5408 #ifdef __STDC__
5409 # include <limits.h>
5410 #else
5411 # include <assert.h>
5412 #endif
5413 Syntax error
5414 _ACEOF
5415 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } >/dev/null; then
5428 if test -s conftest.err; then
5429 ac_cpp_err=$ac_cxx_preproc_warn_flag
5430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5431 else
5432 ac_cpp_err=
5434 else
5435 ac_cpp_err=yes
5437 if test -z "$ac_cpp_err"; then
5439 else
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 # Broken: fails on valid input.
5444 continue
5447 rm -f conftest.err conftest.$ac_ext
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat >conftest.$ac_ext <<_ACEOF
5452 /* confdefs.h. */
5453 _ACEOF
5454 cat confdefs.h >>conftest.$ac_ext
5455 cat >>conftest.$ac_ext <<_ACEOF
5456 /* end confdefs.h. */
5457 #include <ac_nonexistent.h>
5458 _ACEOF
5459 if { (ac_try="$ac_cpp conftest.$ac_ext"
5460 case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463 esac
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5466 ac_status=$?
5467 grep -v '^ *+' conftest.er1 >conftest.err
5468 rm -f conftest.er1
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } >/dev/null; then
5472 if test -s conftest.err; then
5473 ac_cpp_err=$ac_cxx_preproc_warn_flag
5474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5475 else
5476 ac_cpp_err=
5478 else
5479 ac_cpp_err=yes
5481 if test -z "$ac_cpp_err"; then
5482 # Broken: success on invalid input.
5483 continue
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5488 # Passes both tests.
5489 ac_preproc_ok=:
5490 break
5493 rm -f conftest.err conftest.$ac_ext
5495 done
5496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5497 rm -f conftest.err conftest.$ac_ext
5498 if $ac_preproc_ok; then
5499 break
5502 done
5503 ac_cv_prog_CXXCPP=$CXXCPP
5506 CXXCPP=$ac_cv_prog_CXXCPP
5507 else
5508 ac_cv_prog_CXXCPP=$CXXCPP
5510 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5511 echo "${ECHO_T}$CXXCPP" >&6; }
5512 ac_preproc_ok=false
5513 for ac_cxx_preproc_warn_flag in '' yes
5515 # Use a header file that comes with gcc, so configuring glibc
5516 # with a fresh cross-compiler works.
5517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5518 # <limits.h> exists even on freestanding compilers.
5519 # On the NeXT, cc -E runs the code through the compiler's parser,
5520 # not just through cpp. "Syntax error" is here to catch this case.
5521 cat >conftest.$ac_ext <<_ACEOF
5522 /* confdefs.h. */
5523 _ACEOF
5524 cat confdefs.h >>conftest.$ac_ext
5525 cat >>conftest.$ac_ext <<_ACEOF
5526 /* end confdefs.h. */
5527 #ifdef __STDC__
5528 # include <limits.h>
5529 #else
5530 # include <assert.h>
5531 #endif
5532 Syntax error
5533 _ACEOF
5534 if { (ac_try="$ac_cpp conftest.$ac_ext"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } >/dev/null; then
5547 if test -s conftest.err; then
5548 ac_cpp_err=$ac_cxx_preproc_warn_flag
5549 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5550 else
5551 ac_cpp_err=
5553 else
5554 ac_cpp_err=yes
5556 if test -z "$ac_cpp_err"; then
5558 else
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 # Broken: fails on valid input.
5563 continue
5566 rm -f conftest.err conftest.$ac_ext
5568 # OK, works on sane cases. Now check whether nonexistent headers
5569 # can be detected and how.
5570 cat >conftest.$ac_ext <<_ACEOF
5571 /* confdefs.h. */
5572 _ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5576 #include <ac_nonexistent.h>
5577 _ACEOF
5578 if { (ac_try="$ac_cpp conftest.$ac_ext"
5579 case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5585 ac_status=$?
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_cxx_preproc_warn_flag
5593 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5594 else
5595 ac_cpp_err=
5597 else
5598 ac_cpp_err=yes
5600 if test -z "$ac_cpp_err"; then
5601 # Broken: success on invalid input.
5602 continue
5603 else
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5607 # Passes both tests.
5608 ac_preproc_ok=:
5609 break
5612 rm -f conftest.err conftest.$ac_ext
5614 done
5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5616 rm -f conftest.err conftest.$ac_ext
5617 if $ac_preproc_ok; then
5619 else
5620 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5621 See \`config.log' for more details." >&5
5622 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5623 See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
5627 ac_ext=cpp
5628 ac_cpp='$CXXCPP $CPPFLAGS'
5629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5634 ac_ext=f
5635 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5636 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5638 if test -n "$ac_tool_prefix"; then
5639 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5642 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5645 if test "${ac_cv_prog_F77+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 if test -n "$F77"; then
5649 ac_cv_prog_F77="$F77" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 F77=$ac_cv_prog_F77
5669 if test -n "$F77"; then
5670 { echo "$as_me:$LINENO: result: $F77" >&5
5671 echo "${ECHO_T}$F77" >&6; }
5672 else
5673 { echo "$as_me:$LINENO: result: no" >&5
5674 echo "${ECHO_T}no" >&6; }
5678 test -n "$F77" && break
5679 done
5681 if test -z "$F77"; then
5682 ac_ct_F77=$F77
5683 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5689 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -n "$ac_ct_F77"; then
5693 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_ac_ct_F77="$ac_prog"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5708 IFS=$as_save_IFS
5712 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5713 if test -n "$ac_ct_F77"; then
5714 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5715 echo "${ECHO_T}$ac_ct_F77" >&6; }
5716 else
5717 { echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6; }
5722 test -n "$ac_ct_F77" && break
5723 done
5725 if test "x$ac_ct_F77" = x; then
5726 F77=""
5727 else
5728 case $cross_compiling:$ac_tool_warned in
5729 yes:)
5730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5731 whose name does not start with the host triplet. If you think this
5732 configuration is useful to you, please write to autoconf@gnu.org." >&5
5733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5734 whose name does not start with the host triplet. If you think this
5735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5736 ac_tool_warned=yes ;;
5737 esac
5738 F77=$ac_ct_F77
5743 # Provide some information about the compiler.
5744 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5745 ac_compiler=`set X $ac_compile; echo $2`
5746 { (ac_try="$ac_compiler --version >&5"
5747 case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compiler --version >&5") 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }
5756 { (ac_try="$ac_compiler -v >&5"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_compiler -v >&5") 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }
5766 { (ac_try="$ac_compiler -V >&5"
5767 case "(($ac_try" in
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5770 esac
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_compiler -V >&5") 2>&5
5773 ac_status=$?
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); }
5776 rm -f a.out
5778 # If we don't use `.F' as extension, the preprocessor is not run on the
5779 # input file. (Note that this only needs to work for GNU compilers.)
5780 ac_save_ext=$ac_ext
5781 ac_ext=F
5782 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5783 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5784 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 program main
5789 #ifndef __GNUC__
5790 choke me
5791 #endif
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest.$ac_objext'
5820 { (case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_try") 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_compiler_gnu=yes
5830 else
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 ac_compiler_gnu=no
5837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5841 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5842 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5843 ac_ext=$ac_save_ext
5844 ac_test_FFLAGS=${FFLAGS+set}
5845 ac_save_FFLAGS=$FFLAGS
5846 FFLAGS=
5847 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5848 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5849 if test "${ac_cv_prog_f77_g+set}" = set; then
5850 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 else
5852 FFLAGS=-g
5853 cat >conftest.$ac_ext <<_ACEOF
5854 program main
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5860 case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863 esac
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest.$ac_objext'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 ac_cv_prog_f77_g=yes
5893 else
5894 echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5897 ac_cv_prog_f77_g=no
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5903 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5904 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5905 if test "$ac_test_FFLAGS" = set; then
5906 FFLAGS=$ac_save_FFLAGS
5907 elif test $ac_cv_prog_f77_g = yes; then
5908 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5909 FFLAGS="-g -O2"
5910 else
5911 FFLAGS="-g"
5913 else
5914 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5915 FFLAGS="-O2"
5916 else
5917 FFLAGS=
5921 G77=`test $ac_compiler_gnu = yes && echo yes`
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5932 # find the maximum length of command line arguments
5933 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5934 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5935 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5939 testring="ABCD"
5941 case $build_os in
5942 msdosdjgpp*)
5943 # On DJGPP, this test can blow up pretty badly due to problems in libc
5944 # (any single argument exceeding 2000 bytes causes a buffer overrun
5945 # during glob expansion). Even if it were fixed, the result of this
5946 # check would be larger than it should be.
5947 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5950 gnu*)
5951 # Under GNU Hurd, this test is not required because there is
5952 # no limit to the length of command line arguments.
5953 # Libtool will interpret -1 as no limit whatsoever
5954 lt_cv_sys_max_cmd_len=-1;
5957 cygwin* | mingw*)
5958 # On Win9x/ME, this test blows up -- it succeeds, but takes
5959 # about 5 minutes as the teststring grows exponentially.
5960 # Worse, since 9x/ME are not pre-emptively multitasking,
5961 # you end up with a "frozen" computer, even though with patience
5962 # the test eventually succeeds (with a max line length of 256k).
5963 # Instead, let's just punt: use the minimum linelength reported by
5964 # all of the supported platforms: 8192 (on NT/2K/XP).
5965 lt_cv_sys_max_cmd_len=8192;
5968 amigaos* | morphos*)
5969 # On AmigaOS with pdksh, this test takes hours, literally.
5970 # So we just punt and use a minimum line length of 8192.
5971 lt_cv_sys_max_cmd_len=8192;
5975 # If test is not a shell built-in, we'll probably end up computing a
5976 # maximum length that is only half of the actual maximum length, but
5977 # we can't tell.
5978 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5979 = "XX$testring") >/dev/null 2>&1 &&
5980 new_result=`expr "X$testring" : ".*" 2>&1` &&
5981 lt_cv_sys_max_cmd_len=$new_result &&
5982 test $i != 17 # 1/2 MB should be enough
5984 i=`expr $i + 1`
5985 testring=$testring$testring
5986 done
5987 testring=
5988 # Add a significant safety factor because C++ compilers can tack on massive
5989 # amounts of additional arguments before passing them to the linker.
5990 # It appears as though 1/2 is a usable value.
5991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5993 esac
5997 if test -n $lt_cv_sys_max_cmd_len ; then
5998 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5999 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6000 else
6001 { echo "$as_me:$LINENO: result: none" >&5
6002 echo "${ECHO_T}none" >&6; }
6008 # Check for command to grab the raw symbol name followed by C symbol from nm.
6009 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6010 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6011 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6015 # These are sane defaults that work on at least a few old systems.
6016 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6018 # Character class describing NM global symbol codes.
6019 symcode='[BCDEGRST]'
6021 # Regexp to match symbols that can be accessed directly from C.
6022 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6024 # Transform the above into a raw symbol and a C symbol.
6025 symxfrm='\1 \2\3 \3'
6027 # Transform an extracted symbol line into a proper C declaration
6028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6030 # Transform an extracted symbol line into symbol name and symbol address
6031 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'"
6033 # Define system-specific variables.
6034 case $host_os in
6035 aix*)
6036 symcode='[BCDT]'
6038 cygwin* | mingw* | pw32*)
6039 symcode='[ABCDGISTW]'
6041 hpux*) # Its linker distinguishes data from code symbols
6042 if test "$host_cpu" = ia64; then
6043 symcode='[ABCDEGRST]'
6045 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6046 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'"
6048 irix* | nonstopux*)
6049 symcode='[BCDEGRST]'
6051 osf*)
6052 symcode='[BCDEGQRST]'
6054 solaris* | sysv5*)
6055 symcode='[BDRT]'
6057 sysv4)
6058 symcode='[DFNSTU]'
6060 esac
6062 # Handle CRLF in mingw tool chain
6063 opt_cr=
6064 case $build_os in
6065 mingw*)
6066 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6068 esac
6070 # If we're using GNU nm, then use its standard symbol codes.
6071 case `$NM -V 2>&1` in
6072 *GNU* | *'with BFD'*)
6073 symcode='[ABCDGIRSTW]' ;;
6074 esac
6076 # Try without a prefix undercore, then with it.
6077 for ac_symprfx in "" "_"; do
6079 # Write the raw and C identifiers.
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6082 # Check to see that the pipe works correctly.
6083 pipe_works=no
6085 rm -f conftest*
6086 cat > conftest.$ac_ext <<EOF
6087 #ifdef __cplusplus
6088 extern "C" {
6089 #endif
6090 char nm_test_var;
6091 void nm_test_func(){}
6092 #ifdef __cplusplus
6094 #endif
6095 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6099 (eval $ac_compile) 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; then
6103 # Now try to grab the symbols.
6104 nlist=conftest.nm
6105 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6106 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); } && test -s "$nlist"; then
6110 # Try sorting and uniquifying the output.
6111 if sort "$nlist" | uniq > "$nlist"T; then
6112 mv -f "$nlist"T "$nlist"
6113 else
6114 rm -f "$nlist"T
6117 # Make sure that we snagged all the symbols we need.
6118 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6119 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6120 cat <<EOF > conftest.$ac_ext
6121 #ifdef __cplusplus
6122 extern "C" {
6123 #endif
6126 # Now generate the symbol file.
6127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6129 cat <<EOF >> conftest.$ac_ext
6130 #if defined (__STDC__) && __STDC__
6131 # define lt_ptr_t void *
6132 #else
6133 # define lt_ptr_t char *
6134 # define const
6135 #endif
6137 /* The mapping between symbol names and symbols. */
6138 const struct {
6139 const char *name;
6140 lt_ptr_t address;
6142 lt_preloaded_symbols[] =
6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6146 cat <<\EOF >> conftest.$ac_ext
6147 {0, (lt_ptr_t) 0}
6150 #ifdef __cplusplus
6152 #endif
6154 # Now try linking the two files.
6155 mv conftest.$ac_objext conftstm.$ac_objext
6156 lt_save_LIBS="$LIBS"
6157 lt_save_CFLAGS="$CFLAGS"
6158 LIBS="conftstm.$ac_objext"
6159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>&5
6162 ac_status=$?
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6165 pipe_works=yes
6167 LIBS="$lt_save_LIBS"
6168 CFLAGS="$lt_save_CFLAGS"
6169 else
6170 echo "cannot find nm_test_func in $nlist" >&5
6172 else
6173 echo "cannot find nm_test_var in $nlist" >&5
6175 else
6176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178 else
6179 echo "$progname: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6182 rm -f conftest* conftst*
6184 # Do not use the global_symbol_pipe unless it works.
6185 if test "$pipe_works" = yes; then
6186 break
6187 else
6188 lt_cv_sys_global_symbol_pipe=
6190 done
6194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6195 lt_cv_sys_global_symbol_to_cdecl=
6197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6198 { echo "$as_me:$LINENO: result: failed" >&5
6199 echo "${ECHO_T}failed" >&6; }
6200 else
6201 { echo "$as_me:$LINENO: result: ok" >&5
6202 echo "${ECHO_T}ok" >&6; }
6205 { echo "$as_me:$LINENO: checking for objdir" >&5
6206 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6207 if test "${lt_cv_objdir+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 rm -f .libs 2>/dev/null
6211 mkdir .libs 2>/dev/null
6212 if test -d .libs; then
6213 lt_cv_objdir=.libs
6214 else
6215 # MS-DOS does not allow filenames that begin with a dot.
6216 lt_cv_objdir=_libs
6218 rmdir .libs 2>/dev/null
6220 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6221 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6222 objdir=$lt_cv_objdir
6228 case $host_os in
6229 aix3*)
6230 # AIX sometimes has problems with the GCC collect2 program. For some
6231 # reason, if we set the COLLECT_NAMES environment variable, the problems
6232 # vanish in a puff of smoke.
6233 if test "X${COLLECT_NAMES+set}" != Xset; then
6234 COLLECT_NAMES=
6235 export COLLECT_NAMES
6238 esac
6240 # Sed substitution that helps us do robust quoting. It backslashifies
6241 # metacharacters that are still active within double-quoted strings.
6242 Xsed='sed -e s/^X//'
6243 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6245 # Same as above, but do not quote variable references.
6246 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6248 # Sed substitution to delay expansion of an escaped shell variable in a
6249 # double_quote_subst'ed string.
6250 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6252 # Sed substitution to avoid accidental globbing in evaled expressions
6253 no_glob_subst='s/\*/\\\*/g'
6255 # Constants:
6256 rm="rm -f"
6258 # Global variables:
6259 default_ofile=libtool
6260 can_build_shared=yes
6262 # All known linkers require a `.a' archive for static linking (except M$VC,
6263 # which needs '.lib').
6264 libext=a
6265 ltmain="$ac_aux_dir/ltmain.sh"
6266 ofile="$default_ofile"
6267 with_gnu_ld="$lt_cv_prog_gnu_ld"
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}ar; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_prog_AR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277 if test -n "$AR"; then
6278 ac_cv_prog_AR="$AR" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_AR="${ac_tool_prefix}ar"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6291 done
6292 done
6293 IFS=$as_save_IFS
6297 AR=$ac_cv_prog_AR
6298 if test -n "$AR"; then
6299 { echo "$as_me:$LINENO: result: $AR" >&5
6300 echo "${ECHO_T}$AR" >&6; }
6301 else
6302 { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6308 if test -z "$ac_cv_prog_AR"; then
6309 ac_ct_AR=$AR
6310 # Extract the first word of "ar", so it can be a program name with args.
6311 set dummy ar; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 if test -n "$ac_ct_AR"; then
6318 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6319 else
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6323 IFS=$as_save_IFS
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_AR="ar"
6328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 break 2
6331 done
6332 done
6333 IFS=$as_save_IFS
6337 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6338 if test -n "$ac_ct_AR"; then
6339 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6340 echo "${ECHO_T}$ac_ct_AR" >&6; }
6341 else
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6346 if test "x$ac_ct_AR" = x; then
6347 AR="false"
6348 else
6349 case $cross_compiling:$ac_tool_warned in
6350 yes:)
6351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6352 whose name does not start with the host triplet. If you think this
6353 configuration is useful to you, please write to autoconf@gnu.org." >&5
6354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet. If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 AR=$ac_ct_AR
6361 else
6362 AR="$ac_cv_prog_AR"
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6370 if test "${ac_cv_prog_RANLIB+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 if test -n "$RANLIB"; then
6374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6393 RANLIB=$ac_cv_prog_RANLIB
6394 if test -n "$RANLIB"; then
6395 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6396 echo "${ECHO_T}$RANLIB" >&6; }
6397 else
6398 { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6404 if test -z "$ac_cv_prog_RANLIB"; then
6405 ac_ct_RANLIB=$RANLIB
6406 # Extract the first word of "ranlib", so it can be a program name with args.
6407 set dummy ranlib; ac_word=$2
6408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6410 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 if test -n "$ac_ct_RANLIB"; then
6414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6423 ac_cv_prog_ac_ct_RANLIB="ranlib"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6427 done
6428 done
6429 IFS=$as_save_IFS
6433 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6434 if test -n "$ac_ct_RANLIB"; then
6435 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6436 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6437 else
6438 { echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6; }
6442 if test "x$ac_ct_RANLIB" = x; then
6443 RANLIB=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6448 whose name does not start with the host triplet. If you think this
6449 configuration is useful to you, please write to autoconf@gnu.org." >&5
6450 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6451 whose name does not start with the host triplet. If you think this
6452 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6453 ac_tool_warned=yes ;;
6454 esac
6455 RANLIB=$ac_ct_RANLIB
6457 else
6458 RANLIB="$ac_cv_prog_RANLIB"
6461 if test -n "$ac_tool_prefix"; then
6462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6463 set dummy ${ac_tool_prefix}strip; ac_word=$2
6464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6466 if test "${ac_cv_prog_STRIP+set}" = set; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 if test -n "$STRIP"; then
6470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6483 done
6484 done
6485 IFS=$as_save_IFS
6489 STRIP=$ac_cv_prog_STRIP
6490 if test -n "$STRIP"; then
6491 { echo "$as_me:$LINENO: result: $STRIP" >&5
6492 echo "${ECHO_T}$STRIP" >&6; }
6493 else
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6500 if test -z "$ac_cv_prog_STRIP"; then
6501 ac_ct_STRIP=$STRIP
6502 # Extract the first word of "strip", so it can be a program name with args.
6503 set dummy strip; ac_word=$2
6504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509 if test -n "$ac_ct_STRIP"; then
6510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6511 else
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH
6515 IFS=$as_save_IFS
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6519 ac_cv_prog_ac_ct_STRIP="strip"
6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 break 2
6523 done
6524 done
6525 IFS=$as_save_IFS
6529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6530 if test -n "$ac_ct_STRIP"; then
6531 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6532 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6533 else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535 echo "${ECHO_T}no" >&6; }
6538 if test "x$ac_ct_STRIP" = x; then
6539 STRIP=":"
6540 else
6541 case $cross_compiling:$ac_tool_warned in
6542 yes:)
6543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6544 whose name does not start with the host triplet. If you think this
6545 configuration is useful to you, please write to autoconf@gnu.org." >&5
6546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6547 whose name does not start with the host triplet. If you think this
6548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6549 ac_tool_warned=yes ;;
6550 esac
6551 STRIP=$ac_ct_STRIP
6553 else
6554 STRIP="$ac_cv_prog_STRIP"
6558 old_CC="$CC"
6559 old_CFLAGS="$CFLAGS"
6561 # Set sane defaults for various variables
6562 test -z "$AR" && AR=ar
6563 test -z "$AR_FLAGS" && AR_FLAGS=cru
6564 test -z "$AS" && AS=as
6565 test -z "$CC" && CC=cc
6566 test -z "$LTCC" && LTCC=$CC
6567 test -z "$DLLTOOL" && DLLTOOL=dlltool
6568 test -z "$LD" && LD=ld
6569 test -z "$LN_S" && LN_S="ln -s"
6570 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6571 test -z "$NM" && NM=nm
6572 test -z "$SED" && SED=sed
6573 test -z "$OBJDUMP" && OBJDUMP=objdump
6574 test -z "$RANLIB" && RANLIB=:
6575 test -z "$STRIP" && STRIP=:
6576 test -z "$ac_objext" && ac_objext=o
6578 # Determine commands to create old-style static archives.
6579 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6580 old_postinstall_cmds='chmod 644 $oldlib'
6581 old_postuninstall_cmds=
6583 if test -n "$RANLIB"; then
6584 case $host_os in
6585 openbsd*)
6586 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6589 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6591 esac
6592 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6595 # Only perform the check for file, if the check method requires it
6596 case $deplibs_check_method in
6597 file_magic*)
6598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6599 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6600 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6601 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 case $MAGIC_CMD in
6605 [\\/*] | ?:[\\/]*)
6606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6609 lt_save_MAGIC_CMD="$MAGIC_CMD"
6610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6612 for ac_dir in $ac_dummy; do
6613 IFS="$lt_save_ifs"
6614 test -z "$ac_dir" && ac_dir=.
6615 if test -f $ac_dir/${ac_tool_prefix}file; then
6616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6617 if test -n "$file_magic_test_file"; then
6618 case $deplibs_check_method in
6619 "file_magic "*)
6620 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6623 $EGREP "$file_magic_regex" > /dev/null; then
6625 else
6626 cat <<EOF 1>&2
6628 *** Warning: the command libtool uses to detect shared libraries,
6629 *** $file_magic_cmd, produces output that libtool cannot recognize.
6630 *** The result is that libtool may fail to recognize shared libraries
6631 *** as such. This will affect the creation of libtool libraries that
6632 *** depend on shared libraries, but programs linked with such libtool
6633 *** libraries will work regardless of this problem. Nevertheless, you
6634 *** may want to report the problem to your system manager and/or to
6635 *** bug-libtool@gnu.org
6638 fi ;;
6639 esac
6641 break
6643 done
6644 IFS="$lt_save_ifs"
6645 MAGIC_CMD="$lt_save_MAGIC_CMD"
6647 esac
6650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6651 if test -n "$MAGIC_CMD"; then
6652 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6653 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6654 else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6659 if test -z "$lt_cv_path_MAGIC_CMD"; then
6660 if test -n "$ac_tool_prefix"; then
6661 { echo "$as_me:$LINENO: checking for file" >&5
6662 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6663 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 case $MAGIC_CMD in
6667 [\\/*] | ?:[\\/]*)
6668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6671 lt_save_MAGIC_CMD="$MAGIC_CMD"
6672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6674 for ac_dir in $ac_dummy; do
6675 IFS="$lt_save_ifs"
6676 test -z "$ac_dir" && ac_dir=.
6677 if test -f $ac_dir/file; then
6678 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6679 if test -n "$file_magic_test_file"; then
6680 case $deplibs_check_method in
6681 "file_magic "*)
6682 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6685 $EGREP "$file_magic_regex" > /dev/null; then
6687 else
6688 cat <<EOF 1>&2
6690 *** Warning: the command libtool uses to detect shared libraries,
6691 *** $file_magic_cmd, produces output that libtool cannot recognize.
6692 *** The result is that libtool may fail to recognize shared libraries
6693 *** as such. This will affect the creation of libtool libraries that
6694 *** depend on shared libraries, but programs linked with such libtool
6695 *** libraries will work regardless of this problem. Nevertheless, you
6696 *** may want to report the problem to your system manager and/or to
6697 *** bug-libtool@gnu.org
6700 fi ;;
6701 esac
6703 break
6705 done
6706 IFS="$lt_save_ifs"
6707 MAGIC_CMD="$lt_save_MAGIC_CMD"
6709 esac
6712 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6713 if test -n "$MAGIC_CMD"; then
6714 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6715 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6716 else
6717 { echo "$as_me:$LINENO: result: no" >&5
6718 echo "${ECHO_T}no" >&6; }
6721 else
6722 MAGIC_CMD=:
6728 esac
6730 enable_dlopen=yes
6731 enable_win32_dll=no
6733 # Check whether --enable-libtool-lock was given.
6734 if test "${enable_libtool_lock+set}" = set; then
6735 enableval=$enable_libtool_lock;
6738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6741 # Check whether --with-pic was given.
6742 if test "${with_pic+set}" = set; then
6743 withval=$with_pic; pic_mode="$withval"
6744 else
6745 pic_mode=default
6748 test -z "$pic_mode" && pic_mode=default
6750 # Use C for the default configuration in the libtool script
6751 tagname=
6752 lt_save_CC="$CC"
6753 ac_ext=c
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6760 # Source file extension for C test sources.
6761 ac_ext=c
6763 # Object file extension for compiled C test sources.
6764 objext=o
6765 objext=$objext
6767 # Code to be used in simple compile tests
6768 lt_simple_compile_test_code="int some_variable = 0;\n"
6770 # Code to be used in simple link tests
6771 lt_simple_link_test_code='int main(){return(0);}\n'
6774 # If no C compiler was specified, use CC.
6775 LTCC=${LTCC-"$CC"}
6777 # Allow CC to be a program name with arguments.
6778 compiler=$CC
6782 # Check for any special shared library compilation flags.
6784 lt_prog_cc_shlib=
6785 if test "$GCC" = no; then
6786 case $host_os in
6787 sco3.2v5*)
6788 lt_prog_cc_shlib='-belf'
6790 esac
6792 if test -n "$lt_prog_cc_shlib"; then
6793 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6794 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6795 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6796 else
6797 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6798 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6799 lt_cv_prog_cc_can_build_shared=no
6805 # Check to make sure the static flag actually works.
6807 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6808 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6809 if test "${lt_prog_compiler_static_works+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 else
6812 lt_prog_compiler_static_works=no
6813 save_LDFLAGS="$LDFLAGS"
6814 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6815 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6817 # The compiler can only warn and ignore the option if not recognized
6818 # So say no if there are warnings
6819 if test -s conftest.err; then
6820 # Append any errors to the config.log.
6821 cat conftest.err 1>&5
6822 else
6823 lt_prog_compiler_static_works=yes
6826 $rm conftest*
6827 LDFLAGS="$save_LDFLAGS"
6830 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6831 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6833 if test x"$lt_prog_compiler_static_works" = xyes; then
6835 else
6836 lt_prog_compiler_static=
6841 ## CAVEAT EMPTOR:
6842 ## There is no encapsulation within the following macros, do not change
6843 ## the running order or otherwise move them around unless you know exactly
6844 ## what you are doing...
6846 lt_prog_compiler_no_builtin_flag=
6848 if test "$GCC" = yes; then
6849 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6852 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6853 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6854 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857 lt_cv_prog_compiler_rtti_exceptions=no
6858 ac_outfile=conftest.$ac_objext
6859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6860 lt_compiler_flag="-fno-rtti -fno-exceptions"
6861 # Insert the option either (1) after the last *FLAGS variable, or
6862 # (2) before a word containing "conftest.", or (3) at the end.
6863 # Note that $ac_compile itself does not contain backslashes and begins
6864 # with a dollar sign (not a hyphen), so the echo should work correctly.
6865 # The option is referenced via a variable to avoid confusing sed.
6866 lt_compile=`echo "$ac_compile" | $SED \
6867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6869 -e 's:$: $lt_compiler_flag:'`
6870 (eval echo "\"\$as_me:6870: $lt_compile\"" >&5)
6871 (eval "$lt_compile" 2>conftest.err)
6872 ac_status=$?
6873 cat conftest.err >&5
6874 echo "$as_me:6874: \$? = $ac_status" >&5
6875 if (exit $ac_status) && test -s "$ac_outfile"; then
6876 # The compiler can only warn and ignore the option if not recognized
6877 # So say no if there are warnings
6878 if test ! -s conftest.err; then
6879 lt_cv_prog_compiler_rtti_exceptions=yes
6882 $rm conftest*
6885 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6886 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6888 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6889 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6890 else
6896 lt_prog_compiler_wl=
6897 lt_prog_compiler_pic=
6898 lt_prog_compiler_static=
6900 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6901 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6903 if test "$GCC" = yes; then
6904 lt_prog_compiler_wl='-Wl,'
6905 lt_prog_compiler_static='-static'
6907 case $host_os in
6908 aix*)
6909 # All AIX code is PIC.
6910 if test "$host_cpu" = ia64; then
6911 # AIX 5 now supports IA64 processor
6912 lt_prog_compiler_static='-Bstatic'
6916 amigaos*)
6917 # FIXME: we need at least 68020 code to build shared libraries, but
6918 # adding the `-m68020' flag to GCC prevents building anything better,
6919 # like `-m68040'.
6920 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6923 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6924 # PIC is the default for these OSes.
6927 mingw* | pw32* | os2*)
6928 # This hack is so that the source file can tell whether it is being
6929 # built for inclusion in a dll (and should export symbols for example).
6930 lt_prog_compiler_pic='-DDLL_EXPORT'
6933 darwin* | rhapsody*)
6934 # PIC is the default on this platform
6935 # Common symbols not allowed in MH_DYLIB files
6936 lt_prog_compiler_pic='-fno-common'
6939 msdosdjgpp*)
6940 # Just because we use GCC doesn't mean we suddenly get shared libraries
6941 # on systems that don't support them.
6942 lt_prog_compiler_can_build_shared=no
6943 enable_shared=no
6946 sysv4*MP*)
6947 if test -d /usr/nec; then
6948 lt_prog_compiler_pic=-Kconform_pic
6952 hpux*)
6953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6954 # not for PA HP-UX.
6955 case "$host_cpu" in
6956 hppa*64*|ia64*)
6957 # +Z the default
6960 lt_prog_compiler_pic='-fPIC'
6962 esac
6966 lt_prog_compiler_pic='-fPIC'
6968 esac
6969 else
6970 # PORTME Check for flag to pass linker flags through the system compiler.
6971 case $host_os in
6972 aix*)
6973 lt_prog_compiler_wl='-Wl,'
6974 if test "$host_cpu" = ia64; then
6975 # AIX 5 now supports IA64 processor
6976 lt_prog_compiler_static='-Bstatic'
6977 else
6978 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6982 mingw* | pw32* | os2*)
6983 # This hack is so that the source file can tell whether it is being
6984 # built for inclusion in a dll (and should export symbols for example).
6985 lt_prog_compiler_pic='-DDLL_EXPORT'
6988 hpux9* | hpux10* | hpux11*)
6989 lt_prog_compiler_wl='-Wl,'
6990 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6991 # not for PA HP-UX.
6992 case "$host_cpu" in
6993 hppa*64*|ia64*)
6994 # +Z the default
6997 lt_prog_compiler_pic='+Z'
6999 esac
7000 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7001 lt_prog_compiler_static='${wl}-a ${wl}archive'
7004 irix5* | irix6* | nonstopux*)
7005 lt_prog_compiler_wl='-Wl,'
7006 # PIC (with -KPIC) is the default.
7007 lt_prog_compiler_static='-non_shared'
7010 newsos6)
7011 lt_prog_compiler_pic='-KPIC'
7012 lt_prog_compiler_static='-Bstatic'
7015 linux*)
7016 case $CC in
7017 icc* | ecc*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='-KPIC'
7020 lt_prog_compiler_static='-static'
7022 ccc*)
7023 lt_prog_compiler_wl='-Wl,'
7024 # All Alpha code is PIC.
7025 lt_prog_compiler_static='-non_shared'
7027 esac
7030 osf3* | osf4* | osf5*)
7031 lt_prog_compiler_wl='-Wl,'
7032 # All OSF/1 code is PIC.
7033 lt_prog_compiler_static='-non_shared'
7036 sco3.2v5*)
7037 lt_prog_compiler_pic='-Kpic'
7038 lt_prog_compiler_static='-dn'
7041 solaris*)
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_pic='-KPIC'
7044 lt_prog_compiler_static='-Bstatic'
7047 sunos4*)
7048 lt_prog_compiler_wl='-Qoption ld '
7049 lt_prog_compiler_pic='-PIC'
7050 lt_prog_compiler_static='-Bstatic'
7053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7054 lt_prog_compiler_wl='-Wl,'
7055 lt_prog_compiler_pic='-KPIC'
7056 lt_prog_compiler_static='-Bstatic'
7059 sysv4*MP*)
7060 if test -d /usr/nec ;then
7061 lt_prog_compiler_pic='-Kconform_pic'
7062 lt_prog_compiler_static='-Bstatic'
7066 uts4*)
7067 lt_prog_compiler_pic='-pic'
7068 lt_prog_compiler_static='-Bstatic'
7072 lt_prog_compiler_can_build_shared=no
7074 esac
7077 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7078 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7081 # Check to make sure the PIC flag actually works.
7083 if test -n "$lt_prog_compiler_pic"; then
7085 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7086 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7087 if test "${lt_prog_compiler_pic_works+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 lt_prog_compiler_pic_works=no
7091 ac_outfile=conftest.$ac_objext
7092 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7093 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7094 # Insert the option either (1) after the last *FLAGS variable, or
7095 # (2) before a word containing "conftest.", or (3) at the end.
7096 # Note that $ac_compile itself does not contain backslashes and begins
7097 # with a dollar sign (not a hyphen), so the echo should work correctly.
7098 # The option is referenced via a variable to avoid confusing sed.
7099 lt_compile=`echo "$ac_compile" | $SED \
7100 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7102 -e 's:$: $lt_compiler_flag:'`
7103 (eval echo "\"\$as_me:7103: $lt_compile\"" >&5)
7104 (eval "$lt_compile" 2>conftest.err)
7105 ac_status=$?
7106 cat conftest.err >&5
7107 echo "$as_me:7107: \$? = $ac_status" >&5
7108 if (exit $ac_status) && test -s "$ac_outfile"; then
7109 # The compiler can only warn and ignore the option if not recognized
7110 # So say no if there are warnings
7111 if test ! -s conftest.err; then
7112 lt_prog_compiler_pic_works=yes
7115 $rm conftest*
7118 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7119 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7121 if test x"$lt_prog_compiler_pic_works" = xyes; then
7122 case $lt_prog_compiler_pic in
7123 "" | " "*) ;;
7124 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7125 esac
7126 else
7127 lt_prog_compiler_pic=
7128 lt_prog_compiler_can_build_shared=no
7132 case "$host_os" in
7133 # For platforms which do not support PIC, -DPIC is meaningless:
7134 *djgpp*)
7135 lt_prog_compiler_pic=
7138 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7140 esac
7142 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7143 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7144 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 lt_cv_prog_compiler_c_o=no
7148 $rm -r conftest 2>/dev/null
7149 mkdir conftest
7150 cd conftest
7151 mkdir out
7152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7154 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7155 # that will create temporary files in the current directory regardless of
7156 # the output directory. Thus, making CWD read-only will cause this test
7157 # to fail, enabling locking or at least warning the user not to do parallel
7158 # builds.
7159 chmod -w .
7161 lt_compiler_flag="-o out/conftest2.$ac_objext"
7162 # Insert the option either (1) after the last *FLAGS variable, or
7163 # (2) before a word containing "conftest.", or (3) at the end.
7164 # Note that $ac_compile itself does not contain backslashes and begins
7165 # with a dollar sign (not a hyphen), so the echo should work correctly.
7166 lt_compile=`echo "$ac_compile" | $SED \
7167 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7169 -e 's:$: $lt_compiler_flag:'`
7170 (eval echo "\"\$as_me:7170: $lt_compile\"" >&5)
7171 (eval "$lt_compile" 2>out/conftest.err)
7172 ac_status=$?
7173 cat out/conftest.err >&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7176 then
7177 # The compiler can only warn and ignore the option if not recognized
7178 # So say no if there are warnings
7179 if test ! -s out/conftest.err; then
7180 lt_cv_prog_compiler_c_o=yes
7183 chmod u+w .
7184 $rm conftest*
7185 # SGI C++ compiler will create directory out/ii_files/ for
7186 # template instantiation
7187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7188 $rm out/* && rmdir out
7189 cd ..
7190 rmdir conftest
7191 $rm conftest*
7194 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7195 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7198 hard_links="nottested"
7199 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7200 # do not overwrite the value of need_locks provided by the user
7201 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7202 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7203 hard_links=yes
7204 $rm conftest*
7205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7206 touch conftest.a
7207 ln conftest.a conftest.b 2>&5 || hard_links=no
7208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7209 { echo "$as_me:$LINENO: result: $hard_links" >&5
7210 echo "${ECHO_T}$hard_links" >&6; }
7211 if test "$hard_links" = no; then
7212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7213 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7214 need_locks=warn
7216 else
7217 need_locks=no
7220 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7221 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7223 runpath_var=
7224 allow_undefined_flag=
7225 enable_shared_with_static_runtimes=no
7226 archive_cmds=
7227 archive_expsym_cmds=
7228 old_archive_From_new_cmds=
7229 old_archive_from_expsyms_cmds=
7230 export_dynamic_flag_spec=
7231 whole_archive_flag_spec=
7232 thread_safe_flag_spec=
7233 hardcode_libdir_flag_spec=
7234 hardcode_libdir_flag_spec_ld=
7235 hardcode_libdir_separator=
7236 hardcode_direct=no
7237 hardcode_minus_L=no
7238 hardcode_shlibpath_var=unsupported
7239 link_all_deplibs=unknown
7240 hardcode_automatic=no
7241 module_cmds=
7242 module_expsym_cmds=
7243 always_export_symbols=no
7244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7245 # include_expsyms should be a list of space-separated symbols to be *always*
7246 # included in the symbol list
7247 include_expsyms=
7248 # exclude_expsyms can be an extended regexp of symbols to exclude
7249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7251 # as well as any symbol that contains `d'.
7252 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7254 # platforms (ab)use it in PIC code, but their linkers get confused if
7255 # the symbol is explicitly referenced. Since portable code cannot
7256 # rely on this symbol name, it's probably fine to never include it in
7257 # preloaded symbol tables.
7258 extract_expsyms_cmds=
7260 case $host_os in
7261 cygwin* | mingw* | pw32*)
7262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7263 # When not using gcc, we currently assume that we are using
7264 # Microsoft Visual C++.
7265 if test "$GCC" != yes; then
7266 with_gnu_ld=no
7269 openbsd*)
7270 with_gnu_ld=no
7272 esac
7274 ld_shlibs=yes
7275 if test "$with_gnu_ld" = yes; then
7276 # If archive_cmds runs LD, not CC, wlarc should be empty
7277 wlarc='${wl}'
7279 # See if GNU ld supports shared libraries.
7280 case $host_os in
7281 aix3* | aix4* | aix5*)
7282 # On AIX/PPC, the GNU linker is very broken
7283 if test "$host_cpu" != ia64; then
7284 ld_shlibs=no
7285 cat <<EOF 1>&2
7287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7288 *** to be unable to reliably create shared libraries on AIX.
7289 *** Therefore, libtool is disabling shared libraries support. If you
7290 *** really care for shared libraries, you may want to modify your PATH
7291 *** so that a non-GNU linker is found, and then restart.
7297 amigaos*)
7298 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)'
7299 hardcode_libdir_flag_spec='-L$libdir'
7300 hardcode_minus_L=yes
7302 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7303 # that the semantics of dynamic libraries on AmigaOS, at least up
7304 # to version 4, is to share data among multiple programs linked
7305 # with the same dynamic library. Since this doesn't match the
7306 # behavior of shared libraries on other platforms, we can't use
7307 # them.
7308 ld_shlibs=no
7311 beos*)
7312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7313 allow_undefined_flag=unsupported
7314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7315 # support --undefined. This deserves some investigation. FIXME
7316 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317 else
7318 ld_shlibs=no
7322 cygwin* | mingw* | pw32*)
7323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7324 # as there is no search path for DLLs.
7325 hardcode_libdir_flag_spec='-L$libdir'
7326 allow_undefined_flag=unsupported
7327 always_export_symbols=no
7328 enable_shared_with_static_runtimes=yes
7329 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7333 # If the export-symbols file already is a .def file (1st line
7334 # is EXPORTS), use it as is; otherwise, prepend...
7335 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7336 cp $export_symbols $output_objdir/$soname.def;
7337 else
7338 echo EXPORTS > $output_objdir/$soname.def;
7339 cat $export_symbols >> $output_objdir/$soname.def;
7341 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7342 else
7343 ld_shlibs=no
7347 netbsd*)
7348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7349 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7350 wlarc=
7351 else
7352 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7357 solaris* | sysv5*)
7358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7359 ld_shlibs=no
7360 cat <<EOF 1>&2
7362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7363 *** create shared libraries on Solaris systems. Therefore, libtool
7364 *** is disabling shared libraries support. We urge you to upgrade GNU
7365 *** binutils to release 2.9.1 or newer. Another option is to modify
7366 *** your PATH or compiler configuration so that the native linker is
7367 *** used, and then restart.
7370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7373 else
7374 ld_shlibs=no
7378 sunos4*)
7379 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7380 wlarc=
7381 hardcode_direct=yes
7382 hardcode_shlibpath_var=no
7385 linux*)
7386 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7387 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7388 archive_cmds="$tmp_archive_cmds"
7389 supports_anon_versioning=no
7390 case `$LD -v 2>/dev/null` in
7391 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7394 *\ 2.11.*) ;; # other 2.11 versions
7395 *) supports_anon_versioning=yes ;;
7396 esac
7397 if test $supports_anon_versioning = yes; then
7398 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7400 $echo "local: *; };" >> $output_objdir/$libname.ver~
7401 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7402 else
7403 archive_expsym_cmds="$tmp_archive_cmds"
7405 else
7406 ld_shlibs=no
7411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7413 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7414 else
7415 ld_shlibs=no
7418 esac
7420 if test "$ld_shlibs" = yes; then
7421 runpath_var=LD_RUN_PATH
7422 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7423 export_dynamic_flag_spec='${wl}--export-dynamic'
7424 # ancient GNU ld didn't support --whole-archive et. al.
7425 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7426 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7427 else
7428 whole_archive_flag_spec=
7431 else
7432 # PORTME fill in a description of your system's linker (not GNU ld)
7433 case $host_os in
7434 aix3*)
7435 allow_undefined_flag=unsupported
7436 always_export_symbols=yes
7437 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'
7438 # Note: this linker hardcodes the directories in LIBPATH if there
7439 # are no directories specified by -L.
7440 hardcode_minus_L=yes
7441 if test "$GCC" = yes && test -z "$link_static_flag"; then
7442 # Neither direct hardcoding nor static linking is supported with a
7443 # broken collect2.
7444 hardcode_direct=unsupported
7448 aix4* | aix5*)
7449 if test "$host_cpu" = ia64; then
7450 # On IA64, the linker does run time linking by default, so we don't
7451 # have to do anything special.
7452 aix_use_runtimelinking=no
7453 exp_sym_flag='-Bexport'
7454 no_entry_flag=""
7455 else
7456 # If we're using GNU nm, then we don't want the "-C" option.
7457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7458 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7459 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'
7460 else
7461 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'
7463 aix_use_runtimelinking=no
7465 # Test if we are trying to use run time linking or normal
7466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7467 # need to do runtime linking.
7468 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7469 for ld_flag in $LDFLAGS; do
7470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7471 aix_use_runtimelinking=yes
7472 break
7474 done
7475 esac
7477 exp_sym_flag='-bexport'
7478 no_entry_flag='-bnoentry'
7481 # When large executables or shared objects are built, AIX ld can
7482 # have problems creating the table of contents. If linking a library
7483 # or program results in "error TOC overflow" add -mminimal-toc to
7484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7487 archive_cmds=''
7488 hardcode_direct=yes
7489 hardcode_libdir_separator=':'
7490 link_all_deplibs=yes
7492 if test "$GCC" = yes; then
7493 case $host_os in aix4.012|aix4.012.*)
7494 # We only want to do this on AIX 4.2 and lower, the check
7495 # below for broken collect2 doesn't work under 4.3+
7496 collect2name=`${CC} -print-prog-name=collect2`
7497 if test -f "$collect2name" && \
7498 strings "$collect2name" | grep resolve_lib_name >/dev/null
7499 then
7500 # We have reworked collect2
7501 hardcode_direct=yes
7502 else
7503 # We have old collect2
7504 hardcode_direct=unsupported
7505 # It fails to find uninstalled libraries when the uninstalled
7506 # path is not listed in the libpath. Setting hardcode_minus_L
7507 # to unsupported forces relinking
7508 hardcode_minus_L=yes
7509 hardcode_libdir_flag_spec='-L$libdir'
7510 hardcode_libdir_separator=
7512 esac
7513 shared_flag='-shared'
7514 else
7515 # not using gcc
7516 if test "$host_cpu" = ia64; then
7517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7518 # chokes on -Wl,-G. The following line is correct:
7519 shared_flag='-G'
7520 else
7521 if test "$aix_use_runtimelinking" = yes; then
7522 shared_flag='${wl}-G'
7523 else
7524 shared_flag='${wl}-bM:SRE'
7529 # It seems that -bexpall does not export symbols beginning with
7530 # underscore (_), so it is better to generate a list of symbols to export.
7531 always_export_symbols=yes
7532 if test "$aix_use_runtimelinking" = yes; then
7533 # Warning - without using the other runtime loading flags (-brtl),
7534 # -berok will link without error, but may produce a broken library.
7535 allow_undefined_flag='-berok'
7536 # Determine the default libpath from the value encoded in an empty executable.
7537 cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7545 main ()
7549 return 0;
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7554 case "(($ac_try" in
7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556 *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_link") 2>conftest.er1
7560 ac_status=$?
7561 grep -v '^ *+' conftest.er1 >conftest.err
7562 rm -f conftest.er1
7563 cat conftest.err >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } &&
7566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7567 { (case "(($ac_try" in
7568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569 *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_try") 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }; } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_try") 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7589 # Check for a 64-bit object if we didn't find anything.
7590 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; }
7591 }'`; fi
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7599 rm -f core conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7603 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7604 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"
7605 else
7606 if test "$host_cpu" = ia64; then
7607 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7608 allow_undefined_flag="-z nodefs"
7609 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"
7610 else
7611 # Determine the default libpath from the value encoded in an empty executable.
7612 cat >conftest.$ac_ext <<_ACEOF
7613 /* confdefs.h. */
7614 _ACEOF
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7620 main ()
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (ac_try="$ac_link"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_link") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } &&
7641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7642 { (case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_try") 2>&5
7648 ac_status=$?
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); }; } &&
7651 { ac_try='test -s conftest$ac_exeext'
7652 { (case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657 (eval "$ac_try") 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
7662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7664 # Check for a 64-bit object if we didn't find anything.
7665 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; }
7666 }'`; fi
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7678 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7679 # Warning - without using the other run time loading flags,
7680 # -berok will link without error, but may produce a broken library.
7681 no_undefined_flag=' ${wl}-bernotok'
7682 allow_undefined_flag=' ${wl}-berok'
7683 # -bexpall does not export symbols beginning with underscore (_)
7684 always_export_symbols=yes
7685 # Exported symbols can be pulled into shared objects from archives
7686 whole_archive_flag_spec=' '
7687 archive_cmds_need_lc=yes
7688 # This is similar to how AIX traditionally builds it's shared libraries.
7689 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'
7694 amigaos*)
7695 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)'
7696 hardcode_libdir_flag_spec='-L$libdir'
7697 hardcode_minus_L=yes
7698 # see comment about different semantics on the GNU ld section
7699 ld_shlibs=no
7702 bsdi4*)
7703 export_dynamic_flag_spec=-rdynamic
7706 cygwin* | mingw* | pw32*)
7707 # When not using gcc, we currently assume that we are using
7708 # Microsoft Visual C++.
7709 # hardcode_libdir_flag_spec is actually meaningless, as there is
7710 # no search path for DLLs.
7711 hardcode_libdir_flag_spec=' '
7712 allow_undefined_flag=unsupported
7713 # Tell ltmain to make .lib files, not .a files.
7714 libext=lib
7715 # Tell ltmain to make .dll files, not .so files.
7716 shrext=".dll"
7717 # FIXME: Setting linknames here is a bad hack.
7718 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7719 # The linker will automatically build a .lib file if we build a DLL.
7720 old_archive_From_new_cmds='true'
7721 # FIXME: Should let the user specify the lib program.
7722 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7723 fix_srcfile_path='`cygpath -w "$srcfile"`'
7724 enable_shared_with_static_runtimes=yes
7727 darwin* | rhapsody*)
7728 if test "$GXX" = yes ; then
7729 archive_cmds_need_lc=no
7730 case "$host_os" in
7731 rhapsody* | darwin1.[012])
7732 allow_undefined_flag='-undefined suppress'
7734 *) # Darwin 1.3 on
7735 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7736 allow_undefined_flag='-flat_namespace -undefined suppress'
7737 else
7738 case ${MACOSX_DEPLOYMENT_TARGET} in
7739 10.[012])
7740 allow_undefined_flag='-flat_namespace -undefined suppress'
7742 10.*)
7743 allow_undefined_flag='-undefined dynamic_lookup'
7745 esac
7748 esac
7749 lt_int_apple_cc_single_mod=no
7750 output_verbose_link_cmd='echo'
7751 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7752 lt_int_apple_cc_single_mod=yes
7754 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7755 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7756 else
7757 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'
7759 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7760 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7761 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7762 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}'
7763 else
7764 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}'
7766 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}'
7767 hardcode_direct=no
7768 hardcode_automatic=yes
7769 hardcode_shlibpath_var=unsupported
7770 whole_archive_flag_spec='-all_load $convenience'
7771 link_all_deplibs=yes
7772 else
7773 ld_shlibs=no
7777 dgux*)
7778 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7779 hardcode_libdir_flag_spec='-L$libdir'
7780 hardcode_shlibpath_var=no
7783 freebsd1*)
7784 ld_shlibs=no
7787 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7788 # support. Future versions do this automatically, but an explicit c++rt0.o
7789 # does not break anything, and helps significantly (at the cost of a little
7790 # extra space).
7791 freebsd2.2*)
7792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7793 hardcode_libdir_flag_spec='-R$libdir'
7794 hardcode_direct=yes
7795 hardcode_shlibpath_var=no
7798 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7799 freebsd2*)
7800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7801 hardcode_direct=yes
7802 hardcode_minus_L=yes
7803 hardcode_shlibpath_var=no
7806 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7807 freebsd* | kfreebsd*-gnu)
7808 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7809 hardcode_libdir_flag_spec='-R$libdir'
7810 hardcode_direct=yes
7811 hardcode_shlibpath_var=no
7814 hpux9*)
7815 if test "$GCC" = yes; then
7816 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'
7817 else
7818 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'
7820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7821 hardcode_libdir_separator=:
7822 hardcode_direct=yes
7824 # hardcode_minus_L: Not really in the search PATH,
7825 # but as the default location of the library.
7826 hardcode_minus_L=yes
7827 export_dynamic_flag_spec='${wl}-E'
7830 hpux10* | hpux11*)
7831 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7832 case "$host_cpu" in
7833 hppa*64*|ia64*)
7834 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7837 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7839 esac
7840 else
7841 case "$host_cpu" in
7842 hppa*64*|ia64*)
7843 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7848 esac
7850 if test "$with_gnu_ld" = no; then
7851 case "$host_cpu" in
7852 hppa*64*)
7853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7854 hardcode_libdir_flag_spec_ld='+b $libdir'
7855 hardcode_libdir_separator=:
7856 hardcode_direct=no
7857 hardcode_shlibpath_var=no
7859 ia64*)
7860 hardcode_libdir_flag_spec='-L$libdir'
7861 hardcode_direct=no
7862 hardcode_shlibpath_var=no
7864 # hardcode_minus_L: Not really in the search PATH,
7865 # but as the default location of the library.
7866 hardcode_minus_L=yes
7869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7870 hardcode_libdir_separator=:
7871 hardcode_direct=yes
7872 export_dynamic_flag_spec='${wl}-E'
7874 # hardcode_minus_L: Not really in the search PATH,
7875 # but as the default location of the library.
7876 hardcode_minus_L=yes
7878 esac
7882 irix5* | irix6* | nonstopux*)
7883 if test "$GCC" = yes; then
7884 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'
7885 else
7886 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'
7887 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7889 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7890 hardcode_libdir_separator=:
7891 link_all_deplibs=yes
7894 netbsd*)
7895 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7897 else
7898 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7900 hardcode_libdir_flag_spec='-R$libdir'
7901 hardcode_direct=yes
7902 hardcode_shlibpath_var=no
7905 newsos6)
7906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907 hardcode_direct=yes
7908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7909 hardcode_libdir_separator=:
7910 hardcode_shlibpath_var=no
7913 openbsd*)
7914 hardcode_direct=yes
7915 hardcode_shlibpath_var=no
7916 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7917 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7918 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7919 export_dynamic_flag_spec='${wl}-E'
7920 else
7921 case $host_os in
7922 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7924 hardcode_libdir_flag_spec='-R$libdir'
7927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7928 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7930 esac
7934 os2*)
7935 hardcode_libdir_flag_spec='-L$libdir'
7936 hardcode_minus_L=yes
7937 allow_undefined_flag=unsupported
7938 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'
7939 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7942 osf3*)
7943 if test "$GCC" = yes; then
7944 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7945 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'
7946 else
7947 allow_undefined_flag=' -expect_unresolved \*'
7948 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'
7950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951 hardcode_libdir_separator=:
7954 osf4* | osf5*) # as osf3* with the addition of -msym flag
7955 if test "$GCC" = yes; then
7956 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7957 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'
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 else
7960 allow_undefined_flag=' -expect_unresolved \*'
7961 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'
7962 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7963 $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'
7965 # Both c and cxx compiler support -rpath directly
7966 hardcode_libdir_flag_spec='-rpath $libdir'
7968 hardcode_libdir_separator=:
7971 sco3.2v5*)
7972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_shlibpath_var=no
7974 export_dynamic_flag_spec='${wl}-Bexport'
7975 runpath_var=LD_RUN_PATH
7976 hardcode_runpath_var=yes
7979 solaris*)
7980 no_undefined_flag=' -z text'
7981 if test "$GCC" = yes; then
7982 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7984 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7985 else
7986 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7988 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7990 hardcode_libdir_flag_spec='-R$libdir'
7991 hardcode_shlibpath_var=no
7992 case $host_os in
7993 solaris2.[0-5] | solaris2.[0-5].*) ;;
7994 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7995 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7996 esac
7997 link_all_deplibs=yes
8000 sunos4*)
8001 if test "x$host_vendor" = xsequent; then
8002 # Use $CC to link under sequent, because it throws in some extra .o
8003 # files that make .init and .fini sections work.
8004 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8005 else
8006 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_direct=yes
8010 hardcode_minus_L=yes
8011 hardcode_shlibpath_var=no
8014 sysv4)
8015 case $host_vendor in
8016 sni)
8017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8018 hardcode_direct=yes # is this really true???
8020 siemens)
8021 ## LD is ld it makes a PLAMLIB
8022 ## CC just makes a GrossModule.
8023 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8024 reload_cmds='$CC -r -o $output$reload_objs'
8025 hardcode_direct=no
8027 motorola)
8028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8029 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8031 esac
8032 runpath_var='LD_RUN_PATH'
8033 hardcode_shlibpath_var=no
8036 sysv4.3*)
8037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8038 hardcode_shlibpath_var=no
8039 export_dynamic_flag_spec='-Bexport'
8042 sysv4*MP*)
8043 if test -d /usr/nec; then
8044 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8045 hardcode_shlibpath_var=no
8046 runpath_var=LD_RUN_PATH
8047 hardcode_runpath_var=yes
8048 ld_shlibs=yes
8052 sysv4.2uw2*)
8053 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8054 hardcode_direct=yes
8055 hardcode_minus_L=no
8056 hardcode_shlibpath_var=no
8057 hardcode_runpath_var=yes
8058 runpath_var=LD_RUN_PATH
8061 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8062 no_undefined_flag='${wl}-z ${wl}text'
8063 if test "$GCC" = yes; then
8064 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8065 else
8066 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068 runpath_var='LD_RUN_PATH'
8069 hardcode_shlibpath_var=no
8072 sysv5*)
8073 no_undefined_flag=' -z text'
8074 # $CC -shared without GNU ld will not create a library from C++
8075 # object files and a static libstdc++, better avoid it by now
8076 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8078 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8079 hardcode_libdir_flag_spec=
8080 hardcode_shlibpath_var=no
8081 runpath_var='LD_RUN_PATH'
8084 uts4*)
8085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8086 hardcode_libdir_flag_spec='-L$libdir'
8087 hardcode_shlibpath_var=no
8091 ld_shlibs=no
8093 esac
8096 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8097 echo "${ECHO_T}$ld_shlibs" >&6; }
8098 test "$ld_shlibs" = no && can_build_shared=no
8100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8101 if test "$GCC" = yes; then
8102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8106 # Do we need to explicitly link libc?
8108 case "x$archive_cmds_need_lc" in
8109 x|xyes)
8110 # Assume -lc should be added
8111 archive_cmds_need_lc=yes
8113 if test "$enable_shared" = yes && test "$GCC" = yes; then
8114 case $archive_cmds in
8115 *'~'*)
8116 # FIXME: we may have to deal with multi-command sequences.
8118 '$CC '*)
8119 # Test whether the compiler implicitly links with -lc since on some
8120 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8121 # to ld, don't add -lc before -lgcc.
8122 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8123 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8124 $rm conftest*
8125 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8128 (eval $ac_compile) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } 2>conftest.err; then
8132 soname=conftest
8133 lib=conftest
8134 libobjs=conftest.$ac_objext
8135 deplibs=
8136 wl=$lt_prog_compiler_wl
8137 compiler_flags=-v
8138 linker_flags=-v
8139 verstring=
8140 output_objdir=.
8141 libname=conftest
8142 lt_save_allow_undefined_flag=$allow_undefined_flag
8143 allow_undefined_flag=
8144 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8145 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }
8149 then
8150 archive_cmds_need_lc=no
8151 else
8152 archive_cmds_need_lc=yes
8154 allow_undefined_flag=$lt_save_allow_undefined_flag
8155 else
8156 cat conftest.err 1>&5
8158 $rm conftest*
8159 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8160 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8162 esac
8165 esac
8167 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8169 library_names_spec=
8170 libname_spec='lib$name'
8171 soname_spec=
8172 shrext=".so"
8173 postinstall_cmds=
8174 postuninstall_cmds=
8175 finish_cmds=
8176 finish_eval=
8177 shlibpath_var=
8178 shlibpath_overrides_runpath=unknown
8179 version_type=none
8180 dynamic_linker="$host_os ld.so"
8181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8182 if test "$GCC" = yes; then
8183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8184 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8185 # if the path contains ";" then we assume it to be the separator
8186 # otherwise default to the standard path separator (i.e. ":") - it is
8187 # assumed that no part of a normal pathname contains ";" but that should
8188 # okay in the real world where ";" in dirpaths is itself problematic.
8189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8190 else
8191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8193 else
8194 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8196 need_lib_prefix=unknown
8197 hardcode_into_libs=no
8199 # when you set need_version to no, make sure it does not cause -set_version
8200 # flags to be left without arguments
8201 need_version=unknown
8203 case $host_os in
8204 aix3*)
8205 version_type=linux
8206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8207 shlibpath_var=LIBPATH
8209 # AIX 3 has no versioning support, so we append a major version to the name.
8210 soname_spec='${libname}${release}${shared_ext}$major'
8213 aix4* | aix5*)
8214 version_type=linux
8215 need_lib_prefix=no
8216 need_version=no
8217 hardcode_into_libs=yes
8218 if test "$host_cpu" = ia64; then
8219 # AIX 5 supports IA64
8220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8221 shlibpath_var=LD_LIBRARY_PATH
8222 else
8223 # With GCC up to 2.95.x, collect2 would create an import file
8224 # for dependence libraries. The import file would start with
8225 # the line `#! .'. This would cause the generated library to
8226 # depend on `.', always an invalid library. This was fixed in
8227 # development snapshots of GCC prior to 3.0.
8228 case $host_os in
8229 aix4 | aix4.[01] | aix4.[01].*)
8230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8231 echo ' yes '
8232 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8234 else
8235 can_build_shared=no
8238 esac
8239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8240 # soname into executable. Probably we can add versioning support to
8241 # collect2, so additional links can be useful in future.
8242 if test "$aix_use_runtimelinking" = yes; then
8243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8244 # instead of lib<name>.a to let people know that these are not
8245 # typical AIX shared libraries.
8246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8247 else
8248 # We preserve .a as extension for shared libraries through AIX4.2
8249 # and later when we are not doing run time linking.
8250 library_names_spec='${libname}${release}.a $libname.a'
8251 soname_spec='${libname}${release}${shared_ext}$major'
8253 shlibpath_var=LIBPATH
8257 amigaos*)
8258 library_names_spec='$libname.ixlibrary $libname.a'
8259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8260 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'
8263 beos*)
8264 library_names_spec='${libname}${shared_ext}'
8265 dynamic_linker="$host_os ld.so"
8266 shlibpath_var=LIBRARY_PATH
8269 bsdi4*)
8270 version_type=linux
8271 need_version=no
8272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273 soname_spec='${libname}${release}${shared_ext}$major'
8274 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8275 shlibpath_var=LD_LIBRARY_PATH
8276 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8277 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8278 # the default ld.so.conf also contains /usr/contrib/lib and
8279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8280 # libtool to hard-code these into programs
8283 cygwin* | mingw* | pw32*)
8284 version_type=windows
8285 shrext=".dll"
8286 need_version=no
8287 need_lib_prefix=no
8289 case $GCC,$host_os in
8290 yes,cygwin* | yes,mingw* | yes,pw32*)
8291 library_names_spec='$libname.dll.a'
8292 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8293 postinstall_cmds='base_file=`basename \${file}`~
8294 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8295 dldir=$destdir/`dirname \$dlpath`~
8296 test -d \$dldir || mkdir -p \$dldir~
8297 $install_prog $dir/$dlname \$dldir/$dlname'
8298 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8299 dlpath=$dir/\$dldll~
8300 $rm \$dlpath'
8301 shlibpath_overrides_runpath=yes
8303 case $host_os in
8304 cygwin*)
8305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8306 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8307 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8309 mingw*)
8310 # MinGW DLLs use traditional 'lib' prefix
8311 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8312 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8313 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8314 # It is most probably a Windows format PATH printed by
8315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8316 # path with ; separators, and with drive letters. We can handle the
8317 # drive letters (cygwin fileutils understands them), so leave them,
8318 # especially as we might pass files found there to a mingw objdump,
8319 # which wouldn't understand a cygwinified path. Ahh.
8320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8321 else
8322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8325 pw32*)
8326 # pw32 DLLs use 'pw' prefix rather than 'lib'
8327 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8329 esac
8333 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8335 esac
8336 dynamic_linker='Win32 ld.exe'
8337 # FIXME: first we should search . and the directory the executable is in
8338 shlibpath_var=PATH
8341 darwin* | rhapsody*)
8342 dynamic_linker="$host_os dyld"
8343 version_type=darwin
8344 need_lib_prefix=no
8345 need_version=no
8346 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8347 soname_spec='${libname}${release}${major}$shared_ext'
8348 shlibpath_overrides_runpath=yes
8349 shlibpath_var=DYLD_LIBRARY_PATH
8350 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8351 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8352 if test "$GCC" = yes; then
8353 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"`
8354 else
8355 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8357 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8360 dgux*)
8361 version_type=linux
8362 need_lib_prefix=no
8363 need_version=no
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8365 soname_spec='${libname}${release}${shared_ext}$major'
8366 shlibpath_var=LD_LIBRARY_PATH
8369 freebsd1*)
8370 dynamic_linker=no
8373 kfreebsd*-gnu)
8374 version_type=linux
8375 need_lib_prefix=no
8376 need_version=no
8377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8378 soname_spec='${libname}${release}${shared_ext}$major'
8379 shlibpath_var=LD_LIBRARY_PATH
8380 shlibpath_overrides_runpath=no
8381 hardcode_into_libs=yes
8382 dynamic_linker='GNU ld.so'
8385 freebsd*)
8386 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8387 version_type=freebsd-$objformat
8388 case $version_type in
8389 freebsd-elf*)
8390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8391 need_version=no
8392 need_lib_prefix=no
8394 freebsd-*)
8395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8396 need_version=yes
8398 esac
8399 shlibpath_var=LD_LIBRARY_PATH
8400 case $host_os in
8401 freebsd2*)
8402 shlibpath_overrides_runpath=yes
8404 freebsd3.01* | freebsdelf3.01*)
8405 shlibpath_overrides_runpath=yes
8406 hardcode_into_libs=yes
8408 *) # from 3.2 on
8409 shlibpath_overrides_runpath=no
8410 hardcode_into_libs=yes
8412 esac
8415 gnu*)
8416 version_type=linux
8417 need_lib_prefix=no
8418 need_version=no
8419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8420 soname_spec='${libname}${release}${shared_ext}$major'
8421 shlibpath_var=LD_LIBRARY_PATH
8422 hardcode_into_libs=yes
8425 hpux9* | hpux10* | hpux11*)
8426 # Give a soname corresponding to the major version so that dld.sl refuses to
8427 # link against other versions.
8428 version_type=sunos
8429 need_lib_prefix=no
8430 need_version=no
8431 case "$host_cpu" in
8432 ia64*)
8433 shrext='.so'
8434 hardcode_into_libs=yes
8435 dynamic_linker="$host_os dld.so"
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8439 soname_spec='${libname}${release}${shared_ext}$major'
8440 if test "X$HPUX_IA64_MODE" = X32; then
8441 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8442 else
8443 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8445 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8447 hppa*64*)
8448 shrext='.sl'
8449 hardcode_into_libs=yes
8450 dynamic_linker="$host_os dld.sl"
8451 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8454 soname_spec='${libname}${release}${shared_ext}$major'
8455 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8456 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8459 shrext='.sl'
8460 dynamic_linker="$host_os dld.sl"
8461 shlibpath_var=SHLIB_PATH
8462 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8464 soname_spec='${libname}${release}${shared_ext}$major'
8466 esac
8467 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8468 postinstall_cmds='chmod 555 $lib'
8471 irix5* | irix6* | nonstopux*)
8472 case $host_os in
8473 nonstopux*) version_type=nonstopux ;;
8475 if test "$lt_cv_prog_gnu_ld" = yes; then
8476 version_type=linux
8477 else
8478 version_type=irix
8479 fi ;;
8480 esac
8481 need_lib_prefix=no
8482 need_version=no
8483 soname_spec='${libname}${release}${shared_ext}$major'
8484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8485 case $host_os in
8486 irix5* | nonstopux*)
8487 libsuff= shlibsuff=
8490 case $LD in # libtool.m4 will add one of these switches to LD
8491 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8492 libsuff= shlibsuff= libmagic=32-bit;;
8493 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8494 libsuff=32 shlibsuff=N32 libmagic=N32;;
8495 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8496 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8497 *) libsuff= shlibsuff= libmagic=never-match;;
8498 esac
8500 esac
8501 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8502 shlibpath_overrides_runpath=no
8503 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8504 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8505 hardcode_into_libs=yes
8508 # No shared lib support for Linux oldld, aout, or coff.
8509 linux*oldld* | linux*aout* | linux*coff*)
8510 dynamic_linker=no
8513 # This must be Linux ELF.
8514 linux*)
8515 version_type=linux
8516 need_lib_prefix=no
8517 need_version=no
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8519 soname_spec='${libname}${release}${shared_ext}$major'
8520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8521 shlibpath_var=LD_LIBRARY_PATH
8522 shlibpath_overrides_runpath=no
8523 # This implies no fast_install, which is unacceptable.
8524 # Some rework will be needed to allow for fast_install
8525 # before this can be enabled.
8526 hardcode_into_libs=yes
8528 # We used to test for /lib/ld.so.1 and disable shared libraries on
8529 # powerpc, because MkLinux only supported shared libraries with the
8530 # GNU dynamic linker. Since this was broken with cross compilers,
8531 # most powerpc-linux boxes support dynamic linking these days and
8532 # people can always --disable-shared, the test was removed, and we
8533 # assume the GNU/Linux dynamic linker is in use.
8534 dynamic_linker='GNU/Linux ld.so'
8537 netbsd*)
8538 version_type=sunos
8539 need_lib_prefix=no
8540 need_version=no
8541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8544 dynamic_linker='NetBSD (a.out) ld.so'
8545 else
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 dynamic_linker='NetBSD ld.elf_so'
8550 shlibpath_var=LD_LIBRARY_PATH
8551 shlibpath_overrides_runpath=yes
8552 hardcode_into_libs=yes
8555 newsos6)
8556 version_type=linux
8557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8558 shlibpath_var=LD_LIBRARY_PATH
8559 shlibpath_overrides_runpath=yes
8562 nto-qnx*)
8563 version_type=linux
8564 need_lib_prefix=no
8565 need_version=no
8566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567 soname_spec='${libname}${release}${shared_ext}$major'
8568 shlibpath_var=LD_LIBRARY_PATH
8569 shlibpath_overrides_runpath=yes
8572 openbsd*)
8573 version_type=sunos
8574 need_lib_prefix=no
8575 need_version=no
8576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8578 shlibpath_var=LD_LIBRARY_PATH
8579 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8580 case $host_os in
8581 openbsd2.[89] | openbsd2.[89].*)
8582 shlibpath_overrides_runpath=no
8585 shlibpath_overrides_runpath=yes
8587 esac
8588 else
8589 shlibpath_overrides_runpath=yes
8593 os2*)
8594 libname_spec='$name'
8595 shrext=".dll"
8596 need_lib_prefix=no
8597 library_names_spec='$libname${shared_ext} $libname.a'
8598 dynamic_linker='OS/2 ld.exe'
8599 shlibpath_var=LIBPATH
8602 osf3* | osf4* | osf5*)
8603 version_type=osf
8604 need_lib_prefix=no
8605 need_version=no
8606 soname_spec='${libname}${release}${shared_ext}$major'
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 shlibpath_var=LD_LIBRARY_PATH
8609 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8610 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8613 sco3.2v5*)
8614 version_type=osf
8615 soname_spec='${libname}${release}${shared_ext}$major'
8616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8617 shlibpath_var=LD_LIBRARY_PATH
8620 solaris*)
8621 version_type=linux
8622 need_lib_prefix=no
8623 need_version=no
8624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8625 soname_spec='${libname}${release}${shared_ext}$major'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=yes
8628 hardcode_into_libs=yes
8629 # ldd complains unless libraries are executable
8630 postinstall_cmds='chmod +x $lib'
8633 sunos4*)
8634 version_type=sunos
8635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8636 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8637 shlibpath_var=LD_LIBRARY_PATH
8638 shlibpath_overrides_runpath=yes
8639 if test "$with_gnu_ld" = yes; then
8640 need_lib_prefix=no
8642 need_version=yes
8645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8646 version_type=linux
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 case $host_vendor in
8651 sni)
8652 shlibpath_overrides_runpath=no
8653 need_lib_prefix=no
8654 export_dynamic_flag_spec='${wl}-Blargedynsym'
8655 runpath_var=LD_RUN_PATH
8657 siemens)
8658 need_lib_prefix=no
8660 motorola)
8661 need_lib_prefix=no
8662 need_version=no
8663 shlibpath_overrides_runpath=no
8664 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8666 esac
8669 sysv4*MP*)
8670 if test -d /usr/nec ;then
8671 version_type=linux
8672 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8673 soname_spec='$libname${shared_ext}.$major'
8674 shlibpath_var=LD_LIBRARY_PATH
8678 uts4*)
8679 version_type=linux
8680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8681 soname_spec='${libname}${release}${shared_ext}$major'
8682 shlibpath_var=LD_LIBRARY_PATH
8686 dynamic_linker=no
8688 esac
8689 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8690 echo "${ECHO_T}$dynamic_linker" >&6; }
8691 test "$dynamic_linker" = no && can_build_shared=no
8693 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8694 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8695 hardcode_action=
8696 if test -n "$hardcode_libdir_flag_spec" || \
8697 test -n "$runpath_var " || \
8698 test "X$hardcode_automatic"="Xyes" ; then
8700 # We can hardcode non-existant directories.
8701 if test "$hardcode_direct" != no &&
8702 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8703 # have to relink, otherwise we might link with an installed library
8704 # when we should be linking with a yet-to-be-installed one
8705 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8706 test "$hardcode_minus_L" != no; then
8707 # Linking always hardcodes the temporary library directory.
8708 hardcode_action=relink
8709 else
8710 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8711 hardcode_action=immediate
8713 else
8714 # We cannot hardcode anything, or else we can only hardcode existing
8715 # directories.
8716 hardcode_action=unsupported
8718 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8719 echo "${ECHO_T}$hardcode_action" >&6; }
8721 if test "$hardcode_action" = relink; then
8722 # Fast installation is not supported
8723 enable_fast_install=no
8724 elif test "$shlibpath_overrides_runpath" = yes ||
8725 test "$enable_shared" = no; then
8726 # Fast installation is not necessary
8727 enable_fast_install=needless
8730 striplib=
8731 old_striplib=
8732 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8733 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8734 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8735 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8736 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8737 { echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6; }
8739 else
8740 # FIXME - insert some real tests, host_os isn't really good enough
8741 case $host_os in
8742 darwin*)
8743 if test -n "$STRIP" ; then
8744 striplib="$STRIP -x"
8745 { echo "$as_me:$LINENO: result: yes" >&5
8746 echo "${ECHO_T}yes" >&6; }
8747 else
8748 { echo "$as_me:$LINENO: result: no" >&5
8749 echo "${ECHO_T}no" >&6; }
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8756 esac
8759 if test "x$enable_dlopen" != xyes; then
8760 enable_dlopen=unknown
8761 enable_dlopen_self=unknown
8762 enable_dlopen_self_static=unknown
8763 else
8764 lt_cv_dlopen=no
8765 lt_cv_dlopen_libs=
8767 case $host_os in
8768 beos*)
8769 lt_cv_dlopen="load_add_on"
8770 lt_cv_dlopen_libs=
8771 lt_cv_dlopen_self=yes
8774 mingw* | pw32*)
8775 lt_cv_dlopen="LoadLibrary"
8776 lt_cv_dlopen_libs=
8779 cygwin*)
8780 lt_cv_dlopen="dlopen"
8781 lt_cv_dlopen_libs=
8784 darwin*)
8785 # if libdl is installed we need to link against it
8786 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8787 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8788 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 else
8791 ac_check_lib_save_LIBS=$LIBS
8792 LIBS="-ldl $LIBS"
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char dlopen ();
8808 main ()
8810 return dlopen ();
8812 return 0;
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_lib_dl_dlopen=yes
8850 else
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8854 ac_cv_lib_dl_dlopen=no
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8859 LIBS=$ac_check_lib_save_LIBS
8861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8862 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8863 if test $ac_cv_lib_dl_dlopen = yes; then
8864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8865 else
8867 lt_cv_dlopen="dyld"
8868 lt_cv_dlopen_libs=
8869 lt_cv_dlopen_self=yes
8876 { echo "$as_me:$LINENO: checking for shl_load" >&5
8877 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8878 if test "${ac_cv_func_shl_load+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h. */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8887 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8889 #define shl_load innocuous_shl_load
8891 /* System header to define __stub macros and hopefully few prototypes,
8892 which can conflict with char shl_load (); below.
8893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894 <limits.h> exists even on freestanding compilers. */
8896 #ifdef __STDC__
8897 # include <limits.h>
8898 #else
8899 # include <assert.h>
8900 #endif
8902 #undef shl_load
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8907 #ifdef __cplusplus
8908 extern "C"
8909 #endif
8910 char shl_load ();
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined __stub_shl_load || defined __stub___shl_load
8915 choke me
8916 #endif
8919 main ()
8921 return shl_load ();
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (ac_try="$ac_link"
8928 case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954 esac
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_func_shl_load=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 ac_cv_func_shl_load=no
8968 rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8971 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8972 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8973 if test $ac_cv_func_shl_load = yes; then
8974 lt_cv_dlopen="shl_load"
8975 else
8976 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8977 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8978 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 ac_check_lib_save_LIBS=$LIBS
8982 LIBS="-ldld $LIBS"
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h. */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8990 /* Override any GCC internal prototype to avoid an error.
8991 Use char because int might match the return type of a GCC
8992 builtin and then its argument prototype would still apply. */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 char shl_load ();
8998 main ()
9000 return shl_load ();
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (ac_try="$ac_link"
9007 case "(($ac_try" in
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9010 esac
9011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9012 (eval "$ac_link") 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
9019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9020 { (case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_try") 2>&5
9026 ac_status=$?
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); }; } &&
9029 { ac_try='test -s conftest$ac_exeext'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033 esac
9034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; }; then
9039 ac_cv_lib_dld_shl_load=yes
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9044 ac_cv_lib_dld_shl_load=no
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9051 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9052 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9053 if test $ac_cv_lib_dld_shl_load = yes; then
9054 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9055 else
9056 { echo "$as_me:$LINENO: checking for dlopen" >&5
9057 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9058 if test "${ac_cv_func_dlopen+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h. */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9069 #define dlopen innocuous_dlopen
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char dlopen (); below.
9073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9074 <limits.h> exists even on freestanding compilers. */
9076 #ifdef __STDC__
9077 # include <limits.h>
9078 #else
9079 # include <assert.h>
9080 #endif
9082 #undef dlopen
9084 /* Override any GCC internal prototype to avoid an error.
9085 Use char because int might match the return type of a GCC
9086 builtin and then its argument prototype would still apply. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 #endif
9090 char dlopen ();
9091 /* The GNU C library defines this for functions which it implements
9092 to always fail with ENOSYS. Some functions are actually named
9093 something starting with __ and the normal name is an alias. */
9094 #if defined __stub_dlopen || defined __stub___dlopen
9095 choke me
9096 #endif
9099 main ()
9101 return dlopen ();
9103 return 0;
9105 _ACEOF
9106 rm -f conftest.$ac_objext conftest$ac_exeext
9107 if { (ac_try="$ac_link"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9121 { (case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124 esac
9125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_try") 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_try") 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_func_dlopen=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 ac_cv_func_dlopen=no
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9151 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9152 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9153 if test $ac_cv_func_dlopen = yes; then
9154 lt_cv_dlopen="dlopen"
9155 else
9156 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9157 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9158 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 else
9161 ac_check_lib_save_LIBS=$LIBS
9162 LIBS="-ldl $LIBS"
9163 cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h. */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 char dlopen ();
9178 main ()
9180 return dlopen ();
9182 return 0;
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_link") 2>conftest.er1
9193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9203 esac
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_cv_lib_dl_dlopen=yes
9220 else
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_cv_lib_dl_dlopen=no
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9233 if test $ac_cv_lib_dl_dlopen = yes; then
9234 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9235 else
9236 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9237 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9238 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-lsvld $LIBS"
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h. */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char dlopen ();
9258 main ()
9260 return dlopen ();
9262 return 0;
9264 _ACEOF
9265 rm -f conftest.$ac_objext conftest$ac_exeext
9266 if { (ac_try="$ac_link"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_link") 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9280 { (case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (case "(($ac_try" in
9291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9292 *) ac_try_echo=$ac_try;;
9293 esac
9294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9295 (eval "$ac_try") 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_svld_dlopen=yes
9300 else
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 ac_cv_lib_svld_dlopen=no
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9311 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9312 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9313 if test $ac_cv_lib_svld_dlopen = yes; then
9314 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9315 else
9316 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9317 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9318 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321 ac_check_lib_save_LIBS=$LIBS
9322 LIBS="-ldld $LIBS"
9323 cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h. */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9330 /* Override any GCC internal prototype to avoid an error.
9331 Use char because int might match the return type of a GCC
9332 builtin and then its argument prototype would still apply. */
9333 #ifdef __cplusplus
9334 extern "C"
9335 #endif
9336 char dld_link ();
9338 main ()
9340 return dld_link ();
9342 return 0;
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (ac_try="$ac_link"
9347 case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352 (eval "$ac_link") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9360 { (case "(($ac_try" in
9361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362 *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365 (eval "$ac_try") 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373 esac
9374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_try") 2>&5
9376 ac_status=$?
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_lib_dld_dld_link=yes
9380 else
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_cv_lib_dld_dld_link=no
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9392 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9393 if test $ac_cv_lib_dld_dld_link = yes; then
9394 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9413 esac
9415 if test "x$lt_cv_dlopen" != xno; then
9416 enable_dlopen=yes
9417 else
9418 enable_dlopen=no
9421 case $lt_cv_dlopen in
9422 dlopen)
9423 save_CPPFLAGS="$CPPFLAGS"
9424 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9426 save_LDFLAGS="$LDFLAGS"
9427 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9429 save_LIBS="$LIBS"
9430 LIBS="$lt_cv_dlopen_libs $LIBS"
9432 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9433 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9434 if test "${lt_cv_dlopen_self+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437 if test "$cross_compiling" = yes; then :
9438 lt_cv_dlopen_self=cross
9439 else
9440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9441 lt_status=$lt_dlunknown
9442 cat > conftest.$ac_ext <<EOF
9443 #line 9443 "configure"
9444 #include "confdefs.h"
9446 #if HAVE_DLFCN_H
9447 #include <dlfcn.h>
9448 #endif
9450 #include <stdio.h>
9452 #ifdef RTLD_GLOBAL
9453 # define LT_DLGLOBAL RTLD_GLOBAL
9454 #else
9455 # ifdef DL_GLOBAL
9456 # define LT_DLGLOBAL DL_GLOBAL
9457 # else
9458 # define LT_DLGLOBAL 0
9459 # endif
9460 #endif
9462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9463 find out it does not work in some platform. */
9464 #ifndef LT_DLLAZY_OR_NOW
9465 # ifdef RTLD_LAZY
9466 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9467 # else
9468 # ifdef DL_LAZY
9469 # define LT_DLLAZY_OR_NOW DL_LAZY
9470 # else
9471 # ifdef RTLD_NOW
9472 # define LT_DLLAZY_OR_NOW RTLD_NOW
9473 # else
9474 # ifdef DL_NOW
9475 # define LT_DLLAZY_OR_NOW DL_NOW
9476 # else
9477 # define LT_DLLAZY_OR_NOW 0
9478 # endif
9479 # endif
9480 # endif
9481 # endif
9482 #endif
9484 #ifdef __cplusplus
9485 extern "C" void exit (int);
9486 #endif
9488 void fnord() { int i=42;}
9489 int main ()
9491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9492 int status = $lt_dlunknown;
9494 if (self)
9496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9497 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9498 /* dlclose (self); */
9501 exit (status);
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9509 (./conftest; exit; ) 2>/dev/null
9510 lt_status=$?
9511 case x$lt_status in
9512 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9513 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9514 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9515 esac
9516 else :
9517 # compilation failed
9518 lt_cv_dlopen_self=no
9521 rm -fr conftest*
9525 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9526 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9528 if test "x$lt_cv_dlopen_self" = xyes; then
9529 LDFLAGS="$LDFLAGS $link_static_flag"
9530 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9531 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9532 if test "${lt_cv_dlopen_self_static+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 if test "$cross_compiling" = yes; then :
9536 lt_cv_dlopen_self_static=cross
9537 else
9538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9539 lt_status=$lt_dlunknown
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9541 "configure"
9542 #include "confdefs.h"
9544 #if HAVE_DLFCN_H
9545 #include <dlfcn.h>
9546 #endif
9548 #include <stdio.h>
9550 #ifdef RTLD_GLOBAL
9551 # define LT_DLGLOBAL RTLD_GLOBAL
9552 #else
9553 # ifdef DL_GLOBAL
9554 # define LT_DLGLOBAL DL_GLOBAL
9555 # else
9556 # define LT_DLGLOBAL 0
9557 # endif
9558 #endif
9560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9561 find out it does not work in some platform. */
9562 #ifndef LT_DLLAZY_OR_NOW
9563 # ifdef RTLD_LAZY
9564 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9565 # else
9566 # ifdef DL_LAZY
9567 # define LT_DLLAZY_OR_NOW DL_LAZY
9568 # else
9569 # ifdef RTLD_NOW
9570 # define LT_DLLAZY_OR_NOW RTLD_NOW
9571 # else
9572 # ifdef DL_NOW
9573 # define LT_DLLAZY_OR_NOW DL_NOW
9574 # else
9575 # define LT_DLLAZY_OR_NOW 0
9576 # endif
9577 # endif
9578 # endif
9579 # endif
9580 #endif
9582 #ifdef __cplusplus
9583 extern "C" void exit (int);
9584 #endif
9586 void fnord() { int i=42;}
9587 int main ()
9589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9590 int status = $lt_dlunknown;
9592 if (self)
9594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9595 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9596 /* dlclose (self); */
9599 exit (status);
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9607 (./conftest; exit; ) 2>/dev/null
9608 lt_status=$?
9609 case x$lt_status in
9610 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9611 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9612 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9613 esac
9614 else :
9615 # compilation failed
9616 lt_cv_dlopen_self_static=no
9619 rm -fr conftest*
9623 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9624 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9627 CPPFLAGS="$save_CPPFLAGS"
9628 LDFLAGS="$save_LDFLAGS"
9629 LIBS="$save_LIBS"
9631 esac
9633 case $lt_cv_dlopen_self in
9634 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9635 *) enable_dlopen_self=unknown ;;
9636 esac
9638 case $lt_cv_dlopen_self_static in
9639 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9640 *) enable_dlopen_self_static=unknown ;;
9641 esac
9645 # Report which librarie types wil actually be built
9646 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9647 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9648 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9649 echo "${ECHO_T}$can_build_shared" >&6; }
9651 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9652 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9653 test "$can_build_shared" = "no" && enable_shared=no
9655 # On AIX, shared libraries and static libraries use the same namespace, and
9656 # are all built from PIC.
9657 case "$host_os" in
9658 aix3*)
9659 test "$enable_shared" = yes && enable_static=no
9660 if test -n "$RANLIB"; then
9661 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9662 postinstall_cmds='$RANLIB $lib'
9666 aix4*)
9667 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9668 test "$enable_shared" = yes && enable_static=no
9671 darwin* | rhapsody*)
9672 if test "$GCC" = yes; then
9673 archive_cmds_need_lc=no
9674 case "$host_os" in
9675 rhapsody* | darwin1.[012])
9676 allow_undefined_flag='-undefined suppress'
9678 *) # Darwin 1.3 on
9679 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9680 allow_undefined_flag='-flat_namespace -undefined suppress'
9681 else
9682 case ${MACOSX_DEPLOYMENT_TARGET} in
9683 10.[012])
9684 allow_undefined_flag='-flat_namespace -undefined suppress'
9686 10.*)
9687 allow_undefined_flag='-undefined dynamic_lookup'
9689 esac
9692 esac
9693 output_verbose_link_cmd='echo'
9694 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9695 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9696 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9697 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}'
9698 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}'
9699 hardcode_direct=no
9700 hardcode_automatic=yes
9701 hardcode_shlibpath_var=unsupported
9702 whole_archive_flag_spec='-all_load $convenience'
9703 link_all_deplibs=yes
9704 else
9705 ld_shlibs=no
9708 esac
9709 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9710 echo "${ECHO_T}$enable_shared" >&6; }
9712 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9713 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9714 # Make sure either enable_shared or enable_static is yes.
9715 test "$enable_shared" = yes || enable_static=yes
9716 { echo "$as_me:$LINENO: result: $enable_static" >&5
9717 echo "${ECHO_T}$enable_static" >&6; }
9719 # The else clause should only fire when bootstrapping the
9720 # libtool distribution, otherwise you forgot to ship ltmain.sh
9721 # with your package, and you will get complaints that there are
9722 # no rules to generate ltmain.sh.
9723 if test -f "$ltmain"; then
9724 # See if we are running on zsh, and set the options which allow our commands through
9725 # without removal of \ escapes.
9726 if test -n "${ZSH_VERSION+set}" ; then
9727 setopt NO_GLOB_SUBST
9729 # Now quote all the things that may contain metacharacters while being
9730 # careful not to overquote the AC_SUBSTed values. We take copies of the
9731 # variables and quote the copies for generation of the libtool script.
9732 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9733 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9734 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9735 deplibs_check_method reload_flag reload_cmds need_locks \
9736 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9737 lt_cv_sys_global_symbol_to_c_name_address \
9738 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9739 old_postinstall_cmds old_postuninstall_cmds \
9740 compiler \
9741 CC \
9742 LD \
9743 lt_prog_compiler_wl \
9744 lt_prog_compiler_pic \
9745 lt_prog_compiler_static \
9746 lt_prog_compiler_no_builtin_flag \
9747 export_dynamic_flag_spec \
9748 thread_safe_flag_spec \
9749 whole_archive_flag_spec \
9750 enable_shared_with_static_runtimes \
9751 old_archive_cmds \
9752 old_archive_from_new_cmds \
9753 predep_objects \
9754 postdep_objects \
9755 predeps \
9756 postdeps \
9757 compiler_lib_search_path \
9758 archive_cmds \
9759 archive_expsym_cmds \
9760 postinstall_cmds \
9761 postuninstall_cmds \
9762 old_archive_from_expsyms_cmds \
9763 allow_undefined_flag \
9764 no_undefined_flag \
9765 export_symbols_cmds \
9766 hardcode_libdir_flag_spec \
9767 hardcode_libdir_flag_spec_ld \
9768 hardcode_libdir_separator \
9769 hardcode_automatic \
9770 module_cmds \
9771 module_expsym_cmds \
9772 lt_cv_prog_compiler_c_o \
9773 exclude_expsyms \
9774 include_expsyms; do
9776 case $var in
9777 old_archive_cmds | \
9778 old_archive_from_new_cmds | \
9779 archive_cmds | \
9780 archive_expsym_cmds | \
9781 module_cmds | \
9782 module_expsym_cmds | \
9783 old_archive_from_expsyms_cmds | \
9784 export_symbols_cmds | \
9785 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9786 postinstall_cmds | postuninstall_cmds | \
9787 old_postinstall_cmds | old_postuninstall_cmds | \
9788 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9789 # Double-quote double-evaled strings.
9790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9793 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9795 esac
9796 done
9798 case $lt_echo in
9799 *'\$0 --fallback-echo"')
9800 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9802 esac
9804 cfgfile="${ofile}T"
9805 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9806 $rm -f "$cfgfile"
9807 { echo "$as_me:$LINENO: creating $ofile" >&5
9808 echo "$as_me: creating $ofile" >&6;}
9810 cat <<__EOF__ >> "$cfgfile"
9811 #! $SHELL
9813 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9814 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9815 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9817 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9818 # Free Software Foundation, Inc.
9820 # This file is part of GNU Libtool:
9821 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9823 # This program is free software; you can redistribute it and/or modify
9824 # it under the terms of the GNU General Public License as published by
9825 # the Free Software Foundation; either version 2 of the License, or
9826 # (at your option) any later version.
9828 # This program is distributed in the hope that it will be useful, but
9829 # WITHOUT ANY WARRANTY; without even the implied warranty of
9830 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9831 # General Public License for more details.
9833 # You should have received a copy of the GNU General Public License
9834 # along with this program; if not, write to the Free Software
9835 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9837 # As a special exception to the GNU General Public License, if you
9838 # distribute this file as part of a program that contains a
9839 # configuration script generated by Autoconf, you may include it under
9840 # the same distribution terms that you use for the rest of that program.
9842 # A sed program that does not truncate output.
9843 SED=$lt_SED
9845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9846 Xsed="$SED -e s/^X//"
9848 # The HP-UX ksh and POSIX shell print the target directory to stdout
9849 # if CDPATH is set.
9850 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9852 # The names of the tagged configurations supported by this script.
9853 available_tags=
9855 # ### BEGIN LIBTOOL CONFIG
9857 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9859 # Shell to use when invoking shell scripts.
9860 SHELL=$lt_SHELL
9862 # Whether or not to build shared libraries.
9863 build_libtool_libs=$enable_shared
9865 # Whether or not to build static libraries.
9866 build_old_libs=$enable_static
9868 # Whether or not to add -lc for building shared libraries.
9869 build_libtool_need_lc=$archive_cmds_need_lc
9871 # Whether or not to disallow shared libs when runtime libs are static
9872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9874 # Whether or not to optimize for fast installation.
9875 fast_install=$enable_fast_install
9877 # The host system.
9878 host_alias=$host_alias
9879 host=$host
9881 # An echo program that does not interpret backslashes.
9882 echo=$lt_echo
9884 # The archiver.
9885 AR=$lt_AR
9886 AR_FLAGS=$lt_AR_FLAGS
9888 # A C compiler.
9889 LTCC=$lt_LTCC
9891 # A language-specific compiler.
9892 CC=$lt_compiler
9894 # Is the compiler the GNU C compiler?
9895 with_gcc=$GCC
9897 # An ERE matcher.
9898 EGREP=$lt_EGREP
9900 # The linker used to build libraries.
9901 LD=$lt_LD
9903 # Whether we need hard or soft links.
9904 LN_S=$lt_LN_S
9906 # A BSD-compatible nm program.
9907 NM=$lt_NM
9909 # A symbol stripping program
9910 STRIP="$STRIP"
9912 # Used to examine libraries when file_magic_cmd begins "file"
9913 MAGIC_CMD=$MAGIC_CMD
9915 # Used on cygwin: DLL creation program.
9916 DLLTOOL="$DLLTOOL"
9918 # Used on cygwin: object dumper.
9919 OBJDUMP="$OBJDUMP"
9921 # Used on cygwin: assembler.
9922 AS="$AS"
9924 # The name of the directory that contains temporary libtool files.
9925 objdir=$objdir
9927 # How to create reloadable object files.
9928 reload_flag=$lt_reload_flag
9929 reload_cmds=$lt_reload_cmds
9931 # How to pass a linker flag through the compiler.
9932 wl=$lt_lt_prog_compiler_wl
9934 # Object file suffix (normally "o").
9935 objext="$ac_objext"
9937 # Old archive suffix (normally "a").
9938 libext="$libext"
9940 # Shared library suffix (normally ".so").
9941 shrext='$shrext'
9943 # Executable file suffix (normally "").
9944 exeext="$exeext"
9946 # Additional compiler flags for building library objects.
9947 pic_flag=$lt_lt_prog_compiler_pic
9948 pic_mode=$pic_mode
9950 # What is the maximum length of a command?
9951 max_cmd_len=$lt_cv_sys_max_cmd_len
9953 # Does compiler simultaneously support -c and -o options?
9954 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9956 # Must we lock files when doing compilation ?
9957 need_locks=$lt_need_locks
9959 # Do we need the lib prefix for modules?
9960 need_lib_prefix=$need_lib_prefix
9962 # Do we need a version for libraries?
9963 need_version=$need_version
9965 # Whether dlopen is supported.
9966 dlopen_support=$enable_dlopen
9968 # Whether dlopen of programs is supported.
9969 dlopen_self=$enable_dlopen_self
9971 # Whether dlopen of statically linked programs is supported.
9972 dlopen_self_static=$enable_dlopen_self_static
9974 # Compiler flag to prevent dynamic linking.
9975 link_static_flag=$lt_lt_prog_compiler_static
9977 # Compiler flag to turn off builtin functions.
9978 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9980 # Compiler flag to allow reflexive dlopens.
9981 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9983 # Compiler flag to generate shared objects directly from archives.
9984 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9986 # Compiler flag to generate thread-safe objects.
9987 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9989 # Library versioning type.
9990 version_type=$version_type
9992 # Format of library name prefix.
9993 libname_spec=$lt_libname_spec
9995 # List of archive names. First name is the real one, the rest are links.
9996 # The last name is the one that the linker finds with -lNAME.
9997 library_names_spec=$lt_library_names_spec
9999 # The coded name of the library, if different from the real name.
10000 soname_spec=$lt_soname_spec
10002 # Commands used to build and install an old-style archive.
10003 RANLIB=$lt_RANLIB
10004 old_archive_cmds=$lt_old_archive_cmds
10005 old_postinstall_cmds=$lt_old_postinstall_cmds
10006 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10008 # Create an old-style archive from a shared archive.
10009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10011 # Create a temporary old-style archive to link instead of a shared archive.
10012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10014 # Commands used to build and install a shared archive.
10015 archive_cmds=$lt_archive_cmds
10016 archive_expsym_cmds=$lt_archive_expsym_cmds
10017 postinstall_cmds=$lt_postinstall_cmds
10018 postuninstall_cmds=$lt_postuninstall_cmds
10020 # Commands used to build a loadable module (assumed same as above if empty)
10021 module_cmds=$lt_module_cmds
10022 module_expsym_cmds=$lt_module_expsym_cmds
10024 # Commands to strip libraries.
10025 old_striplib=$lt_old_striplib
10026 striplib=$lt_striplib
10028 # Dependencies to place before the objects being linked to create a
10029 # shared library.
10030 predep_objects=$lt_predep_objects
10032 # Dependencies to place after the objects being linked to create a
10033 # shared library.
10034 postdep_objects=$lt_postdep_objects
10036 # Dependencies to place before the objects being linked to create a
10037 # shared library.
10038 predeps=$lt_predeps
10040 # Dependencies to place after the objects being linked to create a
10041 # shared library.
10042 postdeps=$lt_postdeps
10044 # The library search path used internally by the compiler when linking
10045 # a shared library.
10046 compiler_lib_search_path=$lt_compiler_lib_search_path
10048 # Method to check whether dependent libraries are shared objects.
10049 deplibs_check_method=$lt_deplibs_check_method
10051 # Command to use when deplibs_check_method == file_magic.
10052 file_magic_cmd=$lt_file_magic_cmd
10054 # Flag that allows shared libraries with undefined symbols to be built.
10055 allow_undefined_flag=$lt_allow_undefined_flag
10057 # Flag that forces no undefined symbols.
10058 no_undefined_flag=$lt_no_undefined_flag
10060 # Commands used to finish a libtool library installation in a directory.
10061 finish_cmds=$lt_finish_cmds
10063 # Same as above, but a single script fragment to be evaled but not shown.
10064 finish_eval=$lt_finish_eval
10066 # Take the output of nm and produce a listing of raw symbols and C names.
10067 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10069 # Transform the output of nm in a proper C declaration
10070 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10072 # Transform the output of nm in a C name address pair
10073 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10075 # This is the shared library runtime path variable.
10076 runpath_var=$runpath_var
10078 # This is the shared library path variable.
10079 shlibpath_var=$shlibpath_var
10081 # Is shlibpath searched before the hard-coded library search path?
10082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10084 # How to hardcode a shared library path into an executable.
10085 hardcode_action=$hardcode_action
10087 # Whether we should hardcode library paths into libraries.
10088 hardcode_into_libs=$hardcode_into_libs
10090 # Flag to hardcode \$libdir into a binary during linking.
10091 # This must work even if \$libdir does not exist.
10092 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10094 # If ld is used when linking, flag to hardcode \$libdir into
10095 # a binary during linking. This must work even if \$libdir does
10096 # not exist.
10097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10099 # Whether we need a single -rpath flag with a separated argument.
10100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10102 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10103 # resulting binary.
10104 hardcode_direct=$hardcode_direct
10106 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10107 # resulting binary.
10108 hardcode_minus_L=$hardcode_minus_L
10110 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10111 # the resulting binary.
10112 hardcode_shlibpath_var=$hardcode_shlibpath_var
10114 # Set to yes if building a shared library automatically hardcodes DIR into the library
10115 # and all subsequent libraries and executables linked against it.
10116 hardcode_automatic=$hardcode_automatic
10118 # Variables whose values should be saved in libtool wrapper scripts and
10119 # restored at relink time.
10120 variables_saved_for_relink="$variables_saved_for_relink"
10122 # Whether libtool must link a program against all its dependency libraries.
10123 link_all_deplibs=$link_all_deplibs
10125 # Compile-time system search path for libraries
10126 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10128 # Run-time system search path for libraries
10129 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10131 # Fix the shell variable \$srcfile for the compiler.
10132 fix_srcfile_path="$fix_srcfile_path"
10134 # Set to yes if exported symbols are required.
10135 always_export_symbols=$always_export_symbols
10137 # The commands to list exported symbols.
10138 export_symbols_cmds=$lt_export_symbols_cmds
10140 # The commands to extract the exported symbol list from a shared archive.
10141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10143 # Symbols that should not be listed in the preloaded symbols.
10144 exclude_expsyms=$lt_exclude_expsyms
10146 # Symbols that must always be exported.
10147 include_expsyms=$lt_include_expsyms
10149 # ### END LIBTOOL CONFIG
10151 __EOF__
10154 case $host_os in
10155 aix3*)
10156 cat <<\EOF >> "$cfgfile"
10158 # AIX sometimes has problems with the GCC collect2 program. For some
10159 # reason, if we set the COLLECT_NAMES environment variable, the problems
10160 # vanish in a puff of smoke.
10161 if test "X${COLLECT_NAMES+set}" != Xset; then
10162 COLLECT_NAMES=
10163 export COLLECT_NAMES
10167 esac
10169 # We use sed instead of cat because bash on DJGPP gets confused if
10170 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10171 # text mode, it properly converts lines to CR/LF. This bash problem
10172 # is reportedly fixed, but why not run on old versions too?
10173 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10175 mv -f "$cfgfile" "$ofile" || \
10176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10177 chmod +x "$ofile"
10179 else
10180 # If there is no Makefile yet, we rely on a make rule to execute
10181 # `config.status --recheck' to rerun these tests and create the
10182 # libtool script then.
10183 test -f Makefile && make "$ltmain"
10187 ac_ext=c
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10193 CC="$lt_save_CC"
10196 # Check whether --with-tags was given.
10197 if test "${with_tags+set}" = set; then
10198 withval=$with_tags; tagnames="$withval"
10202 if test -f "$ltmain" && test -n "$tagnames"; then
10203 if test ! -f "${ofile}"; then
10204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10205 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10208 if test -z "$LTCC"; then
10209 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10210 if test -z "$LTCC"; then
10211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10212 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10213 else
10214 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10215 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10219 # Extract list of available tagged configurations in $ofile.
10220 # Note that this assumes the entire list is on one line.
10221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10224 for tagname in $tagnames; do
10225 IFS="$lt_save_ifs"
10226 # Check whether tagname contains only valid characters
10227 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10228 "") ;;
10229 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10231 { (exit 1); exit 1; }; }
10233 esac
10235 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10236 then
10237 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10239 { (exit 1); exit 1; }; }
10242 # Update the list of available tags.
10243 if test -n "$tagname"; then
10244 echo appending configuration tag \"$tagname\" to $ofile
10246 case $tagname in
10247 CXX)
10248 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10249 ac_ext=cpp
10250 ac_cpp='$CXXCPP $CPPFLAGS'
10251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10258 archive_cmds_need_lc_CXX=no
10259 allow_undefined_flag_CXX=
10260 always_export_symbols_CXX=no
10261 archive_expsym_cmds_CXX=
10262 export_dynamic_flag_spec_CXX=
10263 hardcode_direct_CXX=no
10264 hardcode_libdir_flag_spec_CXX=
10265 hardcode_libdir_flag_spec_ld_CXX=
10266 hardcode_libdir_separator_CXX=
10267 hardcode_minus_L_CXX=no
10268 hardcode_automatic_CXX=no
10269 module_cmds_CXX=
10270 module_expsym_cmds_CXX=
10271 link_all_deplibs_CXX=unknown
10272 old_archive_cmds_CXX=$old_archive_cmds
10273 no_undefined_flag_CXX=
10274 whole_archive_flag_spec_CXX=
10275 enable_shared_with_static_runtimes_CXX=no
10277 # Dependencies to place before and after the object being linked:
10278 predep_objects_CXX=
10279 postdep_objects_CXX=
10280 predeps_CXX=
10281 postdeps_CXX=
10282 compiler_lib_search_path_CXX=
10284 # Source file extension for C++ test sources.
10285 ac_ext=cc
10287 # Object file extension for compiled C++ test sources.
10288 objext=o
10289 objext_CXX=$objext
10291 # Code to be used in simple compile tests
10292 lt_simple_compile_test_code="int some_variable = 0;\n"
10294 # Code to be used in simple link tests
10295 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10299 # If no C compiler was specified, use CC.
10300 LTCC=${LTCC-"$CC"}
10302 # Allow CC to be a program name with arguments.
10303 compiler=$CC
10306 # Allow CC to be a program name with arguments.
10307 lt_save_CC=$CC
10308 lt_save_LD=$LD
10309 lt_save_GCC=$GCC
10310 GCC=$GXX
10311 lt_save_with_gnu_ld=$with_gnu_ld
10312 lt_save_path_LD=$lt_cv_path_LD
10313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10315 else
10316 unset lt_cv_prog_gnu_ld
10318 if test -n "${lt_cv_path_LDCXX+set}"; then
10319 lt_cv_path_LD=$lt_cv_path_LDCXX
10320 else
10321 unset lt_cv_path_LD
10323 test -z "${LDCXX+set}" || LD=$LDCXX
10324 CC=${CXX-"c++"}
10325 compiler=$CC
10326 compiler_CXX=$CC
10327 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10329 # We don't want -fno-exception wen compiling C++ code, so set the
10330 # no_builtin_flag separately
10331 if test "$GXX" = yes; then
10332 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10333 else
10334 lt_prog_compiler_no_builtin_flag_CXX=
10337 if test "$GXX" = yes; then
10338 # Set up default GNU C++ configuration
10341 # Check whether --with-gnu-ld was given.
10342 if test "${with_gnu_ld+set}" = set; then
10343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10344 else
10345 with_gnu_ld=no
10348 ac_prog=ld
10349 if test "$GCC" = yes; then
10350 # Check if gcc -print-prog-name=ld gives a path.
10351 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10353 case $host in
10354 *-*-mingw*)
10355 # gcc leaves a trailing carriage return which upsets mingw
10356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10359 esac
10360 case $ac_prog in
10361 # Accept absolute paths.
10362 [\\/]* | ?:[\\/]*)
10363 re_direlt='/[^/][^/]*/\.\./'
10364 # Canonicalize the pathname of ld
10365 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10366 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10367 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10368 done
10369 test -z "$LD" && LD="$ac_prog"
10372 # If it fails, then pretend we aren't using GCC.
10373 ac_prog=ld
10376 # If it is relative, then search for the first ld in PATH.
10377 with_gnu_ld=unknown
10379 esac
10380 elif test "$with_gnu_ld" = yes; then
10381 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10383 else
10384 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10387 if test "${lt_cv_path_LD+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 if test -z "$LD"; then
10391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10392 for ac_dir in $PATH; do
10393 IFS="$lt_save_ifs"
10394 test -z "$ac_dir" && ac_dir=.
10395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10396 lt_cv_path_LD="$ac_dir/$ac_prog"
10397 # Check to see if the program is GNU ld. I'd rather use --version,
10398 # but apparently some GNU ld's only accept -v.
10399 # Break only if it was the GNU/non-GNU ld that we prefer.
10400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10401 *GNU* | *'with BFD'*)
10402 test "$with_gnu_ld" != no && break
10405 test "$with_gnu_ld" != yes && break
10407 esac
10409 done
10410 IFS="$lt_save_ifs"
10411 else
10412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10416 LD="$lt_cv_path_LD"
10417 if test -n "$LD"; then
10418 { echo "$as_me:$LINENO: result: $LD" >&5
10419 echo "${ECHO_T}$LD" >&6; }
10420 else
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10426 { (exit 1); exit 1; }; }
10427 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10433 case `$LD -v 2>&1 </dev/null` in
10434 *GNU* | *'with BFD'*)
10435 lt_cv_prog_gnu_ld=yes
10438 lt_cv_prog_gnu_ld=no
10440 esac
10442 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10444 with_gnu_ld=$lt_cv_prog_gnu_ld
10448 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10449 # archiving commands below assume that GNU ld is being used.
10450 if test "$with_gnu_ld" = yes; then
10451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452 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'
10454 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10457 # If archive_cmds runs LD, not CC, wlarc should be empty
10458 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10459 # investigate it a little bit more. (MM)
10460 wlarc='${wl}'
10462 # ancient GNU ld didn't support --whole-archive et. al.
10463 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10464 grep 'no-whole-archive' > /dev/null; then
10465 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10466 else
10467 whole_archive_flag_spec_CXX=
10469 else
10470 with_gnu_ld=no
10471 wlarc=
10473 # A generic and very simple default shared library creation
10474 # command for GNU C++ for the case where it uses the native
10475 # linker, instead of GNU ld. If possible, this setting should
10476 # overridden to take advantage of the native linker features on
10477 # the platform it is being used on.
10478 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10481 # Commands to make compiler produce verbose output that lists
10482 # what "hidden" libraries, object files and flags are used when
10483 # linking a shared library.
10484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10486 else
10487 GXX=no
10488 with_gnu_ld=no
10489 wlarc=
10492 # PORTME: fill in a description of your system's C++ link characteristics
10493 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10495 ld_shlibs_CXX=yes
10496 case $host_os in
10497 aix3*)
10498 # FIXME: insert proper C++ library support
10499 ld_shlibs_CXX=no
10501 aix4* | aix5*)
10502 if test "$host_cpu" = ia64; then
10503 # On IA64, the linker does run time linking by default, so we don't
10504 # have to do anything special.
10505 aix_use_runtimelinking=no
10506 exp_sym_flag='-Bexport'
10507 no_entry_flag=""
10508 else
10509 aix_use_runtimelinking=no
10511 # Test if we are trying to use run time linking or normal
10512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10513 # need to do runtime linking.
10514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10515 for ld_flag in $LDFLAGS; do
10516 case $ld_flag in
10517 *-brtl*)
10518 aix_use_runtimelinking=yes
10519 break
10521 esac
10522 done
10523 esac
10525 exp_sym_flag='-bexport'
10526 no_entry_flag='-bnoentry'
10529 # When large executables or shared objects are built, AIX ld can
10530 # have problems creating the table of contents. If linking a library
10531 # or program results in "error TOC overflow" add -mminimal-toc to
10532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10535 archive_cmds_CXX=''
10536 hardcode_direct_CXX=yes
10537 hardcode_libdir_separator_CXX=':'
10538 link_all_deplibs_CXX=yes
10540 if test "$GXX" = yes; then
10541 case $host_os in aix4.012|aix4.012.*)
10542 # We only want to do this on AIX 4.2 and lower, the check
10543 # below for broken collect2 doesn't work under 4.3+
10544 collect2name=`${CC} -print-prog-name=collect2`
10545 if test -f "$collect2name" && \
10546 strings "$collect2name" | grep resolve_lib_name >/dev/null
10547 then
10548 # We have reworked collect2
10549 hardcode_direct_CXX=yes
10550 else
10551 # We have old collect2
10552 hardcode_direct_CXX=unsupported
10553 # It fails to find uninstalled libraries when the uninstalled
10554 # path is not listed in the libpath. Setting hardcode_minus_L
10555 # to unsupported forces relinking
10556 hardcode_minus_L_CXX=yes
10557 hardcode_libdir_flag_spec_CXX='-L$libdir'
10558 hardcode_libdir_separator_CXX=
10560 esac
10561 shared_flag='-shared'
10562 else
10563 # not using gcc
10564 if test "$host_cpu" = ia64; then
10565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10566 # chokes on -Wl,-G. The following line is correct:
10567 shared_flag='-G'
10568 else
10569 if test "$aix_use_runtimelinking" = yes; then
10570 shared_flag='${wl}-G'
10571 else
10572 shared_flag='${wl}-bM:SRE'
10577 # It seems that -bexpall does not export symbols beginning with
10578 # underscore (_), so it is better to generate a list of symbols to export.
10579 always_export_symbols_CXX=yes
10580 if test "$aix_use_runtimelinking" = yes; then
10581 # Warning - without using the other runtime loading flags (-brtl),
10582 # -berok will link without error, but may produce a broken library.
10583 allow_undefined_flag_CXX='-berok'
10584 # Determine the default libpath from the value encoded in an empty executable.
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10593 main ()
10597 return 0;
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (ac_try="$ac_link"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
10614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest$ac_exeext'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10635 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10637 # Check for a 64-bit object if we didn't find anything.
10638 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; }
10639 }'`; fi
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10653 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"
10654 else
10655 if test "$host_cpu" = ia64; then
10656 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10657 allow_undefined_flag_CXX="-z nodefs"
10658 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"
10659 else
10660 # Determine the default libpath from the value encoded in an empty executable.
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h. */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10669 main ()
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (ac_try="$ac_link"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_link") 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694 esac
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_try") 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_try") 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; }; then
10711 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10713 # Check for a 64-bit object if we didn't find anything.
10714 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; }
10715 }'`; fi
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10728 # Warning - without using the other run time loading flags,
10729 # -berok will link without error, but may produce a broken library.
10730 no_undefined_flag_CXX=' ${wl}-bernotok'
10731 allow_undefined_flag_CXX=' ${wl}-berok'
10732 # -bexpall does not export symbols beginning with underscore (_)
10733 always_export_symbols_CXX=yes
10734 # Exported symbols can be pulled into shared objects from archives
10735 whole_archive_flag_spec_CXX=' '
10736 archive_cmds_need_lc_CXX=yes
10737 # This is similar to how AIX traditionally builds it's shared libraries.
10738 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'
10742 chorus*)
10743 case $cc_basename in
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10748 esac
10751 cygwin* | mingw* | pw32*)
10752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10753 # as there is no search path for DLLs.
10754 hardcode_libdir_flag_spec_CXX='-L$libdir'
10755 allow_undefined_flag_CXX=unsupported
10756 always_export_symbols_CXX=no
10757 enable_shared_with_static_runtimes_CXX=yes
10759 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10760 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'
10761 # If the export-symbols file already is a .def file (1st line
10762 # is EXPORTS), use it as is; otherwise, prepend...
10763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10764 cp $export_symbols $output_objdir/$soname.def;
10765 else
10766 echo EXPORTS > $output_objdir/$soname.def;
10767 cat $export_symbols >> $output_objdir/$soname.def;
10769 $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'
10770 else
10771 ld_shlibs_CXX=no
10775 darwin* | rhapsody*)
10776 if test "$GXX" = yes; then
10777 archive_cmds_need_lc_CXX=no
10778 case "$host_os" in
10779 rhapsody* | darwin1.[012])
10780 allow_undefined_flag_CXX='-undefined suppress'
10782 *) # Darwin 1.3 on
10783 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10784 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10785 else
10786 case ${MACOSX_DEPLOYMENT_TARGET} in
10787 10.[012])
10788 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10790 10.*)
10791 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10793 esac
10796 esac
10797 lt_int_apple_cc_single_mod=no
10798 output_verbose_link_cmd='echo'
10799 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10800 lt_int_apple_cc_single_mod=yes
10802 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10803 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10804 else
10805 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'
10807 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10809 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10810 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10811 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}'
10812 else
10813 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}'
10815 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}'
10816 hardcode_direct_CXX=no
10817 hardcode_automatic_CXX=yes
10818 hardcode_shlibpath_var_CXX=unsupported
10819 whole_archive_flag_spec_CXX='-all_load $convenience'
10820 link_all_deplibs_CXX=yes
10821 else
10822 ld_shlibs_CXX=no
10826 dgux*)
10827 case $cc_basename in
10828 ec++)
10829 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no
10832 ghcx)
10833 # Green Hills C++ Compiler
10834 # FIXME: insert proper C++ library support
10835 ld_shlibs_CXX=no
10838 # FIXME: insert proper C++ library support
10839 ld_shlibs_CXX=no
10841 esac
10843 freebsd12*)
10844 # C++ shared libraries reported to be fairly broken before switch to ELF
10845 ld_shlibs_CXX=no
10847 freebsd-elf*)
10848 archive_cmds_need_lc_CXX=no
10850 freebsd* | kfreebsd*-gnu)
10851 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10852 # conventions
10853 ld_shlibs_CXX=yes
10855 gnu*)
10857 hpux9*)
10858 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10859 hardcode_libdir_separator_CXX=:
10860 export_dynamic_flag_spec_CXX='${wl}-E'
10861 hardcode_direct_CXX=yes
10862 hardcode_minus_L_CXX=yes # Not in the search PATH,
10863 # but as the default
10864 # location of the library.
10866 case $cc_basename in
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10871 aCC)
10872 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'
10873 # Commands to make compiler produce verbose output that lists
10874 # what "hidden" libraries, object files and flags are used when
10875 # linking a shared library.
10877 # There doesn't appear to be a way to prevent this compiler from
10878 # explicitly linking system object files so we need to strip them
10879 # from the output so that they don't get included in the library
10880 # dependencies.
10881 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'
10884 if test "$GXX" = yes; then
10885 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'
10886 else
10887 # FIXME: insert proper C++ library support
10888 ld_shlibs_CXX=no
10891 esac
10893 hpux10*|hpux11*)
10894 if test $with_gnu_ld = no; then
10895 case "$host_cpu" in
10896 hppa*64*)
10897 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10898 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10899 hardcode_libdir_separator_CXX=:
10901 ia64*)
10902 hardcode_libdir_flag_spec_CXX='-L$libdir'
10905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10906 hardcode_libdir_separator_CXX=:
10907 export_dynamic_flag_spec_CXX='${wl}-E'
10909 esac
10911 case "$host_cpu" in
10912 hppa*64*)
10913 hardcode_direct_CXX=no
10914 hardcode_shlibpath_var_CXX=no
10916 ia64*)
10917 hardcode_direct_CXX=no
10918 hardcode_shlibpath_var_CXX=no
10919 hardcode_minus_L_CXX=yes # Not in the search PATH,
10920 # but as the default
10921 # location of the library.
10924 hardcode_direct_CXX=yes
10925 hardcode_minus_L_CXX=yes # Not in the search PATH,
10926 # but as the default
10927 # location of the library.
10929 esac
10931 case $cc_basename in
10933 # FIXME: insert proper C++ library support
10934 ld_shlibs_CXX=no
10936 aCC)
10937 case "$host_cpu" in
10938 hppa*64*|ia64*)
10939 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10944 esac
10945 # Commands to make compiler produce verbose output that lists
10946 # what "hidden" libraries, object files and flags are used when
10947 # linking a shared library.
10949 # There doesn't appear to be a way to prevent this compiler from
10950 # explicitly linking system object files so we need to strip them
10951 # from the output so that they don't get included in the library
10952 # dependencies.
10953 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'
10956 if test "$GXX" = yes; then
10957 if test $with_gnu_ld = no; then
10958 case "$host_cpu" in
10959 ia64*|hppa*64*)
10960 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10963 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'
10965 esac
10967 else
10968 # FIXME: insert proper C++ library support
10969 ld_shlibs_CXX=no
10972 esac
10974 irix5* | irix6*)
10975 case $cc_basename in
10977 # SGI C++
10978 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'
10980 # Archives containing C++ object files must be created using
10981 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10982 # necessary to make sure instantiated templates are included
10983 # in the archive.
10984 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10987 if test "$GXX" = yes; then
10988 if test "$with_gnu_ld" = no; then
10989 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'
10990 else
10991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10994 link_all_deplibs_CXX=yes
10996 esac
10997 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10998 hardcode_libdir_separator_CXX=:
11000 linux*)
11001 case $cc_basename in
11002 KCC)
11003 # Kuck and Associates, Inc. (KAI) C++ Compiler
11005 # KCC will only create a shared library if the output file
11006 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11007 # to its proper name (with version) after linking.
11008 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'
11009 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'
11010 # Commands to make compiler produce verbose output that lists
11011 # what "hidden" libraries, object files and flags are used when
11012 # linking a shared library.
11014 # There doesn't appear to be a way to prevent this compiler from
11015 # explicitly linking system object files so we need to strip them
11016 # from the output so that they don't get included in the library
11017 # dependencies.
11018 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'
11020 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11023 # Archives containing C++ object files must be created using
11024 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11025 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11027 icpc)
11028 # Intel C++
11029 with_gnu_ld=yes
11030 archive_cmds_need_lc_CXX=no
11031 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11032 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'
11033 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11034 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11035 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11037 cxx)
11038 # Compaq C++
11039 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040 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'
11042 runpath_var=LD_RUN_PATH
11043 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11044 hardcode_libdir_separator_CXX=:
11046 # Commands to make compiler produce verbose output that lists
11047 # what "hidden" libraries, object files and flags are used when
11048 # linking a shared library.
11050 # There doesn't appear to be a way to prevent this compiler from
11051 # explicitly linking system object files so we need to strip them
11052 # from the output so that they don't get included in the library
11053 # dependencies.
11054 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'
11056 esac
11058 lynxos*)
11059 # FIXME: insert proper C++ library support
11060 ld_shlibs_CXX=no
11062 m88k*)
11063 # FIXME: insert proper C++ library support
11064 ld_shlibs_CXX=no
11066 mvs*)
11067 case $cc_basename in
11068 cxx)
11069 # FIXME: insert proper C++ library support
11070 ld_shlibs_CXX=no
11073 # FIXME: insert proper C++ library support
11074 ld_shlibs_CXX=no
11076 esac
11078 netbsd*)
11079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11081 wlarc=
11082 hardcode_libdir_flag_spec_CXX='-R$libdir'
11083 hardcode_direct_CXX=yes
11084 hardcode_shlibpath_var_CXX=no
11086 # Workaround some broken pre-1.5 toolchains
11087 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11089 osf3*)
11090 case $cc_basename in
11091 KCC)
11092 # Kuck and Associates, Inc. (KAI) C++ Compiler
11094 # KCC will only create a shared library if the output file
11095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11096 # to its proper name (with version) after linking.
11097 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'
11099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11100 hardcode_libdir_separator_CXX=:
11102 # Archives containing C++ object files must be created using
11103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11107 RCC)
11108 # Rational C++ 2.4.1
11109 # FIXME: insert proper C++ library support
11110 ld_shlibs_CXX=no
11112 cxx)
11113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11114 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'
11116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11117 hardcode_libdir_separator_CXX=:
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11123 # There doesn't appear to be a way to prevent this compiler from
11124 # explicitly linking system object files so we need to strip them
11125 # from the output so that they don't get included in the library
11126 # dependencies.
11127 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'
11130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11132 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'
11134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11135 hardcode_libdir_separator_CXX=:
11137 # Commands to make compiler produce verbose output that lists
11138 # what "hidden" libraries, object files and flags are used when
11139 # linking a shared library.
11140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11142 else
11143 # FIXME: insert proper C++ library support
11144 ld_shlibs_CXX=no
11147 esac
11149 osf4* | osf5*)
11150 case $cc_basename in
11151 KCC)
11152 # Kuck and Associates, Inc. (KAI) C++ Compiler
11154 # KCC will only create a shared library if the output file
11155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11156 # to its proper name (with version) after linking.
11157 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'
11159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11160 hardcode_libdir_separator_CXX=:
11162 # Archives containing C++ object files must be created using
11163 # the KAI C++ compiler.
11164 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11166 RCC)
11167 # Rational C++ 2.4.1
11168 # FIXME: insert proper C++ library support
11169 ld_shlibs_CXX=no
11171 cxx)
11172 allow_undefined_flag_CXX=' -expect_unresolved \*'
11173 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'
11174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11175 echo "-hidden">> $lib.exp~
11176 $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~
11177 $rm $lib.exp'
11179 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11180 hardcode_libdir_separator_CXX=:
11182 # Commands to make compiler produce verbose output that lists
11183 # what "hidden" libraries, object files and flags are used when
11184 # linking a shared library.
11186 # There doesn't appear to be a way to prevent this compiler from
11187 # explicitly linking system object files so we need to strip them
11188 # from the output so that they don't get included in the library
11189 # dependencies.
11190 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'
11193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11195 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'
11197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11198 hardcode_libdir_separator_CXX=:
11200 # Commands to make compiler produce verbose output that lists
11201 # what "hidden" libraries, object files and flags are used when
11202 # linking a shared library.
11203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11205 else
11206 # FIXME: insert proper C++ library support
11207 ld_shlibs_CXX=no
11210 esac
11212 psos*)
11213 # FIXME: insert proper C++ library support
11214 ld_shlibs_CXX=no
11216 sco*)
11217 archive_cmds_need_lc_CXX=no
11218 case $cc_basename in
11220 # FIXME: insert proper C++ library support
11221 ld_shlibs_CXX=no
11224 # FIXME: insert proper C++ library support
11225 ld_shlibs_CXX=no
11227 esac
11229 sunos4*)
11230 case $cc_basename in
11232 # Sun C++ 4.x
11233 # FIXME: insert proper C++ library support
11234 ld_shlibs_CXX=no
11236 lcc)
11237 # Lucid
11238 # FIXME: insert proper C++ library support
11239 ld_shlibs_CXX=no
11242 # FIXME: insert proper C++ library support
11243 ld_shlibs_CXX=no
11245 esac
11247 solaris*)
11248 case $cc_basename in
11250 # Sun C++ 4.2, 5.x and Centerline C++
11251 no_undefined_flag_CXX=' -zdefs'
11252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11254 $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'
11256 hardcode_libdir_flag_spec_CXX='-R$libdir'
11257 hardcode_shlibpath_var_CXX=no
11258 case $host_os in
11259 solaris2.0-5 | solaris2.0-5.*) ;;
11261 # The C++ compiler is used as linker so we must use $wl
11262 # flag to pass the commands to the underlying system
11263 # linker.
11264 # Supported since Solaris 2.6 (maybe 2.5.1?)
11265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11267 esac
11268 link_all_deplibs_CXX=yes
11270 # Commands to make compiler produce verbose output that lists
11271 # what "hidden" libraries, object files and flags are used when
11272 # linking a shared library.
11274 # There doesn't appear to be a way to prevent this compiler from
11275 # explicitly linking system object files so we need to strip them
11276 # from the output so that they don't get included in the library
11277 # dependencies.
11278 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'
11280 # Archives containing C++ object files must be created using
11281 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11282 # necessary to make sure instantiated templates are included
11283 # in the archive.
11284 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11286 gcx)
11287 # Green Hills C++ Compiler
11288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11290 # The C++ compiler must be used to create the archive.
11291 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11294 # GNU C++ compiler with Solaris linker
11295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11296 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11297 if $CC --version | grep -v '^2\.7' > /dev/null; then
11298 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11299 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11302 # Commands to make compiler produce verbose output that lists
11303 # what "hidden" libraries, object files and flags are used when
11304 # linking a shared library.
11305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11306 else
11307 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11308 # platform.
11309 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11311 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11313 # Commands to make compiler produce verbose output that lists
11314 # what "hidden" libraries, object files and flags are used when
11315 # linking a shared library.
11316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11319 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11322 esac
11324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11325 archive_cmds_need_lc_CXX=no
11327 tandem*)
11328 case $cc_basename in
11329 NCC)
11330 # NonStop-UX NCC 3.20
11331 # FIXME: insert proper C++ library support
11332 ld_shlibs_CXX=no
11335 # FIXME: insert proper C++ library support
11336 ld_shlibs_CXX=no
11338 esac
11340 vxworks*)
11341 # FIXME: insert proper C++ library support
11342 ld_shlibs_CXX=no
11345 # FIXME: insert proper C++ library support
11346 ld_shlibs_CXX=no
11348 esac
11349 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11350 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11351 test "$ld_shlibs_CXX" = no && can_build_shared=no
11353 GCC_CXX="$GXX"
11354 LD_CXX="$LD"
11356 ## CAVEAT EMPTOR:
11357 ## There is no encapsulation within the following macros, do not change
11358 ## the running order or otherwise move them around unless you know exactly
11359 ## what you are doing...
11361 cat > conftest.$ac_ext <<EOF
11362 class Foo
11364 public:
11365 Foo (void) { a = 0; }
11366 private:
11367 int a;
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; then
11376 # Parse the compiler output and extract the necessary
11377 # objects, libraries and library flags.
11379 # Sentinel used to keep track of whether or not we are before
11380 # the conftest object file.
11381 pre_test_object_deps_done=no
11383 # The `*' in the case matches for architectures that use `case' in
11384 # $output_verbose_cmd can trigger glob expansion during the loop
11385 # eval without this substitution.
11386 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11388 for p in `eval $output_verbose_link_cmd`; do
11389 case $p in
11391 -L* | -R* | -l*)
11392 # Some compilers place space between "-{L,R}" and the path.
11393 # Remove the space.
11394 if test $p = "-L" \
11395 || test $p = "-R"; then
11396 prev=$p
11397 continue
11398 else
11399 prev=
11402 if test "$pre_test_object_deps_done" = no; then
11403 case $p in
11404 -L* | -R*)
11405 # Internal compiler library paths should come after those
11406 # provided the user. The postdeps already come after the
11407 # user supplied libs so there is no need to process them.
11408 if test -z "$compiler_lib_search_path_CXX"; then
11409 compiler_lib_search_path_CXX="${prev}${p}"
11410 else
11411 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11414 # The "-l" case would never come before the object being
11415 # linked, so don't bother handling this case.
11416 esac
11417 else
11418 if test -z "$postdeps_CXX"; then
11419 postdeps_CXX="${prev}${p}"
11420 else
11421 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11426 *.$objext)
11427 # This assumes that the test object file only shows up
11428 # once in the compiler output.
11429 if test "$p" = "conftest.$objext"; then
11430 pre_test_object_deps_done=yes
11431 continue
11434 if test "$pre_test_object_deps_done" = no; then
11435 if test -z "$predep_objects_CXX"; then
11436 predep_objects_CXX="$p"
11437 else
11438 predep_objects_CXX="$predep_objects_CXX $p"
11440 else
11441 if test -z "$postdep_objects_CXX"; then
11442 postdep_objects_CXX="$p"
11443 else
11444 postdep_objects_CXX="$postdep_objects_CXX $p"
11449 *) ;; # Ignore the rest.
11451 esac
11452 done
11454 # Clean up.
11455 rm -f a.out a.exe
11456 else
11457 echo "libtool.m4: error: problem compiling CXX test program"
11460 $rm -f confest.$objext
11462 case " $postdeps_CXX " in
11463 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11464 esac
11466 lt_prog_compiler_wl_CXX=
11467 lt_prog_compiler_pic_CXX=
11468 lt_prog_compiler_static_CXX=
11470 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11471 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11473 # C++ specific cases for pic, static, wl, etc.
11474 if test "$GXX" = yes; then
11475 lt_prog_compiler_wl_CXX='-Wl,'
11476 lt_prog_compiler_static_CXX='-static'
11478 case $host_os in
11479 aix*)
11480 # All AIX code is PIC.
11481 if test "$host_cpu" = ia64; then
11482 # AIX 5 now supports IA64 processor
11483 lt_prog_compiler_static_CXX='-Bstatic'
11486 amigaos*)
11487 # FIXME: we need at least 68020 code to build shared libraries, but
11488 # adding the `-m68020' flag to GCC prevents building anything better,
11489 # like `-m68040'.
11490 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11492 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11493 # PIC is the default for these OSes.
11495 mingw* | os2* | pw32*)
11496 # This hack is so that the source file can tell whether it is being
11497 # built for inclusion in a dll (and should export symbols for example).
11498 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11500 darwin* | rhapsody*)
11501 # PIC is the default on this platform
11502 # Common symbols not allowed in MH_DYLIB files
11503 lt_prog_compiler_pic_CXX='-fno-common'
11505 *djgpp*)
11506 # DJGPP does not support shared libraries at all
11507 lt_prog_compiler_pic_CXX=
11509 sysv4*MP*)
11510 if test -d /usr/nec; then
11511 lt_prog_compiler_pic_CXX=-Kconform_pic
11514 hpux*)
11515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11516 # not for PA HP-UX.
11517 case "$host_cpu" in
11518 hppa*64*|ia64*)
11521 lt_prog_compiler_pic_CXX='-fPIC'
11523 esac
11526 lt_prog_compiler_pic_CXX='-fPIC'
11528 esac
11529 else
11530 case $host_os in
11531 aix4* | aix5*)
11532 # All AIX code is PIC.
11533 if test "$host_cpu" = ia64; then
11534 # AIX 5 now supports IA64 processor
11535 lt_prog_compiler_static_CXX='-Bstatic'
11536 else
11537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11540 chorus*)
11541 case $cc_basename in
11542 cxch68)
11543 # Green Hills C++ Compiler
11544 # _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"
11546 esac
11548 dgux*)
11549 case $cc_basename in
11550 ec++)
11551 lt_prog_compiler_pic_CXX='-KPIC'
11553 ghcx)
11554 # Green Hills C++ Compiler
11555 lt_prog_compiler_pic_CXX='-pic'
11559 esac
11561 freebsd* | kfreebsd*-gnu)
11562 # FreeBSD uses GNU C++
11564 hpux9* | hpux10* | hpux11*)
11565 case $cc_basename in
11567 lt_prog_compiler_wl_CXX='-Wl,'
11568 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11569 if test "$host_cpu" != ia64; then
11570 lt_prog_compiler_pic_CXX='+Z'
11573 aCC)
11574 lt_prog_compiler_wl_CXX='-Wl,'
11575 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11576 case "$host_cpu" in
11577 hppa*64*|ia64*)
11578 # +Z the default
11581 lt_prog_compiler_pic_CXX='+Z'
11583 esac
11587 esac
11589 irix5* | irix6* | nonstopux*)
11590 case $cc_basename in
11592 lt_prog_compiler_wl_CXX='-Wl,'
11593 lt_prog_compiler_static_CXX='-non_shared'
11594 # CC pic flag -KPIC is the default.
11598 esac
11600 linux*)
11601 case $cc_basename in
11602 KCC)
11603 # KAI C++ Compiler
11604 lt_prog_compiler_wl_CXX='--backend -Wl,'
11605 lt_prog_compiler_pic_CXX='-fPIC'
11607 icpc)
11608 # Intel C++
11609 lt_prog_compiler_wl_CXX='-Wl,'
11610 lt_prog_compiler_pic_CXX='-KPIC'
11611 lt_prog_compiler_static_CXX='-static'
11613 cxx)
11614 # Compaq C++
11615 # Make sure the PIC flag is empty. It appears that all Alpha
11616 # Linux and Compaq Tru64 Unix objects are PIC.
11617 lt_prog_compiler_pic_CXX=
11618 lt_prog_compiler_static_CXX='-non_shared'
11622 esac
11624 lynxos*)
11626 m88k*)
11628 mvs*)
11629 case $cc_basename in
11630 cxx)
11631 lt_prog_compiler_pic_CXX='-W c,exportall'
11635 esac
11637 netbsd*)
11639 osf3* | osf4* | osf5*)
11640 case $cc_basename in
11641 KCC)
11642 lt_prog_compiler_wl_CXX='--backend -Wl,'
11644 RCC)
11645 # Rational C++ 2.4.1
11646 lt_prog_compiler_pic_CXX='-pic'
11648 cxx)
11649 # Digital/Compaq C++
11650 lt_prog_compiler_wl_CXX='-Wl,'
11651 # Make sure the PIC flag is empty. It appears that all Alpha
11652 # Linux and Compaq Tru64 Unix objects are PIC.
11653 lt_prog_compiler_pic_CXX=
11654 lt_prog_compiler_static_CXX='-non_shared'
11658 esac
11660 psos*)
11662 sco*)
11663 case $cc_basename in
11665 lt_prog_compiler_pic_CXX='-fPIC'
11669 esac
11671 solaris*)
11672 case $cc_basename in
11674 # Sun C++ 4.2, 5.x and Centerline C++
11675 lt_prog_compiler_pic_CXX='-KPIC'
11676 lt_prog_compiler_static_CXX='-Bstatic'
11677 lt_prog_compiler_wl_CXX='-Qoption ld '
11679 gcx)
11680 # Green Hills C++ Compiler
11681 lt_prog_compiler_pic_CXX='-PIC'
11685 esac
11687 sunos4*)
11688 case $cc_basename in
11690 # Sun C++ 4.x
11691 lt_prog_compiler_pic_CXX='-pic'
11692 lt_prog_compiler_static_CXX='-Bstatic'
11694 lcc)
11695 # Lucid
11696 lt_prog_compiler_pic_CXX='-pic'
11700 esac
11702 tandem*)
11703 case $cc_basename in
11704 NCC)
11705 # NonStop-UX NCC 3.20
11706 lt_prog_compiler_pic_CXX='-KPIC'
11710 esac
11712 unixware*)
11714 vxworks*)
11717 lt_prog_compiler_can_build_shared_CXX=no
11719 esac
11722 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11723 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11726 # Check to make sure the PIC flag actually works.
11728 if test -n "$lt_prog_compiler_pic_CXX"; then
11730 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11731 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11732 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 lt_prog_compiler_pic_works_CXX=no
11736 ac_outfile=conftest.$ac_objext
11737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11738 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11739 # Insert the option either (1) after the last *FLAGS variable, or
11740 # (2) before a word containing "conftest.", or (3) at the end.
11741 # Note that $ac_compile itself does not contain backslashes and begins
11742 # with a dollar sign (not a hyphen), so the echo should work correctly.
11743 # The option is referenced via a variable to avoid confusing sed.
11744 lt_compile=`echo "$ac_compile" | $SED \
11745 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11747 -e 's:$: $lt_compiler_flag:'`
11748 (eval echo "\"\$as_me:11748: $lt_compile\"" >&5)
11749 (eval "$lt_compile" 2>conftest.err)
11750 ac_status=$?
11751 cat conftest.err >&5
11752 echo "$as_me:11752: \$? = $ac_status" >&5
11753 if (exit $ac_status) && test -s "$ac_outfile"; then
11754 # The compiler can only warn and ignore the option if not recognized
11755 # So say no if there are warnings
11756 if test ! -s conftest.err; then
11757 lt_prog_compiler_pic_works_CXX=yes
11760 $rm conftest*
11763 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11764 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11766 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11767 case $lt_prog_compiler_pic_CXX in
11768 "" | " "*) ;;
11769 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11770 esac
11771 else
11772 lt_prog_compiler_pic_CXX=
11773 lt_prog_compiler_can_build_shared_CXX=no
11777 case "$host_os" in
11778 # For platforms which do not support PIC, -DPIC is meaningless:
11779 *djgpp*)
11780 lt_prog_compiler_pic_CXX=
11783 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11785 esac
11787 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11788 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11789 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792 lt_cv_prog_compiler_c_o_CXX=no
11793 $rm -r conftest 2>/dev/null
11794 mkdir conftest
11795 cd conftest
11796 mkdir out
11797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11799 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11800 # that will create temporary files in the current directory regardless of
11801 # the output directory. Thus, making CWD read-only will cause this test
11802 # to fail, enabling locking or at least warning the user not to do parallel
11803 # builds.
11804 chmod -w .
11806 lt_compiler_flag="-o out/conftest2.$ac_objext"
11807 # Insert the option either (1) after the last *FLAGS variable, or
11808 # (2) before a word containing "conftest.", or (3) at the end.
11809 # Note that $ac_compile itself does not contain backslashes and begins
11810 # with a dollar sign (not a hyphen), so the echo should work correctly.
11811 lt_compile=`echo "$ac_compile" | $SED \
11812 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11814 -e 's:$: $lt_compiler_flag:'`
11815 (eval echo "\"\$as_me:11815: $lt_compile\"" >&5)
11816 (eval "$lt_compile" 2>out/conftest.err)
11817 ac_status=$?
11818 cat out/conftest.err >&5
11819 echo "$as_me:11819: \$? = $ac_status" >&5
11820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11821 then
11822 # The compiler can only warn and ignore the option if not recognized
11823 # So say no if there are warnings
11824 if test ! -s out/conftest.err; then
11825 lt_cv_prog_compiler_c_o_CXX=yes
11828 chmod u+w .
11829 $rm conftest*
11830 # SGI C++ compiler will create directory out/ii_files/ for
11831 # template instantiation
11832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11833 $rm out/* && rmdir out
11834 cd ..
11835 rmdir conftest
11836 $rm conftest*
11839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11843 hard_links="nottested"
11844 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11845 # do not overwrite the value of need_locks provided by the user
11846 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11848 hard_links=yes
11849 $rm conftest*
11850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11851 touch conftest.a
11852 ln conftest.a conftest.b 2>&5 || hard_links=no
11853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854 { echo "$as_me:$LINENO: result: $hard_links" >&5
11855 echo "${ECHO_T}$hard_links" >&6; }
11856 if test "$hard_links" = no; then
11857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11859 need_locks=warn
11861 else
11862 need_locks=no
11865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11868 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11869 case $host_os in
11870 aix4* | aix5*)
11871 # If we're using GNU nm, then we don't want the "-C" option.
11872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11873 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11874 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'
11875 else
11876 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'
11879 pw32*)
11880 export_symbols_cmds_CXX="$ltdll_cmds"
11882 cygwin* | mingw*)
11883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11886 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11888 esac
11890 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11891 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11892 test "$ld_shlibs_CXX" = no && can_build_shared=no
11894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11895 if test "$GCC" = yes; then
11896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11900 # Do we need to explicitly link libc?
11902 case "x$archive_cmds_need_lc_CXX" in
11903 x|xyes)
11904 # Assume -lc should be added
11905 archive_cmds_need_lc_CXX=yes
11907 if test "$enable_shared" = yes && test "$GCC" = yes; then
11908 case $archive_cmds_CXX in
11909 *'~'*)
11910 # FIXME: we may have to deal with multi-command sequences.
11912 '$CC '*)
11913 # Test whether the compiler implicitly links with -lc since on some
11914 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11915 # to ld, don't add -lc before -lgcc.
11916 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11917 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11918 $rm conftest*
11919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } 2>conftest.err; then
11926 soname=conftest
11927 lib=conftest
11928 libobjs=conftest.$ac_objext
11929 deplibs=
11930 wl=$lt_prog_compiler_wl_CXX
11931 compiler_flags=-v
11932 linker_flags=-v
11933 verstring=
11934 output_objdir=.
11935 libname=conftest
11936 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11937 allow_undefined_flag_CXX=
11938 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11939 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }
11943 then
11944 archive_cmds_need_lc_CXX=no
11945 else
11946 archive_cmds_need_lc_CXX=yes
11948 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11949 else
11950 cat conftest.err 1>&5
11952 $rm conftest*
11953 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11954 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11956 esac
11959 esac
11961 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11962 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11963 library_names_spec=
11964 libname_spec='lib$name'
11965 soname_spec=
11966 shrext=".so"
11967 postinstall_cmds=
11968 postuninstall_cmds=
11969 finish_cmds=
11970 finish_eval=
11971 shlibpath_var=
11972 shlibpath_overrides_runpath=unknown
11973 version_type=none
11974 dynamic_linker="$host_os ld.so"
11975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11976 if test "$GCC" = yes; then
11977 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11978 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11979 # if the path contains ";" then we assume it to be the separator
11980 # otherwise default to the standard path separator (i.e. ":") - it is
11981 # assumed that no part of a normal pathname contains ";" but that should
11982 # okay in the real world where ";" in dirpaths is itself problematic.
11983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11984 else
11985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11987 else
11988 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11990 need_lib_prefix=unknown
11991 hardcode_into_libs=no
11993 # when you set need_version to no, make sure it does not cause -set_version
11994 # flags to be left without arguments
11995 need_version=unknown
11997 case $host_os in
11998 aix3*)
11999 version_type=linux
12000 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12001 shlibpath_var=LIBPATH
12003 # AIX 3 has no versioning support, so we append a major version to the name.
12004 soname_spec='${libname}${release}${shared_ext}$major'
12007 aix4* | aix5*)
12008 version_type=linux
12009 need_lib_prefix=no
12010 need_version=no
12011 hardcode_into_libs=yes
12012 if test "$host_cpu" = ia64; then
12013 # AIX 5 supports IA64
12014 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 else
12017 # With GCC up to 2.95.x, collect2 would create an import file
12018 # for dependence libraries. The import file would start with
12019 # the line `#! .'. This would cause the generated library to
12020 # depend on `.', always an invalid library. This was fixed in
12021 # development snapshots of GCC prior to 3.0.
12022 case $host_os in
12023 aix4 | aix4.[01] | aix4.[01].*)
12024 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12025 echo ' yes '
12026 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12028 else
12029 can_build_shared=no
12032 esac
12033 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12034 # soname into executable. Probably we can add versioning support to
12035 # collect2, so additional links can be useful in future.
12036 if test "$aix_use_runtimelinking" = yes; then
12037 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12038 # instead of lib<name>.a to let people know that these are not
12039 # typical AIX shared libraries.
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 else
12042 # We preserve .a as extension for shared libraries through AIX4.2
12043 # and later when we are not doing run time linking.
12044 library_names_spec='${libname}${release}.a $libname.a'
12045 soname_spec='${libname}${release}${shared_ext}$major'
12047 shlibpath_var=LIBPATH
12051 amigaos*)
12052 library_names_spec='$libname.ixlibrary $libname.a'
12053 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12054 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'
12057 beos*)
12058 library_names_spec='${libname}${shared_ext}'
12059 dynamic_linker="$host_os ld.so"
12060 shlibpath_var=LIBRARY_PATH
12063 bsdi4*)
12064 version_type=linux
12065 need_version=no
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12069 shlibpath_var=LD_LIBRARY_PATH
12070 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12071 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12072 # the default ld.so.conf also contains /usr/contrib/lib and
12073 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12074 # libtool to hard-code these into programs
12077 cygwin* | mingw* | pw32*)
12078 version_type=windows
12079 shrext=".dll"
12080 need_version=no
12081 need_lib_prefix=no
12083 case $GCC,$host_os in
12084 yes,cygwin* | yes,mingw* | yes,pw32*)
12085 library_names_spec='$libname.dll.a'
12086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12087 postinstall_cmds='base_file=`basename \${file}`~
12088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12089 dldir=$destdir/`dirname \$dlpath`~
12090 test -d \$dldir || mkdir -p \$dldir~
12091 $install_prog $dir/$dlname \$dldir/$dlname'
12092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12093 dlpath=$dir/\$dldll~
12094 $rm \$dlpath'
12095 shlibpath_overrides_runpath=yes
12097 case $host_os in
12098 cygwin*)
12099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12101 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12103 mingw*)
12104 # MinGW DLLs use traditional 'lib' prefix
12105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12106 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12107 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12108 # It is most probably a Windows format PATH printed by
12109 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12110 # path with ; separators, and with drive letters. We can handle the
12111 # drive letters (cygwin fileutils understands them), so leave them,
12112 # especially as we might pass files found there to a mingw objdump,
12113 # which wouldn't understand a cygwinified path. Ahh.
12114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12115 else
12116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12119 pw32*)
12120 # pw32 DLLs use 'pw' prefix rather than 'lib'
12121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12123 esac
12127 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12129 esac
12130 dynamic_linker='Win32 ld.exe'
12131 # FIXME: first we should search . and the directory the executable is in
12132 shlibpath_var=PATH
12135 darwin* | rhapsody*)
12136 dynamic_linker="$host_os dyld"
12137 version_type=darwin
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12141 soname_spec='${libname}${release}${major}$shared_ext'
12142 shlibpath_overrides_runpath=yes
12143 shlibpath_var=DYLD_LIBRARY_PATH
12144 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12145 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12146 if test "$GCC" = yes; then
12147 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"`
12148 else
12149 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12154 dgux*)
12155 version_type=linux
12156 need_lib_prefix=no
12157 need_version=no
12158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12159 soname_spec='${libname}${release}${shared_ext}$major'
12160 shlibpath_var=LD_LIBRARY_PATH
12163 freebsd1*)
12164 dynamic_linker=no
12167 kfreebsd*-gnu)
12168 version_type=linux
12169 need_lib_prefix=no
12170 need_version=no
12171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12172 soname_spec='${libname}${release}${shared_ext}$major'
12173 shlibpath_var=LD_LIBRARY_PATH
12174 shlibpath_overrides_runpath=no
12175 hardcode_into_libs=yes
12176 dynamic_linker='GNU ld.so'
12179 freebsd*)
12180 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12181 version_type=freebsd-$objformat
12182 case $version_type in
12183 freebsd-elf*)
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12185 need_version=no
12186 need_lib_prefix=no
12188 freebsd-*)
12189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12190 need_version=yes
12192 esac
12193 shlibpath_var=LD_LIBRARY_PATH
12194 case $host_os in
12195 freebsd2*)
12196 shlibpath_overrides_runpath=yes
12198 freebsd3.01* | freebsdelf3.01*)
12199 shlibpath_overrides_runpath=yes
12200 hardcode_into_libs=yes
12202 *) # from 3.2 on
12203 shlibpath_overrides_runpath=no
12204 hardcode_into_libs=yes
12206 esac
12209 gnu*)
12210 version_type=linux
12211 need_lib_prefix=no
12212 need_version=no
12213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12214 soname_spec='${libname}${release}${shared_ext}$major'
12215 shlibpath_var=LD_LIBRARY_PATH
12216 hardcode_into_libs=yes
12219 hpux9* | hpux10* | hpux11*)
12220 # Give a soname corresponding to the major version so that dld.sl refuses to
12221 # link against other versions.
12222 version_type=sunos
12223 need_lib_prefix=no
12224 need_version=no
12225 case "$host_cpu" in
12226 ia64*)
12227 shrext='.so'
12228 hardcode_into_libs=yes
12229 dynamic_linker="$host_os dld.so"
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233 soname_spec='${libname}${release}${shared_ext}$major'
12234 if test "X$HPUX_IA64_MODE" = X32; then
12235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12236 else
12237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12241 hppa*64*)
12242 shrext='.sl'
12243 hardcode_into_libs=yes
12244 dynamic_linker="$host_os dld.sl"
12245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12253 shrext='.sl'
12254 dynamic_linker="$host_os dld.sl"
12255 shlibpath_var=SHLIB_PATH
12256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12258 soname_spec='${libname}${release}${shared_ext}$major'
12260 esac
12261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12262 postinstall_cmds='chmod 555 $lib'
12265 irix5* | irix6* | nonstopux*)
12266 case $host_os in
12267 nonstopux*) version_type=nonstopux ;;
12269 if test "$lt_cv_prog_gnu_ld" = yes; then
12270 version_type=linux
12271 else
12272 version_type=irix
12273 fi ;;
12274 esac
12275 need_lib_prefix=no
12276 need_version=no
12277 soname_spec='${libname}${release}${shared_ext}$major'
12278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12279 case $host_os in
12280 irix5* | nonstopux*)
12281 libsuff= shlibsuff=
12284 case $LD in # libtool.m4 will add one of these switches to LD
12285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12286 libsuff= shlibsuff= libmagic=32-bit;;
12287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12288 libsuff=32 shlibsuff=N32 libmagic=N32;;
12289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12291 *) libsuff= shlibsuff= libmagic=never-match;;
12292 esac
12294 esac
12295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12296 shlibpath_overrides_runpath=no
12297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12299 hardcode_into_libs=yes
12302 # No shared lib support for Linux oldld, aout, or coff.
12303 linux*oldld* | linux*aout* | linux*coff*)
12304 dynamic_linker=no
12307 # This must be Linux ELF.
12308 linux*)
12309 version_type=linux
12310 need_lib_prefix=no
12311 need_version=no
12312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12313 soname_spec='${libname}${release}${shared_ext}$major'
12314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12315 shlibpath_var=LD_LIBRARY_PATH
12316 shlibpath_overrides_runpath=no
12317 # This implies no fast_install, which is unacceptable.
12318 # Some rework will be needed to allow for fast_install
12319 # before this can be enabled.
12320 hardcode_into_libs=yes
12322 # We used to test for /lib/ld.so.1 and disable shared libraries on
12323 # powerpc, because MkLinux only supported shared libraries with the
12324 # GNU dynamic linker. Since this was broken with cross compilers,
12325 # most powerpc-linux boxes support dynamic linking these days and
12326 # people can always --disable-shared, the test was removed, and we
12327 # assume the GNU/Linux dynamic linker is in use.
12328 dynamic_linker='GNU/Linux ld.so'
12331 netbsd*)
12332 version_type=sunos
12333 need_lib_prefix=no
12334 need_version=no
12335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12338 dynamic_linker='NetBSD (a.out) ld.so'
12339 else
12340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12341 soname_spec='${libname}${release}${shared_ext}$major'
12342 dynamic_linker='NetBSD ld.elf_so'
12344 shlibpath_var=LD_LIBRARY_PATH
12345 shlibpath_overrides_runpath=yes
12346 hardcode_into_libs=yes
12349 newsos6)
12350 version_type=linux
12351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 shlibpath_overrides_runpath=yes
12356 nto-qnx*)
12357 version_type=linux
12358 need_lib_prefix=no
12359 need_version=no
12360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12361 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=yes
12366 openbsd*)
12367 version_type=sunos
12368 need_lib_prefix=no
12369 need_version=no
12370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12372 shlibpath_var=LD_LIBRARY_PATH
12373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12374 case $host_os in
12375 openbsd2.[89] | openbsd2.[89].*)
12376 shlibpath_overrides_runpath=no
12379 shlibpath_overrides_runpath=yes
12381 esac
12382 else
12383 shlibpath_overrides_runpath=yes
12387 os2*)
12388 libname_spec='$name'
12389 shrext=".dll"
12390 need_lib_prefix=no
12391 library_names_spec='$libname${shared_ext} $libname.a'
12392 dynamic_linker='OS/2 ld.exe'
12393 shlibpath_var=LIBPATH
12396 osf3* | osf4* | osf5*)
12397 version_type=osf
12398 need_lib_prefix=no
12399 need_version=no
12400 soname_spec='${libname}${release}${shared_ext}$major'
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 shlibpath_var=LD_LIBRARY_PATH
12403 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12404 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12407 sco3.2v5*)
12408 version_type=osf
12409 soname_spec='${libname}${release}${shared_ext}$major'
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12411 shlibpath_var=LD_LIBRARY_PATH
12414 solaris*)
12415 version_type=linux
12416 need_lib_prefix=no
12417 need_version=no
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 shlibpath_var=LD_LIBRARY_PATH
12421 shlibpath_overrides_runpath=yes
12422 hardcode_into_libs=yes
12423 # ldd complains unless libraries are executable
12424 postinstall_cmds='chmod +x $lib'
12427 sunos4*)
12428 version_type=sunos
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12430 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12431 shlibpath_var=LD_LIBRARY_PATH
12432 shlibpath_overrides_runpath=yes
12433 if test "$with_gnu_ld" = yes; then
12434 need_lib_prefix=no
12436 need_version=yes
12439 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12440 version_type=linux
12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12442 soname_spec='${libname}${release}${shared_ext}$major'
12443 shlibpath_var=LD_LIBRARY_PATH
12444 case $host_vendor in
12445 sni)
12446 shlibpath_overrides_runpath=no
12447 need_lib_prefix=no
12448 export_dynamic_flag_spec='${wl}-Blargedynsym'
12449 runpath_var=LD_RUN_PATH
12451 siemens)
12452 need_lib_prefix=no
12454 motorola)
12455 need_lib_prefix=no
12456 need_version=no
12457 shlibpath_overrides_runpath=no
12458 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12460 esac
12463 sysv4*MP*)
12464 if test -d /usr/nec ;then
12465 version_type=linux
12466 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12467 soname_spec='$libname${shared_ext}.$major'
12468 shlibpath_var=LD_LIBRARY_PATH
12472 uts4*)
12473 version_type=linux
12474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12475 soname_spec='${libname}${release}${shared_ext}$major'
12476 shlibpath_var=LD_LIBRARY_PATH
12480 dynamic_linker=no
12482 esac
12483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12484 echo "${ECHO_T}$dynamic_linker" >&6; }
12485 test "$dynamic_linker" = no && can_build_shared=no
12487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12489 hardcode_action_CXX=
12490 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12491 test -n "$runpath_var CXX" || \
12492 test "X$hardcode_automatic_CXX"="Xyes" ; then
12494 # We can hardcode non-existant directories.
12495 if test "$hardcode_direct_CXX" != no &&
12496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12497 # have to relink, otherwise we might link with an installed library
12498 # when we should be linking with a yet-to-be-installed one
12499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12500 test "$hardcode_minus_L_CXX" != no; then
12501 # Linking always hardcodes the temporary library directory.
12502 hardcode_action_CXX=relink
12503 else
12504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12505 hardcode_action_CXX=immediate
12507 else
12508 # We cannot hardcode anything, or else we can only hardcode existing
12509 # directories.
12510 hardcode_action_CXX=unsupported
12512 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12513 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12515 if test "$hardcode_action_CXX" = relink; then
12516 # Fast installation is not supported
12517 enable_fast_install=no
12518 elif test "$shlibpath_overrides_runpath" = yes ||
12519 test "$enable_shared" = no; then
12520 # Fast installation is not necessary
12521 enable_fast_install=needless
12524 striplib=
12525 old_striplib=
12526 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12531 { echo "$as_me:$LINENO: result: yes" >&5
12532 echo "${ECHO_T}yes" >&6; }
12533 else
12534 # FIXME - insert some real tests, host_os isn't really good enough
12535 case $host_os in
12536 darwin*)
12537 if test -n "$STRIP" ; then
12538 striplib="$STRIP -x"
12539 { echo "$as_me:$LINENO: result: yes" >&5
12540 echo "${ECHO_T}yes" >&6; }
12541 else
12542 { echo "$as_me:$LINENO: result: no" >&5
12543 echo "${ECHO_T}no" >&6; }
12547 { echo "$as_me:$LINENO: result: no" >&5
12548 echo "${ECHO_T}no" >&6; }
12550 esac
12553 if test "x$enable_dlopen" != xyes; then
12554 enable_dlopen=unknown
12555 enable_dlopen_self=unknown
12556 enable_dlopen_self_static=unknown
12557 else
12558 lt_cv_dlopen=no
12559 lt_cv_dlopen_libs=
12561 case $host_os in
12562 beos*)
12563 lt_cv_dlopen="load_add_on"
12564 lt_cv_dlopen_libs=
12565 lt_cv_dlopen_self=yes
12568 mingw* | pw32*)
12569 lt_cv_dlopen="LoadLibrary"
12570 lt_cv_dlopen_libs=
12573 cygwin*)
12574 lt_cv_dlopen="dlopen"
12575 lt_cv_dlopen_libs=
12578 darwin*)
12579 # if libdl is installed we need to link against it
12580 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 ac_check_lib_save_LIBS=$LIBS
12586 LIBS="-ldl $LIBS"
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h. */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 char dlopen ();
12602 main ()
12604 return dlopen ();
12606 return 0;
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614 esac
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_link") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } &&
12623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12624 { (case "(($ac_try" in
12625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626 *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629 (eval "$ac_try") 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; } &&
12633 { ac_try='test -s conftest$ac_exeext'
12634 { (case "(($ac_try" in
12635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636 *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639 (eval "$ac_try") 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_dl_dlopen=yes
12644 else
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_cv_lib_dl_dlopen=no
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12656 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12657 if test $ac_cv_lib_dl_dlopen = yes; then
12658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12659 else
12661 lt_cv_dlopen="dyld"
12662 lt_cv_dlopen_libs=
12663 lt_cv_dlopen_self=yes
12670 { echo "$as_me:$LINENO: checking for shl_load" >&5
12671 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12672 if test "${ac_cv_func_shl_load+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12683 #define shl_load innocuous_shl_load
12685 /* System header to define __stub macros and hopefully few prototypes,
12686 which can conflict with char shl_load (); below.
12687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12688 <limits.h> exists even on freestanding compilers. */
12690 #ifdef __STDC__
12691 # include <limits.h>
12692 #else
12693 # include <assert.h>
12694 #endif
12696 #undef shl_load
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char shl_load ();
12705 /* The GNU C library defines this for functions which it implements
12706 to always fail with ENOSYS. Some functions are actually named
12707 something starting with __ and the normal name is an alias. */
12708 #if defined __stub_shl_load || defined __stub___shl_load
12709 choke me
12710 #endif
12713 main ()
12715 return shl_load ();
12717 return 0;
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727 (eval "$ac_link") 2>conftest.er1
12728 ac_status=$?
12729 grep -v '^ *+' conftest.er1 >conftest.err
12730 rm -f conftest.er1
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } &&
12734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (case "(($ac_try" in
12746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747 *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750 (eval "$ac_try") 2>&5
12751 ac_status=$?
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12754 ac_cv_func_shl_load=yes
12755 else
12756 echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 ac_cv_func_shl_load=no
12762 rm -f core conftest.err conftest.$ac_objext \
12763 conftest$ac_exeext conftest.$ac_ext
12765 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12766 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12767 if test $ac_cv_func_shl_load = yes; then
12768 lt_cv_dlopen="shl_load"
12769 else
12770 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12771 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12772 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-ldld $LIBS"
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char shl_load ();
12792 main ()
12794 return shl_load ();
12796 return 0;
12798 _ACEOF
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (ac_try="$ac_link"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_link") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816 *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest$ac_exeext'
12824 { (case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_try") 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_lib_dld_shl_load=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_cv_lib_dld_shl_load=no
12841 rm -f core conftest.err conftest.$ac_objext \
12842 conftest$ac_exeext conftest.$ac_ext
12843 LIBS=$ac_check_lib_save_LIBS
12845 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12846 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12847 if test $ac_cv_lib_dld_shl_load = yes; then
12848 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12849 else
12850 { echo "$as_me:$LINENO: checking for dlopen" >&5
12851 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12852 if test "${ac_cv_func_dlopen+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h. */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h. */
12861 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12863 #define dlopen innocuous_dlopen
12865 /* System header to define __stub macros and hopefully few prototypes,
12866 which can conflict with char dlopen (); below.
12867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12868 <limits.h> exists even on freestanding compilers. */
12870 #ifdef __STDC__
12871 # include <limits.h>
12872 #else
12873 # include <assert.h>
12874 #endif
12876 #undef dlopen
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12881 #ifdef __cplusplus
12882 extern "C"
12883 #endif
12884 char dlopen ();
12885 /* The GNU C library defines this for functions which it implements
12886 to always fail with ENOSYS. Some functions are actually named
12887 something starting with __ and the normal name is an alias. */
12888 #if defined __stub_dlopen || defined __stub___dlopen
12889 choke me
12890 #endif
12893 main ()
12895 return dlopen ();
12897 return 0;
12899 _ACEOF
12900 rm -f conftest.$ac_objext conftest$ac_exeext
12901 if { (ac_try="$ac_link"
12902 case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905 esac
12906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_link") 2>conftest.er1
12908 ac_status=$?
12909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } &&
12914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12915 { (case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_try") 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; } &&
12924 { ac_try='test -s conftest$ac_exeext'
12925 { (case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928 esac
12929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12930 (eval "$ac_try") 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 ac_cv_func_dlopen=yes
12935 else
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ac_cv_func_dlopen=no
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12945 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12946 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12947 if test $ac_cv_func_dlopen = yes; then
12948 lt_cv_dlopen="dlopen"
12949 else
12950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955 ac_check_lib_save_LIBS=$LIBS
12956 LIBS="-ldl $LIBS"
12957 cat >conftest.$ac_ext <<_ACEOF
12958 /* confdefs.h. */
12959 _ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 /* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12967 #ifdef __cplusplus
12968 extern "C"
12969 #endif
12970 char dlopen ();
12972 main ()
12974 return dlopen ();
12976 return 0;
12978 _ACEOF
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (ac_try="$ac_link"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12984 esac
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest$ac_exeext'
13004 { (case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007 esac
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_try") 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_cv_lib_dl_dlopen=yes
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 sed 's/^/| /' conftest.$ac_ext >&5
13018 ac_cv_lib_dl_dlopen=no
13021 rm -f core conftest.err conftest.$ac_objext \
13022 conftest$ac_exeext conftest.$ac_ext
13023 LIBS=$ac_check_lib_save_LIBS
13025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13026 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13027 if test $ac_cv_lib_dl_dlopen = yes; then
13028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13029 else
13030 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13031 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13032 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 else
13035 ac_check_lib_save_LIBS=$LIBS
13036 LIBS="-lsvld $LIBS"
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h. */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13044 /* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047 #ifdef __cplusplus
13048 extern "C"
13049 #endif
13050 char dlopen ();
13052 main ()
13054 return dlopen ();
13056 return 0;
13058 _ACEOF
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_link") 2>conftest.er1
13067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest$ac_exeext'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087 esac
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_lib_svld_dlopen=yes
13094 else
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13098 ac_cv_lib_svld_dlopen=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13106 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13107 if test $ac_cv_lib_svld_dlopen = yes; then
13108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13109 else
13110 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13111 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13112 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-ldld $LIBS"
13117 cat >conftest.$ac_ext <<_ACEOF
13118 /* confdefs.h. */
13119 _ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char dld_link ();
13132 main ()
13134 return dld_link ();
13136 return 0;
13138 _ACEOF
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144 esac
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_link") 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
13153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13154 { (case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_try") 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; } &&
13163 { ac_try='test -s conftest$ac_exeext'
13164 { (case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167 esac
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_try") 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_lib_dld_dld_link=yes
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_cv_lib_dld_dld_link=no
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13185 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13186 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13187 if test $ac_cv_lib_dld_dld_link = yes; then
13188 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13207 esac
13209 if test "x$lt_cv_dlopen" != xno; then
13210 enable_dlopen=yes
13211 else
13212 enable_dlopen=no
13215 case $lt_cv_dlopen in
13216 dlopen)
13217 save_CPPFLAGS="$CPPFLAGS"
13218 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13220 save_LDFLAGS="$LDFLAGS"
13221 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13223 save_LIBS="$LIBS"
13224 LIBS="$lt_cv_dlopen_libs $LIBS"
13226 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13227 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13228 if test "${lt_cv_dlopen_self+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231 if test "$cross_compiling" = yes; then :
13232 lt_cv_dlopen_self=cross
13233 else
13234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13235 lt_status=$lt_dlunknown
13236 cat > conftest.$ac_ext <<EOF
13237 #line 13237 "configure"
13238 #include "confdefs.h"
13240 #if HAVE_DLFCN_H
13241 #include <dlfcn.h>
13242 #endif
13244 #include <stdio.h>
13246 #ifdef RTLD_GLOBAL
13247 # define LT_DLGLOBAL RTLD_GLOBAL
13248 #else
13249 # ifdef DL_GLOBAL
13250 # define LT_DLGLOBAL DL_GLOBAL
13251 # else
13252 # define LT_DLGLOBAL 0
13253 # endif
13254 #endif
13256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13257 find out it does not work in some platform. */
13258 #ifndef LT_DLLAZY_OR_NOW
13259 # ifdef RTLD_LAZY
13260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13261 # else
13262 # ifdef DL_LAZY
13263 # define LT_DLLAZY_OR_NOW DL_LAZY
13264 # else
13265 # ifdef RTLD_NOW
13266 # define LT_DLLAZY_OR_NOW RTLD_NOW
13267 # else
13268 # ifdef DL_NOW
13269 # define LT_DLLAZY_OR_NOW DL_NOW
13270 # else
13271 # define LT_DLLAZY_OR_NOW 0
13272 # endif
13273 # endif
13274 # endif
13275 # endif
13276 #endif
13278 #ifdef __cplusplus
13279 extern "C" void exit (int);
13280 #endif
13282 void fnord() { int i=42;}
13283 int main ()
13285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13286 int status = $lt_dlunknown;
13288 if (self)
13290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13292 /* dlclose (self); */
13295 exit (status);
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299 (eval $ac_link) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13303 (./conftest; exit; ) 2>/dev/null
13304 lt_status=$?
13305 case x$lt_status in
13306 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13307 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13308 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13309 esac
13310 else :
13311 # compilation failed
13312 lt_cv_dlopen_self=no
13315 rm -fr conftest*
13319 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13320 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13322 if test "x$lt_cv_dlopen_self" = xyes; then
13323 LDFLAGS="$LDFLAGS $link_static_flag"
13324 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13325 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13326 if test "${lt_cv_dlopen_self_static+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329 if test "$cross_compiling" = yes; then :
13330 lt_cv_dlopen_self_static=cross
13331 else
13332 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13333 lt_status=$lt_dlunknown
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13335 "configure"
13336 #include "confdefs.h"
13338 #if HAVE_DLFCN_H
13339 #include <dlfcn.h>
13340 #endif
13342 #include <stdio.h>
13344 #ifdef RTLD_GLOBAL
13345 # define LT_DLGLOBAL RTLD_GLOBAL
13346 #else
13347 # ifdef DL_GLOBAL
13348 # define LT_DLGLOBAL DL_GLOBAL
13349 # else
13350 # define LT_DLGLOBAL 0
13351 # endif
13352 #endif
13354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13355 find out it does not work in some platform. */
13356 #ifndef LT_DLLAZY_OR_NOW
13357 # ifdef RTLD_LAZY
13358 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13359 # else
13360 # ifdef DL_LAZY
13361 # define LT_DLLAZY_OR_NOW DL_LAZY
13362 # else
13363 # ifdef RTLD_NOW
13364 # define LT_DLLAZY_OR_NOW RTLD_NOW
13365 # else
13366 # ifdef DL_NOW
13367 # define LT_DLLAZY_OR_NOW DL_NOW
13368 # else
13369 # define LT_DLLAZY_OR_NOW 0
13370 # endif
13371 # endif
13372 # endif
13373 # endif
13374 #endif
13376 #ifdef __cplusplus
13377 extern "C" void exit (int);
13378 #endif
13380 void fnord() { int i=42;}
13381 int main ()
13383 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13384 int status = $lt_dlunknown;
13386 if (self)
13388 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13389 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13390 /* dlclose (self); */
13393 exit (status);
13396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13397 (eval $ac_link) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13401 (./conftest; exit; ) 2>/dev/null
13402 lt_status=$?
13403 case x$lt_status in
13404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13406 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13407 esac
13408 else :
13409 # compilation failed
13410 lt_cv_dlopen_self_static=no
13413 rm -fr conftest*
13417 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13421 CPPFLAGS="$save_CPPFLAGS"
13422 LDFLAGS="$save_LDFLAGS"
13423 LIBS="$save_LIBS"
13425 esac
13427 case $lt_cv_dlopen_self in
13428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13429 *) enable_dlopen_self=unknown ;;
13430 esac
13432 case $lt_cv_dlopen_self_static in
13433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13434 *) enable_dlopen_self_static=unknown ;;
13435 esac
13439 # The else clause should only fire when bootstrapping the
13440 # libtool distribution, otherwise you forgot to ship ltmain.sh
13441 # with your package, and you will get complaints that there are
13442 # no rules to generate ltmain.sh.
13443 if test -f "$ltmain"; then
13444 # See if we are running on zsh, and set the options which allow our commands through
13445 # without removal of \ escapes.
13446 if test -n "${ZSH_VERSION+set}" ; then
13447 setopt NO_GLOB_SUBST
13449 # Now quote all the things that may contain metacharacters while being
13450 # careful not to overquote the AC_SUBSTed values. We take copies of the
13451 # variables and quote the copies for generation of the libtool script.
13452 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13453 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13454 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13455 deplibs_check_method reload_flag reload_cmds need_locks \
13456 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13457 lt_cv_sys_global_symbol_to_c_name_address \
13458 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13459 old_postinstall_cmds old_postuninstall_cmds \
13460 compiler_CXX \
13461 CC_CXX \
13462 LD_CXX \
13463 lt_prog_compiler_wl_CXX \
13464 lt_prog_compiler_pic_CXX \
13465 lt_prog_compiler_static_CXX \
13466 lt_prog_compiler_no_builtin_flag_CXX \
13467 export_dynamic_flag_spec_CXX \
13468 thread_safe_flag_spec_CXX \
13469 whole_archive_flag_spec_CXX \
13470 enable_shared_with_static_runtimes_CXX \
13471 old_archive_cmds_CXX \
13472 old_archive_from_new_cmds_CXX \
13473 predep_objects_CXX \
13474 postdep_objects_CXX \
13475 predeps_CXX \
13476 postdeps_CXX \
13477 compiler_lib_search_path_CXX \
13478 archive_cmds_CXX \
13479 archive_expsym_cmds_CXX \
13480 postinstall_cmds_CXX \
13481 postuninstall_cmds_CXX \
13482 old_archive_from_expsyms_cmds_CXX \
13483 allow_undefined_flag_CXX \
13484 no_undefined_flag_CXX \
13485 export_symbols_cmds_CXX \
13486 hardcode_libdir_flag_spec_CXX \
13487 hardcode_libdir_flag_spec_ld_CXX \
13488 hardcode_libdir_separator_CXX \
13489 hardcode_automatic_CXX \
13490 module_cmds_CXX \
13491 module_expsym_cmds_CXX \
13492 lt_cv_prog_compiler_c_o_CXX \
13493 exclude_expsyms_CXX \
13494 include_expsyms_CXX; do
13496 case $var in
13497 old_archive_cmds_CXX | \
13498 old_archive_from_new_cmds_CXX | \
13499 archive_cmds_CXX | \
13500 archive_expsym_cmds_CXX | \
13501 module_cmds_CXX | \
13502 module_expsym_cmds_CXX | \
13503 old_archive_from_expsyms_cmds_CXX | \
13504 export_symbols_cmds_CXX | \
13505 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13506 postinstall_cmds | postuninstall_cmds | \
13507 old_postinstall_cmds | old_postuninstall_cmds | \
13508 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13509 # Double-quote double-evaled strings.
13510 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13515 esac
13516 done
13518 case $lt_echo in
13519 *'\$0 --fallback-echo"')
13520 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13522 esac
13524 cfgfile="$ofile"
13526 cat <<__EOF__ >> "$cfgfile"
13527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13531 # Shell to use when invoking shell scripts.
13532 SHELL=$lt_SHELL
13534 # Whether or not to build shared libraries.
13535 build_libtool_libs=$enable_shared
13537 # Whether or not to build static libraries.
13538 build_old_libs=$enable_static
13540 # Whether or not to add -lc for building shared libraries.
13541 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13543 # Whether or not to disallow shared libs when runtime libs are static
13544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13546 # Whether or not to optimize for fast installation.
13547 fast_install=$enable_fast_install
13549 # The host system.
13550 host_alias=$host_alias
13551 host=$host
13553 # An echo program that does not interpret backslashes.
13554 echo=$lt_echo
13556 # The archiver.
13557 AR=$lt_AR
13558 AR_FLAGS=$lt_AR_FLAGS
13560 # A C compiler.
13561 LTCC=$lt_LTCC
13563 # A language-specific compiler.
13564 CC=$lt_compiler_CXX
13566 # Is the compiler the GNU C compiler?
13567 with_gcc=$GCC_CXX
13569 # An ERE matcher.
13570 EGREP=$lt_EGREP
13572 # The linker used to build libraries.
13573 LD=$lt_LD_CXX
13575 # Whether we need hard or soft links.
13576 LN_S=$lt_LN_S
13578 # A BSD-compatible nm program.
13579 NM=$lt_NM
13581 # A symbol stripping program
13582 STRIP="$STRIP"
13584 # Used to examine libraries when file_magic_cmd begins "file"
13585 MAGIC_CMD=$MAGIC_CMD
13587 # Used on cygwin: DLL creation program.
13588 DLLTOOL="$DLLTOOL"
13590 # Used on cygwin: object dumper.
13591 OBJDUMP="$OBJDUMP"
13593 # Used on cygwin: assembler.
13594 AS="$AS"
13596 # The name of the directory that contains temporary libtool files.
13597 objdir=$objdir
13599 # How to create reloadable object files.
13600 reload_flag=$lt_reload_flag
13601 reload_cmds=$lt_reload_cmds
13603 # How to pass a linker flag through the compiler.
13604 wl=$lt_lt_prog_compiler_wl_CXX
13606 # Object file suffix (normally "o").
13607 objext="$ac_objext"
13609 # Old archive suffix (normally "a").
13610 libext="$libext"
13612 # Shared library suffix (normally ".so").
13613 shrext='$shrext'
13615 # Executable file suffix (normally "").
13616 exeext="$exeext"
13618 # Additional compiler flags for building library objects.
13619 pic_flag=$lt_lt_prog_compiler_pic_CXX
13620 pic_mode=$pic_mode
13622 # What is the maximum length of a command?
13623 max_cmd_len=$lt_cv_sys_max_cmd_len
13625 # Does compiler simultaneously support -c and -o options?
13626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13628 # Must we lock files when doing compilation ?
13629 need_locks=$lt_need_locks
13631 # Do we need the lib prefix for modules?
13632 need_lib_prefix=$need_lib_prefix
13634 # Do we need a version for libraries?
13635 need_version=$need_version
13637 # Whether dlopen is supported.
13638 dlopen_support=$enable_dlopen
13640 # Whether dlopen of programs is supported.
13641 dlopen_self=$enable_dlopen_self
13643 # Whether dlopen of statically linked programs is supported.
13644 dlopen_self_static=$enable_dlopen_self_static
13646 # Compiler flag to prevent dynamic linking.
13647 link_static_flag=$lt_lt_prog_compiler_static_CXX
13649 # Compiler flag to turn off builtin functions.
13650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13652 # Compiler flag to allow reflexive dlopens.
13653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13655 # Compiler flag to generate shared objects directly from archives.
13656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13658 # Compiler flag to generate thread-safe objects.
13659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13661 # Library versioning type.
13662 version_type=$version_type
13664 # Format of library name prefix.
13665 libname_spec=$lt_libname_spec
13667 # List of archive names. First name is the real one, the rest are links.
13668 # The last name is the one that the linker finds with -lNAME.
13669 library_names_spec=$lt_library_names_spec
13671 # The coded name of the library, if different from the real name.
13672 soname_spec=$lt_soname_spec
13674 # Commands used to build and install an old-style archive.
13675 RANLIB=$lt_RANLIB
13676 old_archive_cmds=$lt_old_archive_cmds_CXX
13677 old_postinstall_cmds=$lt_old_postinstall_cmds
13678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13680 # Create an old-style archive from a shared archive.
13681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13683 # Create a temporary old-style archive to link instead of a shared archive.
13684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13686 # Commands used to build and install a shared archive.
13687 archive_cmds=$lt_archive_cmds_CXX
13688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13689 postinstall_cmds=$lt_postinstall_cmds
13690 postuninstall_cmds=$lt_postuninstall_cmds
13692 # Commands used to build a loadable module (assumed same as above if empty)
13693 module_cmds=$lt_module_cmds_CXX
13694 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13696 # Commands to strip libraries.
13697 old_striplib=$lt_old_striplib
13698 striplib=$lt_striplib
13700 # Dependencies to place before the objects being linked to create a
13701 # shared library.
13702 predep_objects=$lt_predep_objects_CXX
13704 # Dependencies to place after the objects being linked to create a
13705 # shared library.
13706 postdep_objects=$lt_postdep_objects_CXX
13708 # Dependencies to place before the objects being linked to create a
13709 # shared library.
13710 predeps=$lt_predeps_CXX
13712 # Dependencies to place after the objects being linked to create a
13713 # shared library.
13714 postdeps=$lt_postdeps_CXX
13716 # The library search path used internally by the compiler when linking
13717 # a shared library.
13718 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13720 # Method to check whether dependent libraries are shared objects.
13721 deplibs_check_method=$lt_deplibs_check_method
13723 # Command to use when deplibs_check_method == file_magic.
13724 file_magic_cmd=$lt_file_magic_cmd
13726 # Flag that allows shared libraries with undefined symbols to be built.
13727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13729 # Flag that forces no undefined symbols.
13730 no_undefined_flag=$lt_no_undefined_flag_CXX
13732 # Commands used to finish a libtool library installation in a directory.
13733 finish_cmds=$lt_finish_cmds
13735 # Same as above, but a single script fragment to be evaled but not shown.
13736 finish_eval=$lt_finish_eval
13738 # Take the output of nm and produce a listing of raw symbols and C names.
13739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13741 # Transform the output of nm in a proper C declaration
13742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13744 # Transform the output of nm in a C name address pair
13745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13747 # This is the shared library runtime path variable.
13748 runpath_var=$runpath_var
13750 # This is the shared library path variable.
13751 shlibpath_var=$shlibpath_var
13753 # Is shlibpath searched before the hard-coded library search path?
13754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13756 # How to hardcode a shared library path into an executable.
13757 hardcode_action=$hardcode_action_CXX
13759 # Whether we should hardcode library paths into libraries.
13760 hardcode_into_libs=$hardcode_into_libs
13762 # Flag to hardcode \$libdir into a binary during linking.
13763 # This must work even if \$libdir does not exist.
13764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13766 # If ld is used when linking, flag to hardcode \$libdir into
13767 # a binary during linking. This must work even if \$libdir does
13768 # not exist.
13769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13771 # Whether we need a single -rpath flag with a separated argument.
13772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13775 # resulting binary.
13776 hardcode_direct=$hardcode_direct_CXX
13778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13779 # resulting binary.
13780 hardcode_minus_L=$hardcode_minus_L_CXX
13782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13783 # the resulting binary.
13784 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13786 # Set to yes if building a shared library automatically hardcodes DIR into the library
13787 # and all subsequent libraries and executables linked against it.
13788 hardcode_automatic=$hardcode_automatic_CXX
13790 # Variables whose values should be saved in libtool wrapper scripts and
13791 # restored at relink time.
13792 variables_saved_for_relink="$variables_saved_for_relink"
13794 # Whether libtool must link a program against all its dependency libraries.
13795 link_all_deplibs=$link_all_deplibs_CXX
13797 # Compile-time system search path for libraries
13798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13800 # Run-time system search path for libraries
13801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13803 # Fix the shell variable \$srcfile for the compiler.
13804 fix_srcfile_path="$fix_srcfile_path_CXX"
13806 # Set to yes if exported symbols are required.
13807 always_export_symbols=$always_export_symbols_CXX
13809 # The commands to list exported symbols.
13810 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13812 # The commands to extract the exported symbol list from a shared archive.
13813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13815 # Symbols that should not be listed in the preloaded symbols.
13816 exclude_expsyms=$lt_exclude_expsyms_CXX
13818 # Symbols that must always be exported.
13819 include_expsyms=$lt_include_expsyms_CXX
13821 # ### END LIBTOOL TAG CONFIG: $tagname
13823 __EOF__
13826 else
13827 # If there is no Makefile yet, we rely on a make rule to execute
13828 # `config.status --recheck' to rerun these tests and create the
13829 # libtool script then.
13830 test -f Makefile && make "$ltmain"
13834 ac_ext=c
13835 ac_cpp='$CPP $CPPFLAGS'
13836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13840 CC=$lt_save_CC
13841 LDCXX=$LD
13842 LD=$lt_save_LD
13843 GCC=$lt_save_GCC
13844 with_gnu_ldcxx=$with_gnu_ld
13845 with_gnu_ld=$lt_save_with_gnu_ld
13846 lt_cv_path_LDCXX=$lt_cv_path_LD
13847 lt_cv_path_LD=$lt_save_path_LD
13848 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13849 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13851 else
13852 tagname=""
13856 F77)
13857 if test -n "$F77" && test "X$F77" != "Xno"; then
13859 ac_ext=f
13860 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13861 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13862 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13865 archive_cmds_need_lc_F77=no
13866 allow_undefined_flag_F77=
13867 always_export_symbols_F77=no
13868 archive_expsym_cmds_F77=
13869 export_dynamic_flag_spec_F77=
13870 hardcode_direct_F77=no
13871 hardcode_libdir_flag_spec_F77=
13872 hardcode_libdir_flag_spec_ld_F77=
13873 hardcode_libdir_separator_F77=
13874 hardcode_minus_L_F77=no
13875 hardcode_automatic_F77=no
13876 module_cmds_F77=
13877 module_expsym_cmds_F77=
13878 link_all_deplibs_F77=unknown
13879 old_archive_cmds_F77=$old_archive_cmds
13880 no_undefined_flag_F77=
13881 whole_archive_flag_spec_F77=
13882 enable_shared_with_static_runtimes_F77=no
13884 # Source file extension for f77 test sources.
13885 ac_ext=f
13887 # Object file extension for compiled f77 test sources.
13888 objext=o
13889 objext_F77=$objext
13891 # Code to be used in simple compile tests
13892 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13894 # Code to be used in simple link tests
13895 lt_simple_link_test_code=" program t\n end\n"
13897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13899 # If no C compiler was specified, use CC.
13900 LTCC=${LTCC-"$CC"}
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13906 # Allow CC to be a program name with arguments.
13907 lt_save_CC="$CC"
13908 CC=${F77-"f77"}
13909 compiler=$CC
13910 compiler_F77=$CC
13911 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13913 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13914 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13915 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13916 echo "${ECHO_T}$can_build_shared" >&6; }
13918 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13919 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13920 test "$can_build_shared" = "no" && enable_shared=no
13922 # On AIX, shared libraries and static libraries use the same namespace, and
13923 # are all built from PIC.
13924 case "$host_os" in
13925 aix3*)
13926 test "$enable_shared" = yes && enable_static=no
13927 if test -n "$RANLIB"; then
13928 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13929 postinstall_cmds='$RANLIB $lib'
13932 aix4*)
13933 test "$enable_shared" = yes && enable_static=no
13935 esac
13936 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13937 echo "${ECHO_T}$enable_shared" >&6; }
13939 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13940 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13941 # Make sure either enable_shared or enable_static is yes.
13942 test "$enable_shared" = yes || enable_static=yes
13943 { echo "$as_me:$LINENO: result: $enable_static" >&5
13944 echo "${ECHO_T}$enable_static" >&6; }
13946 test "$ld_shlibs_F77" = no && can_build_shared=no
13948 GCC_F77="$G77"
13949 LD_F77="$LD"
13951 lt_prog_compiler_wl_F77=
13952 lt_prog_compiler_pic_F77=
13953 lt_prog_compiler_static_F77=
13955 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13956 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13958 if test "$GCC" = yes; then
13959 lt_prog_compiler_wl_F77='-Wl,'
13960 lt_prog_compiler_static_F77='-static'
13962 case $host_os in
13963 aix*)
13964 # All AIX code is PIC.
13965 if test "$host_cpu" = ia64; then
13966 # AIX 5 now supports IA64 processor
13967 lt_prog_compiler_static_F77='-Bstatic'
13971 amigaos*)
13972 # FIXME: we need at least 68020 code to build shared libraries, but
13973 # adding the `-m68020' flag to GCC prevents building anything better,
13974 # like `-m68040'.
13975 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13978 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13979 # PIC is the default for these OSes.
13982 mingw* | pw32* | os2*)
13983 # This hack is so that the source file can tell whether it is being
13984 # built for inclusion in a dll (and should export symbols for example).
13985 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13988 darwin* | rhapsody*)
13989 # PIC is the default on this platform
13990 # Common symbols not allowed in MH_DYLIB files
13991 lt_prog_compiler_pic_F77='-fno-common'
13994 msdosdjgpp*)
13995 # Just because we use GCC doesn't mean we suddenly get shared libraries
13996 # on systems that don't support them.
13997 lt_prog_compiler_can_build_shared_F77=no
13998 enable_shared=no
14001 sysv4*MP*)
14002 if test -d /usr/nec; then
14003 lt_prog_compiler_pic_F77=-Kconform_pic
14007 hpux*)
14008 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14009 # not for PA HP-UX.
14010 case "$host_cpu" in
14011 hppa*64*|ia64*)
14012 # +Z the default
14015 lt_prog_compiler_pic_F77='-fPIC'
14017 esac
14021 lt_prog_compiler_pic_F77='-fPIC'
14023 esac
14024 else
14025 # PORTME Check for flag to pass linker flags through the system compiler.
14026 case $host_os in
14027 aix*)
14028 lt_prog_compiler_wl_F77='-Wl,'
14029 if test "$host_cpu" = ia64; then
14030 # AIX 5 now supports IA64 processor
14031 lt_prog_compiler_static_F77='-Bstatic'
14032 else
14033 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14037 mingw* | pw32* | os2*)
14038 # This hack is so that the source file can tell whether it is being
14039 # built for inclusion in a dll (and should export symbols for example).
14040 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14043 hpux9* | hpux10* | hpux11*)
14044 lt_prog_compiler_wl_F77='-Wl,'
14045 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14046 # not for PA HP-UX.
14047 case "$host_cpu" in
14048 hppa*64*|ia64*)
14049 # +Z the default
14052 lt_prog_compiler_pic_F77='+Z'
14054 esac
14055 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14056 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14059 irix5* | irix6* | nonstopux*)
14060 lt_prog_compiler_wl_F77='-Wl,'
14061 # PIC (with -KPIC) is the default.
14062 lt_prog_compiler_static_F77='-non_shared'
14065 newsos6)
14066 lt_prog_compiler_pic_F77='-KPIC'
14067 lt_prog_compiler_static_F77='-Bstatic'
14070 linux*)
14071 case $CC in
14072 icc* | ecc*)
14073 lt_prog_compiler_wl_F77='-Wl,'
14074 lt_prog_compiler_pic_F77='-KPIC'
14075 lt_prog_compiler_static_F77='-static'
14077 ccc*)
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 # All Alpha code is PIC.
14080 lt_prog_compiler_static_F77='-non_shared'
14082 esac
14085 osf3* | osf4* | osf5*)
14086 lt_prog_compiler_wl_F77='-Wl,'
14087 # All OSF/1 code is PIC.
14088 lt_prog_compiler_static_F77='-non_shared'
14091 sco3.2v5*)
14092 lt_prog_compiler_pic_F77='-Kpic'
14093 lt_prog_compiler_static_F77='-dn'
14096 solaris*)
14097 lt_prog_compiler_wl_F77='-Wl,'
14098 lt_prog_compiler_pic_F77='-KPIC'
14099 lt_prog_compiler_static_F77='-Bstatic'
14102 sunos4*)
14103 lt_prog_compiler_wl_F77='-Qoption ld '
14104 lt_prog_compiler_pic_F77='-PIC'
14105 lt_prog_compiler_static_F77='-Bstatic'
14108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14109 lt_prog_compiler_wl_F77='-Wl,'
14110 lt_prog_compiler_pic_F77='-KPIC'
14111 lt_prog_compiler_static_F77='-Bstatic'
14114 sysv4*MP*)
14115 if test -d /usr/nec ;then
14116 lt_prog_compiler_pic_F77='-Kconform_pic'
14117 lt_prog_compiler_static_F77='-Bstatic'
14121 uts4*)
14122 lt_prog_compiler_pic_F77='-pic'
14123 lt_prog_compiler_static_F77='-Bstatic'
14127 lt_prog_compiler_can_build_shared_F77=no
14129 esac
14132 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14133 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14136 # Check to make sure the PIC flag actually works.
14138 if test -n "$lt_prog_compiler_pic_F77"; then
14140 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14141 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14142 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145 lt_prog_compiler_pic_works_F77=no
14146 ac_outfile=conftest.$ac_objext
14147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14148 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14149 # Insert the option either (1) after the last *FLAGS variable, or
14150 # (2) before a word containing "conftest.", or (3) at the end.
14151 # Note that $ac_compile itself does not contain backslashes and begins
14152 # with a dollar sign (not a hyphen), so the echo should work correctly.
14153 # The option is referenced via a variable to avoid confusing sed.
14154 lt_compile=`echo "$ac_compile" | $SED \
14155 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157 -e 's:$: $lt_compiler_flag:'`
14158 (eval echo "\"\$as_me:14158: $lt_compile\"" >&5)
14159 (eval "$lt_compile" 2>conftest.err)
14160 ac_status=$?
14161 cat conftest.err >&5
14162 echo "$as_me:14162: \$? = $ac_status" >&5
14163 if (exit $ac_status) && test -s "$ac_outfile"; then
14164 # The compiler can only warn and ignore the option if not recognized
14165 # So say no if there are warnings
14166 if test ! -s conftest.err; then
14167 lt_prog_compiler_pic_works_F77=yes
14170 $rm conftest*
14173 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14174 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14176 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14177 case $lt_prog_compiler_pic_F77 in
14178 "" | " "*) ;;
14179 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14180 esac
14181 else
14182 lt_prog_compiler_pic_F77=
14183 lt_prog_compiler_can_build_shared_F77=no
14187 case "$host_os" in
14188 # For platforms which do not support PIC, -DPIC is meaningless:
14189 *djgpp*)
14190 lt_prog_compiler_pic_F77=
14193 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14195 esac
14197 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14198 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14199 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202 lt_cv_prog_compiler_c_o_F77=no
14203 $rm -r conftest 2>/dev/null
14204 mkdir conftest
14205 cd conftest
14206 mkdir out
14207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14209 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14210 # that will create temporary files in the current directory regardless of
14211 # the output directory. Thus, making CWD read-only will cause this test
14212 # to fail, enabling locking or at least warning the user not to do parallel
14213 # builds.
14214 chmod -w .
14216 lt_compiler_flag="-o out/conftest2.$ac_objext"
14217 # Insert the option either (1) after the last *FLAGS variable, or
14218 # (2) before a word containing "conftest.", or (3) at the end.
14219 # Note that $ac_compile itself does not contain backslashes and begins
14220 # with a dollar sign (not a hyphen), so the echo should work correctly.
14221 lt_compile=`echo "$ac_compile" | $SED \
14222 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14223 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14224 -e 's:$: $lt_compiler_flag:'`
14225 (eval echo "\"\$as_me:14225: $lt_compile\"" >&5)
14226 (eval "$lt_compile" 2>out/conftest.err)
14227 ac_status=$?
14228 cat out/conftest.err >&5
14229 echo "$as_me:14229: \$? = $ac_status" >&5
14230 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14231 then
14232 # The compiler can only warn and ignore the option if not recognized
14233 # So say no if there are warnings
14234 if test ! -s out/conftest.err; then
14235 lt_cv_prog_compiler_c_o_F77=yes
14238 chmod u+w .
14239 $rm conftest*
14240 # SGI C++ compiler will create directory out/ii_files/ for
14241 # template instantiation
14242 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14243 $rm out/* && rmdir out
14244 cd ..
14245 rmdir conftest
14246 $rm conftest*
14249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14250 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14253 hard_links="nottested"
14254 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14255 # do not overwrite the value of need_locks provided by the user
14256 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14257 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14258 hard_links=yes
14259 $rm conftest*
14260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14261 touch conftest.a
14262 ln conftest.a conftest.b 2>&5 || hard_links=no
14263 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14264 { echo "$as_me:$LINENO: result: $hard_links" >&5
14265 echo "${ECHO_T}$hard_links" >&6; }
14266 if test "$hard_links" = no; then
14267 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14268 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14269 need_locks=warn
14271 else
14272 need_locks=no
14275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14278 runpath_var=
14279 allow_undefined_flag_F77=
14280 enable_shared_with_static_runtimes_F77=no
14281 archive_cmds_F77=
14282 archive_expsym_cmds_F77=
14283 old_archive_From_new_cmds_F77=
14284 old_archive_from_expsyms_cmds_F77=
14285 export_dynamic_flag_spec_F77=
14286 whole_archive_flag_spec_F77=
14287 thread_safe_flag_spec_F77=
14288 hardcode_libdir_flag_spec_F77=
14289 hardcode_libdir_flag_spec_ld_F77=
14290 hardcode_libdir_separator_F77=
14291 hardcode_direct_F77=no
14292 hardcode_minus_L_F77=no
14293 hardcode_shlibpath_var_F77=unsupported
14294 link_all_deplibs_F77=unknown
14295 hardcode_automatic_F77=no
14296 module_cmds_F77=
14297 module_expsym_cmds_F77=
14298 always_export_symbols_F77=no
14299 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14300 # include_expsyms should be a list of space-separated symbols to be *always*
14301 # included in the symbol list
14302 include_expsyms_F77=
14303 # exclude_expsyms can be an extended regexp of symbols to exclude
14304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14306 # as well as any symbol that contains `d'.
14307 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14309 # platforms (ab)use it in PIC code, but their linkers get confused if
14310 # the symbol is explicitly referenced. Since portable code cannot
14311 # rely on this symbol name, it's probably fine to never include it in
14312 # preloaded symbol tables.
14313 extract_expsyms_cmds=
14315 case $host_os in
14316 cygwin* | mingw* | pw32*)
14317 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14318 # When not using gcc, we currently assume that we are using
14319 # Microsoft Visual C++.
14320 if test "$GCC" != yes; then
14321 with_gnu_ld=no
14324 openbsd*)
14325 with_gnu_ld=no
14327 esac
14329 ld_shlibs_F77=yes
14330 if test "$with_gnu_ld" = yes; then
14331 # If archive_cmds runs LD, not CC, wlarc should be empty
14332 wlarc='${wl}'
14334 # See if GNU ld supports shared libraries.
14335 case $host_os in
14336 aix3* | aix4* | aix5*)
14337 # On AIX/PPC, the GNU linker is very broken
14338 if test "$host_cpu" != ia64; then
14339 ld_shlibs_F77=no
14340 cat <<EOF 1>&2
14342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14343 *** to be unable to reliably create shared libraries on AIX.
14344 *** Therefore, libtool is disabling shared libraries support. If you
14345 *** really care for shared libraries, you may want to modify your PATH
14346 *** so that a non-GNU linker is found, and then restart.
14352 amigaos*)
14353 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)'
14354 hardcode_libdir_flag_spec_F77='-L$libdir'
14355 hardcode_minus_L_F77=yes
14357 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14358 # that the semantics of dynamic libraries on AmigaOS, at least up
14359 # to version 4, is to share data among multiple programs linked
14360 # with the same dynamic library. Since this doesn't match the
14361 # behavior of shared libraries on other platforms, we can't use
14362 # them.
14363 ld_shlibs_F77=no
14366 beos*)
14367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14368 allow_undefined_flag_F77=unsupported
14369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14370 # support --undefined. This deserves some investigation. FIXME
14371 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14372 else
14373 ld_shlibs_F77=no
14377 cygwin* | mingw* | pw32*)
14378 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14379 # as there is no search path for DLLs.
14380 hardcode_libdir_flag_spec_F77='-L$libdir'
14381 allow_undefined_flag_F77=unsupported
14382 always_export_symbols_F77=no
14383 enable_shared_with_static_runtimes_F77=yes
14384 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14386 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14387 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14388 # If the export-symbols file already is a .def file (1st line
14389 # is EXPORTS), use it as is; otherwise, prepend...
14390 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14391 cp $export_symbols $output_objdir/$soname.def;
14392 else
14393 echo EXPORTS > $output_objdir/$soname.def;
14394 cat $export_symbols >> $output_objdir/$soname.def;
14396 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14397 else
14398 ld_shlibs=no
14402 netbsd*)
14403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14404 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14405 wlarc=
14406 else
14407 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14408 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14412 solaris* | sysv5*)
14413 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14414 ld_shlibs_F77=no
14415 cat <<EOF 1>&2
14417 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14418 *** create shared libraries on Solaris systems. Therefore, libtool
14419 *** is disabling shared libraries support. We urge you to upgrade GNU
14420 *** binutils to release 2.9.1 or newer. Another option is to modify
14421 *** your PATH or compiler configuration so that the native linker is
14422 *** used, and then restart.
14425 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14426 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14427 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14428 else
14429 ld_shlibs_F77=no
14433 sunos4*)
14434 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14435 wlarc=
14436 hardcode_direct_F77=yes
14437 hardcode_shlibpath_var_F77=no
14440 linux*)
14441 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14442 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443 archive_cmds_F77="$tmp_archive_cmds"
14444 supports_anon_versioning=no
14445 case `$LD -v 2>/dev/null` in
14446 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14447 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14448 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14449 *\ 2.11.*) ;; # other 2.11 versions
14450 *) supports_anon_versioning=yes ;;
14451 esac
14452 if test $supports_anon_versioning = yes; then
14453 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14455 $echo "local: *; };" >> $output_objdir/$libname.ver~
14456 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14457 else
14458 archive_expsym_cmds_F77="$tmp_archive_cmds"
14460 else
14461 ld_shlibs_F77=no
14466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14467 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14468 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14469 else
14470 ld_shlibs_F77=no
14473 esac
14475 if test "$ld_shlibs_F77" = yes; then
14476 runpath_var=LD_RUN_PATH
14477 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14478 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14479 # ancient GNU ld didn't support --whole-archive et. al.
14480 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14481 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14482 else
14483 whole_archive_flag_spec_F77=
14486 else
14487 # PORTME fill in a description of your system's linker (not GNU ld)
14488 case $host_os in
14489 aix3*)
14490 allow_undefined_flag_F77=unsupported
14491 always_export_symbols_F77=yes
14492 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'
14493 # Note: this linker hardcodes the directories in LIBPATH if there
14494 # are no directories specified by -L.
14495 hardcode_minus_L_F77=yes
14496 if test "$GCC" = yes && test -z "$link_static_flag"; then
14497 # Neither direct hardcoding nor static linking is supported with a
14498 # broken collect2.
14499 hardcode_direct_F77=unsupported
14503 aix4* | aix5*)
14504 if test "$host_cpu" = ia64; then
14505 # On IA64, the linker does run time linking by default, so we don't
14506 # have to do anything special.
14507 aix_use_runtimelinking=no
14508 exp_sym_flag='-Bexport'
14509 no_entry_flag=""
14510 else
14511 # If we're using GNU nm, then we don't want the "-C" option.
14512 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14513 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14514 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'
14515 else
14516 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'
14518 aix_use_runtimelinking=no
14520 # Test if we are trying to use run time linking or normal
14521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14522 # need to do runtime linking.
14523 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14524 for ld_flag in $LDFLAGS; do
14525 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14526 aix_use_runtimelinking=yes
14527 break
14529 done
14530 esac
14532 exp_sym_flag='-bexport'
14533 no_entry_flag='-bnoentry'
14536 # When large executables or shared objects are built, AIX ld can
14537 # have problems creating the table of contents. If linking a library
14538 # or program results in "error TOC overflow" add -mminimal-toc to
14539 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14540 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14542 archive_cmds_F77=''
14543 hardcode_direct_F77=yes
14544 hardcode_libdir_separator_F77=':'
14545 link_all_deplibs_F77=yes
14547 if test "$GCC" = yes; then
14548 case $host_os in aix4.012|aix4.012.*)
14549 # We only want to do this on AIX 4.2 and lower, the check
14550 # below for broken collect2 doesn't work under 4.3+
14551 collect2name=`${CC} -print-prog-name=collect2`
14552 if test -f "$collect2name" && \
14553 strings "$collect2name" | grep resolve_lib_name >/dev/null
14554 then
14555 # We have reworked collect2
14556 hardcode_direct_F77=yes
14557 else
14558 # We have old collect2
14559 hardcode_direct_F77=unsupported
14560 # It fails to find uninstalled libraries when the uninstalled
14561 # path is not listed in the libpath. Setting hardcode_minus_L
14562 # to unsupported forces relinking
14563 hardcode_minus_L_F77=yes
14564 hardcode_libdir_flag_spec_F77='-L$libdir'
14565 hardcode_libdir_separator_F77=
14567 esac
14568 shared_flag='-shared'
14569 else
14570 # not using gcc
14571 if test "$host_cpu" = ia64; then
14572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14573 # chokes on -Wl,-G. The following line is correct:
14574 shared_flag='-G'
14575 else
14576 if test "$aix_use_runtimelinking" = yes; then
14577 shared_flag='${wl}-G'
14578 else
14579 shared_flag='${wl}-bM:SRE'
14584 # It seems that -bexpall does not export symbols beginning with
14585 # underscore (_), so it is better to generate a list of symbols to export.
14586 always_export_symbols_F77=yes
14587 if test "$aix_use_runtimelinking" = yes; then
14588 # Warning - without using the other runtime loading flags (-brtl),
14589 # -berok will link without error, but may produce a broken library.
14590 allow_undefined_flag_F77='-berok'
14591 # Determine the default libpath from the value encoded in an empty executable.
14592 cat >conftest.$ac_ext <<_ACEOF
14593 program main
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } &&
14611 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14612 { (case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615 esac
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_try") 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest$ac_exeext'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625 esac
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14634 # Check for a 64-bit object if we didn't find anything.
14635 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; }
14636 }'`; fi
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14644 rm -f core conftest.err conftest.$ac_objext \
14645 conftest$ac_exeext conftest.$ac_ext
14646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14648 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14649 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"
14650 else
14651 if test "$host_cpu" = ia64; then
14652 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14653 allow_undefined_flag_F77="-z nodefs"
14654 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"
14655 else
14656 # Determine the default libpath from the value encoded in an empty executable.
14657 cat >conftest.$ac_ext <<_ACEOF
14658 program main
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (ac_try="$ac_link"
14664 case "(($ac_try" in
14665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666 *) ac_try_echo=$ac_try;;
14667 esac
14668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14669 (eval "$ac_link") 2>conftest.er1
14670 ac_status=$?
14671 grep -v '^ *+' conftest.er1 >conftest.err
14672 rm -f conftest.er1
14673 cat conftest.err >&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } &&
14676 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14677 { (case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_try") 2>&5
14683 ac_status=$?
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); }; } &&
14686 { ac_try='test -s conftest$ac_exeext'
14687 { (case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_try") 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14697 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14699 # Check for a 64-bit object if we didn't find anything.
14700 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; }
14701 }'`; fi
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14709 rm -f core conftest.err conftest.$ac_objext \
14710 conftest$ac_exeext conftest.$ac_ext
14711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14713 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14714 # Warning - without using the other run time loading flags,
14715 # -berok will link without error, but may produce a broken library.
14716 no_undefined_flag_F77=' ${wl}-bernotok'
14717 allow_undefined_flag_F77=' ${wl}-berok'
14718 # -bexpall does not export symbols beginning with underscore (_)
14719 always_export_symbols_F77=yes
14720 # Exported symbols can be pulled into shared objects from archives
14721 whole_archive_flag_spec_F77=' '
14722 archive_cmds_need_lc_F77=yes
14723 # This is similar to how AIX traditionally builds it's shared libraries.
14724 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'
14729 amigaos*)
14730 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)'
14731 hardcode_libdir_flag_spec_F77='-L$libdir'
14732 hardcode_minus_L_F77=yes
14733 # see comment about different semantics on the GNU ld section
14734 ld_shlibs_F77=no
14737 bsdi4*)
14738 export_dynamic_flag_spec_F77=-rdynamic
14741 cygwin* | mingw* | pw32*)
14742 # When not using gcc, we currently assume that we are using
14743 # Microsoft Visual C++.
14744 # hardcode_libdir_flag_spec is actually meaningless, as there is
14745 # no search path for DLLs.
14746 hardcode_libdir_flag_spec_F77=' '
14747 allow_undefined_flag_F77=unsupported
14748 # Tell ltmain to make .lib files, not .a files.
14749 libext=lib
14750 # Tell ltmain to make .dll files, not .so files.
14751 shrext=".dll"
14752 # FIXME: Setting linknames here is a bad hack.
14753 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14754 # The linker will automatically build a .lib file if we build a DLL.
14755 old_archive_From_new_cmds_F77='true'
14756 # FIXME: Should let the user specify the lib program.
14757 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14758 fix_srcfile_path='`cygpath -w "$srcfile"`'
14759 enable_shared_with_static_runtimes_F77=yes
14762 darwin* | rhapsody*)
14763 if test "$GXX" = yes ; then
14764 archive_cmds_need_lc_F77=no
14765 case "$host_os" in
14766 rhapsody* | darwin1.[012])
14767 allow_undefined_flag_F77='-undefined suppress'
14769 *) # Darwin 1.3 on
14770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14771 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14772 else
14773 case ${MACOSX_DEPLOYMENT_TARGET} in
14774 10.[012])
14775 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14777 10.*)
14778 allow_undefined_flag_F77='-undefined dynamic_lookup'
14780 esac
14783 esac
14784 lt_int_apple_cc_single_mod=no
14785 output_verbose_link_cmd='echo'
14786 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14787 lt_int_apple_cc_single_mod=yes
14789 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14790 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14791 else
14792 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'
14794 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14795 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14796 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14797 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}'
14798 else
14799 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}'
14801 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}'
14802 hardcode_direct_F77=no
14803 hardcode_automatic_F77=yes
14804 hardcode_shlibpath_var_F77=unsupported
14805 whole_archive_flag_spec_F77='-all_load $convenience'
14806 link_all_deplibs_F77=yes
14807 else
14808 ld_shlibs_F77=no
14812 dgux*)
14813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14814 hardcode_libdir_flag_spec_F77='-L$libdir'
14815 hardcode_shlibpath_var_F77=no
14818 freebsd1*)
14819 ld_shlibs_F77=no
14822 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14823 # support. Future versions do this automatically, but an explicit c++rt0.o
14824 # does not break anything, and helps significantly (at the cost of a little
14825 # extra space).
14826 freebsd2.2*)
14827 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14828 hardcode_libdir_flag_spec_F77='-R$libdir'
14829 hardcode_direct_F77=yes
14830 hardcode_shlibpath_var_F77=no
14833 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14834 freebsd2*)
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_direct_F77=yes
14837 hardcode_minus_L_F77=yes
14838 hardcode_shlibpath_var_F77=no
14841 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14842 freebsd* | kfreebsd*-gnu)
14843 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14844 hardcode_libdir_flag_spec_F77='-R$libdir'
14845 hardcode_direct_F77=yes
14846 hardcode_shlibpath_var_F77=no
14849 hpux9*)
14850 if test "$GCC" = yes; then
14851 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'
14852 else
14853 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'
14855 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14856 hardcode_libdir_separator_F77=:
14857 hardcode_direct_F77=yes
14859 # hardcode_minus_L: Not really in the search PATH,
14860 # but as the default location of the library.
14861 hardcode_minus_L_F77=yes
14862 export_dynamic_flag_spec_F77='${wl}-E'
14865 hpux10* | hpux11*)
14866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14867 case "$host_cpu" in
14868 hppa*64*|ia64*)
14869 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14874 esac
14875 else
14876 case "$host_cpu" in
14877 hppa*64*|ia64*)
14878 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14881 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14883 esac
14885 if test "$with_gnu_ld" = no; then
14886 case "$host_cpu" in
14887 hppa*64*)
14888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14889 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14890 hardcode_libdir_separator_F77=:
14891 hardcode_direct_F77=no
14892 hardcode_shlibpath_var_F77=no
14894 ia64*)
14895 hardcode_libdir_flag_spec_F77='-L$libdir'
14896 hardcode_direct_F77=no
14897 hardcode_shlibpath_var_F77=no
14899 # hardcode_minus_L: Not really in the search PATH,
14900 # but as the default location of the library.
14901 hardcode_minus_L_F77=yes
14904 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14905 hardcode_libdir_separator_F77=:
14906 hardcode_direct_F77=yes
14907 export_dynamic_flag_spec_F77='${wl}-E'
14909 # hardcode_minus_L: Not really in the search PATH,
14910 # but as the default location of the library.
14911 hardcode_minus_L_F77=yes
14913 esac
14917 irix5* | irix6* | nonstopux*)
14918 if test "$GCC" = yes; then
14919 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'
14920 else
14921 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'
14922 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14924 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14925 hardcode_libdir_separator_F77=:
14926 link_all_deplibs_F77=yes
14929 netbsd*)
14930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14931 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14932 else
14933 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14935 hardcode_libdir_flag_spec_F77='-R$libdir'
14936 hardcode_direct_F77=yes
14937 hardcode_shlibpath_var_F77=no
14940 newsos6)
14941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14942 hardcode_direct_F77=yes
14943 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944 hardcode_libdir_separator_F77=:
14945 hardcode_shlibpath_var_F77=no
14948 openbsd*)
14949 hardcode_direct_F77=yes
14950 hardcode_shlibpath_var_F77=no
14951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14952 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14953 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14954 export_dynamic_flag_spec_F77='${wl}-E'
14955 else
14956 case $host_os in
14957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14958 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14959 hardcode_libdir_flag_spec_F77='-R$libdir'
14962 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14963 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14965 esac
14969 os2*)
14970 hardcode_libdir_flag_spec_F77='-L$libdir'
14971 hardcode_minus_L_F77=yes
14972 allow_undefined_flag_F77=unsupported
14973 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'
14974 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14977 osf3*)
14978 if test "$GCC" = yes; then
14979 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14980 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'
14981 else
14982 allow_undefined_flag_F77=' -expect_unresolved \*'
14983 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'
14985 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14986 hardcode_libdir_separator_F77=:
14989 osf4* | osf5*) # as osf3* with the addition of -msym flag
14990 if test "$GCC" = yes; then
14991 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14992 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'
14993 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14994 else
14995 allow_undefined_flag_F77=' -expect_unresolved \*'
14996 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'
14997 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~
14998 $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'
15000 # Both c and cxx compiler support -rpath directly
15001 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15003 hardcode_libdir_separator_F77=:
15006 sco3.2v5*)
15007 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_shlibpath_var_F77=no
15009 export_dynamic_flag_spec_F77='${wl}-Bexport'
15010 runpath_var=LD_RUN_PATH
15011 hardcode_runpath_var=yes
15014 solaris*)
15015 no_undefined_flag_F77=' -z text'
15016 if test "$GCC" = yes; then
15017 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15018 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15019 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15020 else
15021 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15023 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15025 hardcode_libdir_flag_spec_F77='-R$libdir'
15026 hardcode_shlibpath_var_F77=no
15027 case $host_os in
15028 solaris2.[0-5] | solaris2.[0-5].*) ;;
15029 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15030 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15031 esac
15032 link_all_deplibs_F77=yes
15035 sunos4*)
15036 if test "x$host_vendor" = xsequent; then
15037 # Use $CC to link under sequent, because it throws in some extra .o
15038 # files that make .init and .fini sections work.
15039 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15040 else
15041 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15043 hardcode_libdir_flag_spec_F77='-L$libdir'
15044 hardcode_direct_F77=yes
15045 hardcode_minus_L_F77=yes
15046 hardcode_shlibpath_var_F77=no
15049 sysv4)
15050 case $host_vendor in
15051 sni)
15052 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15053 hardcode_direct_F77=yes # is this really true???
15055 siemens)
15056 ## LD is ld it makes a PLAMLIB
15057 ## CC just makes a GrossModule.
15058 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15059 reload_cmds_F77='$CC -r -o $output$reload_objs'
15060 hardcode_direct_F77=no
15062 motorola)
15063 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15064 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15066 esac
15067 runpath_var='LD_RUN_PATH'
15068 hardcode_shlibpath_var_F77=no
15071 sysv4.3*)
15072 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15073 hardcode_shlibpath_var_F77=no
15074 export_dynamic_flag_spec_F77='-Bexport'
15077 sysv4*MP*)
15078 if test -d /usr/nec; then
15079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080 hardcode_shlibpath_var_F77=no
15081 runpath_var=LD_RUN_PATH
15082 hardcode_runpath_var=yes
15083 ld_shlibs_F77=yes
15087 sysv4.2uw2*)
15088 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15089 hardcode_direct_F77=yes
15090 hardcode_minus_L_F77=no
15091 hardcode_shlibpath_var_F77=no
15092 hardcode_runpath_var=yes
15093 runpath_var=LD_RUN_PATH
15096 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15097 no_undefined_flag_F77='${wl}-z ${wl}text'
15098 if test "$GCC" = yes; then
15099 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15100 else
15101 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15103 runpath_var='LD_RUN_PATH'
15104 hardcode_shlibpath_var_F77=no
15107 sysv5*)
15108 no_undefined_flag_F77=' -z text'
15109 # $CC -shared without GNU ld will not create a library from C++
15110 # object files and a static libstdc++, better avoid it by now
15111 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15112 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15113 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15114 hardcode_libdir_flag_spec_F77=
15115 hardcode_shlibpath_var_F77=no
15116 runpath_var='LD_RUN_PATH'
15119 uts4*)
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_libdir_flag_spec_F77='-L$libdir'
15122 hardcode_shlibpath_var_F77=no
15126 ld_shlibs_F77=no
15128 esac
15131 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15132 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15133 test "$ld_shlibs_F77" = no && can_build_shared=no
15135 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15136 if test "$GCC" = yes; then
15137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15141 # Do we need to explicitly link libc?
15143 case "x$archive_cmds_need_lc_F77" in
15144 x|xyes)
15145 # Assume -lc should be added
15146 archive_cmds_need_lc_F77=yes
15148 if test "$enable_shared" = yes && test "$GCC" = yes; then
15149 case $archive_cmds_F77 in
15150 *'~'*)
15151 # FIXME: we may have to deal with multi-command sequences.
15153 '$CC '*)
15154 # Test whether the compiler implicitly links with -lc since on some
15155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15156 # to ld, don't add -lc before -lgcc.
15157 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15158 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15159 $rm conftest*
15160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163 (eval $ac_compile) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); } 2>conftest.err; then
15167 soname=conftest
15168 lib=conftest
15169 libobjs=conftest.$ac_objext
15170 deplibs=
15171 wl=$lt_prog_compiler_wl_F77
15172 compiler_flags=-v
15173 linker_flags=-v
15174 verstring=
15175 output_objdir=.
15176 libname=conftest
15177 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15178 allow_undefined_flag_F77=
15179 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15180 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }
15184 then
15185 archive_cmds_need_lc_F77=no
15186 else
15187 archive_cmds_need_lc_F77=yes
15189 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15190 else
15191 cat conftest.err 1>&5
15193 $rm conftest*
15194 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15195 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15197 esac
15200 esac
15202 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15203 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15204 library_names_spec=
15205 libname_spec='lib$name'
15206 soname_spec=
15207 shrext=".so"
15208 postinstall_cmds=
15209 postuninstall_cmds=
15210 finish_cmds=
15211 finish_eval=
15212 shlibpath_var=
15213 shlibpath_overrides_runpath=unknown
15214 version_type=none
15215 dynamic_linker="$host_os ld.so"
15216 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15217 if test "$GCC" = yes; then
15218 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15219 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15220 # if the path contains ";" then we assume it to be the separator
15221 # otherwise default to the standard path separator (i.e. ":") - it is
15222 # assumed that no part of a normal pathname contains ";" but that should
15223 # okay in the real world where ";" in dirpaths is itself problematic.
15224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15225 else
15226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15228 else
15229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15231 need_lib_prefix=unknown
15232 hardcode_into_libs=no
15234 # when you set need_version to no, make sure it does not cause -set_version
15235 # flags to be left without arguments
15236 need_version=unknown
15238 case $host_os in
15239 aix3*)
15240 version_type=linux
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15242 shlibpath_var=LIBPATH
15244 # AIX 3 has no versioning support, so we append a major version to the name.
15245 soname_spec='${libname}${release}${shared_ext}$major'
15248 aix4* | aix5*)
15249 version_type=linux
15250 need_lib_prefix=no
15251 need_version=no
15252 hardcode_into_libs=yes
15253 if test "$host_cpu" = ia64; then
15254 # AIX 5 supports IA64
15255 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15256 shlibpath_var=LD_LIBRARY_PATH
15257 else
15258 # With GCC up to 2.95.x, collect2 would create an import file
15259 # for dependence libraries. The import file would start with
15260 # the line `#! .'. This would cause the generated library to
15261 # depend on `.', always an invalid library. This was fixed in
15262 # development snapshots of GCC prior to 3.0.
15263 case $host_os in
15264 aix4 | aix4.[01] | aix4.[01].*)
15265 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15266 echo ' yes '
15267 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15269 else
15270 can_build_shared=no
15273 esac
15274 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15275 # soname into executable. Probably we can add versioning support to
15276 # collect2, so additional links can be useful in future.
15277 if test "$aix_use_runtimelinking" = yes; then
15278 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15279 # instead of lib<name>.a to let people know that these are not
15280 # typical AIX shared libraries.
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 else
15283 # We preserve .a as extension for shared libraries through AIX4.2
15284 # and later when we are not doing run time linking.
15285 library_names_spec='${libname}${release}.a $libname.a'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LIBPATH
15292 amigaos*)
15293 library_names_spec='$libname.ixlibrary $libname.a'
15294 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15295 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'
15298 beos*)
15299 library_names_spec='${libname}${shared_ext}'
15300 dynamic_linker="$host_os ld.so"
15301 shlibpath_var=LIBRARY_PATH
15304 bsdi4*)
15305 version_type=linux
15306 need_version=no
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15308 soname_spec='${libname}${release}${shared_ext}$major'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15312 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15313 # the default ld.so.conf also contains /usr/contrib/lib and
15314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15315 # libtool to hard-code these into programs
15318 cygwin* | mingw* | pw32*)
15319 version_type=windows
15320 shrext=".dll"
15321 need_version=no
15322 need_lib_prefix=no
15324 case $GCC,$host_os in
15325 yes,cygwin* | yes,mingw* | yes,pw32*)
15326 library_names_spec='$libname.dll.a'
15327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15328 postinstall_cmds='base_file=`basename \${file}`~
15329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15330 dldir=$destdir/`dirname \$dlpath`~
15331 test -d \$dldir || mkdir -p \$dldir~
15332 $install_prog $dir/$dlname \$dldir/$dlname'
15333 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15334 dlpath=$dir/\$dldll~
15335 $rm \$dlpath'
15336 shlibpath_overrides_runpath=yes
15338 case $host_os in
15339 cygwin*)
15340 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15341 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15342 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15344 mingw*)
15345 # MinGW DLLs use traditional 'lib' prefix
15346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15347 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15348 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15349 # It is most probably a Windows format PATH printed by
15350 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15351 # path with ; separators, and with drive letters. We can handle the
15352 # drive letters (cygwin fileutils understands them), so leave them,
15353 # especially as we might pass files found there to a mingw objdump,
15354 # which wouldn't understand a cygwinified path. Ahh.
15355 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15356 else
15357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15360 pw32*)
15361 # pw32 DLLs use 'pw' prefix rather than 'lib'
15362 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15364 esac
15368 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15370 esac
15371 dynamic_linker='Win32 ld.exe'
15372 # FIXME: first we should search . and the directory the executable is in
15373 shlibpath_var=PATH
15376 darwin* | rhapsody*)
15377 dynamic_linker="$host_os dyld"
15378 version_type=darwin
15379 need_lib_prefix=no
15380 need_version=no
15381 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15382 soname_spec='${libname}${release}${major}$shared_ext'
15383 shlibpath_overrides_runpath=yes
15384 shlibpath_var=DYLD_LIBRARY_PATH
15385 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15386 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15387 if test "$GCC" = yes; then
15388 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"`
15389 else
15390 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15392 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15395 dgux*)
15396 version_type=linux
15397 need_lib_prefix=no
15398 need_version=no
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LD_LIBRARY_PATH
15404 freebsd1*)
15405 dynamic_linker=no
15408 kfreebsd*-gnu)
15409 version_type=linux
15410 need_lib_prefix=no
15411 need_version=no
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15413 soname_spec='${libname}${release}${shared_ext}$major'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15417 dynamic_linker='GNU ld.so'
15420 freebsd*)
15421 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15422 version_type=freebsd-$objformat
15423 case $version_type in
15424 freebsd-elf*)
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15426 need_version=no
15427 need_lib_prefix=no
15429 freebsd-*)
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15431 need_version=yes
15433 esac
15434 shlibpath_var=LD_LIBRARY_PATH
15435 case $host_os in
15436 freebsd2*)
15437 shlibpath_overrides_runpath=yes
15439 freebsd3.01* | freebsdelf3.01*)
15440 shlibpath_overrides_runpath=yes
15441 hardcode_into_libs=yes
15443 *) # from 3.2 on
15444 shlibpath_overrides_runpath=no
15445 hardcode_into_libs=yes
15447 esac
15450 gnu*)
15451 version_type=linux
15452 need_lib_prefix=no
15453 need_version=no
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 shlibpath_var=LD_LIBRARY_PATH
15457 hardcode_into_libs=yes
15460 hpux9* | hpux10* | hpux11*)
15461 # Give a soname corresponding to the major version so that dld.sl refuses to
15462 # link against other versions.
15463 version_type=sunos
15464 need_lib_prefix=no
15465 need_version=no
15466 case "$host_cpu" in
15467 ia64*)
15468 shrext='.so'
15469 hardcode_into_libs=yes
15470 dynamic_linker="$host_os dld.so"
15471 shlibpath_var=LD_LIBRARY_PATH
15472 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 if test "X$HPUX_IA64_MODE" = X32; then
15476 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15477 else
15478 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15482 hppa*64*)
15483 shrext='.sl'
15484 hardcode_into_libs=yes
15485 dynamic_linker="$host_os dld.sl"
15486 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15491 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15494 shrext='.sl'
15495 dynamic_linker="$host_os dld.sl"
15496 shlibpath_var=SHLIB_PATH
15497 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499 soname_spec='${libname}${release}${shared_ext}$major'
15501 esac
15502 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15503 postinstall_cmds='chmod 555 $lib'
15506 irix5* | irix6* | nonstopux*)
15507 case $host_os in
15508 nonstopux*) version_type=nonstopux ;;
15510 if test "$lt_cv_prog_gnu_ld" = yes; then
15511 version_type=linux
15512 else
15513 version_type=irix
15514 fi ;;
15515 esac
15516 need_lib_prefix=no
15517 need_version=no
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15520 case $host_os in
15521 irix5* | nonstopux*)
15522 libsuff= shlibsuff=
15525 case $LD in # libtool.m4 will add one of these switches to LD
15526 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15527 libsuff= shlibsuff= libmagic=32-bit;;
15528 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15529 libsuff=32 shlibsuff=N32 libmagic=N32;;
15530 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15531 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15532 *) libsuff= shlibsuff= libmagic=never-match;;
15533 esac
15535 esac
15536 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15537 shlibpath_overrides_runpath=no
15538 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15539 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15540 hardcode_into_libs=yes
15543 # No shared lib support for Linux oldld, aout, or coff.
15544 linux*oldld* | linux*aout* | linux*coff*)
15545 dynamic_linker=no
15548 # This must be Linux ELF.
15549 linux*)
15550 version_type=linux
15551 need_lib_prefix=no
15552 need_version=no
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 shlibpath_overrides_runpath=no
15558 # This implies no fast_install, which is unacceptable.
15559 # Some rework will be needed to allow for fast_install
15560 # before this can be enabled.
15561 hardcode_into_libs=yes
15563 # We used to test for /lib/ld.so.1 and disable shared libraries on
15564 # powerpc, because MkLinux only supported shared libraries with the
15565 # GNU dynamic linker. Since this was broken with cross compilers,
15566 # most powerpc-linux boxes support dynamic linking these days and
15567 # people can always --disable-shared, the test was removed, and we
15568 # assume the GNU/Linux dynamic linker is in use.
15569 dynamic_linker='GNU/Linux ld.so'
15572 netbsd*)
15573 version_type=sunos
15574 need_lib_prefix=no
15575 need_version=no
15576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15579 dynamic_linker='NetBSD (a.out) ld.so'
15580 else
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 dynamic_linker='NetBSD ld.elf_so'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15587 hardcode_into_libs=yes
15590 newsos6)
15591 version_type=linux
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15597 nto-qnx*)
15598 version_type=linux
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15607 openbsd*)
15608 version_type=sunos
15609 need_lib_prefix=no
15610 need_version=no
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15613 shlibpath_var=LD_LIBRARY_PATH
15614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15615 case $host_os in
15616 openbsd2.[89] | openbsd2.[89].*)
15617 shlibpath_overrides_runpath=no
15620 shlibpath_overrides_runpath=yes
15622 esac
15623 else
15624 shlibpath_overrides_runpath=yes
15628 os2*)
15629 libname_spec='$name'
15630 shrext=".dll"
15631 need_lib_prefix=no
15632 library_names_spec='$libname${shared_ext} $libname.a'
15633 dynamic_linker='OS/2 ld.exe'
15634 shlibpath_var=LIBPATH
15637 osf3* | osf4* | osf5*)
15638 version_type=osf
15639 need_lib_prefix=no
15640 need_version=no
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15645 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15648 sco3.2v5*)
15649 version_type=osf
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15652 shlibpath_var=LD_LIBRARY_PATH
15655 solaris*)
15656 version_type=linux
15657 need_lib_prefix=no
15658 need_version=no
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 soname_spec='${libname}${release}${shared_ext}$major'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=yes
15663 hardcode_into_libs=yes
15664 # ldd complains unless libraries are executable
15665 postinstall_cmds='chmod +x $lib'
15668 sunos4*)
15669 version_type=sunos
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15671 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 shlibpath_overrides_runpath=yes
15674 if test "$with_gnu_ld" = yes; then
15675 need_lib_prefix=no
15677 need_version=yes
15680 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15681 version_type=linux
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 case $host_vendor in
15686 sni)
15687 shlibpath_overrides_runpath=no
15688 need_lib_prefix=no
15689 export_dynamic_flag_spec='${wl}-Blargedynsym'
15690 runpath_var=LD_RUN_PATH
15692 siemens)
15693 need_lib_prefix=no
15695 motorola)
15696 need_lib_prefix=no
15697 need_version=no
15698 shlibpath_overrides_runpath=no
15699 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15701 esac
15704 sysv4*MP*)
15705 if test -d /usr/nec ;then
15706 version_type=linux
15707 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15708 soname_spec='$libname${shared_ext}.$major'
15709 shlibpath_var=LD_LIBRARY_PATH
15713 uts4*)
15714 version_type=linux
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15721 dynamic_linker=no
15723 esac
15724 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15725 echo "${ECHO_T}$dynamic_linker" >&6; }
15726 test "$dynamic_linker" = no && can_build_shared=no
15728 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15729 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15730 hardcode_action_F77=
15731 if test -n "$hardcode_libdir_flag_spec_F77" || \
15732 test -n "$runpath_var F77" || \
15733 test "X$hardcode_automatic_F77"="Xyes" ; then
15735 # We can hardcode non-existant directories.
15736 if test "$hardcode_direct_F77" != no &&
15737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15738 # have to relink, otherwise we might link with an installed library
15739 # when we should be linking with a yet-to-be-installed one
15740 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15741 test "$hardcode_minus_L_F77" != no; then
15742 # Linking always hardcodes the temporary library directory.
15743 hardcode_action_F77=relink
15744 else
15745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15746 hardcode_action_F77=immediate
15748 else
15749 # We cannot hardcode anything, or else we can only hardcode existing
15750 # directories.
15751 hardcode_action_F77=unsupported
15753 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15754 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15756 if test "$hardcode_action_F77" = relink; then
15757 # Fast installation is not supported
15758 enable_fast_install=no
15759 elif test "$shlibpath_overrides_runpath" = yes ||
15760 test "$enable_shared" = no; then
15761 # Fast installation is not necessary
15762 enable_fast_install=needless
15765 striplib=
15766 old_striplib=
15767 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15768 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15769 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15770 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15771 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15772 { echo "$as_me:$LINENO: result: yes" >&5
15773 echo "${ECHO_T}yes" >&6; }
15774 else
15775 # FIXME - insert some real tests, host_os isn't really good enough
15776 case $host_os in
15777 darwin*)
15778 if test -n "$STRIP" ; then
15779 striplib="$STRIP -x"
15780 { echo "$as_me:$LINENO: result: yes" >&5
15781 echo "${ECHO_T}yes" >&6; }
15782 else
15783 { echo "$as_me:$LINENO: result: no" >&5
15784 echo "${ECHO_T}no" >&6; }
15788 { echo "$as_me:$LINENO: result: no" >&5
15789 echo "${ECHO_T}no" >&6; }
15791 esac
15796 # The else clause should only fire when bootstrapping the
15797 # libtool distribution, otherwise you forgot to ship ltmain.sh
15798 # with your package, and you will get complaints that there are
15799 # no rules to generate ltmain.sh.
15800 if test -f "$ltmain"; then
15801 # See if we are running on zsh, and set the options which allow our commands through
15802 # without removal of \ escapes.
15803 if test -n "${ZSH_VERSION+set}" ; then
15804 setopt NO_GLOB_SUBST
15806 # Now quote all the things that may contain metacharacters while being
15807 # careful not to overquote the AC_SUBSTed values. We take copies of the
15808 # variables and quote the copies for generation of the libtool script.
15809 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15810 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15811 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15812 deplibs_check_method reload_flag reload_cmds need_locks \
15813 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15814 lt_cv_sys_global_symbol_to_c_name_address \
15815 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15816 old_postinstall_cmds old_postuninstall_cmds \
15817 compiler_F77 \
15818 CC_F77 \
15819 LD_F77 \
15820 lt_prog_compiler_wl_F77 \
15821 lt_prog_compiler_pic_F77 \
15822 lt_prog_compiler_static_F77 \
15823 lt_prog_compiler_no_builtin_flag_F77 \
15824 export_dynamic_flag_spec_F77 \
15825 thread_safe_flag_spec_F77 \
15826 whole_archive_flag_spec_F77 \
15827 enable_shared_with_static_runtimes_F77 \
15828 old_archive_cmds_F77 \
15829 old_archive_from_new_cmds_F77 \
15830 predep_objects_F77 \
15831 postdep_objects_F77 \
15832 predeps_F77 \
15833 postdeps_F77 \
15834 compiler_lib_search_path_F77 \
15835 archive_cmds_F77 \
15836 archive_expsym_cmds_F77 \
15837 postinstall_cmds_F77 \
15838 postuninstall_cmds_F77 \
15839 old_archive_from_expsyms_cmds_F77 \
15840 allow_undefined_flag_F77 \
15841 no_undefined_flag_F77 \
15842 export_symbols_cmds_F77 \
15843 hardcode_libdir_flag_spec_F77 \
15844 hardcode_libdir_flag_spec_ld_F77 \
15845 hardcode_libdir_separator_F77 \
15846 hardcode_automatic_F77 \
15847 module_cmds_F77 \
15848 module_expsym_cmds_F77 \
15849 lt_cv_prog_compiler_c_o_F77 \
15850 exclude_expsyms_F77 \
15851 include_expsyms_F77; do
15853 case $var in
15854 old_archive_cmds_F77 | \
15855 old_archive_from_new_cmds_F77 | \
15856 archive_cmds_F77 | \
15857 archive_expsym_cmds_F77 | \
15858 module_cmds_F77 | \
15859 module_expsym_cmds_F77 | \
15860 old_archive_from_expsyms_cmds_F77 | \
15861 export_symbols_cmds_F77 | \
15862 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15863 postinstall_cmds | postuninstall_cmds | \
15864 old_postinstall_cmds | old_postuninstall_cmds | \
15865 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15866 # Double-quote double-evaled strings.
15867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15872 esac
15873 done
15875 case $lt_echo in
15876 *'\$0 --fallback-echo"')
15877 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15879 esac
15881 cfgfile="$ofile"
15883 cat <<__EOF__ >> "$cfgfile"
15884 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15886 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15888 # Shell to use when invoking shell scripts.
15889 SHELL=$lt_SHELL
15891 # Whether or not to build shared libraries.
15892 build_libtool_libs=$enable_shared
15894 # Whether or not to build static libraries.
15895 build_old_libs=$enable_static
15897 # Whether or not to add -lc for building shared libraries.
15898 build_libtool_need_lc=$archive_cmds_need_lc_F77
15900 # Whether or not to disallow shared libs when runtime libs are static
15901 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15903 # Whether or not to optimize for fast installation.
15904 fast_install=$enable_fast_install
15906 # The host system.
15907 host_alias=$host_alias
15908 host=$host
15910 # An echo program that does not interpret backslashes.
15911 echo=$lt_echo
15913 # The archiver.
15914 AR=$lt_AR
15915 AR_FLAGS=$lt_AR_FLAGS
15917 # A C compiler.
15918 LTCC=$lt_LTCC
15920 # A language-specific compiler.
15921 CC=$lt_compiler_F77
15923 # Is the compiler the GNU C compiler?
15924 with_gcc=$GCC_F77
15926 # An ERE matcher.
15927 EGREP=$lt_EGREP
15929 # The linker used to build libraries.
15930 LD=$lt_LD_F77
15932 # Whether we need hard or soft links.
15933 LN_S=$lt_LN_S
15935 # A BSD-compatible nm program.
15936 NM=$lt_NM
15938 # A symbol stripping program
15939 STRIP="$STRIP"
15941 # Used to examine libraries when file_magic_cmd begins "file"
15942 MAGIC_CMD=$MAGIC_CMD
15944 # Used on cygwin: DLL creation program.
15945 DLLTOOL="$DLLTOOL"
15947 # Used on cygwin: object dumper.
15948 OBJDUMP="$OBJDUMP"
15950 # Used on cygwin: assembler.
15951 AS="$AS"
15953 # The name of the directory that contains temporary libtool files.
15954 objdir=$objdir
15956 # How to create reloadable object files.
15957 reload_flag=$lt_reload_flag
15958 reload_cmds=$lt_reload_cmds
15960 # How to pass a linker flag through the compiler.
15961 wl=$lt_lt_prog_compiler_wl_F77
15963 # Object file suffix (normally "o").
15964 objext="$ac_objext"
15966 # Old archive suffix (normally "a").
15967 libext="$libext"
15969 # Shared library suffix (normally ".so").
15970 shrext='$shrext'
15972 # Executable file suffix (normally "").
15973 exeext="$exeext"
15975 # Additional compiler flags for building library objects.
15976 pic_flag=$lt_lt_prog_compiler_pic_F77
15977 pic_mode=$pic_mode
15979 # What is the maximum length of a command?
15980 max_cmd_len=$lt_cv_sys_max_cmd_len
15982 # Does compiler simultaneously support -c and -o options?
15983 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15985 # Must we lock files when doing compilation ?
15986 need_locks=$lt_need_locks
15988 # Do we need the lib prefix for modules?
15989 need_lib_prefix=$need_lib_prefix
15991 # Do we need a version for libraries?
15992 need_version=$need_version
15994 # Whether dlopen is supported.
15995 dlopen_support=$enable_dlopen
15997 # Whether dlopen of programs is supported.
15998 dlopen_self=$enable_dlopen_self
16000 # Whether dlopen of statically linked programs is supported.
16001 dlopen_self_static=$enable_dlopen_self_static
16003 # Compiler flag to prevent dynamic linking.
16004 link_static_flag=$lt_lt_prog_compiler_static_F77
16006 # Compiler flag to turn off builtin functions.
16007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16009 # Compiler flag to allow reflexive dlopens.
16010 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16012 # Compiler flag to generate shared objects directly from archives.
16013 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16015 # Compiler flag to generate thread-safe objects.
16016 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16018 # Library versioning type.
16019 version_type=$version_type
16021 # Format of library name prefix.
16022 libname_spec=$lt_libname_spec
16024 # List of archive names. First name is the real one, the rest are links.
16025 # The last name is the one that the linker finds with -lNAME.
16026 library_names_spec=$lt_library_names_spec
16028 # The coded name of the library, if different from the real name.
16029 soname_spec=$lt_soname_spec
16031 # Commands used to build and install an old-style archive.
16032 RANLIB=$lt_RANLIB
16033 old_archive_cmds=$lt_old_archive_cmds_F77
16034 old_postinstall_cmds=$lt_old_postinstall_cmds
16035 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16037 # Create an old-style archive from a shared archive.
16038 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16040 # Create a temporary old-style archive to link instead of a shared archive.
16041 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16043 # Commands used to build and install a shared archive.
16044 archive_cmds=$lt_archive_cmds_F77
16045 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16046 postinstall_cmds=$lt_postinstall_cmds
16047 postuninstall_cmds=$lt_postuninstall_cmds
16049 # Commands used to build a loadable module (assumed same as above if empty)
16050 module_cmds=$lt_module_cmds_F77
16051 module_expsym_cmds=$lt_module_expsym_cmds_F77
16053 # Commands to strip libraries.
16054 old_striplib=$lt_old_striplib
16055 striplib=$lt_striplib
16057 # Dependencies to place before the objects being linked to create a
16058 # shared library.
16059 predep_objects=$lt_predep_objects_F77
16061 # Dependencies to place after the objects being linked to create a
16062 # shared library.
16063 postdep_objects=$lt_postdep_objects_F77
16065 # Dependencies to place before the objects being linked to create a
16066 # shared library.
16067 predeps=$lt_predeps_F77
16069 # Dependencies to place after the objects being linked to create a
16070 # shared library.
16071 postdeps=$lt_postdeps_F77
16073 # The library search path used internally by the compiler when linking
16074 # a shared library.
16075 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16077 # Method to check whether dependent libraries are shared objects.
16078 deplibs_check_method=$lt_deplibs_check_method
16080 # Command to use when deplibs_check_method == file_magic.
16081 file_magic_cmd=$lt_file_magic_cmd
16083 # Flag that allows shared libraries with undefined symbols to be built.
16084 allow_undefined_flag=$lt_allow_undefined_flag_F77
16086 # Flag that forces no undefined symbols.
16087 no_undefined_flag=$lt_no_undefined_flag_F77
16089 # Commands used to finish a libtool library installation in a directory.
16090 finish_cmds=$lt_finish_cmds
16092 # Same as above, but a single script fragment to be evaled but not shown.
16093 finish_eval=$lt_finish_eval
16095 # Take the output of nm and produce a listing of raw symbols and C names.
16096 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16098 # Transform the output of nm in a proper C declaration
16099 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16101 # Transform the output of nm in a C name address pair
16102 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16104 # This is the shared library runtime path variable.
16105 runpath_var=$runpath_var
16107 # This is the shared library path variable.
16108 shlibpath_var=$shlibpath_var
16110 # Is shlibpath searched before the hard-coded library search path?
16111 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16113 # How to hardcode a shared library path into an executable.
16114 hardcode_action=$hardcode_action_F77
16116 # Whether we should hardcode library paths into libraries.
16117 hardcode_into_libs=$hardcode_into_libs
16119 # Flag to hardcode \$libdir into a binary during linking.
16120 # This must work even if \$libdir does not exist.
16121 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16123 # If ld is used when linking, flag to hardcode \$libdir into
16124 # a binary during linking. This must work even if \$libdir does
16125 # not exist.
16126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16128 # Whether we need a single -rpath flag with a separated argument.
16129 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16131 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16132 # resulting binary.
16133 hardcode_direct=$hardcode_direct_F77
16135 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16136 # resulting binary.
16137 hardcode_minus_L=$hardcode_minus_L_F77
16139 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16140 # the resulting binary.
16141 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16143 # Set to yes if building a shared library automatically hardcodes DIR into the library
16144 # and all subsequent libraries and executables linked against it.
16145 hardcode_automatic=$hardcode_automatic_F77
16147 # Variables whose values should be saved in libtool wrapper scripts and
16148 # restored at relink time.
16149 variables_saved_for_relink="$variables_saved_for_relink"
16151 # Whether libtool must link a program against all its dependency libraries.
16152 link_all_deplibs=$link_all_deplibs_F77
16154 # Compile-time system search path for libraries
16155 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16157 # Run-time system search path for libraries
16158 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16160 # Fix the shell variable \$srcfile for the compiler.
16161 fix_srcfile_path="$fix_srcfile_path_F77"
16163 # Set to yes if exported symbols are required.
16164 always_export_symbols=$always_export_symbols_F77
16166 # The commands to list exported symbols.
16167 export_symbols_cmds=$lt_export_symbols_cmds_F77
16169 # The commands to extract the exported symbol list from a shared archive.
16170 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16172 # Symbols that should not be listed in the preloaded symbols.
16173 exclude_expsyms=$lt_exclude_expsyms_F77
16175 # Symbols that must always be exported.
16176 include_expsyms=$lt_include_expsyms_F77
16178 # ### END LIBTOOL TAG CONFIG: $tagname
16180 __EOF__
16183 else
16184 # If there is no Makefile yet, we rely on a make rule to execute
16185 # `config.status --recheck' to rerun these tests and create the
16186 # libtool script then.
16187 test -f Makefile && make "$ltmain"
16191 ac_ext=c
16192 ac_cpp='$CPP $CPPFLAGS'
16193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16197 CC="$lt_save_CC"
16199 else
16200 tagname=""
16204 GCJ)
16205 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16208 # Source file extension for Java test sources.
16209 ac_ext=java
16211 # Object file extension for compiled Java test sources.
16212 objext=o
16213 objext_GCJ=$objext
16215 # Code to be used in simple compile tests
16216 lt_simple_compile_test_code="class foo {}\n"
16218 # Code to be used in simple link tests
16219 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16223 # If no C compiler was specified, use CC.
16224 LTCC=${LTCC-"$CC"}
16226 # Allow CC to be a program name with arguments.
16227 compiler=$CC
16230 # Allow CC to be a program name with arguments.
16231 lt_save_CC="$CC"
16232 CC=${GCJ-"gcj"}
16233 compiler=$CC
16234 compiler_GCJ=$CC
16236 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16237 archive_cmds_need_lc_GCJ=no
16239 ## CAVEAT EMPTOR:
16240 ## There is no encapsulation within the following macros, do not change
16241 ## the running order or otherwise move them around unless you know exactly
16242 ## what you are doing...
16244 lt_prog_compiler_no_builtin_flag_GCJ=
16246 if test "$GCC" = yes; then
16247 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16250 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16251 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16252 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16253 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255 lt_cv_prog_compiler_rtti_exceptions=no
16256 ac_outfile=conftest.$ac_objext
16257 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16258 lt_compiler_flag="-fno-rtti -fno-exceptions"
16259 # Insert the option either (1) after the last *FLAGS variable, or
16260 # (2) before a word containing "conftest.", or (3) at the end.
16261 # Note that $ac_compile itself does not contain backslashes and begins
16262 # with a dollar sign (not a hyphen), so the echo should work correctly.
16263 # The option is referenced via a variable to avoid confusing sed.
16264 lt_compile=`echo "$ac_compile" | $SED \
16265 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16267 -e 's:$: $lt_compiler_flag:'`
16268 (eval echo "\"\$as_me:16268: $lt_compile\"" >&5)
16269 (eval "$lt_compile" 2>conftest.err)
16270 ac_status=$?
16271 cat conftest.err >&5
16272 echo "$as_me:16272: \$? = $ac_status" >&5
16273 if (exit $ac_status) && test -s "$ac_outfile"; then
16274 # The compiler can only warn and ignore the option if not recognized
16275 # So say no if there are warnings
16276 if test ! -s conftest.err; then
16277 lt_cv_prog_compiler_rtti_exceptions=yes
16280 $rm conftest*
16283 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16284 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16286 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16287 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16288 else
16294 lt_prog_compiler_wl_GCJ=
16295 lt_prog_compiler_pic_GCJ=
16296 lt_prog_compiler_static_GCJ=
16298 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16299 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16301 if test "$GCC" = yes; then
16302 lt_prog_compiler_wl_GCJ='-Wl,'
16303 lt_prog_compiler_static_GCJ='-static'
16305 case $host_os in
16306 aix*)
16307 # All AIX code is PIC.
16308 if test "$host_cpu" = ia64; then
16309 # AIX 5 now supports IA64 processor
16310 lt_prog_compiler_static_GCJ='-Bstatic'
16314 amigaos*)
16315 # FIXME: we need at least 68020 code to build shared libraries, but
16316 # adding the `-m68020' flag to GCC prevents building anything better,
16317 # like `-m68040'.
16318 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16321 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16322 # PIC is the default for these OSes.
16325 mingw* | pw32* | os2*)
16326 # This hack is so that the source file can tell whether it is being
16327 # built for inclusion in a dll (and should export symbols for example).
16328 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16331 darwin* | rhapsody*)
16332 # PIC is the default on this platform
16333 # Common symbols not allowed in MH_DYLIB files
16334 lt_prog_compiler_pic_GCJ='-fno-common'
16337 msdosdjgpp*)
16338 # Just because we use GCC doesn't mean we suddenly get shared libraries
16339 # on systems that don't support them.
16340 lt_prog_compiler_can_build_shared_GCJ=no
16341 enable_shared=no
16344 sysv4*MP*)
16345 if test -d /usr/nec; then
16346 lt_prog_compiler_pic_GCJ=-Kconform_pic
16350 hpux*)
16351 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16352 # not for PA HP-UX.
16353 case "$host_cpu" in
16354 hppa*64*|ia64*)
16355 # +Z the default
16358 lt_prog_compiler_pic_GCJ='-fPIC'
16360 esac
16364 lt_prog_compiler_pic_GCJ='-fPIC'
16366 esac
16367 else
16368 # PORTME Check for flag to pass linker flags through the system compiler.
16369 case $host_os in
16370 aix*)
16371 lt_prog_compiler_wl_GCJ='-Wl,'
16372 if test "$host_cpu" = ia64; then
16373 # AIX 5 now supports IA64 processor
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16375 else
16376 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16380 mingw* | pw32* | os2*)
16381 # This hack is so that the source file can tell whether it is being
16382 # built for inclusion in a dll (and should export symbols for example).
16383 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16386 hpux9* | hpux10* | hpux11*)
16387 lt_prog_compiler_wl_GCJ='-Wl,'
16388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16389 # not for PA HP-UX.
16390 case "$host_cpu" in
16391 hppa*64*|ia64*)
16392 # +Z the default
16395 lt_prog_compiler_pic_GCJ='+Z'
16397 esac
16398 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16399 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16402 irix5* | irix6* | nonstopux*)
16403 lt_prog_compiler_wl_GCJ='-Wl,'
16404 # PIC (with -KPIC) is the default.
16405 lt_prog_compiler_static_GCJ='-non_shared'
16408 newsos6)
16409 lt_prog_compiler_pic_GCJ='-KPIC'
16410 lt_prog_compiler_static_GCJ='-Bstatic'
16413 linux*)
16414 case $CC in
16415 icc* | ecc*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 lt_prog_compiler_pic_GCJ='-KPIC'
16418 lt_prog_compiler_static_GCJ='-static'
16420 ccc*)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 # All Alpha code is PIC.
16423 lt_prog_compiler_static_GCJ='-non_shared'
16425 esac
16428 osf3* | osf4* | osf5*)
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 # All OSF/1 code is PIC.
16431 lt_prog_compiler_static_GCJ='-non_shared'
16434 sco3.2v5*)
16435 lt_prog_compiler_pic_GCJ='-Kpic'
16436 lt_prog_compiler_static_GCJ='-dn'
16439 solaris*)
16440 lt_prog_compiler_wl_GCJ='-Wl,'
16441 lt_prog_compiler_pic_GCJ='-KPIC'
16442 lt_prog_compiler_static_GCJ='-Bstatic'
16445 sunos4*)
16446 lt_prog_compiler_wl_GCJ='-Qoption ld '
16447 lt_prog_compiler_pic_GCJ='-PIC'
16448 lt_prog_compiler_static_GCJ='-Bstatic'
16451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16452 lt_prog_compiler_wl_GCJ='-Wl,'
16453 lt_prog_compiler_pic_GCJ='-KPIC'
16454 lt_prog_compiler_static_GCJ='-Bstatic'
16457 sysv4*MP*)
16458 if test -d /usr/nec ;then
16459 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16460 lt_prog_compiler_static_GCJ='-Bstatic'
16464 uts4*)
16465 lt_prog_compiler_pic_GCJ='-pic'
16466 lt_prog_compiler_static_GCJ='-Bstatic'
16470 lt_prog_compiler_can_build_shared_GCJ=no
16472 esac
16475 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16476 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16479 # Check to make sure the PIC flag actually works.
16481 if test -n "$lt_prog_compiler_pic_GCJ"; then
16483 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16484 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16485 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487 else
16488 lt_prog_compiler_pic_works_GCJ=no
16489 ac_outfile=conftest.$ac_objext
16490 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16491 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16492 # Insert the option either (1) after the last *FLAGS variable, or
16493 # (2) before a word containing "conftest.", or (3) at the end.
16494 # Note that $ac_compile itself does not contain backslashes and begins
16495 # with a dollar sign (not a hyphen), so the echo should work correctly.
16496 # The option is referenced via a variable to avoid confusing sed.
16497 lt_compile=`echo "$ac_compile" | $SED \
16498 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500 -e 's:$: $lt_compiler_flag:'`
16501 (eval echo "\"\$as_me:16501: $lt_compile\"" >&5)
16502 (eval "$lt_compile" 2>conftest.err)
16503 ac_status=$?
16504 cat conftest.err >&5
16505 echo "$as_me:16505: \$? = $ac_status" >&5
16506 if (exit $ac_status) && test -s "$ac_outfile"; then
16507 # The compiler can only warn and ignore the option if not recognized
16508 # So say no if there are warnings
16509 if test ! -s conftest.err; then
16510 lt_prog_compiler_pic_works_GCJ=yes
16513 $rm conftest*
16516 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16517 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16519 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16520 case $lt_prog_compiler_pic_GCJ in
16521 "" | " "*) ;;
16522 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16523 esac
16524 else
16525 lt_prog_compiler_pic_GCJ=
16526 lt_prog_compiler_can_build_shared_GCJ=no
16530 case "$host_os" in
16531 # For platforms which do not support PIC, -DPIC is meaningless:
16532 *djgpp*)
16533 lt_prog_compiler_pic_GCJ=
16536 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16538 esac
16540 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16541 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16542 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545 lt_cv_prog_compiler_c_o_GCJ=no
16546 $rm -r conftest 2>/dev/null
16547 mkdir conftest
16548 cd conftest
16549 mkdir out
16550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16553 # that will create temporary files in the current directory regardless of
16554 # the output directory. Thus, making CWD read-only will cause this test
16555 # to fail, enabling locking or at least warning the user not to do parallel
16556 # builds.
16557 chmod -w .
16559 lt_compiler_flag="-o out/conftest2.$ac_objext"
16560 # Insert the option either (1) after the last *FLAGS variable, or
16561 # (2) before a word containing "conftest.", or (3) at the end.
16562 # Note that $ac_compile itself does not contain backslashes and begins
16563 # with a dollar sign (not a hyphen), so the echo should work correctly.
16564 lt_compile=`echo "$ac_compile" | $SED \
16565 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16567 -e 's:$: $lt_compiler_flag:'`
16568 (eval echo "\"\$as_me:16568: $lt_compile\"" >&5)
16569 (eval "$lt_compile" 2>out/conftest.err)
16570 ac_status=$?
16571 cat out/conftest.err >&5
16572 echo "$as_me:16572: \$? = $ac_status" >&5
16573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16574 then
16575 # The compiler can only warn and ignore the option if not recognized
16576 # So say no if there are warnings
16577 if test ! -s out/conftest.err; then
16578 lt_cv_prog_compiler_c_o_GCJ=yes
16581 chmod u+w .
16582 $rm conftest*
16583 # SGI C++ compiler will create directory out/ii_files/ for
16584 # template instantiation
16585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16586 $rm out/* && rmdir out
16587 cd ..
16588 rmdir conftest
16589 $rm conftest*
16592 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16596 hard_links="nottested"
16597 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16598 # do not overwrite the value of need_locks provided by the user
16599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16600 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16601 hard_links=yes
16602 $rm conftest*
16603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16604 touch conftest.a
16605 ln conftest.a conftest.b 2>&5 || hard_links=no
16606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16607 { echo "$as_me:$LINENO: result: $hard_links" >&5
16608 echo "${ECHO_T}$hard_links" >&6; }
16609 if test "$hard_links" = no; then
16610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16611 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16612 need_locks=warn
16614 else
16615 need_locks=no
16618 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16619 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16621 runpath_var=
16622 allow_undefined_flag_GCJ=
16623 enable_shared_with_static_runtimes_GCJ=no
16624 archive_cmds_GCJ=
16625 archive_expsym_cmds_GCJ=
16626 old_archive_From_new_cmds_GCJ=
16627 old_archive_from_expsyms_cmds_GCJ=
16628 export_dynamic_flag_spec_GCJ=
16629 whole_archive_flag_spec_GCJ=
16630 thread_safe_flag_spec_GCJ=
16631 hardcode_libdir_flag_spec_GCJ=
16632 hardcode_libdir_flag_spec_ld_GCJ=
16633 hardcode_libdir_separator_GCJ=
16634 hardcode_direct_GCJ=no
16635 hardcode_minus_L_GCJ=no
16636 hardcode_shlibpath_var_GCJ=unsupported
16637 link_all_deplibs_GCJ=unknown
16638 hardcode_automatic_GCJ=no
16639 module_cmds_GCJ=
16640 module_expsym_cmds_GCJ=
16641 always_export_symbols_GCJ=no
16642 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16643 # include_expsyms should be a list of space-separated symbols to be *always*
16644 # included in the symbol list
16645 include_expsyms_GCJ=
16646 # exclude_expsyms can be an extended regexp of symbols to exclude
16647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16649 # as well as any symbol that contains `d'.
16650 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16652 # platforms (ab)use it in PIC code, but their linkers get confused if
16653 # the symbol is explicitly referenced. Since portable code cannot
16654 # rely on this symbol name, it's probably fine to never include it in
16655 # preloaded symbol tables.
16656 extract_expsyms_cmds=
16658 case $host_os in
16659 cygwin* | mingw* | pw32*)
16660 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16661 # When not using gcc, we currently assume that we are using
16662 # Microsoft Visual C++.
16663 if test "$GCC" != yes; then
16664 with_gnu_ld=no
16667 openbsd*)
16668 with_gnu_ld=no
16670 esac
16672 ld_shlibs_GCJ=yes
16673 if test "$with_gnu_ld" = yes; then
16674 # If archive_cmds runs LD, not CC, wlarc should be empty
16675 wlarc='${wl}'
16677 # See if GNU ld supports shared libraries.
16678 case $host_os in
16679 aix3* | aix4* | aix5*)
16680 # On AIX/PPC, the GNU linker is very broken
16681 if test "$host_cpu" != ia64; then
16682 ld_shlibs_GCJ=no
16683 cat <<EOF 1>&2
16685 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16686 *** to be unable to reliably create shared libraries on AIX.
16687 *** Therefore, libtool is disabling shared libraries support. If you
16688 *** really care for shared libraries, you may want to modify your PATH
16689 *** so that a non-GNU linker is found, and then restart.
16695 amigaos*)
16696 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)'
16697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16698 hardcode_minus_L_GCJ=yes
16700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16701 # that the semantics of dynamic libraries on AmigaOS, at least up
16702 # to version 4, is to share data among multiple programs linked
16703 # with the same dynamic library. Since this doesn't match the
16704 # behavior of shared libraries on other platforms, we can't use
16705 # them.
16706 ld_shlibs_GCJ=no
16709 beos*)
16710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16711 allow_undefined_flag_GCJ=unsupported
16712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16713 # support --undefined. This deserves some investigation. FIXME
16714 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16715 else
16716 ld_shlibs_GCJ=no
16720 cygwin* | mingw* | pw32*)
16721 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16722 # as there is no search path for DLLs.
16723 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16724 allow_undefined_flag_GCJ=unsupported
16725 always_export_symbols_GCJ=no
16726 enable_shared_with_static_runtimes_GCJ=yes
16727 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16729 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16730 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16731 # If the export-symbols file already is a .def file (1st line
16732 # is EXPORTS), use it as is; otherwise, prepend...
16733 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16734 cp $export_symbols $output_objdir/$soname.def;
16735 else
16736 echo EXPORTS > $output_objdir/$soname.def;
16737 cat $export_symbols >> $output_objdir/$soname.def;
16739 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16740 else
16741 ld_shlibs=no
16745 netbsd*)
16746 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16747 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16748 wlarc=
16749 else
16750 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16751 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16755 solaris* | sysv5*)
16756 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16757 ld_shlibs_GCJ=no
16758 cat <<EOF 1>&2
16760 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16761 *** create shared libraries on Solaris systems. Therefore, libtool
16762 *** is disabling shared libraries support. We urge you to upgrade GNU
16763 *** binutils to release 2.9.1 or newer. Another option is to modify
16764 *** your PATH or compiler configuration so that the native linker is
16765 *** used, and then restart.
16768 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16770 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16771 else
16772 ld_shlibs_GCJ=no
16776 sunos4*)
16777 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16778 wlarc=
16779 hardcode_direct_GCJ=yes
16780 hardcode_shlibpath_var_GCJ=no
16783 linux*)
16784 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16785 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16786 archive_cmds_GCJ="$tmp_archive_cmds"
16787 supports_anon_versioning=no
16788 case `$LD -v 2>/dev/null` in
16789 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16790 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16791 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16792 *\ 2.11.*) ;; # other 2.11 versions
16793 *) supports_anon_versioning=yes ;;
16794 esac
16795 if test $supports_anon_versioning = yes; then
16796 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16797 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16798 $echo "local: *; };" >> $output_objdir/$libname.ver~
16799 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16800 else
16801 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16803 else
16804 ld_shlibs_GCJ=no
16809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16810 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16811 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16812 else
16813 ld_shlibs_GCJ=no
16816 esac
16818 if test "$ld_shlibs_GCJ" = yes; then
16819 runpath_var=LD_RUN_PATH
16820 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16821 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16822 # ancient GNU ld didn't support --whole-archive et. al.
16823 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16824 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16825 else
16826 whole_archive_flag_spec_GCJ=
16829 else
16830 # PORTME fill in a description of your system's linker (not GNU ld)
16831 case $host_os in
16832 aix3*)
16833 allow_undefined_flag_GCJ=unsupported
16834 always_export_symbols_GCJ=yes
16835 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'
16836 # Note: this linker hardcodes the directories in LIBPATH if there
16837 # are no directories specified by -L.
16838 hardcode_minus_L_GCJ=yes
16839 if test "$GCC" = yes && test -z "$link_static_flag"; then
16840 # Neither direct hardcoding nor static linking is supported with a
16841 # broken collect2.
16842 hardcode_direct_GCJ=unsupported
16846 aix4* | aix5*)
16847 if test "$host_cpu" = ia64; then
16848 # On IA64, the linker does run time linking by default, so we don't
16849 # have to do anything special.
16850 aix_use_runtimelinking=no
16851 exp_sym_flag='-Bexport'
16852 no_entry_flag=""
16853 else
16854 # If we're using GNU nm, then we don't want the "-C" option.
16855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16857 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'
16858 else
16859 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'
16861 aix_use_runtimelinking=no
16863 # Test if we are trying to use run time linking or normal
16864 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16865 # need to do runtime linking.
16866 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16867 for ld_flag in $LDFLAGS; do
16868 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16869 aix_use_runtimelinking=yes
16870 break
16872 done
16873 esac
16875 exp_sym_flag='-bexport'
16876 no_entry_flag='-bnoentry'
16879 # When large executables or shared objects are built, AIX ld can
16880 # have problems creating the table of contents. If linking a library
16881 # or program results in "error TOC overflow" add -mminimal-toc to
16882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16885 archive_cmds_GCJ=''
16886 hardcode_direct_GCJ=yes
16887 hardcode_libdir_separator_GCJ=':'
16888 link_all_deplibs_GCJ=yes
16890 if test "$GCC" = yes; then
16891 case $host_os in aix4.012|aix4.012.*)
16892 # We only want to do this on AIX 4.2 and lower, the check
16893 # below for broken collect2 doesn't work under 4.3+
16894 collect2name=`${CC} -print-prog-name=collect2`
16895 if test -f "$collect2name" && \
16896 strings "$collect2name" | grep resolve_lib_name >/dev/null
16897 then
16898 # We have reworked collect2
16899 hardcode_direct_GCJ=yes
16900 else
16901 # We have old collect2
16902 hardcode_direct_GCJ=unsupported
16903 # It fails to find uninstalled libraries when the uninstalled
16904 # path is not listed in the libpath. Setting hardcode_minus_L
16905 # to unsupported forces relinking
16906 hardcode_minus_L_GCJ=yes
16907 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16908 hardcode_libdir_separator_GCJ=
16910 esac
16911 shared_flag='-shared'
16912 else
16913 # not using gcc
16914 if test "$host_cpu" = ia64; then
16915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16916 # chokes on -Wl,-G. The following line is correct:
16917 shared_flag='-G'
16918 else
16919 if test "$aix_use_runtimelinking" = yes; then
16920 shared_flag='${wl}-G'
16921 else
16922 shared_flag='${wl}-bM:SRE'
16927 # It seems that -bexpall does not export symbols beginning with
16928 # underscore (_), so it is better to generate a list of symbols to export.
16929 always_export_symbols_GCJ=yes
16930 if test "$aix_use_runtimelinking" = yes; then
16931 # Warning - without using the other runtime loading flags (-brtl),
16932 # -berok will link without error, but may produce a broken library.
16933 allow_undefined_flag_GCJ='-berok'
16934 # Determine the default libpath from the value encoded in an empty executable.
16935 cat >conftest.$ac_ext <<_ACEOF
16936 /* confdefs.h. */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16943 main ()
16947 return 0;
16949 _ACEOF
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_link") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
16964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16965 { (case "(($ac_try" in
16966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16967 *) ac_try_echo=$ac_try;;
16968 esac
16969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16970 (eval "$ac_try") 2>&5
16971 ac_status=$?
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); }; } &&
16974 { ac_try='test -s conftest$ac_exeext'
16975 { (case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978 esac
16979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16980 (eval "$ac_try") 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16987 # Check for a 64-bit object if we didn't find anything.
16988 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; }
16989 }'`; fi
16990 else
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16997 rm -f core conftest.err conftest.$ac_objext \
16998 conftest$ac_exeext conftest.$ac_ext
16999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17001 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17002 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"
17003 else
17004 if test "$host_cpu" = ia64; then
17005 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17006 allow_undefined_flag_GCJ="-z nodefs"
17007 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"
17008 else
17009 # Determine the default libpath from the value encoded in an empty executable.
17010 cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h. */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17018 main ()
17022 return 0;
17024 _ACEOF
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030 esac
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053 esac
17054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17062 # Check for a 64-bit object if we didn't find anything.
17063 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; }
17064 }'`; fi
17065 else
17066 echo "$as_me: failed program was:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17072 rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17076 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17077 # Warning - without using the other run time loading flags,
17078 # -berok will link without error, but may produce a broken library.
17079 no_undefined_flag_GCJ=' ${wl}-bernotok'
17080 allow_undefined_flag_GCJ=' ${wl}-berok'
17081 # -bexpall does not export symbols beginning with underscore (_)
17082 always_export_symbols_GCJ=yes
17083 # Exported symbols can be pulled into shared objects from archives
17084 whole_archive_flag_spec_GCJ=' '
17085 archive_cmds_need_lc_GCJ=yes
17086 # This is similar to how AIX traditionally builds it's shared libraries.
17087 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'
17092 amigaos*)
17093 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)'
17094 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17095 hardcode_minus_L_GCJ=yes
17096 # see comment about different semantics on the GNU ld section
17097 ld_shlibs_GCJ=no
17100 bsdi4*)
17101 export_dynamic_flag_spec_GCJ=-rdynamic
17104 cygwin* | mingw* | pw32*)
17105 # When not using gcc, we currently assume that we are using
17106 # Microsoft Visual C++.
17107 # hardcode_libdir_flag_spec is actually meaningless, as there is
17108 # no search path for DLLs.
17109 hardcode_libdir_flag_spec_GCJ=' '
17110 allow_undefined_flag_GCJ=unsupported
17111 # Tell ltmain to make .lib files, not .a files.
17112 libext=lib
17113 # Tell ltmain to make .dll files, not .so files.
17114 shrext=".dll"
17115 # FIXME: Setting linknames here is a bad hack.
17116 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17117 # The linker will automatically build a .lib file if we build a DLL.
17118 old_archive_From_new_cmds_GCJ='true'
17119 # FIXME: Should let the user specify the lib program.
17120 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17121 fix_srcfile_path='`cygpath -w "$srcfile"`'
17122 enable_shared_with_static_runtimes_GCJ=yes
17125 darwin* | rhapsody*)
17126 if test "$GXX" = yes ; then
17127 archive_cmds_need_lc_GCJ=no
17128 case "$host_os" in
17129 rhapsody* | darwin1.[012])
17130 allow_undefined_flag_GCJ='-undefined suppress'
17132 *) # Darwin 1.3 on
17133 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17134 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17135 else
17136 case ${MACOSX_DEPLOYMENT_TARGET} in
17137 10.[012])
17138 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17140 10.*)
17141 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17143 esac
17146 esac
17147 lt_int_apple_cc_single_mod=no
17148 output_verbose_link_cmd='echo'
17149 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17150 lt_int_apple_cc_single_mod=yes
17152 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17153 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17154 else
17155 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'
17157 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17158 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17159 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17160 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}'
17161 else
17162 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}'
17164 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}'
17165 hardcode_direct_GCJ=no
17166 hardcode_automatic_GCJ=yes
17167 hardcode_shlibpath_var_GCJ=unsupported
17168 whole_archive_flag_spec_GCJ='-all_load $convenience'
17169 link_all_deplibs_GCJ=yes
17170 else
17171 ld_shlibs_GCJ=no
17175 dgux*)
17176 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17178 hardcode_shlibpath_var_GCJ=no
17181 freebsd1*)
17182 ld_shlibs_GCJ=no
17185 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17186 # support. Future versions do this automatically, but an explicit c++rt0.o
17187 # does not break anything, and helps significantly (at the cost of a little
17188 # extra space).
17189 freebsd2.2*)
17190 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17191 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17192 hardcode_direct_GCJ=yes
17193 hardcode_shlibpath_var_GCJ=no
17196 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17197 freebsd2*)
17198 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17199 hardcode_direct_GCJ=yes
17200 hardcode_minus_L_GCJ=yes
17201 hardcode_shlibpath_var_GCJ=no
17204 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17205 freebsd* | kfreebsd*-gnu)
17206 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17207 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17208 hardcode_direct_GCJ=yes
17209 hardcode_shlibpath_var_GCJ=no
17212 hpux9*)
17213 if test "$GCC" = yes; then
17214 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'
17215 else
17216 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'
17218 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17219 hardcode_libdir_separator_GCJ=:
17220 hardcode_direct_GCJ=yes
17222 # hardcode_minus_L: Not really in the search PATH,
17223 # but as the default location of the library.
17224 hardcode_minus_L_GCJ=yes
17225 export_dynamic_flag_spec_GCJ='${wl}-E'
17228 hpux10* | hpux11*)
17229 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17230 case "$host_cpu" in
17231 hppa*64*|ia64*)
17232 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17235 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17237 esac
17238 else
17239 case "$host_cpu" in
17240 hppa*64*|ia64*)
17241 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17244 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17246 esac
17248 if test "$with_gnu_ld" = no; then
17249 case "$host_cpu" in
17250 hppa*64*)
17251 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17252 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17253 hardcode_libdir_separator_GCJ=:
17254 hardcode_direct_GCJ=no
17255 hardcode_shlibpath_var_GCJ=no
17257 ia64*)
17258 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17259 hardcode_direct_GCJ=no
17260 hardcode_shlibpath_var_GCJ=no
17262 # hardcode_minus_L: Not really in the search PATH,
17263 # but as the default location of the library.
17264 hardcode_minus_L_GCJ=yes
17267 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17268 hardcode_libdir_separator_GCJ=:
17269 hardcode_direct_GCJ=yes
17270 export_dynamic_flag_spec_GCJ='${wl}-E'
17272 # hardcode_minus_L: Not really in the search PATH,
17273 # but as the default location of the library.
17274 hardcode_minus_L_GCJ=yes
17276 esac
17280 irix5* | irix6* | nonstopux*)
17281 if test "$GCC" = yes; then
17282 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'
17283 else
17284 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'
17285 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17287 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17288 hardcode_libdir_separator_GCJ=:
17289 link_all_deplibs_GCJ=yes
17292 netbsd*)
17293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17294 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17295 else
17296 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17299 hardcode_direct_GCJ=yes
17300 hardcode_shlibpath_var_GCJ=no
17303 newsos6)
17304 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17305 hardcode_direct_GCJ=yes
17306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17307 hardcode_libdir_separator_GCJ=:
17308 hardcode_shlibpath_var_GCJ=no
17311 openbsd*)
17312 hardcode_direct_GCJ=yes
17313 hardcode_shlibpath_var_GCJ=no
17314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17315 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17317 export_dynamic_flag_spec_GCJ='${wl}-E'
17318 else
17319 case $host_os in
17320 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17321 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17322 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17325 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17326 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17328 esac
17332 os2*)
17333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17334 hardcode_minus_L_GCJ=yes
17335 allow_undefined_flag_GCJ=unsupported
17336 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'
17337 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17340 osf3*)
17341 if test "$GCC" = yes; then
17342 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17343 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'
17344 else
17345 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17346 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'
17348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17349 hardcode_libdir_separator_GCJ=:
17352 osf4* | osf5*) # as osf3* with the addition of -msym flag
17353 if test "$GCC" = yes; then
17354 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17355 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'
17356 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17357 else
17358 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17359 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'
17360 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~
17361 $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'
17363 # Both c and cxx compiler support -rpath directly
17364 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17366 hardcode_libdir_separator_GCJ=:
17369 sco3.2v5*)
17370 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371 hardcode_shlibpath_var_GCJ=no
17372 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17373 runpath_var=LD_RUN_PATH
17374 hardcode_runpath_var=yes
17377 solaris*)
17378 no_undefined_flag_GCJ=' -z text'
17379 if test "$GCC" = yes; then
17380 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17381 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17382 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17383 else
17384 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17386 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17388 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17389 hardcode_shlibpath_var_GCJ=no
17390 case $host_os in
17391 solaris2.[0-5] | solaris2.[0-5].*) ;;
17392 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17393 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17394 esac
17395 link_all_deplibs_GCJ=yes
17398 sunos4*)
17399 if test "x$host_vendor" = xsequent; then
17400 # Use $CC to link under sequent, because it throws in some extra .o
17401 # files that make .init and .fini sections work.
17402 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17403 else
17404 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17407 hardcode_direct_GCJ=yes
17408 hardcode_minus_L_GCJ=yes
17409 hardcode_shlibpath_var_GCJ=no
17412 sysv4)
17413 case $host_vendor in
17414 sni)
17415 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17416 hardcode_direct_GCJ=yes # is this really true???
17418 siemens)
17419 ## LD is ld it makes a PLAMLIB
17420 ## CC just makes a GrossModule.
17421 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17422 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17423 hardcode_direct_GCJ=no
17425 motorola)
17426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17427 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17429 esac
17430 runpath_var='LD_RUN_PATH'
17431 hardcode_shlibpath_var_GCJ=no
17434 sysv4.3*)
17435 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17436 hardcode_shlibpath_var_GCJ=no
17437 export_dynamic_flag_spec_GCJ='-Bexport'
17440 sysv4*MP*)
17441 if test -d /usr/nec; then
17442 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 hardcode_shlibpath_var_GCJ=no
17444 runpath_var=LD_RUN_PATH
17445 hardcode_runpath_var=yes
17446 ld_shlibs_GCJ=yes
17450 sysv4.2uw2*)
17451 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_direct_GCJ=yes
17453 hardcode_minus_L_GCJ=no
17454 hardcode_shlibpath_var_GCJ=no
17455 hardcode_runpath_var=yes
17456 runpath_var=LD_RUN_PATH
17459 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17460 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17461 if test "$GCC" = yes; then
17462 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17463 else
17464 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17466 runpath_var='LD_RUN_PATH'
17467 hardcode_shlibpath_var_GCJ=no
17470 sysv5*)
17471 no_undefined_flag_GCJ=' -z text'
17472 # $CC -shared without GNU ld will not create a library from C++
17473 # object files and a static libstdc++, better avoid it by now
17474 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17475 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17476 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17477 hardcode_libdir_flag_spec_GCJ=
17478 hardcode_shlibpath_var_GCJ=no
17479 runpath_var='LD_RUN_PATH'
17482 uts4*)
17483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485 hardcode_shlibpath_var_GCJ=no
17489 ld_shlibs_GCJ=no
17491 esac
17494 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17495 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17496 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17498 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17499 if test "$GCC" = yes; then
17500 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17504 # Do we need to explicitly link libc?
17506 case "x$archive_cmds_need_lc_GCJ" in
17507 x|xyes)
17508 # Assume -lc should be added
17509 archive_cmds_need_lc_GCJ=yes
17511 if test "$enable_shared" = yes && test "$GCC" = yes; then
17512 case $archive_cmds_GCJ in
17513 *'~'*)
17514 # FIXME: we may have to deal with multi-command sequences.
17516 '$CC '*)
17517 # Test whether the compiler implicitly links with -lc since on some
17518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17519 # to ld, don't add -lc before -lgcc.
17520 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17521 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17522 $rm conftest*
17523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17526 (eval $ac_compile) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } 2>conftest.err; then
17530 soname=conftest
17531 lib=conftest
17532 libobjs=conftest.$ac_objext
17533 deplibs=
17534 wl=$lt_prog_compiler_wl_GCJ
17535 compiler_flags=-v
17536 linker_flags=-v
17537 verstring=
17538 output_objdir=.
17539 libname=conftest
17540 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17541 allow_undefined_flag_GCJ=
17542 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17543 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }
17547 then
17548 archive_cmds_need_lc_GCJ=no
17549 else
17550 archive_cmds_need_lc_GCJ=yes
17552 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17553 else
17554 cat conftest.err 1>&5
17556 $rm conftest*
17557 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17558 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17560 esac
17563 esac
17565 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17567 library_names_spec=
17568 libname_spec='lib$name'
17569 soname_spec=
17570 shrext=".so"
17571 postinstall_cmds=
17572 postuninstall_cmds=
17573 finish_cmds=
17574 finish_eval=
17575 shlibpath_var=
17576 shlibpath_overrides_runpath=unknown
17577 version_type=none
17578 dynamic_linker="$host_os ld.so"
17579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17580 if test "$GCC" = yes; then
17581 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17582 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17583 # if the path contains ";" then we assume it to be the separator
17584 # otherwise default to the standard path separator (i.e. ":") - it is
17585 # assumed that no part of a normal pathname contains ";" but that should
17586 # okay in the real world where ";" in dirpaths is itself problematic.
17587 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17588 else
17589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17591 else
17592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17594 need_lib_prefix=unknown
17595 hardcode_into_libs=no
17597 # when you set need_version to no, make sure it does not cause -set_version
17598 # flags to be left without arguments
17599 need_version=unknown
17601 case $host_os in
17602 aix3*)
17603 version_type=linux
17604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17605 shlibpath_var=LIBPATH
17607 # AIX 3 has no versioning support, so we append a major version to the name.
17608 soname_spec='${libname}${release}${shared_ext}$major'
17611 aix4* | aix5*)
17612 version_type=linux
17613 need_lib_prefix=no
17614 need_version=no
17615 hardcode_into_libs=yes
17616 if test "$host_cpu" = ia64; then
17617 # AIX 5 supports IA64
17618 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17619 shlibpath_var=LD_LIBRARY_PATH
17620 else
17621 # With GCC up to 2.95.x, collect2 would create an import file
17622 # for dependence libraries. The import file would start with
17623 # the line `#! .'. This would cause the generated library to
17624 # depend on `.', always an invalid library. This was fixed in
17625 # development snapshots of GCC prior to 3.0.
17626 case $host_os in
17627 aix4 | aix4.[01] | aix4.[01].*)
17628 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17629 echo ' yes '
17630 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17632 else
17633 can_build_shared=no
17636 esac
17637 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17638 # soname into executable. Probably we can add versioning support to
17639 # collect2, so additional links can be useful in future.
17640 if test "$aix_use_runtimelinking" = yes; then
17641 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17642 # instead of lib<name>.a to let people know that these are not
17643 # typical AIX shared libraries.
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17645 else
17646 # We preserve .a as extension for shared libraries through AIX4.2
17647 # and later when we are not doing run time linking.
17648 library_names_spec='${libname}${release}.a $libname.a'
17649 soname_spec='${libname}${release}${shared_ext}$major'
17651 shlibpath_var=LIBPATH
17655 amigaos*)
17656 library_names_spec='$libname.ixlibrary $libname.a'
17657 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17658 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'
17661 beos*)
17662 library_names_spec='${libname}${shared_ext}'
17663 dynamic_linker="$host_os ld.so"
17664 shlibpath_var=LIBRARY_PATH
17667 bsdi4*)
17668 version_type=linux
17669 need_version=no
17670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17671 soname_spec='${libname}${release}${shared_ext}$major'
17672 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17673 shlibpath_var=LD_LIBRARY_PATH
17674 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17675 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17676 # the default ld.so.conf also contains /usr/contrib/lib and
17677 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17678 # libtool to hard-code these into programs
17681 cygwin* | mingw* | pw32*)
17682 version_type=windows
17683 shrext=".dll"
17684 need_version=no
17685 need_lib_prefix=no
17687 case $GCC,$host_os in
17688 yes,cygwin* | yes,mingw* | yes,pw32*)
17689 library_names_spec='$libname.dll.a'
17690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17691 postinstall_cmds='base_file=`basename \${file}`~
17692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17693 dldir=$destdir/`dirname \$dlpath`~
17694 test -d \$dldir || mkdir -p \$dldir~
17695 $install_prog $dir/$dlname \$dldir/$dlname'
17696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17697 dlpath=$dir/\$dldll~
17698 $rm \$dlpath'
17699 shlibpath_overrides_runpath=yes
17701 case $host_os in
17702 cygwin*)
17703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17704 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17707 mingw*)
17708 # MinGW DLLs use traditional 'lib' prefix
17709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17712 # It is most probably a Windows format PATH printed by
17713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17714 # path with ; separators, and with drive letters. We can handle the
17715 # drive letters (cygwin fileutils understands them), so leave them,
17716 # especially as we might pass files found there to a mingw objdump,
17717 # which wouldn't understand a cygwinified path. Ahh.
17718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17719 else
17720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17723 pw32*)
17724 # pw32 DLLs use 'pw' prefix rather than 'lib'
17725 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17727 esac
17731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17733 esac
17734 dynamic_linker='Win32 ld.exe'
17735 # FIXME: first we should search . and the directory the executable is in
17736 shlibpath_var=PATH
17739 darwin* | rhapsody*)
17740 dynamic_linker="$host_os dyld"
17741 version_type=darwin
17742 need_lib_prefix=no
17743 need_version=no
17744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17745 soname_spec='${libname}${release}${major}$shared_ext'
17746 shlibpath_overrides_runpath=yes
17747 shlibpath_var=DYLD_LIBRARY_PATH
17748 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17749 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17750 if test "$GCC" = yes; then
17751 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"`
17752 else
17753 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17758 dgux*)
17759 version_type=linux
17760 need_lib_prefix=no
17761 need_version=no
17762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17763 soname_spec='${libname}${release}${shared_ext}$major'
17764 shlibpath_var=LD_LIBRARY_PATH
17767 freebsd1*)
17768 dynamic_linker=no
17771 kfreebsd*-gnu)
17772 version_type=linux
17773 need_lib_prefix=no
17774 need_version=no
17775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17776 soname_spec='${libname}${release}${shared_ext}$major'
17777 shlibpath_var=LD_LIBRARY_PATH
17778 shlibpath_overrides_runpath=no
17779 hardcode_into_libs=yes
17780 dynamic_linker='GNU ld.so'
17783 freebsd*)
17784 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17785 version_type=freebsd-$objformat
17786 case $version_type in
17787 freebsd-elf*)
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17789 need_version=no
17790 need_lib_prefix=no
17792 freebsd-*)
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17794 need_version=yes
17796 esac
17797 shlibpath_var=LD_LIBRARY_PATH
17798 case $host_os in
17799 freebsd2*)
17800 shlibpath_overrides_runpath=yes
17802 freebsd3.01* | freebsdelf3.01*)
17803 shlibpath_overrides_runpath=yes
17804 hardcode_into_libs=yes
17806 *) # from 3.2 on
17807 shlibpath_overrides_runpath=no
17808 hardcode_into_libs=yes
17810 esac
17813 gnu*)
17814 version_type=linux
17815 need_lib_prefix=no
17816 need_version=no
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 shlibpath_var=LD_LIBRARY_PATH
17820 hardcode_into_libs=yes
17823 hpux9* | hpux10* | hpux11*)
17824 # Give a soname corresponding to the major version so that dld.sl refuses to
17825 # link against other versions.
17826 version_type=sunos
17827 need_lib_prefix=no
17828 need_version=no
17829 case "$host_cpu" in
17830 ia64*)
17831 shrext='.so'
17832 hardcode_into_libs=yes
17833 dynamic_linker="$host_os dld.so"
17834 shlibpath_var=LD_LIBRARY_PATH
17835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17837 soname_spec='${libname}${release}${shared_ext}$major'
17838 if test "X$HPUX_IA64_MODE" = X32; then
17839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17840 else
17841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17845 hppa*64*)
17846 shrext='.sl'
17847 hardcode_into_libs=yes
17848 dynamic_linker="$host_os dld.sl"
17849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17852 soname_spec='${libname}${release}${shared_ext}$major'
17853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17857 shrext='.sl'
17858 dynamic_linker="$host_os dld.sl"
17859 shlibpath_var=SHLIB_PATH
17860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862 soname_spec='${libname}${release}${shared_ext}$major'
17864 esac
17865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17866 postinstall_cmds='chmod 555 $lib'
17869 irix5* | irix6* | nonstopux*)
17870 case $host_os in
17871 nonstopux*) version_type=nonstopux ;;
17873 if test "$lt_cv_prog_gnu_ld" = yes; then
17874 version_type=linux
17875 else
17876 version_type=irix
17877 fi ;;
17878 esac
17879 need_lib_prefix=no
17880 need_version=no
17881 soname_spec='${libname}${release}${shared_ext}$major'
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17883 case $host_os in
17884 irix5* | nonstopux*)
17885 libsuff= shlibsuff=
17888 case $LD in # libtool.m4 will add one of these switches to LD
17889 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17890 libsuff= shlibsuff= libmagic=32-bit;;
17891 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17892 libsuff=32 shlibsuff=N32 libmagic=N32;;
17893 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17894 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17895 *) libsuff= shlibsuff= libmagic=never-match;;
17896 esac
17898 esac
17899 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17900 shlibpath_overrides_runpath=no
17901 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17902 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17903 hardcode_into_libs=yes
17906 # No shared lib support for Linux oldld, aout, or coff.
17907 linux*oldld* | linux*aout* | linux*coff*)
17908 dynamic_linker=no
17911 # This must be Linux ELF.
17912 linux*)
17913 version_type=linux
17914 need_lib_prefix=no
17915 need_version=no
17916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917 soname_spec='${libname}${release}${shared_ext}$major'
17918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17919 shlibpath_var=LD_LIBRARY_PATH
17920 shlibpath_overrides_runpath=no
17921 # This implies no fast_install, which is unacceptable.
17922 # Some rework will be needed to allow for fast_install
17923 # before this can be enabled.
17924 hardcode_into_libs=yes
17926 # We used to test for /lib/ld.so.1 and disable shared libraries on
17927 # powerpc, because MkLinux only supported shared libraries with the
17928 # GNU dynamic linker. Since this was broken with cross compilers,
17929 # most powerpc-linux boxes support dynamic linking these days and
17930 # people can always --disable-shared, the test was removed, and we
17931 # assume the GNU/Linux dynamic linker is in use.
17932 dynamic_linker='GNU/Linux ld.so'
17935 netbsd*)
17936 version_type=sunos
17937 need_lib_prefix=no
17938 need_version=no
17939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17942 dynamic_linker='NetBSD (a.out) ld.so'
17943 else
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 dynamic_linker='NetBSD ld.elf_so'
17948 shlibpath_var=LD_LIBRARY_PATH
17949 shlibpath_overrides_runpath=yes
17950 hardcode_into_libs=yes
17953 newsos6)
17954 version_type=linux
17955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17956 shlibpath_var=LD_LIBRARY_PATH
17957 shlibpath_overrides_runpath=yes
17960 nto-qnx*)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=yes
17970 openbsd*)
17971 version_type=sunos
17972 need_lib_prefix=no
17973 need_version=no
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17976 shlibpath_var=LD_LIBRARY_PATH
17977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17978 case $host_os in
17979 openbsd2.[89] | openbsd2.[89].*)
17980 shlibpath_overrides_runpath=no
17983 shlibpath_overrides_runpath=yes
17985 esac
17986 else
17987 shlibpath_overrides_runpath=yes
17991 os2*)
17992 libname_spec='$name'
17993 shrext=".dll"
17994 need_lib_prefix=no
17995 library_names_spec='$libname${shared_ext} $libname.a'
17996 dynamic_linker='OS/2 ld.exe'
17997 shlibpath_var=LIBPATH
18000 osf3* | osf4* | osf5*)
18001 version_type=osf
18002 need_lib_prefix=no
18003 need_version=no
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18011 sco3.2v5*)
18012 version_type=osf
18013 soname_spec='${libname}${release}${shared_ext}$major'
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 shlibpath_var=LD_LIBRARY_PATH
18018 solaris*)
18019 version_type=linux
18020 need_lib_prefix=no
18021 need_version=no
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 shlibpath_var=LD_LIBRARY_PATH
18025 shlibpath_overrides_runpath=yes
18026 hardcode_into_libs=yes
18027 # ldd complains unless libraries are executable
18028 postinstall_cmds='chmod +x $lib'
18031 sunos4*)
18032 version_type=sunos
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18035 shlibpath_var=LD_LIBRARY_PATH
18036 shlibpath_overrides_runpath=yes
18037 if test "$with_gnu_ld" = yes; then
18038 need_lib_prefix=no
18040 need_version=yes
18043 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18044 version_type=linux
18045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18046 soname_spec='${libname}${release}${shared_ext}$major'
18047 shlibpath_var=LD_LIBRARY_PATH
18048 case $host_vendor in
18049 sni)
18050 shlibpath_overrides_runpath=no
18051 need_lib_prefix=no
18052 export_dynamic_flag_spec='${wl}-Blargedynsym'
18053 runpath_var=LD_RUN_PATH
18055 siemens)
18056 need_lib_prefix=no
18058 motorola)
18059 need_lib_prefix=no
18060 need_version=no
18061 shlibpath_overrides_runpath=no
18062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18064 esac
18067 sysv4*MP*)
18068 if test -d /usr/nec ;then
18069 version_type=linux
18070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18071 soname_spec='$libname${shared_ext}.$major'
18072 shlibpath_var=LD_LIBRARY_PATH
18076 uts4*)
18077 version_type=linux
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 soname_spec='${libname}${release}${shared_ext}$major'
18080 shlibpath_var=LD_LIBRARY_PATH
18084 dynamic_linker=no
18086 esac
18087 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18088 echo "${ECHO_T}$dynamic_linker" >&6; }
18089 test "$dynamic_linker" = no && can_build_shared=no
18091 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18092 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18093 hardcode_action_GCJ=
18094 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18095 test -n "$runpath_var GCJ" || \
18096 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18098 # We can hardcode non-existant directories.
18099 if test "$hardcode_direct_GCJ" != no &&
18100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18101 # have to relink, otherwise we might link with an installed library
18102 # when we should be linking with a yet-to-be-installed one
18103 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18104 test "$hardcode_minus_L_GCJ" != no; then
18105 # Linking always hardcodes the temporary library directory.
18106 hardcode_action_GCJ=relink
18107 else
18108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18109 hardcode_action_GCJ=immediate
18111 else
18112 # We cannot hardcode anything, or else we can only hardcode existing
18113 # directories.
18114 hardcode_action_GCJ=unsupported
18116 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18117 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18119 if test "$hardcode_action_GCJ" = relink; then
18120 # Fast installation is not supported
18121 enable_fast_install=no
18122 elif test "$shlibpath_overrides_runpath" = yes ||
18123 test "$enable_shared" = no; then
18124 # Fast installation is not necessary
18125 enable_fast_install=needless
18128 striplib=
18129 old_striplib=
18130 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18131 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18132 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18133 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18134 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18135 { echo "$as_me:$LINENO: result: yes" >&5
18136 echo "${ECHO_T}yes" >&6; }
18137 else
18138 # FIXME - insert some real tests, host_os isn't really good enough
18139 case $host_os in
18140 darwin*)
18141 if test -n "$STRIP" ; then
18142 striplib="$STRIP -x"
18143 { echo "$as_me:$LINENO: result: yes" >&5
18144 echo "${ECHO_T}yes" >&6; }
18145 else
18146 { echo "$as_me:$LINENO: result: no" >&5
18147 echo "${ECHO_T}no" >&6; }
18151 { echo "$as_me:$LINENO: result: no" >&5
18152 echo "${ECHO_T}no" >&6; }
18154 esac
18157 if test "x$enable_dlopen" != xyes; then
18158 enable_dlopen=unknown
18159 enable_dlopen_self=unknown
18160 enable_dlopen_self_static=unknown
18161 else
18162 lt_cv_dlopen=no
18163 lt_cv_dlopen_libs=
18165 case $host_os in
18166 beos*)
18167 lt_cv_dlopen="load_add_on"
18168 lt_cv_dlopen_libs=
18169 lt_cv_dlopen_self=yes
18172 mingw* | pw32*)
18173 lt_cv_dlopen="LoadLibrary"
18174 lt_cv_dlopen_libs=
18177 cygwin*)
18178 lt_cv_dlopen="dlopen"
18179 lt_cv_dlopen_libs=
18182 darwin*)
18183 # if libdl is installed we need to link against it
18184 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18185 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189 ac_check_lib_save_LIBS=$LIBS
18190 LIBS="-ldl $LIBS"
18191 cat >conftest.$ac_ext <<_ACEOF
18192 /* confdefs.h. */
18193 _ACEOF
18194 cat confdefs.h >>conftest.$ac_ext
18195 cat >>conftest.$ac_ext <<_ACEOF
18196 /* end confdefs.h. */
18198 /* Override any GCC internal prototype to avoid an error.
18199 Use char because int might match the return type of a GCC
18200 builtin and then its argument prototype would still apply. */
18201 #ifdef __cplusplus
18202 extern "C"
18203 #endif
18204 char dlopen ();
18206 main ()
18208 return dlopen ();
18210 return 0;
18212 _ACEOF
18213 rm -f conftest.$ac_objext conftest$ac_exeext
18214 if { (ac_try="$ac_link"
18215 case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218 esac
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18228 { (case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_try") 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18241 esac
18242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_try") 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_lib_dl_dlopen=yes
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_lib_dl_dlopen=no
18255 rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257 LIBS=$ac_check_lib_save_LIBS
18259 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18261 if test $ac_cv_lib_dl_dlopen = yes; then
18262 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18263 else
18265 lt_cv_dlopen="dyld"
18266 lt_cv_dlopen_libs=
18267 lt_cv_dlopen_self=yes
18274 { echo "$as_me:$LINENO: checking for shl_load" >&5
18275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18276 if test "${ac_cv_func_shl_load+set}" = set; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h. */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18287 #define shl_load innocuous_shl_load
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char shl_load (); below.
18291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292 <limits.h> exists even on freestanding compilers. */
18294 #ifdef __STDC__
18295 # include <limits.h>
18296 #else
18297 # include <assert.h>
18298 #endif
18300 #undef shl_load
18302 /* Override any GCC internal prototype to avoid an error.
18303 Use char because int might match the return type of a GCC
18304 builtin and then its argument prototype would still apply. */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char shl_load ();
18309 /* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312 #if defined __stub_shl_load || defined __stub___shl_load
18313 choke me
18314 #endif
18317 main ()
18319 return shl_load ();
18321 return 0;
18323 _ACEOF
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_link") 2>conftest.er1
18332 ac_status=$?
18333 grep -v '^ *+' conftest.er1 >conftest.err
18334 rm -f conftest.er1
18335 cat conftest.err >&5
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); } &&
18338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest$ac_exeext'
18349 { (case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_try") 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 ac_cv_func_shl_load=yes
18359 else
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 ac_cv_func_shl_load=no
18366 rm -f core conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18369 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18370 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18371 if test $ac_cv_func_shl_load = yes; then
18372 lt_cv_dlopen="shl_load"
18373 else
18374 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18375 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18376 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379 ac_check_lib_save_LIBS=$LIBS
18380 LIBS="-ldld $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18391 #ifdef __cplusplus
18392 extern "C"
18393 #endif
18394 char shl_load ();
18396 main ()
18398 return shl_load ();
18400 return 0;
18402 _ACEOF
18403 rm -f conftest.$ac_objext conftest$ac_exeext
18404 if { (ac_try="$ac_link"
18405 case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408 esac
18409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_link") 2>conftest.er1
18411 ac_status=$?
18412 grep -v '^ *+' conftest.er1 >conftest.err
18413 rm -f conftest.er1
18414 cat conftest.err >&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18418 { (case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_try") 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest$ac_exeext'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18431 esac
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 ac_cv_lib_dld_shl_load=yes
18438 else
18439 echo "$as_me: failed program was:" >&5
18440 sed 's/^/| /' conftest.$ac_ext >&5
18442 ac_cv_lib_dld_shl_load=no
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18450 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18451 if test $ac_cv_lib_dld_shl_load = yes; then
18452 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18453 else
18454 { echo "$as_me:$LINENO: checking for dlopen" >&5
18455 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18456 if test "${ac_cv_func_dlopen+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 else
18459 cat >conftest.$ac_ext <<_ACEOF
18460 /* confdefs.h. */
18461 _ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18467 #define dlopen innocuous_dlopen
18469 /* System header to define __stub macros and hopefully few prototypes,
18470 which can conflict with char dlopen (); below.
18471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18472 <limits.h> exists even on freestanding compilers. */
18474 #ifdef __STDC__
18475 # include <limits.h>
18476 #else
18477 # include <assert.h>
18478 #endif
18480 #undef dlopen
18482 /* Override any GCC internal prototype to avoid an error.
18483 Use char because int might match the return type of a GCC
18484 builtin and then its argument prototype would still apply. */
18485 #ifdef __cplusplus
18486 extern "C"
18487 #endif
18488 char dlopen ();
18489 /* The GNU C library defines this for functions which it implements
18490 to always fail with ENOSYS. Some functions are actually named
18491 something starting with __ and the normal name is an alias. */
18492 #if defined __stub_dlopen || defined __stub___dlopen
18493 choke me
18494 #endif
18497 main ()
18499 return dlopen ();
18501 return 0;
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_func_dlopen=yes
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_cv_func_dlopen=no
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18549 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18550 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18551 if test $ac_cv_func_dlopen = yes; then
18552 lt_cv_dlopen="dlopen"
18553 else
18554 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18555 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559 ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-ldl $LIBS"
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char dlopen ();
18576 main ()
18578 return dlopen ();
18580 return 0;
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (ac_try="$ac_link"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18588 esac
18589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18590 (eval "$ac_link") 2>conftest.er1
18591 ac_status=$?
18592 grep -v '^ *+' conftest.er1 >conftest.err
18593 rm -f conftest.er1
18594 cat conftest.err >&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18598 { (case "(($ac_try" in
18599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600 *) ac_try_echo=$ac_try;;
18601 esac
18602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18603 (eval "$ac_try") 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; } &&
18607 { ac_try='test -s conftest$ac_exeext'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; }; then
18617 ac_cv_lib_dl_dlopen=yes
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_dl_dlopen=no
18625 rm -f core conftest.err conftest.$ac_objext \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18630 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18631 if test $ac_cv_lib_dl_dlopen = yes; then
18632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18633 else
18634 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18635 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18636 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 else
18639 ac_check_lib_save_LIBS=$LIBS
18640 LIBS="-lsvld $LIBS"
18641 cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h. */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18648 /* Override any GCC internal prototype to avoid an error.
18649 Use char because int might match the return type of a GCC
18650 builtin and then its argument prototype would still apply. */
18651 #ifdef __cplusplus
18652 extern "C"
18653 #endif
18654 char dlopen ();
18656 main ()
18658 return dlopen ();
18660 return 0;
18662 _ACEOF
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18668 esac
18669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_link") 2>conftest.er1
18671 ac_status=$?
18672 grep -v '^ *+' conftest.er1 >conftest.err
18673 rm -f conftest.er1
18674 cat conftest.err >&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); } &&
18677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest$ac_exeext'
18688 { (case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_try") 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_lib_svld_dlopen=yes
18698 else
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_cv_lib_svld_dlopen=no
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 LIBS=$ac_check_lib_save_LIBS
18709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18711 if test $ac_cv_lib_svld_dlopen = yes; then
18712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18713 else
18714 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18715 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 ac_check_lib_save_LIBS=$LIBS
18720 LIBS="-ldld $LIBS"
18721 cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h. */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18728 /* Override any GCC internal prototype to avoid an error.
18729 Use char because int might match the return type of a GCC
18730 builtin and then its argument prototype would still apply. */
18731 #ifdef __cplusplus
18732 extern "C"
18733 #endif
18734 char dld_link ();
18736 main ()
18738 return dld_link ();
18740 return 0;
18742 _ACEOF
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } &&
18757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18758 { (case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_try") 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try='test -s conftest$ac_exeext'
18768 { (case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_try") 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_lib_dld_dld_link=yes
18778 else
18779 echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_lib_dld_dld_link=no
18785 rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18789 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18790 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18791 if test $ac_cv_lib_dld_dld_link = yes; then
18792 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18811 esac
18813 if test "x$lt_cv_dlopen" != xno; then
18814 enable_dlopen=yes
18815 else
18816 enable_dlopen=no
18819 case $lt_cv_dlopen in
18820 dlopen)
18821 save_CPPFLAGS="$CPPFLAGS"
18822 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18824 save_LDFLAGS="$LDFLAGS"
18825 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18827 save_LIBS="$LIBS"
18828 LIBS="$lt_cv_dlopen_libs $LIBS"
18830 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18831 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18832 if test "${lt_cv_dlopen_self+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 if test "$cross_compiling" = yes; then :
18836 lt_cv_dlopen_self=cross
18837 else
18838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18839 lt_status=$lt_dlunknown
18840 cat > conftest.$ac_ext <<EOF
18841 #line 18841 "configure"
18842 #include "confdefs.h"
18844 #if HAVE_DLFCN_H
18845 #include <dlfcn.h>
18846 #endif
18848 #include <stdio.h>
18850 #ifdef RTLD_GLOBAL
18851 # define LT_DLGLOBAL RTLD_GLOBAL
18852 #else
18853 # ifdef DL_GLOBAL
18854 # define LT_DLGLOBAL DL_GLOBAL
18855 # else
18856 # define LT_DLGLOBAL 0
18857 # endif
18858 #endif
18860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18861 find out it does not work in some platform. */
18862 #ifndef LT_DLLAZY_OR_NOW
18863 # ifdef RTLD_LAZY
18864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18865 # else
18866 # ifdef DL_LAZY
18867 # define LT_DLLAZY_OR_NOW DL_LAZY
18868 # else
18869 # ifdef RTLD_NOW
18870 # define LT_DLLAZY_OR_NOW RTLD_NOW
18871 # else
18872 # ifdef DL_NOW
18873 # define LT_DLLAZY_OR_NOW DL_NOW
18874 # else
18875 # define LT_DLLAZY_OR_NOW 0
18876 # endif
18877 # endif
18878 # endif
18879 # endif
18880 #endif
18882 #ifdef __cplusplus
18883 extern "C" void exit (int);
18884 #endif
18886 void fnord() { int i=42;}
18887 int main ()
18889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18890 int status = $lt_dlunknown;
18892 if (self)
18894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18896 /* dlclose (self); */
18899 exit (status);
18902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18903 (eval $ac_link) 2>&5
18904 ac_status=$?
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18907 (./conftest; exit; ) 2>/dev/null
18908 lt_status=$?
18909 case x$lt_status in
18910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18912 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18913 esac
18914 else :
18915 # compilation failed
18916 lt_cv_dlopen_self=no
18919 rm -fr conftest*
18923 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18924 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18926 if test "x$lt_cv_dlopen_self" = xyes; then
18927 LDFLAGS="$LDFLAGS $link_static_flag"
18928 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18929 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18930 if test "${lt_cv_dlopen_self_static+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933 if test "$cross_compiling" = yes; then :
18934 lt_cv_dlopen_self_static=cross
18935 else
18936 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18937 lt_status=$lt_dlunknown
18938 cat > conftest.$ac_ext <<EOF
18939 #line 18939 "configure"
18940 #include "confdefs.h"
18942 #if HAVE_DLFCN_H
18943 #include <dlfcn.h>
18944 #endif
18946 #include <stdio.h>
18948 #ifdef RTLD_GLOBAL
18949 # define LT_DLGLOBAL RTLD_GLOBAL
18950 #else
18951 # ifdef DL_GLOBAL
18952 # define LT_DLGLOBAL DL_GLOBAL
18953 # else
18954 # define LT_DLGLOBAL 0
18955 # endif
18956 #endif
18958 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18959 find out it does not work in some platform. */
18960 #ifndef LT_DLLAZY_OR_NOW
18961 # ifdef RTLD_LAZY
18962 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18963 # else
18964 # ifdef DL_LAZY
18965 # define LT_DLLAZY_OR_NOW DL_LAZY
18966 # else
18967 # ifdef RTLD_NOW
18968 # define LT_DLLAZY_OR_NOW RTLD_NOW
18969 # else
18970 # ifdef DL_NOW
18971 # define LT_DLLAZY_OR_NOW DL_NOW
18972 # else
18973 # define LT_DLLAZY_OR_NOW 0
18974 # endif
18975 # endif
18976 # endif
18977 # endif
18978 #endif
18980 #ifdef __cplusplus
18981 extern "C" void exit (int);
18982 #endif
18984 void fnord() { int i=42;}
18985 int main ()
18987 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18988 int status = $lt_dlunknown;
18990 if (self)
18992 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18993 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18994 /* dlclose (self); */
18997 exit (status);
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19005 (./conftest; exit; ) 2>/dev/null
19006 lt_status=$?
19007 case x$lt_status in
19008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19010 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19011 esac
19012 else :
19013 # compilation failed
19014 lt_cv_dlopen_self_static=no
19017 rm -fr conftest*
19021 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19022 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19025 CPPFLAGS="$save_CPPFLAGS"
19026 LDFLAGS="$save_LDFLAGS"
19027 LIBS="$save_LIBS"
19029 esac
19031 case $lt_cv_dlopen_self in
19032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19033 *) enable_dlopen_self=unknown ;;
19034 esac
19036 case $lt_cv_dlopen_self_static in
19037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19038 *) enable_dlopen_self_static=unknown ;;
19039 esac
19043 # The else clause should only fire when bootstrapping the
19044 # libtool distribution, otherwise you forgot to ship ltmain.sh
19045 # with your package, and you will get complaints that there are
19046 # no rules to generate ltmain.sh.
19047 if test -f "$ltmain"; then
19048 # See if we are running on zsh, and set the options which allow our commands through
19049 # without removal of \ escapes.
19050 if test -n "${ZSH_VERSION+set}" ; then
19051 setopt NO_GLOB_SUBST
19053 # Now quote all the things that may contain metacharacters while being
19054 # careful not to overquote the AC_SUBSTed values. We take copies of the
19055 # variables and quote the copies for generation of the libtool script.
19056 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19057 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19058 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19059 deplibs_check_method reload_flag reload_cmds need_locks \
19060 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19061 lt_cv_sys_global_symbol_to_c_name_address \
19062 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19063 old_postinstall_cmds old_postuninstall_cmds \
19064 compiler_GCJ \
19065 CC_GCJ \
19066 LD_GCJ \
19067 lt_prog_compiler_wl_GCJ \
19068 lt_prog_compiler_pic_GCJ \
19069 lt_prog_compiler_static_GCJ \
19070 lt_prog_compiler_no_builtin_flag_GCJ \
19071 export_dynamic_flag_spec_GCJ \
19072 thread_safe_flag_spec_GCJ \
19073 whole_archive_flag_spec_GCJ \
19074 enable_shared_with_static_runtimes_GCJ \
19075 old_archive_cmds_GCJ \
19076 old_archive_from_new_cmds_GCJ \
19077 predep_objects_GCJ \
19078 postdep_objects_GCJ \
19079 predeps_GCJ \
19080 postdeps_GCJ \
19081 compiler_lib_search_path_GCJ \
19082 archive_cmds_GCJ \
19083 archive_expsym_cmds_GCJ \
19084 postinstall_cmds_GCJ \
19085 postuninstall_cmds_GCJ \
19086 old_archive_from_expsyms_cmds_GCJ \
19087 allow_undefined_flag_GCJ \
19088 no_undefined_flag_GCJ \
19089 export_symbols_cmds_GCJ \
19090 hardcode_libdir_flag_spec_GCJ \
19091 hardcode_libdir_flag_spec_ld_GCJ \
19092 hardcode_libdir_separator_GCJ \
19093 hardcode_automatic_GCJ \
19094 module_cmds_GCJ \
19095 module_expsym_cmds_GCJ \
19096 lt_cv_prog_compiler_c_o_GCJ \
19097 exclude_expsyms_GCJ \
19098 include_expsyms_GCJ; do
19100 case $var in
19101 old_archive_cmds_GCJ | \
19102 old_archive_from_new_cmds_GCJ | \
19103 archive_cmds_GCJ | \
19104 archive_expsym_cmds_GCJ | \
19105 module_cmds_GCJ | \
19106 module_expsym_cmds_GCJ | \
19107 old_archive_from_expsyms_cmds_GCJ | \
19108 export_symbols_cmds_GCJ | \
19109 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19110 postinstall_cmds | postuninstall_cmds | \
19111 old_postinstall_cmds | old_postuninstall_cmds | \
19112 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19113 # Double-quote double-evaled strings.
19114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19119 esac
19120 done
19122 case $lt_echo in
19123 *'\$0 --fallback-echo"')
19124 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19126 esac
19128 cfgfile="$ofile"
19130 cat <<__EOF__ >> "$cfgfile"
19131 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19135 # Shell to use when invoking shell scripts.
19136 SHELL=$lt_SHELL
19138 # Whether or not to build shared libraries.
19139 build_libtool_libs=$enable_shared
19141 # Whether or not to build static libraries.
19142 build_old_libs=$enable_static
19144 # Whether or not to add -lc for building shared libraries.
19145 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19147 # Whether or not to disallow shared libs when runtime libs are static
19148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19150 # Whether or not to optimize for fast installation.
19151 fast_install=$enable_fast_install
19153 # The host system.
19154 host_alias=$host_alias
19155 host=$host
19157 # An echo program that does not interpret backslashes.
19158 echo=$lt_echo
19160 # The archiver.
19161 AR=$lt_AR
19162 AR_FLAGS=$lt_AR_FLAGS
19164 # A C compiler.
19165 LTCC=$lt_LTCC
19167 # A language-specific compiler.
19168 CC=$lt_compiler_GCJ
19170 # Is the compiler the GNU C compiler?
19171 with_gcc=$GCC_GCJ
19173 # An ERE matcher.
19174 EGREP=$lt_EGREP
19176 # The linker used to build libraries.
19177 LD=$lt_LD_GCJ
19179 # Whether we need hard or soft links.
19180 LN_S=$lt_LN_S
19182 # A BSD-compatible nm program.
19183 NM=$lt_NM
19185 # A symbol stripping program
19186 STRIP="$STRIP"
19188 # Used to examine libraries when file_magic_cmd begins "file"
19189 MAGIC_CMD=$MAGIC_CMD
19191 # Used on cygwin: DLL creation program.
19192 DLLTOOL="$DLLTOOL"
19194 # Used on cygwin: object dumper.
19195 OBJDUMP="$OBJDUMP"
19197 # Used on cygwin: assembler.
19198 AS="$AS"
19200 # The name of the directory that contains temporary libtool files.
19201 objdir=$objdir
19203 # How to create reloadable object files.
19204 reload_flag=$lt_reload_flag
19205 reload_cmds=$lt_reload_cmds
19207 # How to pass a linker flag through the compiler.
19208 wl=$lt_lt_prog_compiler_wl_GCJ
19210 # Object file suffix (normally "o").
19211 objext="$ac_objext"
19213 # Old archive suffix (normally "a").
19214 libext="$libext"
19216 # Shared library suffix (normally ".so").
19217 shrext='$shrext'
19219 # Executable file suffix (normally "").
19220 exeext="$exeext"
19222 # Additional compiler flags for building library objects.
19223 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19224 pic_mode=$pic_mode
19226 # What is the maximum length of a command?
19227 max_cmd_len=$lt_cv_sys_max_cmd_len
19229 # Does compiler simultaneously support -c and -o options?
19230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19232 # Must we lock files when doing compilation ?
19233 need_locks=$lt_need_locks
19235 # Do we need the lib prefix for modules?
19236 need_lib_prefix=$need_lib_prefix
19238 # Do we need a version for libraries?
19239 need_version=$need_version
19241 # Whether dlopen is supported.
19242 dlopen_support=$enable_dlopen
19244 # Whether dlopen of programs is supported.
19245 dlopen_self=$enable_dlopen_self
19247 # Whether dlopen of statically linked programs is supported.
19248 dlopen_self_static=$enable_dlopen_self_static
19250 # Compiler flag to prevent dynamic linking.
19251 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19253 # Compiler flag to turn off builtin functions.
19254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19256 # Compiler flag to allow reflexive dlopens.
19257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19259 # Compiler flag to generate shared objects directly from archives.
19260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19262 # Compiler flag to generate thread-safe objects.
19263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19265 # Library versioning type.
19266 version_type=$version_type
19268 # Format of library name prefix.
19269 libname_spec=$lt_libname_spec
19271 # List of archive names. First name is the real one, the rest are links.
19272 # The last name is the one that the linker finds with -lNAME.
19273 library_names_spec=$lt_library_names_spec
19275 # The coded name of the library, if different from the real name.
19276 soname_spec=$lt_soname_spec
19278 # Commands used to build and install an old-style archive.
19279 RANLIB=$lt_RANLIB
19280 old_archive_cmds=$lt_old_archive_cmds_GCJ
19281 old_postinstall_cmds=$lt_old_postinstall_cmds
19282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19284 # Create an old-style archive from a shared archive.
19285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19287 # Create a temporary old-style archive to link instead of a shared archive.
19288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19290 # Commands used to build and install a shared archive.
19291 archive_cmds=$lt_archive_cmds_GCJ
19292 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19293 postinstall_cmds=$lt_postinstall_cmds
19294 postuninstall_cmds=$lt_postuninstall_cmds
19296 # Commands used to build a loadable module (assumed same as above if empty)
19297 module_cmds=$lt_module_cmds_GCJ
19298 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19300 # Commands to strip libraries.
19301 old_striplib=$lt_old_striplib
19302 striplib=$lt_striplib
19304 # Dependencies to place before the objects being linked to create a
19305 # shared library.
19306 predep_objects=$lt_predep_objects_GCJ
19308 # Dependencies to place after the objects being linked to create a
19309 # shared library.
19310 postdep_objects=$lt_postdep_objects_GCJ
19312 # Dependencies to place before the objects being linked to create a
19313 # shared library.
19314 predeps=$lt_predeps_GCJ
19316 # Dependencies to place after the objects being linked to create a
19317 # shared library.
19318 postdeps=$lt_postdeps_GCJ
19320 # The library search path used internally by the compiler when linking
19321 # a shared library.
19322 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19324 # Method to check whether dependent libraries are shared objects.
19325 deplibs_check_method=$lt_deplibs_check_method
19327 # Command to use when deplibs_check_method == file_magic.
19328 file_magic_cmd=$lt_file_magic_cmd
19330 # Flag that allows shared libraries with undefined symbols to be built.
19331 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19333 # Flag that forces no undefined symbols.
19334 no_undefined_flag=$lt_no_undefined_flag_GCJ
19336 # Commands used to finish a libtool library installation in a directory.
19337 finish_cmds=$lt_finish_cmds
19339 # Same as above, but a single script fragment to be evaled but not shown.
19340 finish_eval=$lt_finish_eval
19342 # Take the output of nm and produce a listing of raw symbols and C names.
19343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19345 # Transform the output of nm in a proper C declaration
19346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19348 # Transform the output of nm in a C name address pair
19349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19351 # This is the shared library runtime path variable.
19352 runpath_var=$runpath_var
19354 # This is the shared library path variable.
19355 shlibpath_var=$shlibpath_var
19357 # Is shlibpath searched before the hard-coded library search path?
19358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19360 # How to hardcode a shared library path into an executable.
19361 hardcode_action=$hardcode_action_GCJ
19363 # Whether we should hardcode library paths into libraries.
19364 hardcode_into_libs=$hardcode_into_libs
19366 # Flag to hardcode \$libdir into a binary during linking.
19367 # This must work even if \$libdir does not exist.
19368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19370 # If ld is used when linking, flag to hardcode \$libdir into
19371 # a binary during linking. This must work even if \$libdir does
19372 # not exist.
19373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19375 # Whether we need a single -rpath flag with a separated argument.
19376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19379 # resulting binary.
19380 hardcode_direct=$hardcode_direct_GCJ
19382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19383 # resulting binary.
19384 hardcode_minus_L=$hardcode_minus_L_GCJ
19386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19387 # the resulting binary.
19388 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19390 # Set to yes if building a shared library automatically hardcodes DIR into the library
19391 # and all subsequent libraries and executables linked against it.
19392 hardcode_automatic=$hardcode_automatic_GCJ
19394 # Variables whose values should be saved in libtool wrapper scripts and
19395 # restored at relink time.
19396 variables_saved_for_relink="$variables_saved_for_relink"
19398 # Whether libtool must link a program against all its dependency libraries.
19399 link_all_deplibs=$link_all_deplibs_GCJ
19401 # Compile-time system search path for libraries
19402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19404 # Run-time system search path for libraries
19405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19407 # Fix the shell variable \$srcfile for the compiler.
19408 fix_srcfile_path="$fix_srcfile_path_GCJ"
19410 # Set to yes if exported symbols are required.
19411 always_export_symbols=$always_export_symbols_GCJ
19413 # The commands to list exported symbols.
19414 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19416 # The commands to extract the exported symbol list from a shared archive.
19417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19419 # Symbols that should not be listed in the preloaded symbols.
19420 exclude_expsyms=$lt_exclude_expsyms_GCJ
19422 # Symbols that must always be exported.
19423 include_expsyms=$lt_include_expsyms_GCJ
19425 # ### END LIBTOOL TAG CONFIG: $tagname
19427 __EOF__
19430 else
19431 # If there is no Makefile yet, we rely on a make rule to execute
19432 # `config.status --recheck' to rerun these tests and create the
19433 # libtool script then.
19434 test -f Makefile && make "$ltmain"
19438 ac_ext=c
19439 ac_cpp='$CPP $CPPFLAGS'
19440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19444 CC="$lt_save_CC"
19446 else
19447 tagname=""
19454 # Source file extension for RC test sources.
19455 ac_ext=rc
19457 # Object file extension for compiled RC test sources.
19458 objext=o
19459 objext_RC=$objext
19461 # Code to be used in simple compile tests
19462 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19464 # Code to be used in simple link tests
19465 lt_simple_link_test_code="$lt_simple_compile_test_code"
19467 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19469 # If no C compiler was specified, use CC.
19470 LTCC=${LTCC-"$CC"}
19472 # Allow CC to be a program name with arguments.
19473 compiler=$CC
19476 # Allow CC to be a program name with arguments.
19477 lt_save_CC="$CC"
19478 CC=${RC-"windres"}
19479 compiler=$CC
19480 compiler_RC=$CC
19481 lt_cv_prog_compiler_c_o_RC=yes
19483 # The else clause should only fire when bootstrapping the
19484 # libtool distribution, otherwise you forgot to ship ltmain.sh
19485 # with your package, and you will get complaints that there are
19486 # no rules to generate ltmain.sh.
19487 if test -f "$ltmain"; then
19488 # See if we are running on zsh, and set the options which allow our commands through
19489 # without removal of \ escapes.
19490 if test -n "${ZSH_VERSION+set}" ; then
19491 setopt NO_GLOB_SUBST
19493 # Now quote all the things that may contain metacharacters while being
19494 # careful not to overquote the AC_SUBSTed values. We take copies of the
19495 # variables and quote the copies for generation of the libtool script.
19496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19497 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19498 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19499 deplibs_check_method reload_flag reload_cmds need_locks \
19500 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19501 lt_cv_sys_global_symbol_to_c_name_address \
19502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19503 old_postinstall_cmds old_postuninstall_cmds \
19504 compiler_RC \
19505 CC_RC \
19506 LD_RC \
19507 lt_prog_compiler_wl_RC \
19508 lt_prog_compiler_pic_RC \
19509 lt_prog_compiler_static_RC \
19510 lt_prog_compiler_no_builtin_flag_RC \
19511 export_dynamic_flag_spec_RC \
19512 thread_safe_flag_spec_RC \
19513 whole_archive_flag_spec_RC \
19514 enable_shared_with_static_runtimes_RC \
19515 old_archive_cmds_RC \
19516 old_archive_from_new_cmds_RC \
19517 predep_objects_RC \
19518 postdep_objects_RC \
19519 predeps_RC \
19520 postdeps_RC \
19521 compiler_lib_search_path_RC \
19522 archive_cmds_RC \
19523 archive_expsym_cmds_RC \
19524 postinstall_cmds_RC \
19525 postuninstall_cmds_RC \
19526 old_archive_from_expsyms_cmds_RC \
19527 allow_undefined_flag_RC \
19528 no_undefined_flag_RC \
19529 export_symbols_cmds_RC \
19530 hardcode_libdir_flag_spec_RC \
19531 hardcode_libdir_flag_spec_ld_RC \
19532 hardcode_libdir_separator_RC \
19533 hardcode_automatic_RC \
19534 module_cmds_RC \
19535 module_expsym_cmds_RC \
19536 lt_cv_prog_compiler_c_o_RC \
19537 exclude_expsyms_RC \
19538 include_expsyms_RC; do
19540 case $var in
19541 old_archive_cmds_RC | \
19542 old_archive_from_new_cmds_RC | \
19543 archive_cmds_RC | \
19544 archive_expsym_cmds_RC | \
19545 module_cmds_RC | \
19546 module_expsym_cmds_RC | \
19547 old_archive_from_expsyms_cmds_RC | \
19548 export_symbols_cmds_RC | \
19549 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19550 postinstall_cmds | postuninstall_cmds | \
19551 old_postinstall_cmds | old_postuninstall_cmds | \
19552 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19553 # Double-quote double-evaled strings.
19554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19557 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19559 esac
19560 done
19562 case $lt_echo in
19563 *'\$0 --fallback-echo"')
19564 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19566 esac
19568 cfgfile="$ofile"
19570 cat <<__EOF__ >> "$cfgfile"
19571 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19573 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19575 # Shell to use when invoking shell scripts.
19576 SHELL=$lt_SHELL
19578 # Whether or not to build shared libraries.
19579 build_libtool_libs=$enable_shared
19581 # Whether or not to build static libraries.
19582 build_old_libs=$enable_static
19584 # Whether or not to add -lc for building shared libraries.
19585 build_libtool_need_lc=$archive_cmds_need_lc_RC
19587 # Whether or not to disallow shared libs when runtime libs are static
19588 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19590 # Whether or not to optimize for fast installation.
19591 fast_install=$enable_fast_install
19593 # The host system.
19594 host_alias=$host_alias
19595 host=$host
19597 # An echo program that does not interpret backslashes.
19598 echo=$lt_echo
19600 # The archiver.
19601 AR=$lt_AR
19602 AR_FLAGS=$lt_AR_FLAGS
19604 # A C compiler.
19605 LTCC=$lt_LTCC
19607 # A language-specific compiler.
19608 CC=$lt_compiler_RC
19610 # Is the compiler the GNU C compiler?
19611 with_gcc=$GCC_RC
19613 # An ERE matcher.
19614 EGREP=$lt_EGREP
19616 # The linker used to build libraries.
19617 LD=$lt_LD_RC
19619 # Whether we need hard or soft links.
19620 LN_S=$lt_LN_S
19622 # A BSD-compatible nm program.
19623 NM=$lt_NM
19625 # A symbol stripping program
19626 STRIP="$STRIP"
19628 # Used to examine libraries when file_magic_cmd begins "file"
19629 MAGIC_CMD=$MAGIC_CMD
19631 # Used on cygwin: DLL creation program.
19632 DLLTOOL="$DLLTOOL"
19634 # Used on cygwin: object dumper.
19635 OBJDUMP="$OBJDUMP"
19637 # Used on cygwin: assembler.
19638 AS="$AS"
19640 # The name of the directory that contains temporary libtool files.
19641 objdir=$objdir
19643 # How to create reloadable object files.
19644 reload_flag=$lt_reload_flag
19645 reload_cmds=$lt_reload_cmds
19647 # How to pass a linker flag through the compiler.
19648 wl=$lt_lt_prog_compiler_wl_RC
19650 # Object file suffix (normally "o").
19651 objext="$ac_objext"
19653 # Old archive suffix (normally "a").
19654 libext="$libext"
19656 # Shared library suffix (normally ".so").
19657 shrext='$shrext'
19659 # Executable file suffix (normally "").
19660 exeext="$exeext"
19662 # Additional compiler flags for building library objects.
19663 pic_flag=$lt_lt_prog_compiler_pic_RC
19664 pic_mode=$pic_mode
19666 # What is the maximum length of a command?
19667 max_cmd_len=$lt_cv_sys_max_cmd_len
19669 # Does compiler simultaneously support -c and -o options?
19670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19672 # Must we lock files when doing compilation ?
19673 need_locks=$lt_need_locks
19675 # Do we need the lib prefix for modules?
19676 need_lib_prefix=$need_lib_prefix
19678 # Do we need a version for libraries?
19679 need_version=$need_version
19681 # Whether dlopen is supported.
19682 dlopen_support=$enable_dlopen
19684 # Whether dlopen of programs is supported.
19685 dlopen_self=$enable_dlopen_self
19687 # Whether dlopen of statically linked programs is supported.
19688 dlopen_self_static=$enable_dlopen_self_static
19690 # Compiler flag to prevent dynamic linking.
19691 link_static_flag=$lt_lt_prog_compiler_static_RC
19693 # Compiler flag to turn off builtin functions.
19694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19696 # Compiler flag to allow reflexive dlopens.
19697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19699 # Compiler flag to generate shared objects directly from archives.
19700 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19702 # Compiler flag to generate thread-safe objects.
19703 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19705 # Library versioning type.
19706 version_type=$version_type
19708 # Format of library name prefix.
19709 libname_spec=$lt_libname_spec
19711 # List of archive names. First name is the real one, the rest are links.
19712 # The last name is the one that the linker finds with -lNAME.
19713 library_names_spec=$lt_library_names_spec
19715 # The coded name of the library, if different from the real name.
19716 soname_spec=$lt_soname_spec
19718 # Commands used to build and install an old-style archive.
19719 RANLIB=$lt_RANLIB
19720 old_archive_cmds=$lt_old_archive_cmds_RC
19721 old_postinstall_cmds=$lt_old_postinstall_cmds
19722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19724 # Create an old-style archive from a shared archive.
19725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19727 # Create a temporary old-style archive to link instead of a shared archive.
19728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19730 # Commands used to build and install a shared archive.
19731 archive_cmds=$lt_archive_cmds_RC
19732 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19733 postinstall_cmds=$lt_postinstall_cmds
19734 postuninstall_cmds=$lt_postuninstall_cmds
19736 # Commands used to build a loadable module (assumed same as above if empty)
19737 module_cmds=$lt_module_cmds_RC
19738 module_expsym_cmds=$lt_module_expsym_cmds_RC
19740 # Commands to strip libraries.
19741 old_striplib=$lt_old_striplib
19742 striplib=$lt_striplib
19744 # Dependencies to place before the objects being linked to create a
19745 # shared library.
19746 predep_objects=$lt_predep_objects_RC
19748 # Dependencies to place after the objects being linked to create a
19749 # shared library.
19750 postdep_objects=$lt_postdep_objects_RC
19752 # Dependencies to place before the objects being linked to create a
19753 # shared library.
19754 predeps=$lt_predeps_RC
19756 # Dependencies to place after the objects being linked to create a
19757 # shared library.
19758 postdeps=$lt_postdeps_RC
19760 # The library search path used internally by the compiler when linking
19761 # a shared library.
19762 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19764 # Method to check whether dependent libraries are shared objects.
19765 deplibs_check_method=$lt_deplibs_check_method
19767 # Command to use when deplibs_check_method == file_magic.
19768 file_magic_cmd=$lt_file_magic_cmd
19770 # Flag that allows shared libraries with undefined symbols to be built.
19771 allow_undefined_flag=$lt_allow_undefined_flag_RC
19773 # Flag that forces no undefined symbols.
19774 no_undefined_flag=$lt_no_undefined_flag_RC
19776 # Commands used to finish a libtool library installation in a directory.
19777 finish_cmds=$lt_finish_cmds
19779 # Same as above, but a single script fragment to be evaled but not shown.
19780 finish_eval=$lt_finish_eval
19782 # Take the output of nm and produce a listing of raw symbols and C names.
19783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19785 # Transform the output of nm in a proper C declaration
19786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19788 # Transform the output of nm in a C name address pair
19789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19791 # This is the shared library runtime path variable.
19792 runpath_var=$runpath_var
19794 # This is the shared library path variable.
19795 shlibpath_var=$shlibpath_var
19797 # Is shlibpath searched before the hard-coded library search path?
19798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19800 # How to hardcode a shared library path into an executable.
19801 hardcode_action=$hardcode_action_RC
19803 # Whether we should hardcode library paths into libraries.
19804 hardcode_into_libs=$hardcode_into_libs
19806 # Flag to hardcode \$libdir into a binary during linking.
19807 # This must work even if \$libdir does not exist.
19808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19810 # If ld is used when linking, flag to hardcode \$libdir into
19811 # a binary during linking. This must work even if \$libdir does
19812 # not exist.
19813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19815 # Whether we need a single -rpath flag with a separated argument.
19816 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19819 # resulting binary.
19820 hardcode_direct=$hardcode_direct_RC
19822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19823 # resulting binary.
19824 hardcode_minus_L=$hardcode_minus_L_RC
19826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19827 # the resulting binary.
19828 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19830 # Set to yes if building a shared library automatically hardcodes DIR into the library
19831 # and all subsequent libraries and executables linked against it.
19832 hardcode_automatic=$hardcode_automatic_RC
19834 # Variables whose values should be saved in libtool wrapper scripts and
19835 # restored at relink time.
19836 variables_saved_for_relink="$variables_saved_for_relink"
19838 # Whether libtool must link a program against all its dependency libraries.
19839 link_all_deplibs=$link_all_deplibs_RC
19841 # Compile-time system search path for libraries
19842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19844 # Run-time system search path for libraries
19845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19847 # Fix the shell variable \$srcfile for the compiler.
19848 fix_srcfile_path="$fix_srcfile_path_RC"
19850 # Set to yes if exported symbols are required.
19851 always_export_symbols=$always_export_symbols_RC
19853 # The commands to list exported symbols.
19854 export_symbols_cmds=$lt_export_symbols_cmds_RC
19856 # The commands to extract the exported symbol list from a shared archive.
19857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19859 # Symbols that should not be listed in the preloaded symbols.
19860 exclude_expsyms=$lt_exclude_expsyms_RC
19862 # Symbols that must always be exported.
19863 include_expsyms=$lt_include_expsyms_RC
19865 # ### END LIBTOOL TAG CONFIG: $tagname
19867 __EOF__
19870 else
19871 # If there is no Makefile yet, we rely on a make rule to execute
19872 # `config.status --recheck' to rerun these tests and create the
19873 # libtool script then.
19874 test -f Makefile && make "$ltmain"
19878 ac_ext=c
19879 ac_cpp='$CPP $CPPFLAGS'
19880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19884 CC="$lt_save_CC"
19889 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19890 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19891 { (exit 1); exit 1; }; }
19893 esac
19895 # Append the new tag name to the list of available tags.
19896 if test -n "$tagname" ; then
19897 available_tags="$available_tags $tagname"
19900 done
19901 IFS="$lt_save_ifs"
19903 # Now substitute the updated list of available tags.
19904 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19905 mv "${ofile}T" "$ofile"
19906 chmod +x "$ofile"
19907 else
19908 rm -f "${ofile}T"
19909 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19910 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19911 { (exit 1); exit 1; }; }
19917 # This can be used to rebuild libtool when needed
19918 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19920 # Always use our own libtool.
19921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19923 # Prevent multiple expansion
19944 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19946 if test "${ac_cv_c_const+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 else
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h. */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h. */
19957 main ()
19959 /* FIXME: Include the comments suggested by Paul. */
19960 #ifndef __cplusplus
19961 /* Ultrix mips cc rejects this. */
19962 typedef int charset[2];
19963 const charset x;
19964 /* SunOS 4.1.1 cc rejects this. */
19965 char const *const *ccp;
19966 char **p;
19967 /* NEC SVR4.0.2 mips cc rejects this. */
19968 struct point {int x, y;};
19969 static struct point const zero = {0,0};
19970 /* AIX XL C 1.02.0.0 rejects this.
19971 It does not let you subtract one const X* pointer from another in
19972 an arm of an if-expression whose if-part is not a constant
19973 expression */
19974 const char *g = "string";
19975 ccp = &g + (g ? g-g : 0);
19976 /* HPUX 7.0 cc rejects these. */
19977 ++ccp;
19978 p = (char**) ccp;
19979 ccp = (char const *const *) p;
19980 { /* SCO 3.2v4 cc rejects this. */
19981 char *t;
19982 char const *s = 0 ? (char *) 0 : (char const *) 0;
19984 *t++ = 0;
19985 if (s) return 0;
19987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19988 int x[] = {25, 17};
19989 const int *foo = &x[0];
19990 ++foo;
19992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19993 typedef const int *iptr;
19994 iptr p = 0;
19995 ++p;
19997 { /* AIX XL C 1.02.0.0 rejects this saying
19998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19999 struct s { int j; const int *ap[3]; };
20000 struct s *b; b->j = 5;
20002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20003 const int foo = 10;
20004 if (!foo) return 0;
20006 return !x[0] && !zero.x;
20007 #endif
20010 return 0;
20012 _ACEOF
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20018 esac
20019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031 esac
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; }; then
20047 ac_cv_c_const=yes
20048 else
20049 echo "$as_me: failed program was:" >&5
20050 sed 's/^/| /' conftest.$ac_ext >&5
20052 ac_cv_c_const=no
20055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20058 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20059 if test $ac_cv_c_const = no; then
20061 cat >>confdefs.h <<\_ACEOF
20062 #define const
20063 _ACEOF
20072 ac_header_dirent=no
20073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20074 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20075 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20076 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080 cat >conftest.$ac_ext <<_ACEOF
20081 /* confdefs.h. */
20082 _ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <sys/types.h>
20087 #include <$ac_hdr>
20090 main ()
20092 if ((DIR *) 0)
20093 return 0;
20095 return 0;
20097 _ACEOF
20098 rm -f conftest.$ac_objext
20099 if { (ac_try="$ac_compile"
20100 case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_compile") 2>conftest.er1
20106 ac_status=$?
20107 grep -v '^ *+' conftest.er1 >conftest.err
20108 rm -f conftest.er1
20109 cat conftest.err >&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); } &&
20112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20119 ac_status=$?
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest.$ac_objext'
20123 { (case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128 (eval "$ac_try") 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 eval "$as_ac_Header=yes"
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 eval "$as_ac_Header=no"
20140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20142 ac_res=`eval echo '${'$as_ac_Header'}'`
20143 { echo "$as_me:$LINENO: result: $ac_res" >&5
20144 echo "${ECHO_T}$ac_res" >&6; }
20145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20148 _ACEOF
20150 ac_header_dirent=$ac_hdr; break
20153 done
20154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20155 if test $ac_header_dirent = dirent.h; then
20156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20158 if test "${ac_cv_search_opendir+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 ac_func_search_save_LIBS=$LIBS
20162 cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h. */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20172 #ifdef __cplusplus
20173 extern "C"
20174 #endif
20175 char opendir ();
20177 main ()
20179 return opendir ();
20181 return 0;
20183 _ACEOF
20184 for ac_lib in '' dir; do
20185 if test -z "$ac_lib"; then
20186 ac_res="none required"
20187 else
20188 ac_res=-l$ac_lib
20189 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20199 ac_status=$?
20200 grep -v '^ *+' conftest.er1 >conftest.err
20201 rm -f conftest.er1
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); } &&
20205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20206 { (case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20209 esac
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_try") 2>&5
20212 ac_status=$?
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; } &&
20215 { ac_try='test -s conftest$ac_exeext'
20216 { (case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_try") 2>&5
20222 ac_status=$?
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; }; then
20225 ac_cv_search_opendir=$ac_res
20226 else
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20233 rm -f core conftest.err conftest.$ac_objext \
20234 conftest$ac_exeext
20235 if test "${ac_cv_search_opendir+set}" = set; then
20236 break
20238 done
20239 if test "${ac_cv_search_opendir+set}" = set; then
20241 else
20242 ac_cv_search_opendir=no
20244 rm conftest.$ac_ext
20245 LIBS=$ac_func_search_save_LIBS
20247 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20248 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20249 ac_res=$ac_cv_search_opendir
20250 if test "$ac_res" != no; then
20251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20255 else
20256 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20257 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20258 if test "${ac_cv_search_opendir+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 else
20261 ac_func_search_save_LIBS=$LIBS
20262 cat >conftest.$ac_ext <<_ACEOF
20263 /* confdefs.h. */
20264 _ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20269 /* Override any GCC internal prototype to avoid an error.
20270 Use char because int might match the return type of a GCC
20271 builtin and then its argument prototype would still apply. */
20272 #ifdef __cplusplus
20273 extern "C"
20274 #endif
20275 char opendir ();
20277 main ()
20279 return opendir ();
20281 return 0;
20283 _ACEOF
20284 for ac_lib in '' x; do
20285 if test -z "$ac_lib"; then
20286 ac_res="none required"
20287 else
20288 ac_res=-l$ac_lib
20289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (ac_try="$ac_link"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20296 esac
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_link") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (case "(($ac_try" in
20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20309 esac
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20312 ac_status=$?
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest$ac_exeext'
20316 { (case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_try") 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_cv_search_opendir=$ac_res
20326 else
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20333 rm -f core conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext
20335 if test "${ac_cv_search_opendir+set}" = set; then
20336 break
20338 done
20339 if test "${ac_cv_search_opendir+set}" = set; then
20341 else
20342 ac_cv_search_opendir=no
20344 rm conftest.$ac_ext
20345 LIBS=$ac_func_search_save_LIBS
20347 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20348 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20349 ac_res=$ac_cv_search_opendir
20350 if test "$ac_res" != no; then
20351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20357 # Check whether --enable-ltdl-install was given.
20358 if test "${enable_ltdl_install+set}" = set; then
20359 enableval=$enable_ltdl_install;
20363 if test x"${enable_ltdl_install-no}" != xno; then
20364 cat >>confdefs.h <<\_ACEOF
20365 #define INSTALL_LTDL 1
20366 _ACEOF
20369 if test x"${enable_ltdl_convenience-no}" != xno; then
20370 cat >>confdefs.h <<\_ACEOF
20371 #define CONVENIENCE_LTDL 1
20372 _ACEOF
20377 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20378 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20379 if test "${libltdl_cv_shlibext+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 else
20383 module=yes
20384 eval libltdl_cv_shlibext=$shrext
20387 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20388 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20389 if test -n "$libltdl_cv_shlibext"; then
20391 cat >>confdefs.h <<_ACEOF
20392 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20393 _ACEOF
20398 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20399 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20400 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403 libltdl_cv_shlibpath_var="$shlibpath_var"
20405 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20406 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20407 if test -n "$libltdl_cv_shlibpath_var"; then
20409 cat >>confdefs.h <<_ACEOF
20410 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20411 _ACEOF
20416 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20417 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20418 if test "${libltdl_cv_sys_search_path+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20423 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20424 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20425 if test -n "$libltdl_cv_sys_search_path"; then
20426 sys_search_path=
20427 for dir in $libltdl_cv_sys_search_path; do
20428 if test -z "$sys_search_path"; then
20429 sys_search_path="$dir"
20430 else
20431 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20433 done
20435 cat >>confdefs.h <<_ACEOF
20436 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20437 _ACEOF
20441 { echo "$as_me:$LINENO: checking for objdir" >&5
20442 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20443 if test "${libltdl_cv_objdir+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446 libltdl_cv_objdir="$objdir"
20447 if test -n "$objdir"; then
20449 else
20450 rm -f .libs 2>/dev/null
20451 mkdir .libs 2>/dev/null
20452 if test -d .libs; then
20453 libltdl_cv_objdir=.libs
20454 else
20455 # MS-DOS does not allow filenames that begin with a dot.
20456 libltdl_cv_objdir=_libs
20458 rmdir .libs 2>/dev/null
20462 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20463 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20465 cat >>confdefs.h <<_ACEOF
20466 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20467 _ACEOF
20471 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20472 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20473 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 else
20476 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20477 libltdl_cv_preloaded_symbols=yes
20478 else
20479 libltdl_cv_preloaded_symbols=no
20483 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20484 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20485 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20487 cat >>confdefs.h <<\_ACEOF
20488 #define HAVE_PRELOADED_SYMBOLS 1
20489 _ACEOF
20493 LIBADD_DL=
20495 ac_ext=c
20496 ac_cpp='$CPP $CPPFLAGS'
20497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20502 { echo "$as_me:$LINENO: checking for shl_load" >&5
20503 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20504 if test "${ac_cv_func_shl_load+set}" = set; then
20505 echo $ECHO_N "(cached) $ECHO_C" >&6
20506 else
20507 cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h. */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20513 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20515 #define shl_load innocuous_shl_load
20517 /* System header to define __stub macros and hopefully few prototypes,
20518 which can conflict with char shl_load (); below.
20519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20520 <limits.h> exists even on freestanding compilers. */
20522 #ifdef __STDC__
20523 # include <limits.h>
20524 #else
20525 # include <assert.h>
20526 #endif
20528 #undef shl_load
20530 /* Override any GCC internal prototype to avoid an error.
20531 Use char because int might match the return type of a GCC
20532 builtin and then its argument prototype would still apply. */
20533 #ifdef __cplusplus
20534 extern "C"
20535 #endif
20536 char shl_load ();
20537 /* The GNU C library defines this for functions which it implements
20538 to always fail with ENOSYS. Some functions are actually named
20539 something starting with __ and the normal name is an alias. */
20540 #if defined __stub_shl_load || defined __stub___shl_load
20541 choke me
20542 #endif
20545 main ()
20547 return shl_load ();
20549 return 0;
20551 _ACEOF
20552 rm -f conftest.$ac_objext conftest$ac_exeext
20553 if { (ac_try="$ac_link"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_link") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } &&
20566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20567 { (case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_try") 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; } &&
20576 { ac_try='test -s conftest$ac_exeext'
20577 { (case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_try") 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_cv_func_shl_load=yes
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_func_shl_load=no
20594 rm -f core conftest.err conftest.$ac_objext \
20595 conftest$ac_exeext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20599 if test $ac_cv_func_shl_load = yes; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_SHL_LOAD 1
20603 _ACEOF
20605 else
20606 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611 ac_check_lib_save_LIBS=$LIBS
20612 LIBS="-ldld $LIBS"
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20620 /* Override any GCC internal prototype to avoid an error.
20621 Use char because int might match the return type of a GCC
20622 builtin and then its argument prototype would still apply. */
20623 #ifdef __cplusplus
20624 extern "C"
20625 #endif
20626 char shl_load ();
20628 main ()
20630 return shl_load ();
20632 return 0;
20634 _ACEOF
20635 rm -f conftest.$ac_objext conftest$ac_exeext
20636 if { (ac_try="$ac_link"
20637 case "(($ac_try" in
20638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639 *) ac_try_echo=$ac_try;;
20640 esac
20641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642 (eval "$ac_link") 2>conftest.er1
20643 ac_status=$?
20644 grep -v '^ *+' conftest.er1 >conftest.err
20645 rm -f conftest.er1
20646 cat conftest.err >&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); } &&
20649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20650 { (case "(($ac_try" in
20651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20652 *) ac_try_echo=$ac_try;;
20653 esac
20654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20655 (eval "$ac_try") 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); }; } &&
20659 { ac_try='test -s conftest$ac_exeext'
20660 { (case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_try") 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; }; then
20669 ac_cv_lib_dld_shl_load=yes
20670 else
20671 echo "$as_me: failed program was:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_cv_lib_dld_shl_load=no
20677 rm -f core conftest.err conftest.$ac_objext \
20678 conftest$ac_exeext conftest.$ac_ext
20679 LIBS=$ac_check_lib_save_LIBS
20681 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20682 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20683 if test $ac_cv_lib_dld_shl_load = yes; then
20685 cat >>confdefs.h <<\_ACEOF
20686 #define HAVE_SHL_LOAD 1
20687 _ACEOF
20689 LIBADD_DL="$LIBADD_DL -ldld"
20690 else
20691 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20692 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-ldl $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char dlopen ();
20713 main ()
20715 return dlopen ();
20717 return 0;
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } &&
20734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20735 { (case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_try") 2>&5
20741 ac_status=$?
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); }; } &&
20744 { ac_try='test -s conftest$ac_exeext'
20745 { (case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_try") 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_lib_dl_dlopen=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_cv_lib_dl_dlopen=no
20762 rm -f core conftest.err conftest.$ac_objext \
20763 conftest$ac_exeext conftest.$ac_ext
20764 LIBS=$ac_check_lib_save_LIBS
20766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20768 if test $ac_cv_lib_dl_dlopen = yes; then
20770 cat >>confdefs.h <<\_ACEOF
20771 #define HAVE_LIBDL 1
20772 _ACEOF
20774 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20775 else
20776 cat >conftest.$ac_ext <<_ACEOF
20777 /* confdefs.h. */
20778 _ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20782 #if HAVE_DLFCN_H
20783 # include <dlfcn.h>
20784 #endif
20787 main ()
20789 dlopen(0, 0);
20791 return 0;
20793 _ACEOF
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (ac_try="$ac_link"
20796 case "(($ac_try" in
20797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798 *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801 (eval "$ac_link") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809 { (case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_try") 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
20819 { (case "(($ac_try" in
20820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821 *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824 (eval "$ac_try") 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20829 cat >>confdefs.h <<\_ACEOF
20830 #define HAVE_LIBDL 1
20831 _ACEOF
20832 libltdl_cv_func_dlopen="yes"
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20838 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20839 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 else
20842 ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lsvld $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20854 #ifdef __cplusplus
20855 extern "C"
20856 #endif
20857 char dlopen ();
20859 main ()
20861 return dlopen ();
20863 return 0;
20865 _ACEOF
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>conftest.er1
20874 ac_status=$?
20875 grep -v '^ *+' conftest.er1 >conftest.err
20876 rm -f conftest.er1
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } &&
20880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20881 { (case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_try") 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest$ac_exeext'
20891 { (case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_try") 2>&5
20897 ac_status=$?
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; }; then
20900 ac_cv_lib_svld_dlopen=yes
20901 else
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_lib_svld_dlopen=no
20908 rm -f core conftest.err conftest.$ac_objext \
20909 conftest$ac_exeext conftest.$ac_ext
20910 LIBS=$ac_check_lib_save_LIBS
20912 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20913 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20914 if test $ac_cv_lib_svld_dlopen = yes; then
20916 cat >>confdefs.h <<\_ACEOF
20917 #define HAVE_LIBDL 1
20918 _ACEOF
20920 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20921 else
20922 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20923 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20924 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 else
20927 ac_check_lib_save_LIBS=$LIBS
20928 LIBS="-ldld $LIBS"
20929 cat >conftest.$ac_ext <<_ACEOF
20930 /* confdefs.h. */
20931 _ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20936 /* Override any GCC internal prototype to avoid an error.
20937 Use char because int might match the return type of a GCC
20938 builtin and then its argument prototype would still apply. */
20939 #ifdef __cplusplus
20940 extern "C"
20941 #endif
20942 char dld_link ();
20944 main ()
20946 return dld_link ();
20948 return 0;
20950 _ACEOF
20951 rm -f conftest.$ac_objext conftest$ac_exeext
20952 if { (ac_try="$ac_link"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20956 esac
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_link") 2>conftest.er1
20959 ac_status=$?
20960 grep -v '^ *+' conftest.er1 >conftest.err
20961 rm -f conftest.er1
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } &&
20965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20966 { (case "(($ac_try" in
20967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20968 *) ac_try_echo=$ac_try;;
20969 esac
20970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20971 (eval "$ac_try") 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; } &&
20975 { ac_try='test -s conftest$ac_exeext'
20976 { (case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_try") 2>&5
20982 ac_status=$?
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; }; then
20985 ac_cv_lib_dld_dld_link=yes
20986 else
20987 echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_cv_lib_dld_dld_link=no
20993 rm -f core conftest.err conftest.$ac_objext \
20994 conftest$ac_exeext conftest.$ac_ext
20995 LIBS=$ac_check_lib_save_LIBS
20997 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20999 if test $ac_cv_lib_dld_dld_link = yes; then
21001 cat >>confdefs.h <<\_ACEOF
21002 #define HAVE_DLD 1
21003 _ACEOF
21005 LIBADD_DL="$LIBADD_DL -ldld"
21006 else
21007 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21008 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
21009 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 cat >conftest.$ac_ext <<_ACEOF
21013 /* confdefs.h. */
21014 _ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21018 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21020 #define _dyld_func_lookup innocuous__dyld_func_lookup
21022 /* System header to define __stub macros and hopefully few prototypes,
21023 which can conflict with char _dyld_func_lookup (); below.
21024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21025 <limits.h> exists even on freestanding compilers. */
21027 #ifdef __STDC__
21028 # include <limits.h>
21029 #else
21030 # include <assert.h>
21031 #endif
21033 #undef _dyld_func_lookup
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21038 #ifdef __cplusplus
21039 extern "C"
21040 #endif
21041 char _dyld_func_lookup ();
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
21046 choke me
21047 #endif
21050 main ()
21052 return _dyld_func_lookup ();
21054 return 0;
21056 _ACEOF
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (ac_try="$ac_link"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21062 esac
21063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_link") 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21072 { (case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077 (eval "$ac_try") 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest$ac_exeext'
21082 { (case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21085 esac
21086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_try") 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_cv_func__dyld_func_lookup=yes
21092 else
21093 echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_cv_func__dyld_func_lookup=no
21099 rm -f core conftest.err conftest.$ac_objext \
21100 conftest$ac_exeext conftest.$ac_ext
21102 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21103 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
21104 if test $ac_cv_func__dyld_func_lookup = yes; then
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_DYLD 1
21108 _ACEOF
21121 rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21133 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21134 then
21135 lt_save_LIBS="$LIBS"
21136 LIBS="$LIBS $LIBADD_DL"
21138 for ac_func in dlerror
21140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21154 #define $ac_func innocuous_$ac_func
21156 /* System header to define __stub macros and hopefully few prototypes,
21157 which can conflict with char $ac_func (); below.
21158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21159 <limits.h> exists even on freestanding compilers. */
21161 #ifdef __STDC__
21162 # include <limits.h>
21163 #else
21164 # include <assert.h>
21165 #endif
21167 #undef $ac_func
21169 /* Override any GCC internal prototype to avoid an error.
21170 Use char because int might match the return type of a GCC
21171 builtin and then its argument prototype would still apply. */
21172 #ifdef __cplusplus
21173 extern "C"
21174 #endif
21175 char $ac_func ();
21176 /* The GNU C library defines this for functions which it implements
21177 to always fail with ENOSYS. Some functions are actually named
21178 something starting with __ and the normal name is an alias. */
21179 #if defined __stub_$ac_func || defined __stub___$ac_func
21180 choke me
21181 #endif
21184 main ()
21186 return $ac_func ();
21188 return 0;
21190 _ACEOF
21191 rm -f conftest.$ac_objext conftest$ac_exeext
21192 if { (ac_try="$ac_link"
21193 case "(($ac_try" in
21194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21195 *) ac_try_echo=$ac_try;;
21196 esac
21197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21198 (eval "$ac_link") 2>conftest.er1
21199 ac_status=$?
21200 grep -v '^ *+' conftest.er1 >conftest.err
21201 rm -f conftest.er1
21202 cat conftest.err >&5
21203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204 (exit $ac_status); } &&
21205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21206 { (case "(($ac_try" in
21207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21208 *) ac_try_echo=$ac_try;;
21209 esac
21210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21211 (eval "$ac_try") 2>&5
21212 ac_status=$?
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest$ac_exeext'
21216 { (case "(($ac_try" in
21217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21218 *) ac_try_echo=$ac_try;;
21219 esac
21220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21221 (eval "$ac_try") 2>&5
21222 ac_status=$?
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); }; }; then
21225 eval "$as_ac_var=yes"
21226 else
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21230 eval "$as_ac_var=no"
21233 rm -f core conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21236 ac_res=`eval echo '${'$as_ac_var'}'`
21237 { echo "$as_me:$LINENO: result: $ac_res" >&5
21238 echo "${ECHO_T}$ac_res" >&6; }
21239 if test `eval echo '${'$as_ac_var'}'` = yes; then
21240 cat >>confdefs.h <<_ACEOF
21241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21242 _ACEOF
21245 done
21247 LIBS="$lt_save_LIBS"
21249 ac_ext=c
21250 ac_cpp='$CPP $CPPFLAGS'
21251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21258 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
21259 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21261 else
21262 ac_cv_sys_symbol_underscore=no
21263 cat > conftest.$ac_ext <<EOF
21264 void nm_test_func(){}
21265 int main(){nm_test_func;return 0;}
21267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21268 (eval $ac_compile) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); }; then
21272 # Now try to grab the symbols.
21273 ac_nlist=conftest.nm
21274 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21275 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && test -s "$ac_nlist"; then
21279 # See whether the symbols have a leading underscore.
21280 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21281 ac_cv_sys_symbol_underscore=yes
21282 else
21283 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21285 else
21286 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21289 else
21290 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21292 else
21293 echo "configure: failed program was:" >&5
21294 cat conftest.c >&5
21296 rm -rf conftest*
21299 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21300 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
21303 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21304 if test x"$libltdl_cv_func_dlopen" = xyes ||
21305 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21306 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21307 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
21308 if test "${libltdl_cv_need_uscore+set}" = set; then
21309 echo $ECHO_N "(cached) $ECHO_C" >&6
21310 else
21311 libltdl_cv_need_uscore=unknown
21312 save_LIBS="$LIBS"
21313 LIBS="$LIBS $LIBADD_DL"
21314 if test "$cross_compiling" = yes; then :
21315 libltdl_cv_need_uscore=cross
21316 else
21317 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21318 lt_status=$lt_dlunknown
21319 cat > conftest.$ac_ext <<EOF
21320 #line 21320 "configure"
21321 #include "confdefs.h"
21323 #if HAVE_DLFCN_H
21324 #include <dlfcn.h>
21325 #endif
21327 #include <stdio.h>
21329 #ifdef RTLD_GLOBAL
21330 # define LT_DLGLOBAL RTLD_GLOBAL
21331 #else
21332 # ifdef DL_GLOBAL
21333 # define LT_DLGLOBAL DL_GLOBAL
21334 # else
21335 # define LT_DLGLOBAL 0
21336 # endif
21337 #endif
21339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21340 find out it does not work in some platform. */
21341 #ifndef LT_DLLAZY_OR_NOW
21342 # ifdef RTLD_LAZY
21343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21344 # else
21345 # ifdef DL_LAZY
21346 # define LT_DLLAZY_OR_NOW DL_LAZY
21347 # else
21348 # ifdef RTLD_NOW
21349 # define LT_DLLAZY_OR_NOW RTLD_NOW
21350 # else
21351 # ifdef DL_NOW
21352 # define LT_DLLAZY_OR_NOW DL_NOW
21353 # else
21354 # define LT_DLLAZY_OR_NOW 0
21355 # endif
21356 # endif
21357 # endif
21358 # endif
21359 #endif
21361 #ifdef __cplusplus
21362 extern "C" void exit (int);
21363 #endif
21365 void fnord() { int i=42;}
21366 int main ()
21368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21369 int status = $lt_dlunknown;
21371 if (self)
21373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21375 /* dlclose (self); */
21378 exit (status);
21381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21382 (eval $ac_link) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21386 (./conftest; exit; ) 2>/dev/null
21387 lt_status=$?
21388 case x$lt_status in
21389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21391 x$lt_unknown|x*) ;;
21392 esac
21393 else :
21394 # compilation failed
21398 rm -fr conftest*
21400 LIBS="$save_LIBS"
21403 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21404 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21408 if test x"$libltdl_cv_need_uscore" = xyes; then
21410 cat >>confdefs.h <<\_ACEOF
21411 #define NEED_USCORE 1
21412 _ACEOF
21417 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21418 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21419 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422 # PORTME does your system automatically load deplibs for dlopen?
21423 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21424 # For now, we just catch OSes we know something about -- in the
21425 # future, we'll try test this programmatically.
21426 libltdl_cv_sys_dlopen_deplibs=unknown
21427 case "$host_os" in
21428 aix3*|aix4.1.*|aix4.2.*)
21429 # Unknown whether this is true for these versions of AIX, but
21430 # we want this `case' here to explicitly catch those versions.
21431 libltdl_cv_sys_dlopen_deplibs=unknown
21433 aix[45]*)
21434 libltdl_cv_sys_dlopen_deplibs=yes
21436 darwin*)
21437 # Assuming the user has installed a libdl from somewhere, this is true
21438 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21439 libltdl_cv_sys_dlopen_deplibs=yes
21441 kfreebsd*-gnu)
21442 libltdl_cv_sys_dlopen_deplibs=yes
21444 gnu*)
21445 libltdl_cv_sys_dlopen_deplibs=yes
21447 hpux10*|hpux11*)
21448 libltdl_cv_sys_dlopen_deplibs=yes
21450 irix[12345]*|irix6.[01]*)
21451 # Catch all versions of IRIX before 6.2, and indicate that we don't
21452 # know how it worked for any of those versions.
21453 libltdl_cv_sys_dlopen_deplibs=unknown
21455 irix*)
21456 # The case above catches anything before 6.2, and it's known that
21457 # at 6.2 and later dlopen does load deplibs.
21458 libltdl_cv_sys_dlopen_deplibs=yes
21460 linux*)
21461 libltdl_cv_sys_dlopen_deplibs=yes
21463 netbsd*)
21464 libltdl_cv_sys_dlopen_deplibs=yes
21466 openbsd*)
21467 libltdl_cv_sys_dlopen_deplibs=yes
21469 osf[1234]*)
21470 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21471 # it did *not* use an RPATH in a shared library to find objects the
21472 # library depends on, so we explictly say `no'.
21473 libltdl_cv_sys_dlopen_deplibs=no
21475 osf5.0|osf5.0a|osf5.1)
21476 # dlopen *does* load deplibs and with the right loader patch applied
21477 # it even uses RPATH in a shared library to search for shared objects
21478 # that the library depends on, but there's no easy way to know if that
21479 # patch is installed. Since this is the case, all we can really
21480 # say is unknown -- it depends on the patch being installed. If
21481 # it is, this changes to `yes'. Without it, it would be `no'.
21482 libltdl_cv_sys_dlopen_deplibs=unknown
21484 osf*)
21485 # the two cases above should catch all versions of osf <= 5.1. Read
21486 # the comments above for what we know about them.
21487 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21488 # is used to find them so we can finally say `yes'.
21489 libltdl_cv_sys_dlopen_deplibs=yes
21491 solaris*)
21492 libltdl_cv_sys_dlopen_deplibs=yes
21494 esac
21497 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21498 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21499 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21501 cat >>confdefs.h <<\_ACEOF
21502 #define LTDL_DLOPEN_DEPLIBS 1
21503 _ACEOF
21508 for ac_header in argz.h
21510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21517 ac_res=`eval echo '${'$as_ac_Header'}'`
21518 { echo "$as_me:$LINENO: result: $ac_res" >&5
21519 echo "${ECHO_T}$ac_res" >&6; }
21520 else
21521 # Is the header compilable?
21522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21524 cat >conftest.$ac_ext <<_ACEOF
21525 /* confdefs.h. */
21526 _ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21530 $ac_includes_default
21531 #include <$ac_header>
21532 _ACEOF
21533 rm -f conftest.$ac_objext
21534 if { (ac_try="$ac_compile"
21535 case "(($ac_try" in
21536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21537 *) ac_try_echo=$ac_try;;
21538 esac
21539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21540 (eval "$ac_compile") 2>conftest.er1
21541 ac_status=$?
21542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
21547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21548 { (case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_try") 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest.$ac_objext'
21558 { (case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_try") 2>&5
21564 ac_status=$?
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); }; }; then
21567 ac_header_compiler=yes
21568 else
21569 echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21572 ac_header_compiler=no
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21577 echo "${ECHO_T}$ac_header_compiler" >&6; }
21579 # Is the header present?
21580 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <$ac_header>
21589 _ACEOF
21590 if { (ac_try="$ac_cpp conftest.$ac_ext"
21591 case "(($ac_try" in
21592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593 *) ac_try_echo=$ac_try;;
21594 esac
21595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21597 ac_status=$?
21598 grep -v '^ *+' conftest.er1 >conftest.err
21599 rm -f conftest.er1
21600 cat conftest.err >&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } >/dev/null; then
21603 if test -s conftest.err; then
21604 ac_cpp_err=$ac_c_preproc_warn_flag
21605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21606 else
21607 ac_cpp_err=
21609 else
21610 ac_cpp_err=yes
21612 if test -z "$ac_cpp_err"; then
21613 ac_header_preproc=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_header_preproc=no
21621 rm -f conftest.err conftest.$ac_ext
21622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21623 echo "${ECHO_T}$ac_header_preproc" >&6; }
21625 # So? What about this header?
21626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 yes:no: )
21628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21632 ac_header_preproc=yes
21634 no:yes:* )
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21649 esac
21650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21653 echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655 eval "$as_ac_Header=\$ac_header_preproc"
21657 ac_res=`eval echo '${'$as_ac_Header'}'`
21658 { echo "$as_me:$LINENO: result: $ac_res" >&5
21659 echo "${ECHO_T}$ac_res" >&6; }
21662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663 cat >>confdefs.h <<_ACEOF
21664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21665 _ACEOF
21669 done
21672 { echo "$as_me:$LINENO: checking for error_t" >&5
21673 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21674 if test "${ac_cv_type_error_t+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h. */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 #if HAVE_ARGZ_H
21684 # include <argz.h>
21685 #endif
21687 typedef error_t ac__type_new_;
21689 main ()
21691 if ((ac__type_new_ *) 0)
21692 return 0;
21693 if (sizeof (ac__type_new_))
21694 return 0;
21696 return 0;
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } &&
21713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21714 { (case "(($ac_try" in
21715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21716 *) ac_try_echo=$ac_try;;
21717 esac
21718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21719 (eval "$ac_try") 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_try") 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_type_error_t=yes
21734 else
21735 echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21738 ac_cv_type_error_t=no
21741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21743 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21744 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21745 if test $ac_cv_type_error_t = yes; then
21747 cat >>confdefs.h <<_ACEOF
21748 #define HAVE_ERROR_T 1
21749 _ACEOF
21752 else
21754 cat >>confdefs.h <<\_ACEOF
21755 #define error_t int
21756 _ACEOF
21766 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21772 echo $ECHO_N "(cached) $ECHO_C" >&6
21773 else
21774 cat >conftest.$ac_ext <<_ACEOF
21775 /* confdefs.h. */
21776 _ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21782 #define $ac_func innocuous_$ac_func
21784 /* System header to define __stub macros and hopefully few prototypes,
21785 which can conflict with char $ac_func (); below.
21786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21787 <limits.h> exists even on freestanding compilers. */
21789 #ifdef __STDC__
21790 # include <limits.h>
21791 #else
21792 # include <assert.h>
21793 #endif
21795 #undef $ac_func
21797 /* Override any GCC internal prototype to avoid an error.
21798 Use char because int might match the return type of a GCC
21799 builtin and then its argument prototype would still apply. */
21800 #ifdef __cplusplus
21801 extern "C"
21802 #endif
21803 char $ac_func ();
21804 /* The GNU C library defines this for functions which it implements
21805 to always fail with ENOSYS. Some functions are actually named
21806 something starting with __ and the normal name is an alias. */
21807 #if defined __stub_$ac_func || defined __stub___$ac_func
21808 choke me
21809 #endif
21812 main ()
21814 return $ac_func ();
21816 return 0;
21818 _ACEOF
21819 rm -f conftest.$ac_objext conftest$ac_exeext
21820 if { (ac_try="$ac_link"
21821 case "(($ac_try" in
21822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823 *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826 (eval "$ac_link") 2>conftest.er1
21827 ac_status=$?
21828 grep -v '^ *+' conftest.er1 >conftest.err
21829 rm -f conftest.er1
21830 cat conftest.err >&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); } &&
21833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21834 { (case "(($ac_try" in
21835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836 *) ac_try_echo=$ac_try;;
21837 esac
21838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839 (eval "$ac_try") 2>&5
21840 ac_status=$?
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); }; } &&
21843 { ac_try='test -s conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_try") 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 eval "$as_ac_var=yes"
21854 else
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 eval "$as_ac_var=no"
21861 rm -f core conftest.err conftest.$ac_objext \
21862 conftest$ac_exeext conftest.$ac_ext
21864 ac_res=`eval echo '${'$as_ac_var'}'`
21865 { echo "$as_me:$LINENO: result: $ac_res" >&5
21866 echo "${ECHO_T}$ac_res" >&6; }
21867 if test `eval echo '${'$as_ac_var'}'` = yes; then
21868 cat >>confdefs.h <<_ACEOF
21869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21870 _ACEOF
21873 done
21902 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21903 stdio.h unistd.h
21905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21910 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 ac_res=`eval echo '${'$as_ac_Header'}'`
21913 { echo "$as_me:$LINENO: result: $ac_res" >&5
21914 echo "${ECHO_T}$ac_res" >&6; }
21915 else
21916 # Is the header compilable?
21917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21919 cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h. */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21925 $ac_includes_default
21926 #include <$ac_header>
21927 _ACEOF
21928 rm -f conftest.$ac_objext
21929 if { (ac_try="$ac_compile"
21930 case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21933 esac
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935 (eval "$ac_compile") 2>conftest.er1
21936 ac_status=$?
21937 grep -v '^ *+' conftest.er1 >conftest.err
21938 rm -f conftest.er1
21939 cat conftest.err >&5
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } &&
21942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_try") 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 ac_header_compiler=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21967 ac_header_compiler=no
21970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21972 echo "${ECHO_T}$ac_header_compiler" >&6; }
21974 # Is the header present?
21975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21977 cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h. */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 #include <$ac_header>
21984 _ACEOF
21985 if { (ac_try="$ac_cpp conftest.$ac_ext"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } >/dev/null; then
21998 if test -s conftest.err; then
21999 ac_cpp_err=$ac_c_preproc_warn_flag
22000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22001 else
22002 ac_cpp_err=
22004 else
22005 ac_cpp_err=yes
22007 if test -z "$ac_cpp_err"; then
22008 ac_header_preproc=yes
22009 else
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_header_preproc=no
22016 rm -f conftest.err conftest.$ac_ext
22017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22018 echo "${ECHO_T}$ac_header_preproc" >&6; }
22020 # So? What about this header?
22021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22022 yes:no: )
22023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22027 ac_header_preproc=yes
22029 no:yes:* )
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22044 esac
22045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22048 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 else
22050 eval "$as_ac_Header=\$ac_header_preproc"
22052 ac_res=`eval echo '${'$as_ac_Header'}'`
22053 { echo "$as_me:$LINENO: result: $ac_res" >&5
22054 echo "${ECHO_T}$ac_res" >&6; }
22057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22058 cat >>confdefs.h <<_ACEOF
22059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22060 _ACEOF
22064 done
22070 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 ac_res=`eval echo '${'$as_ac_Header'}'`
22080 { echo "$as_me:$LINENO: result: $ac_res" >&5
22081 echo "${ECHO_T}$ac_res" >&6; }
22082 else
22083 # Is the header compilable?
22084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h. */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092 $ac_includes_default
22093 #include <$ac_header>
22094 _ACEOF
22095 rm -f conftest.$ac_objext
22096 if { (ac_try="$ac_compile"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_compile") 2>conftest.er1
22103 ac_status=$?
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22110 { (case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; } &&
22119 { ac_try='test -s conftest.$ac_objext'
22120 { (case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_try") 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; }; then
22129 ac_header_compiler=yes
22130 else
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22134 ac_header_compiler=no
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22139 echo "${ECHO_T}$ac_header_compiler" >&6; }
22141 # Is the header present?
22142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h. */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22150 #include <$ac_header>
22151 _ACEOF
22152 if { (ac_try="$ac_cpp conftest.$ac_ext"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22159 ac_status=$?
22160 grep -v '^ *+' conftest.er1 >conftest.err
22161 rm -f conftest.er1
22162 cat conftest.err >&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); } >/dev/null; then
22165 if test -s conftest.err; then
22166 ac_cpp_err=$ac_c_preproc_warn_flag
22167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22168 else
22169 ac_cpp_err=
22171 else
22172 ac_cpp_err=yes
22174 if test -z "$ac_cpp_err"; then
22175 ac_header_preproc=yes
22176 else
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ac_header_preproc=no
22183 rm -f conftest.err conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22185 echo "${ECHO_T}$ac_header_preproc" >&6; }
22187 # So? What about this header?
22188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22189 yes:no: )
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22194 ac_header_preproc=yes
22196 no:yes:* )
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22211 esac
22212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217 eval "$as_ac_Header=\$ac_header_preproc"
22219 ac_res=`eval echo '${'$as_ac_Header'}'`
22220 { echo "$as_me:$LINENO: result: $ac_res" >&5
22221 echo "${ECHO_T}$ac_res" >&6; }
22224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22227 _ACEOF
22231 done
22235 for ac_header in string.h strings.h
22237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22242 echo $ECHO_N "(cached) $ECHO_C" >&6
22244 ac_res=`eval echo '${'$as_ac_Header'}'`
22245 { echo "$as_me:$LINENO: result: $ac_res" >&5
22246 echo "${ECHO_T}$ac_res" >&6; }
22247 else
22248 # Is the header compilable?
22249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h. */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h. */
22257 $ac_includes_default
22258 #include <$ac_header>
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22268 ac_status=$?
22269 grep -v '^ *+' conftest.er1 >conftest.err
22270 rm -f conftest.er1
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } &&
22274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22275 { (case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278 esac
22279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_try") 2>&5
22281 ac_status=$?
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); }; } &&
22284 { ac_try='test -s conftest.$ac_objext'
22285 { (case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_try") 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; }; then
22294 ac_header_compiler=yes
22295 else
22296 echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22299 ac_header_compiler=no
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22304 echo "${ECHO_T}$ac_header_compiler" >&6; }
22306 # Is the header present?
22307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22309 cat >conftest.$ac_ext <<_ACEOF
22310 /* confdefs.h. */
22311 _ACEOF
22312 cat confdefs.h >>conftest.$ac_ext
22313 cat >>conftest.$ac_ext <<_ACEOF
22314 /* end confdefs.h. */
22315 #include <$ac_header>
22316 _ACEOF
22317 if { (ac_try="$ac_cpp conftest.$ac_ext"
22318 case "(($ac_try" in
22319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320 *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22324 ac_status=$?
22325 grep -v '^ *+' conftest.er1 >conftest.err
22326 rm -f conftest.er1
22327 cat conftest.err >&5
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); } >/dev/null; then
22330 if test -s conftest.err; then
22331 ac_cpp_err=$ac_c_preproc_warn_flag
22332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22333 else
22334 ac_cpp_err=
22336 else
22337 ac_cpp_err=yes
22339 if test -z "$ac_cpp_err"; then
22340 ac_header_preproc=yes
22341 else
22342 echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22345 ac_header_preproc=no
22348 rm -f conftest.err conftest.$ac_ext
22349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22350 echo "${ECHO_T}$ac_header_preproc" >&6; }
22352 # So? What about this header?
22353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22354 yes:no: )
22355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22359 ac_header_preproc=yes
22361 no:yes:* )
22362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22376 esac
22377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382 eval "$as_ac_Header=\$ac_header_preproc"
22384 ac_res=`eval echo '${'$as_ac_Header'}'`
22385 { echo "$as_me:$LINENO: result: $ac_res" >&5
22386 echo "${ECHO_T}$ac_res" >&6; }
22389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22390 cat >>confdefs.h <<_ACEOF
22391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22392 _ACEOF
22393 break
22396 done
22401 for ac_func in strchr index
22403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22417 #define $ac_func innocuous_$ac_func
22419 /* System header to define __stub macros and hopefully few prototypes,
22420 which can conflict with char $ac_func (); below.
22421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22422 <limits.h> exists even on freestanding compilers. */
22424 #ifdef __STDC__
22425 # include <limits.h>
22426 #else
22427 # include <assert.h>
22428 #endif
22430 #undef $ac_func
22432 /* Override any GCC internal prototype to avoid an error.
22433 Use char because int might match the return type of a GCC
22434 builtin and then its argument prototype would still apply. */
22435 #ifdef __cplusplus
22436 extern "C"
22437 #endif
22438 char $ac_func ();
22439 /* The GNU C library defines this for functions which it implements
22440 to always fail with ENOSYS. Some functions are actually named
22441 something starting with __ and the normal name is an alias. */
22442 #if defined __stub_$ac_func || defined __stub___$ac_func
22443 choke me
22444 #endif
22447 main ()
22449 return $ac_func ();
22451 return 0;
22453 _ACEOF
22454 rm -f conftest.$ac_objext conftest$ac_exeext
22455 if { (ac_try="$ac_link"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459 esac
22460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_link") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } &&
22468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22469 { (case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_try") 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; } &&
22478 { ac_try='test -s conftest$ac_exeext'
22479 { (case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22482 esac
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_try") 2>&5
22485 ac_status=$?
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; }; then
22488 eval "$as_ac_var=yes"
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 eval "$as_ac_var=no"
22496 rm -f core conftest.err conftest.$ac_objext \
22497 conftest$ac_exeext conftest.$ac_ext
22499 ac_res=`eval echo '${'$as_ac_var'}'`
22500 { echo "$as_me:$LINENO: result: $ac_res" >&5
22501 echo "${ECHO_T}$ac_res" >&6; }
22502 if test `eval echo '${'$as_ac_var'}'` = yes; then
22503 cat >>confdefs.h <<_ACEOF
22504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22505 _ACEOF
22506 break
22508 done
22512 for ac_func in strrchr rindex
22514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520 cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h. */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22528 #define $ac_func innocuous_$ac_func
22530 /* System header to define __stub macros and hopefully few prototypes,
22531 which can conflict with char $ac_func (); below.
22532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22533 <limits.h> exists even on freestanding compilers. */
22535 #ifdef __STDC__
22536 # include <limits.h>
22537 #else
22538 # include <assert.h>
22539 #endif
22541 #undef $ac_func
22543 /* Override any GCC internal prototype to avoid an error.
22544 Use char because int might match the return type of a GCC
22545 builtin and then its argument prototype would still apply. */
22546 #ifdef __cplusplus
22547 extern "C"
22548 #endif
22549 char $ac_func ();
22550 /* The GNU C library defines this for functions which it implements
22551 to always fail with ENOSYS. Some functions are actually named
22552 something starting with __ and the normal name is an alias. */
22553 #if defined __stub_$ac_func || defined __stub___$ac_func
22554 choke me
22555 #endif
22558 main ()
22560 return $ac_func ();
22562 return 0;
22564 _ACEOF
22565 rm -f conftest.$ac_objext conftest$ac_exeext
22566 if { (ac_try="$ac_link"
22567 case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_link") 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } &&
22579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22580 { (case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_try") 2>&5
22586 ac_status=$?
22587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); }; } &&
22589 { ac_try='test -s conftest$ac_exeext'
22590 { (case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_try") 2>&5
22596 ac_status=$?
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 eval "$as_ac_var=yes"
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 eval "$as_ac_var=no"
22607 rm -f core conftest.err conftest.$ac_objext \
22608 conftest$ac_exeext conftest.$ac_ext
22610 ac_res=`eval echo '${'$as_ac_var'}'`
22611 { echo "$as_me:$LINENO: result: $ac_res" >&5
22612 echo "${ECHO_T}$ac_res" >&6; }
22613 if test `eval echo '${'$as_ac_var'}'` = yes; then
22614 cat >>confdefs.h <<_ACEOF
22615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22616 _ACEOF
22617 break
22619 done
22623 for ac_func in memcpy bcopy
22625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22629 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 else
22631 cat >conftest.$ac_ext <<_ACEOF
22632 /* confdefs.h. */
22633 _ACEOF
22634 cat confdefs.h >>conftest.$ac_ext
22635 cat >>conftest.$ac_ext <<_ACEOF
22636 /* end confdefs.h. */
22637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22639 #define $ac_func innocuous_$ac_func
22641 /* System header to define __stub macros and hopefully few prototypes,
22642 which can conflict with char $ac_func (); below.
22643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22644 <limits.h> exists even on freestanding compilers. */
22646 #ifdef __STDC__
22647 # include <limits.h>
22648 #else
22649 # include <assert.h>
22650 #endif
22652 #undef $ac_func
22654 /* Override any GCC internal prototype to avoid an error.
22655 Use char because int might match the return type of a GCC
22656 builtin and then its argument prototype would still apply. */
22657 #ifdef __cplusplus
22658 extern "C"
22659 #endif
22660 char $ac_func ();
22661 /* The GNU C library defines this for functions which it implements
22662 to always fail with ENOSYS. Some functions are actually named
22663 something starting with __ and the normal name is an alias. */
22664 #if defined __stub_$ac_func || defined __stub___$ac_func
22665 choke me
22666 #endif
22669 main ()
22671 return $ac_func ();
22673 return 0;
22675 _ACEOF
22676 rm -f conftest.$ac_objext conftest$ac_exeext
22677 if { (ac_try="$ac_link"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_link") 2>conftest.er1
22684 ac_status=$?
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } &&
22690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22691 { (case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_try") 2>&5
22697 ac_status=$?
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }; } &&
22700 { ac_try='test -s conftest$ac_exeext'
22701 { (case "(($ac_try" in
22702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22704 esac
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706 (eval "$ac_try") 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22710 eval "$as_ac_var=yes"
22711 else
22712 echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22715 eval "$as_ac_var=no"
22718 rm -f core conftest.err conftest.$ac_objext \
22719 conftest$ac_exeext conftest.$ac_ext
22721 ac_res=`eval echo '${'$as_ac_var'}'`
22722 { echo "$as_me:$LINENO: result: $ac_res" >&5
22723 echo "${ECHO_T}$ac_res" >&6; }
22724 if test `eval echo '${'$as_ac_var'}'` = yes; then
22725 cat >>confdefs.h <<_ACEOF
22726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22727 _ACEOF
22728 break
22730 done
22734 for ac_func in memmove strcmp
22736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742 cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h. */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22750 #define $ac_func innocuous_$ac_func
22752 /* System header to define __stub macros and hopefully few prototypes,
22753 which can conflict with char $ac_func (); below.
22754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22755 <limits.h> exists even on freestanding compilers. */
22757 #ifdef __STDC__
22758 # include <limits.h>
22759 #else
22760 # include <assert.h>
22761 #endif
22763 #undef $ac_func
22765 /* Override any GCC internal prototype to avoid an error.
22766 Use char because int might match the return type of a GCC
22767 builtin and then its argument prototype would still apply. */
22768 #ifdef __cplusplus
22769 extern "C"
22770 #endif
22771 char $ac_func ();
22772 /* The GNU C library defines this for functions which it implements
22773 to always fail with ENOSYS. Some functions are actually named
22774 something starting with __ and the normal name is an alias. */
22775 #if defined __stub_$ac_func || defined __stub___$ac_func
22776 choke me
22777 #endif
22780 main ()
22782 return $ac_func ();
22784 return 0;
22786 _ACEOF
22787 rm -f conftest.$ac_objext conftest$ac_exeext
22788 if { (ac_try="$ac_link"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_link") 2>conftest.er1
22795 ac_status=$?
22796 grep -v '^ *+' conftest.er1 >conftest.err
22797 rm -f conftest.er1
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); } &&
22801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22802 { (case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_try") 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); }; } &&
22811 { ac_try='test -s conftest$ac_exeext'
22812 { (case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815 esac
22816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22817 (eval "$ac_try") 2>&5
22818 ac_status=$?
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); }; }; then
22821 eval "$as_ac_var=yes"
22822 else
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 eval "$as_ac_var=no"
22829 rm -f core conftest.err conftest.$ac_objext \
22830 conftest$ac_exeext conftest.$ac_ext
22832 ac_res=`eval echo '${'$as_ac_var'}'`
22833 { echo "$as_me:$LINENO: result: $ac_res" >&5
22834 echo "${ECHO_T}$ac_res" >&6; }
22835 if test `eval echo '${'$as_ac_var'}'` = yes; then
22836 cat >>confdefs.h <<_ACEOF
22837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22838 _ACEOF
22841 done
22846 for ac_func in closedir opendir readdir
22848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854 cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h. */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h. */
22860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22862 #define $ac_func innocuous_$ac_func
22864 /* System header to define __stub macros and hopefully few prototypes,
22865 which can conflict with char $ac_func (); below.
22866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22867 <limits.h> exists even on freestanding compilers. */
22869 #ifdef __STDC__
22870 # include <limits.h>
22871 #else
22872 # include <assert.h>
22873 #endif
22875 #undef $ac_func
22877 /* Override any GCC internal prototype to avoid an error.
22878 Use char because int might match the return type of a GCC
22879 builtin and then its argument prototype would still apply. */
22880 #ifdef __cplusplus
22881 extern "C"
22882 #endif
22883 char $ac_func ();
22884 /* The GNU C library defines this for functions which it implements
22885 to always fail with ENOSYS. Some functions are actually named
22886 something starting with __ and the normal name is an alias. */
22887 #if defined __stub_$ac_func || defined __stub___$ac_func
22888 choke me
22889 #endif
22892 main ()
22894 return $ac_func ();
22896 return 0;
22898 _ACEOF
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22904 esac
22905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22906 (eval "$ac_link") 2>conftest.er1
22907 ac_status=$?
22908 grep -v '^ *+' conftest.er1 >conftest.err
22909 rm -f conftest.er1
22910 cat conftest.err >&5
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); } &&
22913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22914 { (case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22917 esac
22918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_try") 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest$ac_exeext'
22924 { (case "(($ac_try" in
22925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22926 *) ac_try_echo=$ac_try;;
22927 esac
22928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22929 (eval "$ac_try") 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 eval "$as_ac_var=yes"
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 eval "$as_ac_var=no"
22941 rm -f core conftest.err conftest.$ac_objext \
22942 conftest$ac_exeext conftest.$ac_ext
22944 ac_res=`eval echo '${'$as_ac_var'}'`
22945 { echo "$as_me:$LINENO: result: $ac_res" >&5
22946 echo "${ECHO_T}$ac_res" >&6; }
22947 if test `eval echo '${'$as_ac_var'}'` = yes; then
22948 cat >>confdefs.h <<_ACEOF
22949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22950 _ACEOF
22953 done
22957 { echo "$as_me:$LINENO: checking for X" >&5
22958 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22961 # Check whether --with-x was given.
22962 if test "${with_x+set}" = set; then
22963 withval=$with_x;
22966 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22967 if test "x$with_x" = xno; then
22968 # The user explicitly disabled X.
22969 have_x=disabled
22970 else
22971 case $x_includes,$x_libraries in #(
22972 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22973 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22974 { (exit 1); exit 1; }; };; #(
22975 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978 # One or both of the vars are not set, and there is no cached value.
22979 ac_x_includes=no ac_x_libraries=no
22980 rm -f -r conftest.dir
22981 if mkdir conftest.dir; then
22982 cd conftest.dir
22983 cat >Imakefile <<'_ACEOF'
22984 incroot:
22985 @echo incroot='${INCROOT}'
22986 usrlibdir:
22987 @echo usrlibdir='${USRLIBDIR}'
22988 libdir:
22989 @echo libdir='${LIBDIR}'
22990 _ACEOF
22991 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22993 for ac_var in incroot usrlibdir libdir; do
22994 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22995 done
22996 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22997 for ac_extension in a so sl; do
22998 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
22999 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23000 ac_im_usrlibdir=$ac_im_libdir; break
23002 done
23003 # Screen out bogus values from the imake configuration. They are
23004 # bogus both because they are the default anyway, and because
23005 # using them would break gcc on systems where it needs fixed includes.
23006 case $ac_im_incroot in
23007 /usr/include) ac_x_includes= ;;
23008 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23009 esac
23010 case $ac_im_usrlibdir in
23011 /usr/lib | /lib) ;;
23012 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23013 esac
23015 cd ..
23016 rm -f -r conftest.dir
23019 # Standard set of common directories for X headers.
23020 # Check X11 before X11Rn because it is often a symlink to the current release.
23021 ac_x_header_dirs='
23022 /usr/X11/include
23023 /usr/X11R6/include
23024 /usr/X11R5/include
23025 /usr/X11R4/include
23027 /usr/include/X11
23028 /usr/include/X11R6
23029 /usr/include/X11R5
23030 /usr/include/X11R4
23032 /usr/local/X11/include
23033 /usr/local/X11R6/include
23034 /usr/local/X11R5/include
23035 /usr/local/X11R4/include
23037 /usr/local/include/X11
23038 /usr/local/include/X11R6
23039 /usr/local/include/X11R5
23040 /usr/local/include/X11R4
23042 /usr/X386/include
23043 /usr/x386/include
23044 /usr/XFree86/include/X11
23046 /usr/include
23047 /usr/local/include
23048 /usr/unsupported/include
23049 /usr/athena/include
23050 /usr/local/x11r5/include
23051 /usr/lpp/Xamples/include
23053 /usr/openwin/include
23054 /usr/openwin/share/include'
23056 if test "$ac_x_includes" = no; then
23057 # Guess where to find include files, by looking for Xlib.h.
23058 # First, try using that file with no special directory specified.
23059 cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h. */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h. */
23065 #include <X11/Xlib.h>
23066 _ACEOF
23067 if { (ac_try="$ac_cpp conftest.$ac_ext"
23068 case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23074 ac_status=$?
23075 grep -v '^ *+' conftest.er1 >conftest.err
23076 rm -f conftest.er1
23077 cat conftest.err >&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } >/dev/null; then
23080 if test -s conftest.err; then
23081 ac_cpp_err=$ac_c_preproc_warn_flag
23082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23083 else
23084 ac_cpp_err=
23086 else
23087 ac_cpp_err=yes
23089 if test -z "$ac_cpp_err"; then
23090 # We can compile using X headers with no special include directory.
23091 ac_x_includes=
23092 else
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 for ac_dir in $ac_x_header_dirs; do
23097 if test -r "$ac_dir/X11/Xlib.h"; then
23098 ac_x_includes=$ac_dir
23099 break
23101 done
23104 rm -f conftest.err conftest.$ac_ext
23105 fi # $ac_x_includes = no
23107 if test "$ac_x_libraries" = no; then
23108 # Check for the libraries.
23109 # See if we find them without any special options.
23110 # Don't add to $LIBS permanently.
23111 ac_save_LIBS=$LIBS
23112 LIBS="-lX11 $LIBS"
23113 cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h. */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h. */
23119 #include <X11/Xlib.h>
23121 main ()
23123 XrmInitialize ()
23125 return 0;
23127 _ACEOF
23128 rm -f conftest.$ac_objext conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_link") 2>conftest.er1
23136 ac_status=$?
23137 grep -v '^ *+' conftest.er1 >conftest.err
23138 rm -f conftest.er1
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } &&
23142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23143 { (case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_try") 2>&5
23149 ac_status=$?
23150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23151 (exit $ac_status); }; } &&
23152 { ac_try='test -s conftest$ac_exeext'
23153 { (case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23156 esac
23157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_try") 2>&5
23159 ac_status=$?
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; }; then
23162 LIBS=$ac_save_LIBS
23163 # We can link X programs with no special library path.
23164 ac_x_libraries=
23165 else
23166 echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23169 LIBS=$ac_save_LIBS
23170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23172 # Don't even attempt the hair of trying to link an X program!
23173 for ac_extension in a so sl; do
23174 if test -r "$ac_dir/libXt.$ac_extension"; then
23175 ac_x_libraries=$ac_dir
23176 break 2
23178 done
23179 done
23182 rm -f core conftest.err conftest.$ac_objext \
23183 conftest$ac_exeext conftest.$ac_ext
23184 fi # $ac_x_libraries = no
23186 case $ac_x_includes,$ac_x_libraries in #(
23187 no,* | *,no | *\'*)
23188 # Didn't find X, or a directory has "'" in its name.
23189 ac_cv_have_x="have_x=no";; #(
23191 # Record where we found X for the cache.
23192 ac_cv_have_x="have_x=yes\
23193 ac_x_includes='$ac_x_includes'\
23194 ac_x_libraries='$ac_x_libraries'"
23195 esac
23197 ;; #(
23198 *) have_x=yes;;
23199 esac
23200 eval "$ac_cv_have_x"
23201 fi # $with_x != no
23203 if test "$have_x" != yes; then
23204 { echo "$as_me:$LINENO: result: $have_x" >&5
23205 echo "${ECHO_T}$have_x" >&6; }
23206 no_x=yes
23207 else
23208 # If each of the values was on the command line, it overrides each guess.
23209 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23210 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23211 # Update the cache value to reflect the command line values.
23212 ac_cv_have_x="have_x=yes\
23213 ac_x_includes='$x_includes'\
23214 ac_x_libraries='$x_libraries'"
23215 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23216 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23219 if test "$no_x" = yes; then
23220 # Not all programs may use this symbol, but it does not hurt to define it.
23222 cat >>confdefs.h <<\_ACEOF
23223 #define X_DISPLAY_MISSING 1
23224 _ACEOF
23226 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23227 else
23228 if test -n "$x_includes"; then
23229 X_CFLAGS="$X_CFLAGS -I$x_includes"
23232 # It would also be nice to do this for all -L options, not just this one.
23233 if test -n "$x_libraries"; then
23234 X_LIBS="$X_LIBS -L$x_libraries"
23235 # For Solaris; some versions of Sun CC require a space after -R and
23236 # others require no space. Words are not sufficient . . . .
23237 case `(uname -sr) 2>/dev/null` in
23238 "SunOS 5"*)
23239 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23240 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23241 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23250 main ()
23254 return 0;
23256 _ACEOF
23257 rm -f conftest.$ac_objext conftest$ac_exeext
23258 if { (ac_try="$ac_link"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23262 esac
23263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_link") 2>conftest.er1
23265 ac_status=$?
23266 grep -v '^ *+' conftest.er1 >conftest.err
23267 rm -f conftest.er1
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); } &&
23271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23272 { (case "(($ac_try" in
23273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23274 *) ac_try_echo=$ac_try;;
23275 esac
23276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23277 (eval "$ac_try") 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
23282 { (case "(($ac_try" in
23283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23284 *) ac_try_echo=$ac_try;;
23285 esac
23286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23287 (eval "$ac_try") 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 ac_R_nospace=yes
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_R_nospace=no
23299 rm -f core conftest.err conftest.$ac_objext \
23300 conftest$ac_exeext conftest.$ac_ext
23301 if test $ac_R_nospace = yes; then
23302 { echo "$as_me:$LINENO: result: no" >&5
23303 echo "${ECHO_T}no" >&6; }
23304 X_LIBS="$X_LIBS -R$x_libraries"
23305 else
23306 LIBS="$ac_xsave_LIBS -R $x_libraries"
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23315 main ()
23319 return 0;
23321 _ACEOF
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327 esac
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23330 ac_status=$?
23331 grep -v '^ *+' conftest.er1 >conftest.err
23332 rm -f conftest.er1
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } &&
23336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23337 { (case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342 (eval "$ac_try") 2>&5
23343 ac_status=$?
23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345 (exit $ac_status); }; } &&
23346 { ac_try='test -s conftest$ac_exeext'
23347 { (case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23350 esac
23351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23352 (eval "$ac_try") 2>&5
23353 ac_status=$?
23354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355 (exit $ac_status); }; }; then
23356 ac_R_space=yes
23357 else
23358 echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23361 ac_R_space=no
23364 rm -f core conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext conftest.$ac_ext
23366 if test $ac_R_space = yes; then
23367 { echo "$as_me:$LINENO: result: yes" >&5
23368 echo "${ECHO_T}yes" >&6; }
23369 X_LIBS="$X_LIBS -R $x_libraries"
23370 else
23371 { echo "$as_me:$LINENO: result: neither works" >&5
23372 echo "${ECHO_T}neither works" >&6; }
23375 LIBS=$ac_xsave_LIBS
23376 esac
23379 # Check for system-dependent libraries X programs must link with.
23380 # Do this before checking for the system-independent R6 libraries
23381 # (-lICE), since we may need -lsocket or whatever for X linking.
23383 if test "$ISC" = yes; then
23384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23385 else
23386 # Martyn Johnson says this is needed for Ultrix, if the X
23387 # libraries were built with DECnet support. And Karl Berry says
23388 # the Alpha needs dnet_stub (dnet does not exist).
23389 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h. */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23397 /* Override any GCC internal prototype to avoid an error.
23398 Use char because int might match the return type of a GCC
23399 builtin and then its argument prototype would still apply. */
23400 #ifdef __cplusplus
23401 extern "C"
23402 #endif
23403 char XOpenDisplay ();
23405 main ()
23407 return XOpenDisplay ();
23409 return 0;
23411 _ACEOF
23412 rm -f conftest.$ac_objext conftest$ac_exeext
23413 if { (ac_try="$ac_link"
23414 case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23417 esac
23418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_link") 2>conftest.er1
23420 ac_status=$?
23421 grep -v '^ *+' conftest.er1 >conftest.err
23422 rm -f conftest.er1
23423 cat conftest.err >&5
23424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } &&
23426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23427 { (case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23430 esac
23431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23432 (eval "$ac_try") 2>&5
23433 ac_status=$?
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; } &&
23436 { ac_try='test -s conftest$ac_exeext'
23437 { (case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23440 esac
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_try") 2>&5
23443 ac_status=$?
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); }; }; then
23447 else
23448 echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23452 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23453 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455 else
23456 ac_check_lib_save_LIBS=$LIBS
23457 LIBS="-ldnet $LIBS"
23458 cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h. */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23465 /* Override any GCC internal prototype to avoid an error.
23466 Use char because int might match the return type of a GCC
23467 builtin and then its argument prototype would still apply. */
23468 #ifdef __cplusplus
23469 extern "C"
23470 #endif
23471 char dnet_ntoa ();
23473 main ()
23475 return dnet_ntoa ();
23477 return 0;
23479 _ACEOF
23480 rm -f conftest.$ac_objext conftest$ac_exeext
23481 if { (ac_try="$ac_link"
23482 case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487 (eval "$ac_link") 2>conftest.er1
23488 ac_status=$?
23489 grep -v '^ *+' conftest.er1 >conftest.err
23490 rm -f conftest.er1
23491 cat conftest.err >&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); } &&
23494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23495 { (case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_try") 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; } &&
23504 { ac_try='test -s conftest$ac_exeext'
23505 { (case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_try") 2>&5
23511 ac_status=$?
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); }; }; then
23514 ac_cv_lib_dnet_dnet_ntoa=yes
23515 else
23516 echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23519 ac_cv_lib_dnet_dnet_ntoa=no
23522 rm -f core conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23524 LIBS=$ac_check_lib_save_LIBS
23526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23527 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23528 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23529 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23532 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23533 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23534 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23535 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23537 else
23538 ac_check_lib_save_LIBS=$LIBS
23539 LIBS="-ldnet_stub $LIBS"
23540 cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h. */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23547 /* Override any GCC internal prototype to avoid an error.
23548 Use char because int might match the return type of a GCC
23549 builtin and then its argument prototype would still apply. */
23550 #ifdef __cplusplus
23551 extern "C"
23552 #endif
23553 char dnet_ntoa ();
23555 main ()
23557 return dnet_ntoa ();
23559 return 0;
23561 _ACEOF
23562 rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (ac_try="$ac_link"
23564 case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_link") 2>conftest.er1
23570 ac_status=$?
23571 grep -v '^ *+' conftest.er1 >conftest.err
23572 rm -f conftest.er1
23573 cat conftest.err >&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23577 { (case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_try") 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_try") 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23601 ac_cv_lib_dnet_stub_dnet_ntoa=no
23604 rm -f core conftest.err conftest.$ac_objext \
23605 conftest$ac_exeext conftest.$ac_ext
23606 LIBS=$ac_check_lib_save_LIBS
23608 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23609 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23610 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23611 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23617 rm -f core conftest.err conftest.$ac_objext \
23618 conftest$ac_exeext conftest.$ac_ext
23619 LIBS="$ac_xsave_LIBS"
23621 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23622 # to get the SysV transport functions.
23623 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23624 # needs -lnsl.
23625 # The nsl library prevents programs from opening the X display
23626 # on Irix 5.2, according to T.E. Dickey.
23627 # The functions gethostbyname, getservbyname, and inet_addr are
23628 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23629 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23630 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23631 if test "${ac_cv_func_gethostbyname+set}" = set; then
23632 echo $ECHO_N "(cached) $ECHO_C" >&6
23633 else
23634 cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h. */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23640 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23642 #define gethostbyname innocuous_gethostbyname
23644 /* System header to define __stub macros and hopefully few prototypes,
23645 which can conflict with char gethostbyname (); below.
23646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23647 <limits.h> exists even on freestanding compilers. */
23649 #ifdef __STDC__
23650 # include <limits.h>
23651 #else
23652 # include <assert.h>
23653 #endif
23655 #undef gethostbyname
23657 /* Override any GCC internal prototype to avoid an error.
23658 Use char because int might match the return type of a GCC
23659 builtin and then its argument prototype would still apply. */
23660 #ifdef __cplusplus
23661 extern "C"
23662 #endif
23663 char gethostbyname ();
23664 /* The GNU C library defines this for functions which it implements
23665 to always fail with ENOSYS. Some functions are actually named
23666 something starting with __ and the normal name is an alias. */
23667 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23668 choke me
23669 #endif
23672 main ()
23674 return gethostbyname ();
23676 return 0;
23678 _ACEOF
23679 rm -f conftest.$ac_objext conftest$ac_exeext
23680 if { (ac_try="$ac_link"
23681 case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_link") 2>conftest.er1
23687 ac_status=$?
23688 grep -v '^ *+' conftest.er1 >conftest.err
23689 rm -f conftest.er1
23690 cat conftest.err >&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } &&
23693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23694 { (case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23697 esac
23698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_try") 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; } &&
23703 { ac_try='test -s conftest$ac_exeext'
23704 { (case "(($ac_try" in
23705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706 *) ac_try_echo=$ac_try;;
23707 esac
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709 (eval "$ac_try") 2>&5
23710 ac_status=$?
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; }; then
23713 ac_cv_func_gethostbyname=yes
23714 else
23715 echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 ac_cv_func_gethostbyname=no
23721 rm -f core conftest.err conftest.$ac_objext \
23722 conftest$ac_exeext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23727 if test $ac_cv_func_gethostbyname = no; then
23728 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23729 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23730 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23731 echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733 ac_check_lib_save_LIBS=$LIBS
23734 LIBS="-lnsl $LIBS"
23735 cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h. */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h. */
23742 /* Override any GCC internal prototype to avoid an error.
23743 Use char because int might match the return type of a GCC
23744 builtin and then its argument prototype would still apply. */
23745 #ifdef __cplusplus
23746 extern "C"
23747 #endif
23748 char gethostbyname ();
23750 main ()
23752 return gethostbyname ();
23754 return 0;
23756 _ACEOF
23757 rm -f conftest.$ac_objext conftest$ac_exeext
23758 if { (ac_try="$ac_link"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764 (eval "$ac_link") 2>conftest.er1
23765 ac_status=$?
23766 grep -v '^ *+' conftest.er1 >conftest.err
23767 rm -f conftest.er1
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23772 { (case "(($ac_try" in
23773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23774 *) ac_try_echo=$ac_try;;
23775 esac
23776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23777 (eval "$ac_try") 2>&5
23778 ac_status=$?
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); }; } &&
23781 { ac_try='test -s conftest$ac_exeext'
23782 { (case "(($ac_try" in
23783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784 *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787 (eval "$ac_try") 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_cv_lib_nsl_gethostbyname=yes
23792 else
23793 echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_cv_lib_nsl_gethostbyname=no
23799 rm -f core conftest.err conftest.$ac_objext \
23800 conftest$ac_exeext conftest.$ac_ext
23801 LIBS=$ac_check_lib_save_LIBS
23803 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23804 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23805 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23809 if test $ac_cv_lib_nsl_gethostbyname = no; then
23810 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23811 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23812 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815 ac_check_lib_save_LIBS=$LIBS
23816 LIBS="-lbsd $LIBS"
23817 cat >conftest.$ac_ext <<_ACEOF
23818 /* confdefs.h. */
23819 _ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23824 /* Override any GCC internal prototype to avoid an error.
23825 Use char because int might match the return type of a GCC
23826 builtin and then its argument prototype would still apply. */
23827 #ifdef __cplusplus
23828 extern "C"
23829 #endif
23830 char gethostbyname ();
23832 main ()
23834 return gethostbyname ();
23836 return 0;
23838 _ACEOF
23839 rm -f conftest.$ac_objext conftest$ac_exeext
23840 if { (ac_try="$ac_link"
23841 case "(($ac_try" in
23842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23843 *) ac_try_echo=$ac_try;;
23844 esac
23845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23846 (eval "$ac_link") 2>conftest.er1
23847 ac_status=$?
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
23851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } &&
23853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23854 { (case "(($ac_try" in
23855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23856 *) ac_try_echo=$ac_try;;
23857 esac
23858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23859 (eval "$ac_try") 2>&5
23860 ac_status=$?
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); }; } &&
23863 { ac_try='test -s conftest$ac_exeext'
23864 { (case "(($ac_try" in
23865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866 *) ac_try_echo=$ac_try;;
23867 esac
23868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23869 (eval "$ac_try") 2>&5
23870 ac_status=$?
23871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23872 (exit $ac_status); }; }; then
23873 ac_cv_lib_bsd_gethostbyname=yes
23874 else
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23878 ac_cv_lib_bsd_gethostbyname=no
23881 rm -f core conftest.err conftest.$ac_objext \
23882 conftest$ac_exeext conftest.$ac_ext
23883 LIBS=$ac_check_lib_save_LIBS
23885 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23886 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23887 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23894 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23895 # socket/setsockopt and other routines are undefined under SCO ODT
23896 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23897 # on later versions), says Simon Leinen: it contains gethostby*
23898 # variants that don't use the name server (or something). -lsocket
23899 # must be given before -lnsl if both are needed. We assume that
23900 # if connect needs -lnsl, so does gethostbyname.
23901 { echo "$as_me:$LINENO: checking for connect" >&5
23902 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23903 if test "${ac_cv_func_connect+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23905 else
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h. */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h. */
23912 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23914 #define connect innocuous_connect
23916 /* System header to define __stub macros and hopefully few prototypes,
23917 which can conflict with char connect (); below.
23918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23919 <limits.h> exists even on freestanding compilers. */
23921 #ifdef __STDC__
23922 # include <limits.h>
23923 #else
23924 # include <assert.h>
23925 #endif
23927 #undef connect
23929 /* Override any GCC internal prototype to avoid an error.
23930 Use char because int might match the return type of a GCC
23931 builtin and then its argument prototype would still apply. */
23932 #ifdef __cplusplus
23933 extern "C"
23934 #endif
23935 char connect ();
23936 /* The GNU C library defines this for functions which it implements
23937 to always fail with ENOSYS. Some functions are actually named
23938 something starting with __ and the normal name is an alias. */
23939 #if defined __stub_connect || defined __stub___connect
23940 choke me
23941 #endif
23944 main ()
23946 return connect ();
23948 return 0;
23950 _ACEOF
23951 rm -f conftest.$ac_objext conftest$ac_exeext
23952 if { (ac_try="$ac_link"
23953 case "(($ac_try" in
23954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23955 *) ac_try_echo=$ac_try;;
23956 esac
23957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23958 (eval "$ac_link") 2>conftest.er1
23959 ac_status=$?
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
23965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23966 { (case "(($ac_try" in
23967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23968 *) ac_try_echo=$ac_try;;
23969 esac
23970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23971 (eval "$ac_try") 2>&5
23972 ac_status=$?
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; } &&
23975 { ac_try='test -s conftest$ac_exeext'
23976 { (case "(($ac_try" in
23977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978 *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981 (eval "$ac_try") 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 ac_cv_func_connect=yes
23986 else
23987 echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_cv_func_connect=no
23993 rm -f core conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
23996 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23997 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23999 if test $ac_cv_func_connect = no; then
24000 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24001 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24002 if test "${ac_cv_lib_socket_connect+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005 ac_check_lib_save_LIBS=$LIBS
24006 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24007 cat >conftest.$ac_ext <<_ACEOF
24008 /* confdefs.h. */
24009 _ACEOF
24010 cat confdefs.h >>conftest.$ac_ext
24011 cat >>conftest.$ac_ext <<_ACEOF
24012 /* end confdefs.h. */
24014 /* Override any GCC internal prototype to avoid an error.
24015 Use char because int might match the return type of a GCC
24016 builtin and then its argument prototype would still apply. */
24017 #ifdef __cplusplus
24018 extern "C"
24019 #endif
24020 char connect ();
24022 main ()
24024 return connect ();
24026 return 0;
24028 _ACEOF
24029 rm -f conftest.$ac_objext conftest$ac_exeext
24030 if { (ac_try="$ac_link"
24031 case "(($ac_try" in
24032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033 *) ac_try_echo=$ac_try;;
24034 esac
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036 (eval "$ac_link") 2>conftest.er1
24037 ac_status=$?
24038 grep -v '^ *+' conftest.er1 >conftest.err
24039 rm -f conftest.er1
24040 cat conftest.err >&5
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } &&
24043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24044 { (case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_try") 2>&5
24050 ac_status=$?
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); }; } &&
24053 { ac_try='test -s conftest$ac_exeext'
24054 { (case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24057 esac
24058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24059 (eval "$ac_try") 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 ac_cv_lib_socket_connect=yes
24064 else
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24068 ac_cv_lib_socket_connect=no
24071 rm -f core conftest.err conftest.$ac_objext \
24072 conftest$ac_exeext conftest.$ac_ext
24073 LIBS=$ac_check_lib_save_LIBS
24075 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24076 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24077 if test $ac_cv_lib_socket_connect = yes; then
24078 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24083 # Guillermo Gomez says -lposix is necessary on A/UX.
24084 { echo "$as_me:$LINENO: checking for remove" >&5
24085 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24086 if test "${ac_cv_func_remove+set}" = set; then
24087 echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089 cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h. */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h. */
24095 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24097 #define remove innocuous_remove
24099 /* System header to define __stub macros and hopefully few prototypes,
24100 which can conflict with char remove (); below.
24101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24102 <limits.h> exists even on freestanding compilers. */
24104 #ifdef __STDC__
24105 # include <limits.h>
24106 #else
24107 # include <assert.h>
24108 #endif
24110 #undef remove
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char remove ();
24119 /* The GNU C library defines this for functions which it implements
24120 to always fail with ENOSYS. Some functions are actually named
24121 something starting with __ and the normal name is an alias. */
24122 #if defined __stub_remove || defined __stub___remove
24123 choke me
24124 #endif
24127 main ()
24129 return remove ();
24131 return 0;
24133 _ACEOF
24134 rm -f conftest.$ac_objext conftest$ac_exeext
24135 if { (ac_try="$ac_link"
24136 case "(($ac_try" in
24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138 *) ac_try_echo=$ac_try;;
24139 esac
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141 (eval "$ac_link") 2>conftest.er1
24142 ac_status=$?
24143 grep -v '^ *+' conftest.er1 >conftest.err
24144 rm -f conftest.er1
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } &&
24148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24149 { (case "(($ac_try" in
24150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151 *) ac_try_echo=$ac_try;;
24152 esac
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154 (eval "$ac_try") 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest$ac_exeext'
24159 { (case "(($ac_try" in
24160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24161 *) ac_try_echo=$ac_try;;
24162 esac
24163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24164 (eval "$ac_try") 2>&5
24165 ac_status=$?
24166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167 (exit $ac_status); }; }; then
24168 ac_cv_func_remove=yes
24169 else
24170 echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_cv_func_remove=no
24176 rm -f core conftest.err conftest.$ac_objext \
24177 conftest$ac_exeext conftest.$ac_ext
24179 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24180 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24182 if test $ac_cv_func_remove = no; then
24183 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24184 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24185 if test "${ac_cv_lib_posix_remove+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24187 else
24188 ac_check_lib_save_LIBS=$LIBS
24189 LIBS="-lposix $LIBS"
24190 cat >conftest.$ac_ext <<_ACEOF
24191 /* confdefs.h. */
24192 _ACEOF
24193 cat confdefs.h >>conftest.$ac_ext
24194 cat >>conftest.$ac_ext <<_ACEOF
24195 /* end confdefs.h. */
24197 /* Override any GCC internal prototype to avoid an error.
24198 Use char because int might match the return type of a GCC
24199 builtin and then its argument prototype would still apply. */
24200 #ifdef __cplusplus
24201 extern "C"
24202 #endif
24203 char remove ();
24205 main ()
24207 return remove ();
24209 return 0;
24211 _ACEOF
24212 rm -f conftest.$ac_objext conftest$ac_exeext
24213 if { (ac_try="$ac_link"
24214 case "(($ac_try" in
24215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216 *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219 (eval "$ac_link") 2>conftest.er1
24220 ac_status=$?
24221 grep -v '^ *+' conftest.er1 >conftest.err
24222 rm -f conftest.er1
24223 cat conftest.err >&5
24224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } &&
24226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24227 { (case "(($ac_try" in
24228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24229 *) ac_try_echo=$ac_try;;
24230 esac
24231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24232 (eval "$ac_try") 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; } &&
24236 { ac_try='test -s conftest$ac_exeext'
24237 { (case "(($ac_try" in
24238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239 *) ac_try_echo=$ac_try;;
24240 esac
24241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24242 (eval "$ac_try") 2>&5
24243 ac_status=$?
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; }; then
24246 ac_cv_lib_posix_remove=yes
24247 else
24248 echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24251 ac_cv_lib_posix_remove=no
24254 rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
24256 LIBS=$ac_check_lib_save_LIBS
24258 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24259 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24260 if test $ac_cv_lib_posix_remove = yes; then
24261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24266 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24267 { echo "$as_me:$LINENO: checking for shmat" >&5
24268 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24269 if test "${ac_cv_func_shmat+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 else
24272 cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h. */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24280 #define shmat innocuous_shmat
24282 /* System header to define __stub macros and hopefully few prototypes,
24283 which can conflict with char shmat (); below.
24284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24285 <limits.h> exists even on freestanding compilers. */
24287 #ifdef __STDC__
24288 # include <limits.h>
24289 #else
24290 # include <assert.h>
24291 #endif
24293 #undef shmat
24295 /* Override any GCC internal prototype to avoid an error.
24296 Use char because int might match the return type of a GCC
24297 builtin and then its argument prototype would still apply. */
24298 #ifdef __cplusplus
24299 extern "C"
24300 #endif
24301 char shmat ();
24302 /* The GNU C library defines this for functions which it implements
24303 to always fail with ENOSYS. Some functions are actually named
24304 something starting with __ and the normal name is an alias. */
24305 #if defined __stub_shmat || defined __stub___shmat
24306 choke me
24307 #endif
24310 main ()
24312 return shmat ();
24314 return 0;
24316 _ACEOF
24317 rm -f conftest.$ac_objext conftest$ac_exeext
24318 if { (ac_try="$ac_link"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_link") 2>conftest.er1
24325 ac_status=$?
24326 grep -v '^ *+' conftest.er1 >conftest.err
24327 rm -f conftest.er1
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } &&
24331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24332 { (case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_try") 2>&5
24338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; } &&
24341 { ac_try='test -s conftest$ac_exeext'
24342 { (case "(($ac_try" in
24343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344 *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347 (eval "$ac_try") 2>&5
24348 ac_status=$?
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ac_cv_func_shmat=yes
24352 else
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24356 ac_cv_func_shmat=no
24359 rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24362 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24363 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24365 if test $ac_cv_func_shmat = no; then
24366 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24367 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24368 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24369 echo $ECHO_N "(cached) $ECHO_C" >&6
24370 else
24371 ac_check_lib_save_LIBS=$LIBS
24372 LIBS="-lipc $LIBS"
24373 cat >conftest.$ac_ext <<_ACEOF
24374 /* confdefs.h. */
24375 _ACEOF
24376 cat confdefs.h >>conftest.$ac_ext
24377 cat >>conftest.$ac_ext <<_ACEOF
24378 /* end confdefs.h. */
24380 /* Override any GCC internal prototype to avoid an error.
24381 Use char because int might match the return type of a GCC
24382 builtin and then its argument prototype would still apply. */
24383 #ifdef __cplusplus
24384 extern "C"
24385 #endif
24386 char shmat ();
24388 main ()
24390 return shmat ();
24392 return 0;
24394 _ACEOF
24395 rm -f conftest.$ac_objext conftest$ac_exeext
24396 if { (ac_try="$ac_link"
24397 case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_link") 2>conftest.er1
24403 ac_status=$?
24404 grep -v '^ *+' conftest.er1 >conftest.err
24405 rm -f conftest.er1
24406 cat conftest.err >&5
24407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); } &&
24409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24410 { (case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24413 esac
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_try") 2>&5
24416 ac_status=$?
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest$ac_exeext'
24420 { (case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24423 esac
24424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24425 (eval "$ac_try") 2>&5
24426 ac_status=$?
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); }; }; then
24429 ac_cv_lib_ipc_shmat=yes
24430 else
24431 echo "$as_me: failed program was:" >&5
24432 sed 's/^/| /' conftest.$ac_ext >&5
24434 ac_cv_lib_ipc_shmat=no
24437 rm -f core conftest.err conftest.$ac_objext \
24438 conftest$ac_exeext conftest.$ac_ext
24439 LIBS=$ac_check_lib_save_LIBS
24441 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24442 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24443 if test $ac_cv_lib_ipc_shmat = yes; then
24444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24450 # Check for libraries that X11R6 Xt/Xaw programs need.
24451 ac_save_LDFLAGS=$LDFLAGS
24452 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24453 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24454 # check for ICE first), but we must link in the order -lSM -lICE or
24455 # we get undefined symbols. So assume we have SM if we have ICE.
24456 # These have to be linked with before -lX11, unlike the other
24457 # libraries we check for below, so use a different variable.
24458 # John Interrante, Karl Berry
24459 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24460 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24461 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24462 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464 ac_check_lib_save_LIBS=$LIBS
24465 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24473 /* Override any GCC internal prototype to avoid an error.
24474 Use char because int might match the return type of a GCC
24475 builtin and then its argument prototype would still apply. */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char IceConnectionNumber ();
24481 main ()
24483 return IceConnectionNumber ();
24485 return 0;
24487 _ACEOF
24488 rm -f conftest.$ac_objext conftest$ac_exeext
24489 if { (ac_try="$ac_link"
24490 case "(($ac_try" in
24491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24492 *) ac_try_echo=$ac_try;;
24493 esac
24494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24495 (eval "$ac_link") 2>conftest.er1
24496 ac_status=$?
24497 grep -v '^ *+' conftest.er1 >conftest.err
24498 rm -f conftest.er1
24499 cat conftest.err >&5
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); } &&
24502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24503 { (case "(($ac_try" in
24504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505 *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508 (eval "$ac_try") 2>&5
24509 ac_status=$?
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); }; } &&
24512 { ac_try='test -s conftest$ac_exeext'
24513 { (case "(($ac_try" in
24514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24515 *) ac_try_echo=$ac_try;;
24516 esac
24517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24518 (eval "$ac_try") 2>&5
24519 ac_status=$?
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); }; }; then
24522 ac_cv_lib_ICE_IceConnectionNumber=yes
24523 else
24524 echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24527 ac_cv_lib_ICE_IceConnectionNumber=no
24530 rm -f core conftest.err conftest.$ac_objext \
24531 conftest$ac_exeext conftest.$ac_ext
24532 LIBS=$ac_check_lib_save_LIBS
24534 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24535 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24536 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24537 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24540 LDFLAGS=$ac_save_LDFLAGS
24545 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24546 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24547 if test "${ac_cv_c_bigendian+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550 # See if sys/param.h defines the BYTE_ORDER macro.
24551 cat >conftest.$ac_ext <<_ACEOF
24552 /* confdefs.h. */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 #include <sys/types.h>
24558 #include <sys/param.h>
24561 main ()
24563 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24564 bogus endian macros
24565 #endif
24568 return 0;
24570 _ACEOF
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575 *) ac_try_echo=$ac_try;;
24576 esac
24577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24578 (eval "$ac_compile") 2>conftest.er1
24579 ac_status=$?
24580 grep -v '^ *+' conftest.er1 >conftest.err
24581 rm -f conftest.er1
24582 cat conftest.err >&5
24583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584 (exit $ac_status); } &&
24585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24586 { (case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_try") 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest.$ac_objext'
24596 { (case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601 (eval "$ac_try") 2>&5
24602 ac_status=$?
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); }; }; then
24605 # It does; now see whether it defined to BIG_ENDIAN or not.
24606 cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h. */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 #include <sys/types.h>
24613 #include <sys/param.h>
24616 main ()
24618 #if BYTE_ORDER != BIG_ENDIAN
24619 not big endian
24620 #endif
24623 return 0;
24625 _ACEOF
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630 *) ac_try_echo=$ac_try;;
24631 esac
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633 (eval "$ac_compile") 2>conftest.er1
24634 ac_status=$?
24635 grep -v '^ *+' conftest.er1 >conftest.err
24636 rm -f conftest.er1
24637 cat conftest.err >&5
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); } &&
24640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24641 { (case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24644 esac
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_try") 2>&5
24647 ac_status=$?
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; } &&
24650 { ac_try='test -s conftest.$ac_objext'
24651 { (case "(($ac_try" in
24652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653 *) ac_try_echo=$ac_try;;
24654 esac
24655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24656 (eval "$ac_try") 2>&5
24657 ac_status=$?
24658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659 (exit $ac_status); }; }; then
24660 ac_cv_c_bigendian=yes
24661 else
24662 echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 ac_cv_c_bigendian=no
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 else
24670 echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24673 # It does not; compile a test program.
24674 if test "$cross_compiling" = yes; then
24675 # try to guess the endianness by grepping values into an object file
24676 ac_cv_c_bigendian=unknown
24677 cat >conftest.$ac_ext <<_ACEOF
24678 /* confdefs.h. */
24679 _ACEOF
24680 cat confdefs.h >>conftest.$ac_ext
24681 cat >>conftest.$ac_ext <<_ACEOF
24682 /* end confdefs.h. */
24683 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24684 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24685 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24686 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24687 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24688 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24690 main ()
24692 _ascii (); _ebcdic ();
24694 return 0;
24696 _ACEOF
24697 rm -f conftest.$ac_objext
24698 if { (ac_try="$ac_compile"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24705 ac_status=$?
24706 grep -v '^ *+' conftest.er1 >conftest.err
24707 rm -f conftest.er1
24708 cat conftest.err >&5
24709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } &&
24711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24712 { (case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717 (eval "$ac_try") 2>&5
24718 ac_status=$?
24719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720 (exit $ac_status); }; } &&
24721 { ac_try='test -s conftest.$ac_objext'
24722 { (case "(($ac_try" in
24723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724 *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727 (eval "$ac_try") 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24732 ac_cv_c_bigendian=yes
24734 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24735 if test "$ac_cv_c_bigendian" = unknown; then
24736 ac_cv_c_bigendian=no
24737 else
24738 # finding both strings is unlikely to happen, but who knows?
24739 ac_cv_c_bigendian=unknown
24742 else
24743 echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750 else
24751 cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h. */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h. */
24757 $ac_includes_default
24759 main ()
24762 /* Are we little or big endian? From Harbison&Steele. */
24763 union
24765 long int l;
24766 char c[sizeof (long int)];
24767 } u;
24768 u.l = 1;
24769 return u.c[sizeof (long int) - 1] == 1;
24772 return 0;
24774 _ACEOF
24775 rm -f conftest$ac_exeext
24776 if { (ac_try="$ac_link"
24777 case "(($ac_try" in
24778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779 *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782 (eval "$ac_link") 2>&5
24783 ac_status=$?
24784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24786 { (case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791 (eval "$ac_try") 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_cv_c_bigendian=no
24796 else
24797 echo "$as_me: program exited with status $ac_status" >&5
24798 echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.$ac_ext >&5
24801 ( exit $ac_status )
24802 ac_cv_c_bigendian=yes
24804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24813 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24814 case $ac_cv_c_bigendian in
24815 yes)
24817 cat >>confdefs.h <<\_ACEOF
24818 #define WORDS_BIGENDIAN 1
24819 _ACEOF
24824 { { echo "$as_me:$LINENO: error: unknown endianness
24825 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24826 echo "$as_me: error: unknown endianness
24827 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24828 { (exit 1); exit 1; }; } ;;
24829 esac
24831 { echo "$as_me:$LINENO: checking for inline" >&5
24832 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24833 if test "${ac_cv_c_inline+set}" = set; then
24834 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 else
24836 ac_cv_c_inline=no
24837 for ac_kw in inline __inline__ __inline; do
24838 cat >conftest.$ac_ext <<_ACEOF
24839 /* confdefs.h. */
24840 _ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 #ifndef __cplusplus
24845 typedef int foo_t;
24846 static $ac_kw foo_t static_foo () {return 0; }
24847 $ac_kw foo_t foo () {return 0; }
24848 #endif
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855 *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } &&
24865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; } &&
24875 { ac_try='test -s conftest.$ac_objext'
24876 { (case "(($ac_try" in
24877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878 *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881 (eval "$ac_try") 2>&5
24882 ac_status=$?
24883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); }; }; then
24885 ac_cv_c_inline=$ac_kw
24886 else
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24894 test "$ac_cv_c_inline" != no && break
24895 done
24898 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24899 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24902 case $ac_cv_c_inline in
24903 inline | yes) ;;
24905 case $ac_cv_c_inline in
24906 no) ac_val=;;
24907 *) ac_val=$ac_cv_c_inline;;
24908 esac
24909 cat >>confdefs.h <<_ACEOF
24910 #ifndef __cplusplus
24911 #define inline $ac_val
24912 #endif
24913 _ACEOF
24915 esac
24917 { echo "$as_me:$LINENO: checking for unsigned char" >&5
24918 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
24919 if test "${ac_cv_type_unsigned_char+set}" = set; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922 cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h. */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 $ac_includes_default
24929 typedef unsigned char ac__type_new_;
24931 main ()
24933 if ((ac__type_new_ *) 0)
24934 return 0;
24935 if (sizeof (ac__type_new_))
24936 return 0;
24938 return 0;
24940 _ACEOF
24941 rm -f conftest.$ac_objext
24942 if { (ac_try="$ac_compile"
24943 case "(($ac_try" in
24944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945 *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948 (eval "$ac_compile") 2>conftest.er1
24949 ac_status=$?
24950 grep -v '^ *+' conftest.er1 >conftest.err
24951 rm -f conftest.er1
24952 cat conftest.err >&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); } &&
24955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24956 { (case "(($ac_try" in
24957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958 *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961 (eval "$ac_try") 2>&5
24962 ac_status=$?
24963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); }; } &&
24965 { ac_try='test -s conftest.$ac_objext'
24966 { (case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_try") 2>&5
24972 ac_status=$?
24973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); }; }; then
24975 ac_cv_type_unsigned_char=yes
24976 else
24977 echo "$as_me: failed program was:" >&5
24978 sed 's/^/| /' conftest.$ac_ext >&5
24980 ac_cv_type_unsigned_char=no
24983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24985 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
24986 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
24988 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
24989 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
24990 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
24991 echo $ECHO_N "(cached) $ECHO_C" >&6
24992 else
24993 if test "$ac_cv_type_unsigned_char" = yes; then
24994 # The cast to long int works around a bug in the HP C Compiler
24995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24997 # This bug is HP SR number 8606223364.
24998 if test "$cross_compiling" = yes; then
24999 # Depending upon the size, compute the lo and hi bounds.
25000 cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h. */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h. */
25006 $ac_includes_default
25007 typedef unsigned char ac__type_sizeof_;
25009 main ()
25011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25012 test_array [0] = 0
25015 return 0;
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025 (eval "$ac_compile") 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } &&
25032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25033 { (case "(($ac_try" in
25034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25035 *) ac_try_echo=$ac_try;;
25036 esac
25037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25038 (eval "$ac_try") 2>&5
25039 ac_status=$?
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); }; } &&
25042 { ac_try='test -s conftest.$ac_objext'
25043 { (case "(($ac_try" in
25044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25045 *) ac_try_echo=$ac_try;;
25046 esac
25047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25048 (eval "$ac_try") 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; }; then
25052 ac_lo=0 ac_mid=0
25053 while :; do
25054 cat >conftest.$ac_ext <<_ACEOF
25055 /* confdefs.h. */
25056 _ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 $ac_includes_default
25061 typedef unsigned char ac__type_sizeof_;
25063 main ()
25065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25066 test_array [0] = 0
25069 return 0;
25071 _ACEOF
25072 rm -f conftest.$ac_objext
25073 if { (ac_try="$ac_compile"
25074 case "(($ac_try" in
25075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25077 esac
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25080 ac_status=$?
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } &&
25086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25087 { (case "(($ac_try" in
25088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25089 *) ac_try_echo=$ac_try;;
25090 esac
25091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25092 (eval "$ac_try") 2>&5
25093 ac_status=$?
25094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095 (exit $ac_status); }; } &&
25096 { ac_try='test -s conftest.$ac_objext'
25097 { (case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_try") 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25106 ac_hi=$ac_mid; break
25107 else
25108 echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25111 ac_lo=`expr $ac_mid + 1`
25112 if test $ac_lo -le $ac_mid; then
25113 ac_lo= ac_hi=
25114 break
25116 ac_mid=`expr 2 '*' $ac_mid + 1`
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120 done
25121 else
25122 echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25125 cat >conftest.$ac_ext <<_ACEOF
25126 /* confdefs.h. */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h. */
25131 $ac_includes_default
25132 typedef unsigned char ac__type_sizeof_;
25134 main ()
25136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25137 test_array [0] = 0
25140 return 0;
25142 _ACEOF
25143 rm -f conftest.$ac_objext
25144 if { (ac_try="$ac_compile"
25145 case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25148 esac
25149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25150 (eval "$ac_compile") 2>conftest.er1
25151 ac_status=$?
25152 grep -v '^ *+' conftest.er1 >conftest.err
25153 rm -f conftest.er1
25154 cat conftest.err >&5
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); } &&
25157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25158 { (case "(($ac_try" in
25159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25160 *) ac_try_echo=$ac_try;;
25161 esac
25162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25163 (eval "$ac_try") 2>&5
25164 ac_status=$?
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest.$ac_objext'
25168 { (case "(($ac_try" in
25169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25170 *) ac_try_echo=$ac_try;;
25171 esac
25172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25173 (eval "$ac_try") 2>&5
25174 ac_status=$?
25175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176 (exit $ac_status); }; }; then
25177 ac_hi=-1 ac_mid=-1
25178 while :; do
25179 cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h. */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h. */
25185 $ac_includes_default
25186 typedef unsigned char ac__type_sizeof_;
25188 main ()
25190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25191 test_array [0] = 0
25194 return 0;
25196 _ACEOF
25197 rm -f conftest.$ac_objext
25198 if { (ac_try="$ac_compile"
25199 case "(($ac_try" in
25200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25201 *) ac_try_echo=$ac_try;;
25202 esac
25203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25205 ac_status=$?
25206 grep -v '^ *+' conftest.er1 >conftest.err
25207 rm -f conftest.er1
25208 cat conftest.err >&5
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } &&
25211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25212 { (case "(($ac_try" in
25213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25214 *) ac_try_echo=$ac_try;;
25215 esac
25216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25217 (eval "$ac_try") 2>&5
25218 ac_status=$?
25219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220 (exit $ac_status); }; } &&
25221 { ac_try='test -s conftest.$ac_objext'
25222 { (case "(($ac_try" in
25223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224 *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227 (eval "$ac_try") 2>&5
25228 ac_status=$?
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); }; }; then
25231 ac_lo=$ac_mid; break
25232 else
25233 echo "$as_me: failed program was:" >&5
25234 sed 's/^/| /' conftest.$ac_ext >&5
25236 ac_hi=`expr '(' $ac_mid ')' - 1`
25237 if test $ac_mid -le $ac_hi; then
25238 ac_lo= ac_hi=
25239 break
25241 ac_mid=`expr 2 '*' $ac_mid`
25244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25245 done
25246 else
25247 echo "$as_me: failed program was:" >&5
25248 sed 's/^/| /' conftest.$ac_ext >&5
25250 ac_lo= ac_hi=
25253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25257 # Binary search between lo and hi bounds.
25258 while test "x$ac_lo" != "x$ac_hi"; do
25259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25260 cat >conftest.$ac_ext <<_ACEOF
25261 /* confdefs.h. */
25262 _ACEOF
25263 cat confdefs.h >>conftest.$ac_ext
25264 cat >>conftest.$ac_ext <<_ACEOF
25265 /* end confdefs.h. */
25266 $ac_includes_default
25267 typedef unsigned char ac__type_sizeof_;
25269 main ()
25271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25272 test_array [0] = 0
25275 return 0;
25277 _ACEOF
25278 rm -f conftest.$ac_objext
25279 if { (ac_try="$ac_compile"
25280 case "(($ac_try" in
25281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282 *) ac_try_echo=$ac_try;;
25283 esac
25284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25285 (eval "$ac_compile") 2>conftest.er1
25286 ac_status=$?
25287 grep -v '^ *+' conftest.er1 >conftest.err
25288 rm -f conftest.er1
25289 cat conftest.err >&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); } &&
25292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25293 { (case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25296 esac
25297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25298 (eval "$ac_try") 2>&5
25299 ac_status=$?
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); }; } &&
25302 { ac_try='test -s conftest.$ac_objext'
25303 { (case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308 (eval "$ac_try") 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 ac_hi=$ac_mid
25313 else
25314 echo "$as_me: failed program was:" >&5
25315 sed 's/^/| /' conftest.$ac_ext >&5
25317 ac_lo=`expr '(' $ac_mid ')' + 1`
25320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 done
25322 case $ac_lo in
25323 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
25324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25325 See \`config.log' for more details." >&5
25326 echo "$as_me: error: cannot compute sizeof (unsigned char)
25327 See \`config.log' for more details." >&2;}
25328 { (exit 77); exit 77; }; } ;;
25329 esac
25330 else
25331 cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h. */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25338 typedef unsigned char ac__type_sizeof_;
25339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25341 #include <stdio.h>
25342 #include <stdlib.h>
25344 main ()
25347 FILE *f = fopen ("conftest.val", "w");
25348 if (! f)
25349 return 1;
25350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25352 long int i = longval ();
25353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25354 return 1;
25355 fprintf (f, "%ld\n", i);
25357 else
25359 unsigned long int i = ulongval ();
25360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25361 return 1;
25362 fprintf (f, "%lu\n", i);
25364 return ferror (f) || fclose (f) != 0;
25367 return 0;
25369 _ACEOF
25370 rm -f conftest$ac_exeext
25371 if { (ac_try="$ac_link"
25372 case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25375 esac
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377 (eval "$ac_link") 2>&5
25378 ac_status=$?
25379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25381 { (case "(($ac_try" in
25382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383 *) ac_try_echo=$ac_try;;
25384 esac
25385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25386 (eval "$ac_try") 2>&5
25387 ac_status=$?
25388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); }; }; then
25390 ac_cv_sizeof_unsigned_char=`cat conftest.val`
25391 else
25392 echo "$as_me: program exited with status $ac_status" >&5
25393 echo "$as_me: failed program was:" >&5
25394 sed 's/^/| /' conftest.$ac_ext >&5
25396 ( exit $ac_status )
25397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25398 See \`config.log' for more details." >&5
25399 echo "$as_me: error: cannot compute sizeof (unsigned char)
25400 See \`config.log' for more details." >&2;}
25401 { (exit 77); exit 77; }; }
25403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25405 rm -f conftest.val
25406 else
25407 ac_cv_sizeof_unsigned_char=0
25410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
25411 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
25412 cat >>confdefs.h <<_ACEOF
25413 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
25414 _ACEOF
25417 { echo "$as_me:$LINENO: checking for unsigned short" >&5
25418 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
25419 if test "${ac_cv_type_unsigned_short+set}" = set; then
25420 echo $ECHO_N "(cached) $ECHO_C" >&6
25421 else
25422 cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h. */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h. */
25428 $ac_includes_default
25429 typedef unsigned short ac__type_new_;
25431 main ()
25433 if ((ac__type_new_ *) 0)
25434 return 0;
25435 if (sizeof (ac__type_new_))
25436 return 0;
25438 return 0;
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_compile") 2>conftest.er1
25449 ac_status=$?
25450 grep -v '^ *+' conftest.er1 >conftest.err
25451 rm -f conftest.er1
25452 cat conftest.err >&5
25453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454 (exit $ac_status); } &&
25455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25456 { (case "(($ac_try" in
25457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458 *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461 (eval "$ac_try") 2>&5
25462 ac_status=$?
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); }; } &&
25465 { ac_try='test -s conftest.$ac_objext'
25466 { (case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25469 esac
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471 (eval "$ac_try") 2>&5
25472 ac_status=$?
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); }; }; then
25475 ac_cv_type_unsigned_short=yes
25476 else
25477 echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25480 ac_cv_type_unsigned_short=no
25483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
25486 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
25488 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
25489 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
25490 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493 if test "$ac_cv_type_unsigned_short" = yes; then
25494 # The cast to long int works around a bug in the HP C Compiler
25495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25497 # This bug is HP SR number 8606223364.
25498 if test "$cross_compiling" = yes; then
25499 # Depending upon the size, compute the lo and hi bounds.
25500 cat >conftest.$ac_ext <<_ACEOF
25501 /* confdefs.h. */
25502 _ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h. */
25506 $ac_includes_default
25507 typedef unsigned short ac__type_sizeof_;
25509 main ()
25511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25512 test_array [0] = 0
25515 return 0;
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (ac_try="$ac_compile"
25520 case "(($ac_try" in
25521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25522 *) ac_try_echo=$ac_try;;
25523 esac
25524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25526 ac_status=$?
25527 grep -v '^ *+' conftest.er1 >conftest.err
25528 rm -f conftest.er1
25529 cat conftest.err >&5
25530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } &&
25532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25533 { (case "(($ac_try" in
25534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535 *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538 (eval "$ac_try") 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }; } &&
25542 { ac_try='test -s conftest.$ac_objext'
25543 { (case "(($ac_try" in
25544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545 *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548 (eval "$ac_try") 2>&5
25549 ac_status=$?
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; }; then
25552 ac_lo=0 ac_mid=0
25553 while :; do
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h. */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560 $ac_includes_default
25561 typedef unsigned short ac__type_sizeof_;
25563 main ()
25565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25566 test_array [0] = 0
25569 return 0;
25571 _ACEOF
25572 rm -f conftest.$ac_objext
25573 if { (ac_try="$ac_compile"
25574 case "(($ac_try" in
25575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576 *) ac_try_echo=$ac_try;;
25577 esac
25578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25579 (eval "$ac_compile") 2>conftest.er1
25580 ac_status=$?
25581 grep -v '^ *+' conftest.er1 >conftest.err
25582 rm -f conftest.er1
25583 cat conftest.err >&5
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } &&
25586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25587 { (case "(($ac_try" in
25588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589 *) ac_try_echo=$ac_try;;
25590 esac
25591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25592 (eval "$ac_try") 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; } &&
25596 { ac_try='test -s conftest.$ac_objext'
25597 { (case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25600 esac
25601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25602 (eval "$ac_try") 2>&5
25603 ac_status=$?
25604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); }; }; then
25606 ac_hi=$ac_mid; break
25607 else
25608 echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25611 ac_lo=`expr $ac_mid + 1`
25612 if test $ac_lo -le $ac_mid; then
25613 ac_lo= ac_hi=
25614 break
25616 ac_mid=`expr 2 '*' $ac_mid + 1`
25619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620 done
25621 else
25622 echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631 $ac_includes_default
25632 typedef unsigned short ac__type_sizeof_;
25634 main ()
25636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25637 test_array [0] = 0
25640 return 0;
25642 _ACEOF
25643 rm -f conftest.$ac_objext
25644 if { (ac_try="$ac_compile"
25645 case "(($ac_try" in
25646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647 *) ac_try_echo=$ac_try;;
25648 esac
25649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25650 (eval "$ac_compile") 2>conftest.er1
25651 ac_status=$?
25652 grep -v '^ *+' conftest.er1 >conftest.err
25653 rm -f conftest.er1
25654 cat conftest.err >&5
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
25657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25658 { (case "(($ac_try" in
25659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660 *) ac_try_echo=$ac_try;;
25661 esac
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663 (eval "$ac_try") 2>&5
25664 ac_status=$?
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; } &&
25667 { ac_try='test -s conftest.$ac_objext'
25668 { (case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_try") 2>&5
25674 ac_status=$?
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; }; then
25677 ac_hi=-1 ac_mid=-1
25678 while :; do
25679 cat >conftest.$ac_ext <<_ACEOF
25680 /* confdefs.h. */
25681 _ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25685 $ac_includes_default
25686 typedef unsigned short ac__type_sizeof_;
25688 main ()
25690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25691 test_array [0] = 0
25694 return 0;
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25702 esac
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704 (eval "$ac_compile") 2>conftest.er1
25705 ac_status=$?
25706 grep -v '^ *+' conftest.er1 >conftest.err
25707 rm -f conftest.er1
25708 cat conftest.err >&5
25709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710 (exit $ac_status); } &&
25711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25712 { (case "(($ac_try" in
25713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25715 esac
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717 (eval "$ac_try") 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest.$ac_objext'
25722 { (case "(($ac_try" in
25723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25724 *) ac_try_echo=$ac_try;;
25725 esac
25726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25727 (eval "$ac_try") 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; }; then
25731 ac_lo=$ac_mid; break
25732 else
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25736 ac_hi=`expr '(' $ac_mid ')' - 1`
25737 if test $ac_mid -le $ac_hi; then
25738 ac_lo= ac_hi=
25739 break
25741 ac_mid=`expr 2 '*' $ac_mid`
25744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25745 done
25746 else
25747 echo "$as_me: failed program was:" >&5
25748 sed 's/^/| /' conftest.$ac_ext >&5
25750 ac_lo= ac_hi=
25753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 # Binary search between lo and hi bounds.
25758 while test "x$ac_lo" != "x$ac_hi"; do
25759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25760 cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h. */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25766 $ac_includes_default
25767 typedef unsigned short ac__type_sizeof_;
25769 main ()
25771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25772 test_array [0] = 0
25775 return 0;
25777 _ACEOF
25778 rm -f conftest.$ac_objext
25779 if { (ac_try="$ac_compile"
25780 case "(($ac_try" in
25781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25782 *) ac_try_echo=$ac_try;;
25783 esac
25784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25785 (eval "$ac_compile") 2>conftest.er1
25786 ac_status=$?
25787 grep -v '^ *+' conftest.er1 >conftest.err
25788 rm -f conftest.er1
25789 cat conftest.err >&5
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); } &&
25792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25793 { (case "(($ac_try" in
25794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795 *) ac_try_echo=$ac_try;;
25796 esac
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798 (eval "$ac_try") 2>&5
25799 ac_status=$?
25800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); }; } &&
25802 { ac_try='test -s conftest.$ac_objext'
25803 { (case "(($ac_try" in
25804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25805 *) ac_try_echo=$ac_try;;
25806 esac
25807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25808 (eval "$ac_try") 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_hi=$ac_mid
25813 else
25814 echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25817 ac_lo=`expr '(' $ac_mid ')' + 1`
25820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25821 done
25822 case $ac_lo in
25823 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25825 See \`config.log' for more details." >&5
25826 echo "$as_me: error: cannot compute sizeof (unsigned short)
25827 See \`config.log' for more details." >&2;}
25828 { (exit 77); exit 77; }; } ;;
25829 esac
25830 else
25831 cat >conftest.$ac_ext <<_ACEOF
25832 /* confdefs.h. */
25833 _ACEOF
25834 cat confdefs.h >>conftest.$ac_ext
25835 cat >>conftest.$ac_ext <<_ACEOF
25836 /* end confdefs.h. */
25837 $ac_includes_default
25838 typedef unsigned short ac__type_sizeof_;
25839 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25840 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25841 #include <stdio.h>
25842 #include <stdlib.h>
25844 main ()
25847 FILE *f = fopen ("conftest.val", "w");
25848 if (! f)
25849 return 1;
25850 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25852 long int i = longval ();
25853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25854 return 1;
25855 fprintf (f, "%ld\n", i);
25857 else
25859 unsigned long int i = ulongval ();
25860 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25861 return 1;
25862 fprintf (f, "%lu\n", i);
25864 return ferror (f) || fclose (f) != 0;
25867 return 0;
25869 _ACEOF
25870 rm -f conftest$ac_exeext
25871 if { (ac_try="$ac_link"
25872 case "(($ac_try" in
25873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874 *) ac_try_echo=$ac_try;;
25875 esac
25876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25877 (eval "$ac_link") 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25881 { (case "(($ac_try" in
25882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25883 *) ac_try_echo=$ac_try;;
25884 esac
25885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25886 (eval "$ac_try") 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25891 else
25892 echo "$as_me: program exited with status $ac_status" >&5
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 ( exit $ac_status )
25897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25898 See \`config.log' for more details." >&5
25899 echo "$as_me: error: cannot compute sizeof (unsigned short)
25900 See \`config.log' for more details." >&2;}
25901 { (exit 77); exit 77; }; }
25903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25905 rm -f conftest.val
25906 else
25907 ac_cv_sizeof_unsigned_short=0
25910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25911 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
25912 cat >>confdefs.h <<_ACEOF
25913 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25914 _ACEOF
25917 { echo "$as_me:$LINENO: checking for unsigned int" >&5
25918 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
25919 if test "${ac_cv_type_unsigned_int+set}" = set; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 else
25922 cat >conftest.$ac_ext <<_ACEOF
25923 /* confdefs.h. */
25924 _ACEOF
25925 cat confdefs.h >>conftest.$ac_ext
25926 cat >>conftest.$ac_ext <<_ACEOF
25927 /* end confdefs.h. */
25928 $ac_includes_default
25929 typedef unsigned int ac__type_new_;
25931 main ()
25933 if ((ac__type_new_ *) 0)
25934 return 0;
25935 if (sizeof (ac__type_new_))
25936 return 0;
25938 return 0;
25940 _ACEOF
25941 rm -f conftest.$ac_objext
25942 if { (ac_try="$ac_compile"
25943 case "(($ac_try" in
25944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945 *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948 (eval "$ac_compile") 2>conftest.er1
25949 ac_status=$?
25950 grep -v '^ *+' conftest.er1 >conftest.err
25951 rm -f conftest.er1
25952 cat conftest.err >&5
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); } &&
25955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25956 { (case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_try") 2>&5
25962 ac_status=$?
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; } &&
25965 { ac_try='test -s conftest.$ac_objext'
25966 { (case "(($ac_try" in
25967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968 *) ac_try_echo=$ac_try;;
25969 esac
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971 (eval "$ac_try") 2>&5
25972 ac_status=$?
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; }; then
25975 ac_cv_type_unsigned_int=yes
25976 else
25977 echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_cv_type_unsigned_int=no
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25985 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
25986 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
25988 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
25989 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
25990 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25992 else
25993 if test "$ac_cv_type_unsigned_int" = yes; then
25994 # The cast to long int works around a bug in the HP C Compiler
25995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25997 # This bug is HP SR number 8606223364.
25998 if test "$cross_compiling" = yes; then
25999 # Depending upon the size, compute the lo and hi bounds.
26000 cat >conftest.$ac_ext <<_ACEOF
26001 /* confdefs.h. */
26002 _ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 $ac_includes_default
26007 typedef unsigned int ac__type_sizeof_;
26009 main ()
26011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26012 test_array [0] = 0
26015 return 0;
26017 _ACEOF
26018 rm -f conftest.$ac_objext
26019 if { (ac_try="$ac_compile"
26020 case "(($ac_try" in
26021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022 *) ac_try_echo=$ac_try;;
26023 esac
26024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26025 (eval "$ac_compile") 2>conftest.er1
26026 ac_status=$?
26027 grep -v '^ *+' conftest.er1 >conftest.err
26028 rm -f conftest.er1
26029 cat conftest.err >&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26033 { (case "(($ac_try" in
26034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26035 *) ac_try_echo=$ac_try;;
26036 esac
26037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26038 (eval "$ac_try") 2>&5
26039 ac_status=$?
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; } &&
26042 { ac_try='test -s conftest.$ac_objext'
26043 { (case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26046 esac
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_try") 2>&5
26049 ac_status=$?
26050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26051 (exit $ac_status); }; }; then
26052 ac_lo=0 ac_mid=0
26053 while :; do
26054 cat >conftest.$ac_ext <<_ACEOF
26055 /* confdefs.h. */
26056 _ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h. */
26060 $ac_includes_default
26061 typedef unsigned int ac__type_sizeof_;
26063 main ()
26065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26066 test_array [0] = 0
26069 return 0;
26071 _ACEOF
26072 rm -f conftest.$ac_objext
26073 if { (ac_try="$ac_compile"
26074 case "(($ac_try" in
26075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26076 *) ac_try_echo=$ac_try;;
26077 esac
26078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26079 (eval "$ac_compile") 2>conftest.er1
26080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } &&
26086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26087 { (case "(($ac_try" in
26088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089 *) ac_try_echo=$ac_try;;
26090 esac
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092 (eval "$ac_try") 2>&5
26093 ac_status=$?
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); }; } &&
26096 { ac_try='test -s conftest.$ac_objext'
26097 { (case "(($ac_try" in
26098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26099 *) ac_try_echo=$ac_try;;
26100 esac
26101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26102 (eval "$ac_try") 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; }; then
26106 ac_hi=$ac_mid; break
26107 else
26108 echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26111 ac_lo=`expr $ac_mid + 1`
26112 if test $ac_lo -le $ac_mid; then
26113 ac_lo= ac_hi=
26114 break
26116 ac_mid=`expr 2 '*' $ac_mid + 1`
26119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26120 done
26121 else
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26125 cat >conftest.$ac_ext <<_ACEOF
26126 /* confdefs.h. */
26127 _ACEOF
26128 cat confdefs.h >>conftest.$ac_ext
26129 cat >>conftest.$ac_ext <<_ACEOF
26130 /* end confdefs.h. */
26131 $ac_includes_default
26132 typedef unsigned int ac__type_sizeof_;
26134 main ()
26136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26137 test_array [0] = 0
26140 return 0;
26142 _ACEOF
26143 rm -f conftest.$ac_objext
26144 if { (ac_try="$ac_compile"
26145 case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26148 esac
26149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150 (eval "$ac_compile") 2>conftest.er1
26151 ac_status=$?
26152 grep -v '^ *+' conftest.er1 >conftest.err
26153 rm -f conftest.er1
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } &&
26157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26158 { (case "(($ac_try" in
26159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160 *) ac_try_echo=$ac_try;;
26161 esac
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163 (eval "$ac_try") 2>&5
26164 ac_status=$?
26165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); }; } &&
26167 { ac_try='test -s conftest.$ac_objext'
26168 { (case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_try") 2>&5
26174 ac_status=$?
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); }; }; then
26177 ac_hi=-1 ac_mid=-1
26178 while :; do
26179 cat >conftest.$ac_ext <<_ACEOF
26180 /* confdefs.h. */
26181 _ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26185 $ac_includes_default
26186 typedef unsigned int ac__type_sizeof_;
26188 main ()
26190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26191 test_array [0] = 0
26194 return 0;
26196 _ACEOF
26197 rm -f conftest.$ac_objext
26198 if { (ac_try="$ac_compile"
26199 case "(($ac_try" in
26200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26201 *) ac_try_echo=$ac_try;;
26202 esac
26203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26205 ac_status=$?
26206 grep -v '^ *+' conftest.er1 >conftest.err
26207 rm -f conftest.er1
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } &&
26211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26212 { (case "(($ac_try" in
26213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26214 *) ac_try_echo=$ac_try;;
26215 esac
26216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26217 (eval "$ac_try") 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest.$ac_objext'
26222 { (case "(($ac_try" in
26223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26224 *) ac_try_echo=$ac_try;;
26225 esac
26226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26227 (eval "$ac_try") 2>&5
26228 ac_status=$?
26229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26230 (exit $ac_status); }; }; then
26231 ac_lo=$ac_mid; break
26232 else
26233 echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26236 ac_hi=`expr '(' $ac_mid ')' - 1`
26237 if test $ac_mid -le $ac_hi; then
26238 ac_lo= ac_hi=
26239 break
26241 ac_mid=`expr 2 '*' $ac_mid`
26244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26245 done
26246 else
26247 echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26250 ac_lo= ac_hi=
26253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 # Binary search between lo and hi bounds.
26258 while test "x$ac_lo" != "x$ac_hi"; do
26259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26260 cat >conftest.$ac_ext <<_ACEOF
26261 /* confdefs.h. */
26262 _ACEOF
26263 cat confdefs.h >>conftest.$ac_ext
26264 cat >>conftest.$ac_ext <<_ACEOF
26265 /* end confdefs.h. */
26266 $ac_includes_default
26267 typedef unsigned int ac__type_sizeof_;
26269 main ()
26271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26272 test_array [0] = 0
26275 return 0;
26277 _ACEOF
26278 rm -f conftest.$ac_objext
26279 if { (ac_try="$ac_compile"
26280 case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26283 esac
26284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26285 (eval "$ac_compile") 2>conftest.er1
26286 ac_status=$?
26287 grep -v '^ *+' conftest.er1 >conftest.err
26288 rm -f conftest.er1
26289 cat conftest.err >&5
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
26292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26293 { (case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26296 esac
26297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298 (eval "$ac_try") 2>&5
26299 ac_status=$?
26300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301 (exit $ac_status); }; } &&
26302 { ac_try='test -s conftest.$ac_objext'
26303 { (case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26306 esac
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_try") 2>&5
26309 ac_status=$?
26310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26311 (exit $ac_status); }; }; then
26312 ac_hi=$ac_mid
26313 else
26314 echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26317 ac_lo=`expr '(' $ac_mid ')' + 1`
26320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26321 done
26322 case $ac_lo in
26323 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
26324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26325 See \`config.log' for more details." >&5
26326 echo "$as_me: error: cannot compute sizeof (unsigned int)
26327 See \`config.log' for more details." >&2;}
26328 { (exit 77); exit 77; }; } ;;
26329 esac
26330 else
26331 cat >conftest.$ac_ext <<_ACEOF
26332 /* confdefs.h. */
26333 _ACEOF
26334 cat confdefs.h >>conftest.$ac_ext
26335 cat >>conftest.$ac_ext <<_ACEOF
26336 /* end confdefs.h. */
26337 $ac_includes_default
26338 typedef unsigned int ac__type_sizeof_;
26339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26341 #include <stdio.h>
26342 #include <stdlib.h>
26344 main ()
26347 FILE *f = fopen ("conftest.val", "w");
26348 if (! f)
26349 return 1;
26350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26352 long int i = longval ();
26353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26354 return 1;
26355 fprintf (f, "%ld\n", i);
26357 else
26359 unsigned long int i = ulongval ();
26360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26361 return 1;
26362 fprintf (f, "%lu\n", i);
26364 return ferror (f) || fclose (f) != 0;
26367 return 0;
26369 _ACEOF
26370 rm -f conftest$ac_exeext
26371 if { (ac_try="$ac_link"
26372 case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375 esac
26376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26377 (eval "$ac_link") 2>&5
26378 ac_status=$?
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26381 { (case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26384 esac
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_try") 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_cv_sizeof_unsigned_int=`cat conftest.val`
26391 else
26392 echo "$as_me: program exited with status $ac_status" >&5
26393 echo "$as_me: failed program was:" >&5
26394 sed 's/^/| /' conftest.$ac_ext >&5
26396 ( exit $ac_status )
26397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26398 See \`config.log' for more details." >&5
26399 echo "$as_me: error: cannot compute sizeof (unsigned int)
26400 See \`config.log' for more details." >&2;}
26401 { (exit 77); exit 77; }; }
26403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26405 rm -f conftest.val
26406 else
26407 ac_cv_sizeof_unsigned_int=0
26410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
26411 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
26412 cat >>confdefs.h <<_ACEOF
26413 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26414 _ACEOF
26417 { echo "$as_me:$LINENO: checking for unsigned long" >&5
26418 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
26419 if test "${ac_cv_type_unsigned_long+set}" = set; then
26420 echo $ECHO_N "(cached) $ECHO_C" >&6
26421 else
26422 cat >conftest.$ac_ext <<_ACEOF
26423 /* confdefs.h. */
26424 _ACEOF
26425 cat confdefs.h >>conftest.$ac_ext
26426 cat >>conftest.$ac_ext <<_ACEOF
26427 /* end confdefs.h. */
26428 $ac_includes_default
26429 typedef unsigned long ac__type_new_;
26431 main ()
26433 if ((ac__type_new_ *) 0)
26434 return 0;
26435 if (sizeof (ac__type_new_))
26436 return 0;
26438 return 0;
26440 _ACEOF
26441 rm -f conftest.$ac_objext
26442 if { (ac_try="$ac_compile"
26443 case "(($ac_try" in
26444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26445 *) ac_try_echo=$ac_try;;
26446 esac
26447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26448 (eval "$ac_compile") 2>conftest.er1
26449 ac_status=$?
26450 grep -v '^ *+' conftest.er1 >conftest.err
26451 rm -f conftest.er1
26452 cat conftest.err >&5
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); } &&
26455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26456 { (case "(($ac_try" in
26457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461 (eval "$ac_try") 2>&5
26462 ac_status=$?
26463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464 (exit $ac_status); }; } &&
26465 { ac_try='test -s conftest.$ac_objext'
26466 { (case "(($ac_try" in
26467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468 *) ac_try_echo=$ac_try;;
26469 esac
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471 (eval "$ac_try") 2>&5
26472 ac_status=$?
26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474 (exit $ac_status); }; }; then
26475 ac_cv_type_unsigned_long=yes
26476 else
26477 echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26480 ac_cv_type_unsigned_long=no
26483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
26486 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
26488 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
26489 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
26490 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26491 echo $ECHO_N "(cached) $ECHO_C" >&6
26492 else
26493 if test "$ac_cv_type_unsigned_long" = yes; then
26494 # The cast to long int works around a bug in the HP C Compiler
26495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26497 # This bug is HP SR number 8606223364.
26498 if test "$cross_compiling" = yes; then
26499 # Depending upon the size, compute the lo and hi bounds.
26500 cat >conftest.$ac_ext <<_ACEOF
26501 /* confdefs.h. */
26502 _ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h. */
26506 $ac_includes_default
26507 typedef unsigned long ac__type_sizeof_;
26509 main ()
26511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26512 test_array [0] = 0
26515 return 0;
26517 _ACEOF
26518 rm -f conftest.$ac_objext
26519 if { (ac_try="$ac_compile"
26520 case "(($ac_try" in
26521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522 *) ac_try_echo=$ac_try;;
26523 esac
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525 (eval "$ac_compile") 2>conftest.er1
26526 ac_status=$?
26527 grep -v '^ *+' conftest.er1 >conftest.err
26528 rm -f conftest.er1
26529 cat conftest.err >&5
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } &&
26532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26533 { (case "(($ac_try" in
26534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535 *) ac_try_echo=$ac_try;;
26536 esac
26537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538 (eval "$ac_try") 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (case "(($ac_try" in
26544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545 *) ac_try_echo=$ac_try;;
26546 esac
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548 (eval "$ac_try") 2>&5
26549 ac_status=$?
26550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551 (exit $ac_status); }; }; then
26552 ac_lo=0 ac_mid=0
26553 while :; do
26554 cat >conftest.$ac_ext <<_ACEOF
26555 /* confdefs.h. */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h. */
26560 $ac_includes_default
26561 typedef unsigned long ac__type_sizeof_;
26563 main ()
26565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26566 test_array [0] = 0
26569 return 0;
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_compile") 2>conftest.er1
26580 ac_status=$?
26581 grep -v '^ *+' conftest.er1 >conftest.err
26582 rm -f conftest.er1
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } &&
26586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26587 { (case "(($ac_try" in
26588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26589 *) ac_try_echo=$ac_try;;
26590 esac
26591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26592 (eval "$ac_try") 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; } &&
26596 { ac_try='test -s conftest.$ac_objext'
26597 { (case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26600 esac
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_try") 2>&5
26603 ac_status=$?
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); }; }; then
26606 ac_hi=$ac_mid; break
26607 else
26608 echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26611 ac_lo=`expr $ac_mid + 1`
26612 if test $ac_lo -le $ac_mid; then
26613 ac_lo= ac_hi=
26614 break
26616 ac_mid=`expr 2 '*' $ac_mid + 1`
26619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26620 done
26621 else
26622 echo "$as_me: failed program was:" >&5
26623 sed 's/^/| /' conftest.$ac_ext >&5
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h. */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26632 typedef unsigned long ac__type_sizeof_;
26634 main ()
26636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26637 test_array [0] = 0
26640 return 0;
26642 _ACEOF
26643 rm -f conftest.$ac_objext
26644 if { (ac_try="$ac_compile"
26645 case "(($ac_try" in
26646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647 *) ac_try_echo=$ac_try;;
26648 esac
26649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26650 (eval "$ac_compile") 2>conftest.er1
26651 ac_status=$?
26652 grep -v '^ *+' conftest.er1 >conftest.err
26653 rm -f conftest.er1
26654 cat conftest.err >&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } &&
26657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26658 { (case "(($ac_try" in
26659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660 *) ac_try_echo=$ac_try;;
26661 esac
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663 (eval "$ac_try") 2>&5
26664 ac_status=$?
26665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; } &&
26667 { ac_try='test -s conftest.$ac_objext'
26668 { (case "(($ac_try" in
26669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26671 esac
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673 (eval "$ac_try") 2>&5
26674 ac_status=$?
26675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); }; }; then
26677 ac_hi=-1 ac_mid=-1
26678 while :; do
26679 cat >conftest.$ac_ext <<_ACEOF
26680 /* confdefs.h. */
26681 _ACEOF
26682 cat confdefs.h >>conftest.$ac_ext
26683 cat >>conftest.$ac_ext <<_ACEOF
26684 /* end confdefs.h. */
26685 $ac_includes_default
26686 typedef unsigned long ac__type_sizeof_;
26688 main ()
26690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26691 test_array [0] = 0
26694 return 0;
26696 _ACEOF
26697 rm -f conftest.$ac_objext
26698 if { (ac_try="$ac_compile"
26699 case "(($ac_try" in
26700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26701 *) ac_try_echo=$ac_try;;
26702 esac
26703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26704 (eval "$ac_compile") 2>conftest.er1
26705 ac_status=$?
26706 grep -v '^ *+' conftest.er1 >conftest.err
26707 rm -f conftest.er1
26708 cat conftest.err >&5
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } &&
26711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26712 { (case "(($ac_try" in
26713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26714 *) ac_try_echo=$ac_try;;
26715 esac
26716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26717 (eval "$ac_try") 2>&5
26718 ac_status=$?
26719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 (exit $ac_status); }; } &&
26721 { ac_try='test -s conftest.$ac_objext'
26722 { (case "(($ac_try" in
26723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26724 *) ac_try_echo=$ac_try;;
26725 esac
26726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26727 (eval "$ac_try") 2>&5
26728 ac_status=$?
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); }; }; then
26731 ac_lo=$ac_mid; break
26732 else
26733 echo "$as_me: failed program was:" >&5
26734 sed 's/^/| /' conftest.$ac_ext >&5
26736 ac_hi=`expr '(' $ac_mid ')' - 1`
26737 if test $ac_mid -le $ac_hi; then
26738 ac_lo= ac_hi=
26739 break
26741 ac_mid=`expr 2 '*' $ac_mid`
26744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26745 done
26746 else
26747 echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26750 ac_lo= ac_hi=
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 # Binary search between lo and hi bounds.
26758 while test "x$ac_lo" != "x$ac_hi"; do
26759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26760 cat >conftest.$ac_ext <<_ACEOF
26761 /* confdefs.h. */
26762 _ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h. */
26766 $ac_includes_default
26767 typedef unsigned long ac__type_sizeof_;
26769 main ()
26771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26772 test_array [0] = 0
26775 return 0;
26777 _ACEOF
26778 rm -f conftest.$ac_objext
26779 if { (ac_try="$ac_compile"
26780 case "(($ac_try" in
26781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782 *) ac_try_echo=$ac_try;;
26783 esac
26784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26785 (eval "$ac_compile") 2>conftest.er1
26786 ac_status=$?
26787 grep -v '^ *+' conftest.er1 >conftest.err
26788 rm -f conftest.er1
26789 cat conftest.err >&5
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); } &&
26792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26793 { (case "(($ac_try" in
26794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26795 *) ac_try_echo=$ac_try;;
26796 esac
26797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26798 (eval "$ac_try") 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; } &&
26802 { ac_try='test -s conftest.$ac_objext'
26803 { (case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26806 esac
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808 (eval "$ac_try") 2>&5
26809 ac_status=$?
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; }; then
26812 ac_hi=$ac_mid
26813 else
26814 echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.$ac_ext >&5
26817 ac_lo=`expr '(' $ac_mid ')' + 1`
26820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821 done
26822 case $ac_lo in
26823 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26825 See \`config.log' for more details." >&5
26826 echo "$as_me: error: cannot compute sizeof (unsigned long)
26827 See \`config.log' for more details." >&2;}
26828 { (exit 77); exit 77; }; } ;;
26829 esac
26830 else
26831 cat >conftest.$ac_ext <<_ACEOF
26832 /* confdefs.h. */
26833 _ACEOF
26834 cat confdefs.h >>conftest.$ac_ext
26835 cat >>conftest.$ac_ext <<_ACEOF
26836 /* end confdefs.h. */
26837 $ac_includes_default
26838 typedef unsigned long ac__type_sizeof_;
26839 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26840 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26841 #include <stdio.h>
26842 #include <stdlib.h>
26844 main ()
26847 FILE *f = fopen ("conftest.val", "w");
26848 if (! f)
26849 return 1;
26850 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26852 long int i = longval ();
26853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26854 return 1;
26855 fprintf (f, "%ld\n", i);
26857 else
26859 unsigned long int i = ulongval ();
26860 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26861 return 1;
26862 fprintf (f, "%lu\n", i);
26864 return ferror (f) || fclose (f) != 0;
26867 return 0;
26869 _ACEOF
26870 rm -f conftest$ac_exeext
26871 if { (ac_try="$ac_link"
26872 case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26875 esac
26876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_link") 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26881 { (case "(($ac_try" in
26882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26883 *) ac_try_echo=$ac_try;;
26884 esac
26885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26886 (eval "$ac_try") 2>&5
26887 ac_status=$?
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); }; }; then
26890 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26891 else
26892 echo "$as_me: program exited with status $ac_status" >&5
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 ( exit $ac_status )
26897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26898 See \`config.log' for more details." >&5
26899 echo "$as_me: error: cannot compute sizeof (unsigned long)
26900 See \`config.log' for more details." >&2;}
26901 { (exit 77); exit 77; }; }
26903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26905 rm -f conftest.val
26906 else
26907 ac_cv_sizeof_unsigned_long=0
26910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26911 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
26912 cat >>confdefs.h <<_ACEOF
26913 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26914 _ACEOF
26917 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
26918 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
26919 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26920 echo $ECHO_N "(cached) $ECHO_C" >&6
26921 else
26922 cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h. */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h. */
26928 $ac_includes_default
26929 typedef unsigned long long ac__type_new_;
26931 main ()
26933 if ((ac__type_new_ *) 0)
26934 return 0;
26935 if (sizeof (ac__type_new_))
26936 return 0;
26938 return 0;
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945 *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948 (eval "$ac_compile") 2>conftest.er1
26949 ac_status=$?
26950 grep -v '^ *+' conftest.er1 >conftest.err
26951 rm -f conftest.er1
26952 cat conftest.err >&5
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); } &&
26955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26956 { (case "(($ac_try" in
26957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26958 *) ac_try_echo=$ac_try;;
26959 esac
26960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26961 (eval "$ac_try") 2>&5
26962 ac_status=$?
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; } &&
26965 { ac_try='test -s conftest.$ac_objext'
26966 { (case "(($ac_try" in
26967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968 *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971 (eval "$ac_try") 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; }; then
26975 ac_cv_type_unsigned_long_long=yes
26976 else
26977 echo "$as_me: failed program was:" >&5
26978 sed 's/^/| /' conftest.$ac_ext >&5
26980 ac_cv_type_unsigned_long_long=no
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26985 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26986 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
26988 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26989 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
26990 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26991 echo $ECHO_N "(cached) $ECHO_C" >&6
26992 else
26993 if test "$ac_cv_type_unsigned_long_long" = yes; then
26994 # The cast to long int works around a bug in the HP C Compiler
26995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26997 # This bug is HP SR number 8606223364.
26998 if test "$cross_compiling" = yes; then
26999 # Depending upon the size, compute the lo and hi bounds.
27000 cat >conftest.$ac_ext <<_ACEOF
27001 /* confdefs.h. */
27002 _ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h. */
27006 $ac_includes_default
27007 typedef unsigned long long ac__type_sizeof_;
27009 main ()
27011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27012 test_array [0] = 0
27015 return 0;
27017 _ACEOF
27018 rm -f conftest.$ac_objext
27019 if { (ac_try="$ac_compile"
27020 case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_compile") 2>conftest.er1
27026 ac_status=$?
27027 grep -v '^ *+' conftest.er1 >conftest.err
27028 rm -f conftest.er1
27029 cat conftest.err >&5
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); } &&
27032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; } &&
27042 { ac_try='test -s conftest.$ac_objext'
27043 { (case "(($ac_try" in
27044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045 *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048 (eval "$ac_try") 2>&5
27049 ac_status=$?
27050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051 (exit $ac_status); }; }; then
27052 ac_lo=0 ac_mid=0
27053 while :; do
27054 cat >conftest.$ac_ext <<_ACEOF
27055 /* confdefs.h. */
27056 _ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h. */
27060 $ac_includes_default
27061 typedef unsigned long long ac__type_sizeof_;
27063 main ()
27065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27066 test_array [0] = 0
27069 return 0;
27071 _ACEOF
27072 rm -f conftest.$ac_objext
27073 if { (ac_try="$ac_compile"
27074 case "(($ac_try" in
27075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27076 *) ac_try_echo=$ac_try;;
27077 esac
27078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27079 (eval "$ac_compile") 2>conftest.er1
27080 ac_status=$?
27081 grep -v '^ *+' conftest.er1 >conftest.err
27082 rm -f conftest.er1
27083 cat conftest.err >&5
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); } &&
27086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27087 { (case "(($ac_try" in
27088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089 *) ac_try_echo=$ac_try;;
27090 esac
27091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092 (eval "$ac_try") 2>&5
27093 ac_status=$?
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); }; } &&
27096 { ac_try='test -s conftest.$ac_objext'
27097 { (case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27100 esac
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102 (eval "$ac_try") 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; }; then
27106 ac_hi=$ac_mid; break
27107 else
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27111 ac_lo=`expr $ac_mid + 1`
27112 if test $ac_lo -le $ac_mid; then
27113 ac_lo= ac_hi=
27114 break
27116 ac_mid=`expr 2 '*' $ac_mid + 1`
27119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27120 done
27121 else
27122 echo "$as_me: failed program was:" >&5
27123 sed 's/^/| /' conftest.$ac_ext >&5
27125 cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h. */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27131 $ac_includes_default
27132 typedef unsigned long long ac__type_sizeof_;
27134 main ()
27136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27137 test_array [0] = 0
27140 return 0;
27142 _ACEOF
27143 rm -f conftest.$ac_objext
27144 if { (ac_try="$ac_compile"
27145 case "(($ac_try" in
27146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147 *) ac_try_echo=$ac_try;;
27148 esac
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150 (eval "$ac_compile") 2>conftest.er1
27151 ac_status=$?
27152 grep -v '^ *+' conftest.er1 >conftest.err
27153 rm -f conftest.er1
27154 cat conftest.err >&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } &&
27157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27158 { (case "(($ac_try" in
27159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27160 *) ac_try_echo=$ac_try;;
27161 esac
27162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27163 (eval "$ac_try") 2>&5
27164 ac_status=$?
27165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166 (exit $ac_status); }; } &&
27167 { ac_try='test -s conftest.$ac_objext'
27168 { (case "(($ac_try" in
27169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27170 *) ac_try_echo=$ac_try;;
27171 esac
27172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27173 (eval "$ac_try") 2>&5
27174 ac_status=$?
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; }; then
27177 ac_hi=-1 ac_mid=-1
27178 while :; do
27179 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h. */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h. */
27185 $ac_includes_default
27186 typedef unsigned long long ac__type_sizeof_;
27188 main ()
27190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27191 test_array [0] = 0
27194 return 0;
27196 _ACEOF
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27202 esac
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_compile") 2>conftest.er1
27205 ac_status=$?
27206 grep -v '^ *+' conftest.er1 >conftest.err
27207 rm -f conftest.er1
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } &&
27211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27212 { (case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_try") 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest.$ac_objext'
27222 { (case "(($ac_try" in
27223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224 *) ac_try_echo=$ac_try;;
27225 esac
27226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27227 (eval "$ac_try") 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_lo=$ac_mid; break
27232 else
27233 echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27236 ac_hi=`expr '(' $ac_mid ')' - 1`
27237 if test $ac_mid -le $ac_hi; then
27238 ac_lo= ac_hi=
27239 break
27241 ac_mid=`expr 2 '*' $ac_mid`
27244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27245 done
27246 else
27247 echo "$as_me: failed program was:" >&5
27248 sed 's/^/| /' conftest.$ac_ext >&5
27250 ac_lo= ac_hi=
27253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27257 # Binary search between lo and hi bounds.
27258 while test "x$ac_lo" != "x$ac_hi"; do
27259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27260 cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h. */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h. */
27266 $ac_includes_default
27267 typedef unsigned long long ac__type_sizeof_;
27269 main ()
27271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27272 test_array [0] = 0
27275 return 0;
27277 _ACEOF
27278 rm -f conftest.$ac_objext
27279 if { (ac_try="$ac_compile"
27280 case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_compile") 2>conftest.er1
27286 ac_status=$?
27287 grep -v '^ *+' conftest.er1 >conftest.err
27288 rm -f conftest.er1
27289 cat conftest.err >&5
27290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291 (exit $ac_status); } &&
27292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27293 { (case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27296 esac
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298 (eval "$ac_try") 2>&5
27299 ac_status=$?
27300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); }; } &&
27302 { ac_try='test -s conftest.$ac_objext'
27303 { (case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27306 esac
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_try") 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_hi=$ac_mid
27313 else
27314 echo "$as_me: failed program was:" >&5
27315 sed 's/^/| /' conftest.$ac_ext >&5
27317 ac_lo=`expr '(' $ac_mid ')' + 1`
27320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27321 done
27322 case $ac_lo in
27323 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27325 See \`config.log' for more details." >&5
27326 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27327 See \`config.log' for more details." >&2;}
27328 { (exit 77); exit 77; }; } ;;
27329 esac
27330 else
27331 cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h. */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27337 $ac_includes_default
27338 typedef unsigned long long ac__type_sizeof_;
27339 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27340 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27341 #include <stdio.h>
27342 #include <stdlib.h>
27344 main ()
27347 FILE *f = fopen ("conftest.val", "w");
27348 if (! f)
27349 return 1;
27350 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27352 long int i = longval ();
27353 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27354 return 1;
27355 fprintf (f, "%ld\n", i);
27357 else
27359 unsigned long int i = ulongval ();
27360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27361 return 1;
27362 fprintf (f, "%lu\n", i);
27364 return ferror (f) || fclose (f) != 0;
27367 return 0;
27369 _ACEOF
27370 rm -f conftest$ac_exeext
27371 if { (ac_try="$ac_link"
27372 case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375 esac
27376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27377 (eval "$ac_link") 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27384 esac
27385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27387 ac_status=$?
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; }; then
27390 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27391 else
27392 echo "$as_me: program exited with status $ac_status" >&5
27393 echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27396 ( exit $ac_status )
27397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27398 See \`config.log' for more details." >&5
27399 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27400 See \`config.log' for more details." >&2;}
27401 { (exit 77); exit 77; }; }
27403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27405 rm -f conftest.val
27406 else
27407 ac_cv_sizeof_unsigned_long_long=0
27410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27411 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
27412 cat >>confdefs.h <<_ACEOF
27413 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27414 _ACEOF
27417 { echo "$as_me:$LINENO: checking for int *" >&5
27418 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
27419 if test "${ac_cv_type_int_p+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27421 else
27422 cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h. */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h. */
27428 $ac_includes_default
27429 typedef int * ac__type_new_;
27431 main ()
27433 if ((ac__type_new_ *) 0)
27434 return 0;
27435 if (sizeof (ac__type_new_))
27436 return 0;
27438 return 0;
27440 _ACEOF
27441 rm -f conftest.$ac_objext
27442 if { (ac_try="$ac_compile"
27443 case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446 esac
27447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_compile") 2>conftest.er1
27449 ac_status=$?
27450 grep -v '^ *+' conftest.er1 >conftest.err
27451 rm -f conftest.er1
27452 cat conftest.err >&5
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } &&
27455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27456 { (case "(($ac_try" in
27457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458 *) ac_try_echo=$ac_try;;
27459 esac
27460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27461 (eval "$ac_try") 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest.$ac_objext'
27466 { (case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469 esac
27470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_try") 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
27475 ac_cv_type_int_p=yes
27476 else
27477 echo "$as_me: failed program was:" >&5
27478 sed 's/^/| /' conftest.$ac_ext >&5
27480 ac_cv_type_int_p=no
27483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
27486 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
27488 { echo "$as_me:$LINENO: checking size of int *" >&5
27489 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
27490 if test "${ac_cv_sizeof_int_p+set}" = set; then
27491 echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493 if test "$ac_cv_type_int_p" = yes; then
27494 # The cast to long int works around a bug in the HP C Compiler
27495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27497 # This bug is HP SR number 8606223364.
27498 if test "$cross_compiling" = yes; then
27499 # Depending upon the size, compute the lo and hi bounds.
27500 cat >conftest.$ac_ext <<_ACEOF
27501 /* confdefs.h. */
27502 _ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h. */
27506 $ac_includes_default
27507 typedef int * ac__type_sizeof_;
27509 main ()
27511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27512 test_array [0] = 0
27515 return 0;
27517 _ACEOF
27518 rm -f conftest.$ac_objext
27519 if { (ac_try="$ac_compile"
27520 case "(($ac_try" in
27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522 *) ac_try_echo=$ac_try;;
27523 esac
27524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_compile") 2>conftest.er1
27526 ac_status=$?
27527 grep -v '^ *+' conftest.er1 >conftest.err
27528 rm -f conftest.er1
27529 cat conftest.err >&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } &&
27532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27533 { (case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27536 esac
27537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27538 (eval "$ac_try") 2>&5
27539 ac_status=$?
27540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541 (exit $ac_status); }; } &&
27542 { ac_try='test -s conftest.$ac_objext'
27543 { (case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27546 esac
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548 (eval "$ac_try") 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
27552 ac_lo=0 ac_mid=0
27553 while :; do
27554 cat >conftest.$ac_ext <<_ACEOF
27555 /* confdefs.h. */
27556 _ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h. */
27560 $ac_includes_default
27561 typedef int * ac__type_sizeof_;
27563 main ()
27565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27566 test_array [0] = 0
27569 return 0;
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576 *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579 (eval "$ac_compile") 2>conftest.er1
27580 ac_status=$?
27581 grep -v '^ *+' conftest.er1 >conftest.err
27582 rm -f conftest.er1
27583 cat conftest.err >&5
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } &&
27586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27587 { (case "(($ac_try" in
27588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27589 *) ac_try_echo=$ac_try;;
27590 esac
27591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27592 (eval "$ac_try") 2>&5
27593 ac_status=$?
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; } &&
27596 { ac_try='test -s conftest.$ac_objext'
27597 { (case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_try") 2>&5
27603 ac_status=$?
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; }; then
27606 ac_hi=$ac_mid; break
27607 else
27608 echo "$as_me: failed program was:" >&5
27609 sed 's/^/| /' conftest.$ac_ext >&5
27611 ac_lo=`expr $ac_mid + 1`
27612 if test $ac_lo -le $ac_mid; then
27613 ac_lo= ac_hi=
27614 break
27616 ac_mid=`expr 2 '*' $ac_mid + 1`
27619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27620 done
27621 else
27622 echo "$as_me: failed program was:" >&5
27623 sed 's/^/| /' conftest.$ac_ext >&5
27625 cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h. */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h. */
27631 $ac_includes_default
27632 typedef int * ac__type_sizeof_;
27634 main ()
27636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27637 test_array [0] = 0
27640 return 0;
27642 _ACEOF
27643 rm -f conftest.$ac_objext
27644 if { (ac_try="$ac_compile"
27645 case "(($ac_try" in
27646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647 *) ac_try_echo=$ac_try;;
27648 esac
27649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650 (eval "$ac_compile") 2>conftest.er1
27651 ac_status=$?
27652 grep -v '^ *+' conftest.er1 >conftest.err
27653 rm -f conftest.er1
27654 cat conftest.err >&5
27655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
27657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27658 { (case "(($ac_try" in
27659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27660 *) ac_try_echo=$ac_try;;
27661 esac
27662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27663 (eval "$ac_try") 2>&5
27664 ac_status=$?
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); }; } &&
27667 { ac_try='test -s conftest.$ac_objext'
27668 { (case "(($ac_try" in
27669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673 (eval "$ac_try") 2>&5
27674 ac_status=$?
27675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676 (exit $ac_status); }; }; then
27677 ac_hi=-1 ac_mid=-1
27678 while :; do
27679 cat >conftest.$ac_ext <<_ACEOF
27680 /* confdefs.h. */
27681 _ACEOF
27682 cat confdefs.h >>conftest.$ac_ext
27683 cat >>conftest.$ac_ext <<_ACEOF
27684 /* end confdefs.h. */
27685 $ac_includes_default
27686 typedef int * ac__type_sizeof_;
27688 main ()
27690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27691 test_array [0] = 0
27694 return 0;
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_compile") 2>conftest.er1
27705 ac_status=$?
27706 grep -v '^ *+' conftest.er1 >conftest.err
27707 rm -f conftest.er1
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27712 { (case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27715 esac
27716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_try") 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; } &&
27721 { ac_try='test -s conftest.$ac_objext'
27722 { (case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727 (eval "$ac_try") 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
27731 ac_lo=$ac_mid; break
27732 else
27733 echo "$as_me: failed program was:" >&5
27734 sed 's/^/| /' conftest.$ac_ext >&5
27736 ac_hi=`expr '(' $ac_mid ')' - 1`
27737 if test $ac_mid -le $ac_hi; then
27738 ac_lo= ac_hi=
27739 break
27741 ac_mid=`expr 2 '*' $ac_mid`
27744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27745 done
27746 else
27747 echo "$as_me: failed program was:" >&5
27748 sed 's/^/| /' conftest.$ac_ext >&5
27750 ac_lo= ac_hi=
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27757 # Binary search between lo and hi bounds.
27758 while test "x$ac_lo" != "x$ac_hi"; do
27759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27760 cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h. */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h. */
27766 $ac_includes_default
27767 typedef int * ac__type_sizeof_;
27769 main ()
27771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27772 test_array [0] = 0
27775 return 0;
27777 _ACEOF
27778 rm -f conftest.$ac_objext
27779 if { (ac_try="$ac_compile"
27780 case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785 (eval "$ac_compile") 2>conftest.er1
27786 ac_status=$?
27787 grep -v '^ *+' conftest.er1 >conftest.err
27788 rm -f conftest.er1
27789 cat conftest.err >&5
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } &&
27792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27793 { (case "(($ac_try" in
27794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795 *) ac_try_echo=$ac_try;;
27796 esac
27797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27798 (eval "$ac_try") 2>&5
27799 ac_status=$?
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
27802 { ac_try='test -s conftest.$ac_objext'
27803 { (case "(($ac_try" in
27804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805 *) ac_try_echo=$ac_try;;
27806 esac
27807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27808 (eval "$ac_try") 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 ac_hi=$ac_mid
27813 else
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27817 ac_lo=`expr '(' $ac_mid ')' + 1`
27820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27821 done
27822 case $ac_lo in
27823 ?*) ac_cv_sizeof_int_p=$ac_lo;;
27824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
27825 See \`config.log' for more details." >&5
27826 echo "$as_me: error: cannot compute sizeof (int *)
27827 See \`config.log' for more details." >&2;}
27828 { (exit 77); exit 77; }; } ;;
27829 esac
27830 else
27831 cat >conftest.$ac_ext <<_ACEOF
27832 /* confdefs.h. */
27833 _ACEOF
27834 cat confdefs.h >>conftest.$ac_ext
27835 cat >>conftest.$ac_ext <<_ACEOF
27836 /* end confdefs.h. */
27837 $ac_includes_default
27838 typedef int * ac__type_sizeof_;
27839 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27840 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27841 #include <stdio.h>
27842 #include <stdlib.h>
27844 main ()
27847 FILE *f = fopen ("conftest.val", "w");
27848 if (! f)
27849 return 1;
27850 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27852 long int i = longval ();
27853 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27854 return 1;
27855 fprintf (f, "%ld\n", i);
27857 else
27859 unsigned long int i = ulongval ();
27860 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27861 return 1;
27862 fprintf (f, "%lu\n", i);
27864 return ferror (f) || fclose (f) != 0;
27867 return 0;
27869 _ACEOF
27870 rm -f conftest$ac_exeext
27871 if { (ac_try="$ac_link"
27872 case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_link") 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27881 { (case "(($ac_try" in
27882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883 *) ac_try_echo=$ac_try;;
27884 esac
27885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27886 (eval "$ac_try") 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; }; then
27890 ac_cv_sizeof_int_p=`cat conftest.val`
27891 else
27892 echo "$as_me: program exited with status $ac_status" >&5
27893 echo "$as_me: failed program was:" >&5
27894 sed 's/^/| /' conftest.$ac_ext >&5
27896 ( exit $ac_status )
27897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
27898 See \`config.log' for more details." >&5
27899 echo "$as_me: error: cannot compute sizeof (int *)
27900 See \`config.log' for more details." >&2;}
27901 { (exit 77); exit 77; }; }
27903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27905 rm -f conftest.val
27906 else
27907 ac_cv_sizeof_int_p=0
27910 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
27912 cat >>confdefs.h <<_ACEOF
27913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27914 _ACEOF
27918 for ac_func in getenv
27920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27925 else
27926 cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h. */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27934 #define $ac_func innocuous_$ac_func
27936 /* System header to define __stub macros and hopefully few prototypes,
27937 which can conflict with char $ac_func (); below.
27938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27939 <limits.h> exists even on freestanding compilers. */
27941 #ifdef __STDC__
27942 # include <limits.h>
27943 #else
27944 # include <assert.h>
27945 #endif
27947 #undef $ac_func
27949 /* Override any GCC internal prototype to avoid an error.
27950 Use char because int might match the return type of a GCC
27951 builtin and then its argument prototype would still apply. */
27952 #ifdef __cplusplus
27953 extern "C"
27954 #endif
27955 char $ac_func ();
27956 /* The GNU C library defines this for functions which it implements
27957 to always fail with ENOSYS. Some functions are actually named
27958 something starting with __ and the normal name is an alias. */
27959 #if defined __stub_$ac_func || defined __stub___$ac_func
27960 choke me
27961 #endif
27964 main ()
27966 return $ac_func ();
27968 return 0;
27970 _ACEOF
27971 rm -f conftest.$ac_objext conftest$ac_exeext
27972 if { (ac_try="$ac_link"
27973 case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976 esac
27977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_link") 2>conftest.er1
27979 ac_status=$?
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27989 esac
27990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest$ac_exeext'
27996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999 esac
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
28002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 eval "$as_ac_var=yes"
28006 else
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 eval "$as_ac_var=no"
28013 rm -f core conftest.err conftest.$ac_objext \
28014 conftest$ac_exeext conftest.$ac_ext
28016 ac_res=`eval echo '${'$as_ac_var'}'`
28017 { echo "$as_me:$LINENO: result: $ac_res" >&5
28018 echo "${ECHO_T}$ac_res" >&6; }
28019 if test `eval echo '${'$as_ac_var'}'` = yes; then
28020 cat >>confdefs.h <<_ACEOF
28021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28022 _ACEOF
28023 cat >>confdefs.h <<\_ACEOF
28024 #define BX_HAVE_GETENV 1
28025 _ACEOF
28028 done
28031 for ac_func in setenv
28033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28037 echo $ECHO_N "(cached) $ECHO_C" >&6
28038 else
28039 cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h. */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h. */
28045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28047 #define $ac_func innocuous_$ac_func
28049 /* System header to define __stub macros and hopefully few prototypes,
28050 which can conflict with char $ac_func (); below.
28051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28052 <limits.h> exists even on freestanding compilers. */
28054 #ifdef __STDC__
28055 # include <limits.h>
28056 #else
28057 # include <assert.h>
28058 #endif
28060 #undef $ac_func
28062 /* Override any GCC internal prototype to avoid an error.
28063 Use char because int might match the return type of a GCC
28064 builtin and then its argument prototype would still apply. */
28065 #ifdef __cplusplus
28066 extern "C"
28067 #endif
28068 char $ac_func ();
28069 /* The GNU C library defines this for functions which it implements
28070 to always fail with ENOSYS. Some functions are actually named
28071 something starting with __ and the normal name is an alias. */
28072 #if defined __stub_$ac_func || defined __stub___$ac_func
28073 choke me
28074 #endif
28077 main ()
28079 return $ac_func ();
28081 return 0;
28083 _ACEOF
28084 rm -f conftest.$ac_objext conftest$ac_exeext
28085 if { (ac_try="$ac_link"
28086 case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28089 esac
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_link") 2>conftest.er1
28092 ac_status=$?
28093 grep -v '^ *+' conftest.er1 >conftest.err
28094 rm -f conftest.er1
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } &&
28098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28099 { (case "(($ac_try" in
28100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28102 esac
28103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_try") 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest$ac_exeext'
28109 { (case "(($ac_try" in
28110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28111 *) ac_try_echo=$ac_try;;
28112 esac
28113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114 (eval "$ac_try") 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28118 eval "$as_ac_var=yes"
28119 else
28120 echo "$as_me: failed program was:" >&5
28121 sed 's/^/| /' conftest.$ac_ext >&5
28123 eval "$as_ac_var=no"
28126 rm -f core conftest.err conftest.$ac_objext \
28127 conftest$ac_exeext conftest.$ac_ext
28129 ac_res=`eval echo '${'$as_ac_var'}'`
28130 { echo "$as_me:$LINENO: result: $ac_res" >&5
28131 echo "${ECHO_T}$ac_res" >&6; }
28132 if test `eval echo '${'$as_ac_var'}'` = yes; then
28133 cat >>confdefs.h <<_ACEOF
28134 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28135 _ACEOF
28136 cat >>confdefs.h <<\_ACEOF
28137 #define BX_HAVE_SETENV 1
28138 _ACEOF
28141 done
28144 for ac_func in select
28146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28150 echo $ECHO_N "(cached) $ECHO_C" >&6
28151 else
28152 cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h. */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h. */
28158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28160 #define $ac_func innocuous_$ac_func
28162 /* System header to define __stub macros and hopefully few prototypes,
28163 which can conflict with char $ac_func (); below.
28164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28165 <limits.h> exists even on freestanding compilers. */
28167 #ifdef __STDC__
28168 # include <limits.h>
28169 #else
28170 # include <assert.h>
28171 #endif
28173 #undef $ac_func
28175 /* Override any GCC internal prototype to avoid an error.
28176 Use char because int might match the return type of a GCC
28177 builtin and then its argument prototype would still apply. */
28178 #ifdef __cplusplus
28179 extern "C"
28180 #endif
28181 char $ac_func ();
28182 /* The GNU C library defines this for functions which it implements
28183 to always fail with ENOSYS. Some functions are actually named
28184 something starting with __ and the normal name is an alias. */
28185 #if defined __stub_$ac_func || defined __stub___$ac_func
28186 choke me
28187 #endif
28190 main ()
28192 return $ac_func ();
28194 return 0;
28196 _ACEOF
28197 rm -f conftest.$ac_objext conftest$ac_exeext
28198 if { (ac_try="$ac_link"
28199 case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202 esac
28203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_link") 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
28211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28212 { (case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215 esac
28216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_try") 2>&5
28218 ac_status=$?
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); }; } &&
28221 { ac_try='test -s conftest$ac_exeext'
28222 { (case "(($ac_try" in
28223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28224 *) ac_try_echo=$ac_try;;
28225 esac
28226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28227 (eval "$ac_try") 2>&5
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; }; then
28231 eval "$as_ac_var=yes"
28232 else
28233 echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28236 eval "$as_ac_var=no"
28239 rm -f core conftest.err conftest.$ac_objext \
28240 conftest$ac_exeext conftest.$ac_ext
28242 ac_res=`eval echo '${'$as_ac_var'}'`
28243 { echo "$as_me:$LINENO: result: $ac_res" >&5
28244 echo "${ECHO_T}$ac_res" >&6; }
28245 if test `eval echo '${'$as_ac_var'}'` = yes; then
28246 cat >>confdefs.h <<_ACEOF
28247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28248 _ACEOF
28249 cat >>confdefs.h <<\_ACEOF
28250 #define BX_HAVE_SELECT 1
28251 _ACEOF
28254 done
28257 for ac_func in snprintf
28259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28263 echo $ECHO_N "(cached) $ECHO_C" >&6
28264 else
28265 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h. */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28273 #define $ac_func innocuous_$ac_func
28275 /* System header to define __stub macros and hopefully few prototypes,
28276 which can conflict with char $ac_func (); below.
28277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28278 <limits.h> exists even on freestanding compilers. */
28280 #ifdef __STDC__
28281 # include <limits.h>
28282 #else
28283 # include <assert.h>
28284 #endif
28286 #undef $ac_func
28288 /* Override any GCC internal prototype to avoid an error.
28289 Use char because int might match the return type of a GCC
28290 builtin and then its argument prototype would still apply. */
28291 #ifdef __cplusplus
28292 extern "C"
28293 #endif
28294 char $ac_func ();
28295 /* The GNU C library defines this for functions which it implements
28296 to always fail with ENOSYS. Some functions are actually named
28297 something starting with __ and the normal name is an alias. */
28298 #if defined __stub_$ac_func || defined __stub___$ac_func
28299 choke me
28300 #endif
28303 main ()
28305 return $ac_func ();
28307 return 0;
28309 _ACEOF
28310 rm -f conftest.$ac_objext conftest$ac_exeext
28311 if { (ac_try="$ac_link"
28312 case "(($ac_try" in
28313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28314 *) ac_try_echo=$ac_try;;
28315 esac
28316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28317 (eval "$ac_link") 2>conftest.er1
28318 ac_status=$?
28319 grep -v '^ *+' conftest.er1 >conftest.err
28320 rm -f conftest.er1
28321 cat conftest.err >&5
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); } &&
28324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28325 { (case "(($ac_try" in
28326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327 *) ac_try_echo=$ac_try;;
28328 esac
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330 (eval "$ac_try") 2>&5
28331 ac_status=$?
28332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28333 (exit $ac_status); }; } &&
28334 { ac_try='test -s conftest$ac_exeext'
28335 { (case "(($ac_try" in
28336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28337 *) ac_try_echo=$ac_try;;
28338 esac
28339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28340 (eval "$ac_try") 2>&5
28341 ac_status=$?
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; }; then
28344 eval "$as_ac_var=yes"
28345 else
28346 echo "$as_me: failed program was:" >&5
28347 sed 's/^/| /' conftest.$ac_ext >&5
28349 eval "$as_ac_var=no"
28352 rm -f core conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
28355 ac_res=`eval echo '${'$as_ac_var'}'`
28356 { echo "$as_me:$LINENO: result: $ac_res" >&5
28357 echo "${ECHO_T}$ac_res" >&6; }
28358 if test `eval echo '${'$as_ac_var'}'` = yes; then
28359 cat >>confdefs.h <<_ACEOF
28360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28361 _ACEOF
28362 cat >>confdefs.h <<\_ACEOF
28363 #define BX_HAVE_SNPRINTF 1
28364 _ACEOF
28367 done
28370 for ac_func in vsnprintf
28372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28376 echo $ECHO_N "(cached) $ECHO_C" >&6
28377 else
28378 cat >conftest.$ac_ext <<_ACEOF
28379 /* confdefs.h. */
28380 _ACEOF
28381 cat confdefs.h >>conftest.$ac_ext
28382 cat >>conftest.$ac_ext <<_ACEOF
28383 /* end confdefs.h. */
28384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28386 #define $ac_func innocuous_$ac_func
28388 /* System header to define __stub macros and hopefully few prototypes,
28389 which can conflict with char $ac_func (); below.
28390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28391 <limits.h> exists even on freestanding compilers. */
28393 #ifdef __STDC__
28394 # include <limits.h>
28395 #else
28396 # include <assert.h>
28397 #endif
28399 #undef $ac_func
28401 /* Override any GCC internal prototype to avoid an error.
28402 Use char because int might match the return type of a GCC
28403 builtin and then its argument prototype would still apply. */
28404 #ifdef __cplusplus
28405 extern "C"
28406 #endif
28407 char $ac_func ();
28408 /* The GNU C library defines this for functions which it implements
28409 to always fail with ENOSYS. Some functions are actually named
28410 something starting with __ and the normal name is an alias. */
28411 #if defined __stub_$ac_func || defined __stub___$ac_func
28412 choke me
28413 #endif
28416 main ()
28418 return $ac_func ();
28420 return 0;
28422 _ACEOF
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427 *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430 (eval "$ac_link") 2>conftest.er1
28431 ac_status=$?
28432 grep -v '^ *+' conftest.er1 >conftest.err
28433 rm -f conftest.er1
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28438 { (case "(($ac_try" in
28439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28440 *) ac_try_echo=$ac_try;;
28441 esac
28442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28443 (eval "$ac_try") 2>&5
28444 ac_status=$?
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446 (exit $ac_status); }; } &&
28447 { ac_try='test -s conftest$ac_exeext'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28451 esac
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
28454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; }; then
28457 eval "$as_ac_var=yes"
28458 else
28459 echo "$as_me: failed program was:" >&5
28460 sed 's/^/| /' conftest.$ac_ext >&5
28462 eval "$as_ac_var=no"
28465 rm -f core conftest.err conftest.$ac_objext \
28466 conftest$ac_exeext conftest.$ac_ext
28468 ac_res=`eval echo '${'$as_ac_var'}'`
28469 { echo "$as_me:$LINENO: result: $ac_res" >&5
28470 echo "${ECHO_T}$ac_res" >&6; }
28471 if test `eval echo '${'$as_ac_var'}'` = yes; then
28472 cat >>confdefs.h <<_ACEOF
28473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28474 _ACEOF
28475 cat >>confdefs.h <<\_ACEOF
28476 #define BX_HAVE_VSNPRINTF 1
28477 _ACEOF
28480 done
28483 for ac_func in strtoull
28485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28490 else
28491 cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h. */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28499 #define $ac_func innocuous_$ac_func
28501 /* System header to define __stub macros and hopefully few prototypes,
28502 which can conflict with char $ac_func (); below.
28503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28504 <limits.h> exists even on freestanding compilers. */
28506 #ifdef __STDC__
28507 # include <limits.h>
28508 #else
28509 # include <assert.h>
28510 #endif
28512 #undef $ac_func
28514 /* Override any GCC internal prototype to avoid an error.
28515 Use char because int might match the return type of a GCC
28516 builtin and then its argument prototype would still apply. */
28517 #ifdef __cplusplus
28518 extern "C"
28519 #endif
28520 char $ac_func ();
28521 /* The GNU C library defines this for functions which it implements
28522 to always fail with ENOSYS. Some functions are actually named
28523 something starting with __ and the normal name is an alias. */
28524 #if defined __stub_$ac_func || defined __stub___$ac_func
28525 choke me
28526 #endif
28529 main ()
28531 return $ac_func ();
28533 return 0;
28535 _ACEOF
28536 rm -f conftest.$ac_objext conftest$ac_exeext
28537 if { (ac_try="$ac_link"
28538 case "(($ac_try" in
28539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28540 *) ac_try_echo=$ac_try;;
28541 esac
28542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28543 (eval "$ac_link") 2>conftest.er1
28544 ac_status=$?
28545 grep -v '^ *+' conftest.er1 >conftest.err
28546 rm -f conftest.er1
28547 cat conftest.err >&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); } &&
28550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28551 { (case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554 esac
28555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_try") 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; } &&
28560 { ac_try='test -s conftest$ac_exeext'
28561 { (case "(($ac_try" in
28562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563 *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566 (eval "$ac_try") 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; }; then
28570 eval "$as_ac_var=yes"
28571 else
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28575 eval "$as_ac_var=no"
28578 rm -f core conftest.err conftest.$ac_objext \
28579 conftest$ac_exeext conftest.$ac_ext
28581 ac_res=`eval echo '${'$as_ac_var'}'`
28582 { echo "$as_me:$LINENO: result: $ac_res" >&5
28583 echo "${ECHO_T}$ac_res" >&6; }
28584 if test `eval echo '${'$as_ac_var'}'` = yes; then
28585 cat >>confdefs.h <<_ACEOF
28586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28587 _ACEOF
28588 cat >>confdefs.h <<\_ACEOF
28589 #define BX_HAVE_STRTOULL 1
28590 _ACEOF
28593 done
28596 for ac_func in strtouq
28598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28603 else
28604 cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h. */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28612 #define $ac_func innocuous_$ac_func
28614 /* System header to define __stub macros and hopefully few prototypes,
28615 which can conflict with char $ac_func (); below.
28616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28617 <limits.h> exists even on freestanding compilers. */
28619 #ifdef __STDC__
28620 # include <limits.h>
28621 #else
28622 # include <assert.h>
28623 #endif
28625 #undef $ac_func
28627 /* Override any GCC internal prototype to avoid an error.
28628 Use char because int might match the return type of a GCC
28629 builtin and then its argument prototype would still apply. */
28630 #ifdef __cplusplus
28631 extern "C"
28632 #endif
28633 char $ac_func ();
28634 /* The GNU C library defines this for functions which it implements
28635 to always fail with ENOSYS. Some functions are actually named
28636 something starting with __ and the normal name is an alias. */
28637 #if defined __stub_$ac_func || defined __stub___$ac_func
28638 choke me
28639 #endif
28642 main ()
28644 return $ac_func ();
28646 return 0;
28648 _ACEOF
28649 rm -f conftest.$ac_objext conftest$ac_exeext
28650 if { (ac_try="$ac_link"
28651 case "(($ac_try" in
28652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28653 *) ac_try_echo=$ac_try;;
28654 esac
28655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28656 (eval "$ac_link") 2>conftest.er1
28657 ac_status=$?
28658 grep -v '^ *+' conftest.er1 >conftest.err
28659 rm -f conftest.er1
28660 cat conftest.err >&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); } &&
28663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28664 { (case "(($ac_try" in
28665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28666 *) ac_try_echo=$ac_try;;
28667 esac
28668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28669 (eval "$ac_try") 2>&5
28670 ac_status=$?
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); }; } &&
28673 { ac_try='test -s conftest$ac_exeext'
28674 { (case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28677 esac
28678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28679 (eval "$ac_try") 2>&5
28680 ac_status=$?
28681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682 (exit $ac_status); }; }; then
28683 eval "$as_ac_var=yes"
28684 else
28685 echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28688 eval "$as_ac_var=no"
28691 rm -f core conftest.err conftest.$ac_objext \
28692 conftest$ac_exeext conftest.$ac_ext
28694 ac_res=`eval echo '${'$as_ac_var'}'`
28695 { echo "$as_me:$LINENO: result: $ac_res" >&5
28696 echo "${ECHO_T}$ac_res" >&6; }
28697 if test `eval echo '${'$as_ac_var'}'` = yes; then
28698 cat >>confdefs.h <<_ACEOF
28699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28700 _ACEOF
28701 cat >>confdefs.h <<\_ACEOF
28702 #define BX_HAVE_STRTOUQ 1
28703 _ACEOF
28706 done
28709 for ac_func in strdup
28711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28715 echo $ECHO_N "(cached) $ECHO_C" >&6
28716 else
28717 cat >conftest.$ac_ext <<_ACEOF
28718 /* confdefs.h. */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h. */
28723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28725 #define $ac_func innocuous_$ac_func
28727 /* System header to define __stub macros and hopefully few prototypes,
28728 which can conflict with char $ac_func (); below.
28729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28730 <limits.h> exists even on freestanding compilers. */
28732 #ifdef __STDC__
28733 # include <limits.h>
28734 #else
28735 # include <assert.h>
28736 #endif
28738 #undef $ac_func
28740 /* Override any GCC internal prototype to avoid an error.
28741 Use char because int might match the return type of a GCC
28742 builtin and then its argument prototype would still apply. */
28743 #ifdef __cplusplus
28744 extern "C"
28745 #endif
28746 char $ac_func ();
28747 /* The GNU C library defines this for functions which it implements
28748 to always fail with ENOSYS. Some functions are actually named
28749 something starting with __ and the normal name is an alias. */
28750 #if defined __stub_$ac_func || defined __stub___$ac_func
28751 choke me
28752 #endif
28755 main ()
28757 return $ac_func ();
28759 return 0;
28761 _ACEOF
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (ac_try="$ac_link"
28764 case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767 esac
28768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_link") 2>conftest.er1
28770 ac_status=$?
28771 grep -v '^ *+' conftest.er1 >conftest.err
28772 rm -f conftest.er1
28773 cat conftest.err >&5
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); } &&
28776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780 esac
28781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; } &&
28786 { ac_try='test -s conftest$ac_exeext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792 (eval "$ac_try") 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 eval "$as_ac_var=yes"
28797 else
28798 echo "$as_me: failed program was:" >&5
28799 sed 's/^/| /' conftest.$ac_ext >&5
28801 eval "$as_ac_var=no"
28804 rm -f core conftest.err conftest.$ac_objext \
28805 conftest$ac_exeext conftest.$ac_ext
28807 ac_res=`eval echo '${'$as_ac_var'}'`
28808 { echo "$as_me:$LINENO: result: $ac_res" >&5
28809 echo "${ECHO_T}$ac_res" >&6; }
28810 if test `eval echo '${'$as_ac_var'}'` = yes; then
28811 cat >>confdefs.h <<_ACEOF
28812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28813 _ACEOF
28814 cat >>confdefs.h <<\_ACEOF
28815 #define BX_HAVE_STRDUP 1
28816 _ACEOF
28819 done
28822 for ac_func in strrev
28824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830 cat >conftest.$ac_ext <<_ACEOF
28831 /* confdefs.h. */
28832 _ACEOF
28833 cat confdefs.h >>conftest.$ac_ext
28834 cat >>conftest.$ac_ext <<_ACEOF
28835 /* end confdefs.h. */
28836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28838 #define $ac_func innocuous_$ac_func
28840 /* System header to define __stub macros and hopefully few prototypes,
28841 which can conflict with char $ac_func (); below.
28842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28843 <limits.h> exists even on freestanding compilers. */
28845 #ifdef __STDC__
28846 # include <limits.h>
28847 #else
28848 # include <assert.h>
28849 #endif
28851 #undef $ac_func
28853 /* Override any GCC internal prototype to avoid an error.
28854 Use char because int might match the return type of a GCC
28855 builtin and then its argument prototype would still apply. */
28856 #ifdef __cplusplus
28857 extern "C"
28858 #endif
28859 char $ac_func ();
28860 /* The GNU C library defines this for functions which it implements
28861 to always fail with ENOSYS. Some functions are actually named
28862 something starting with __ and the normal name is an alias. */
28863 #if defined __stub_$ac_func || defined __stub___$ac_func
28864 choke me
28865 #endif
28868 main ()
28870 return $ac_func ();
28872 return 0;
28874 _ACEOF
28875 rm -f conftest.$ac_objext conftest$ac_exeext
28876 if { (ac_try="$ac_link"
28877 case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28880 esac
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_link") 2>conftest.er1
28883 ac_status=$?
28884 grep -v '^ *+' conftest.er1 >conftest.err
28885 rm -f conftest.er1
28886 cat conftest.err >&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } &&
28889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28890 { (case "(($ac_try" in
28891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892 *) ac_try_echo=$ac_try;;
28893 esac
28894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895 (eval "$ac_try") 2>&5
28896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; } &&
28899 { ac_try='test -s conftest$ac_exeext'
28900 { (case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28903 esac
28904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905 (eval "$ac_try") 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 eval "$as_ac_var=yes"
28910 else
28911 echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914 eval "$as_ac_var=no"
28917 rm -f core conftest.err conftest.$ac_objext \
28918 conftest$ac_exeext conftest.$ac_ext
28920 ac_res=`eval echo '${'$as_ac_var'}'`
28921 { echo "$as_me:$LINENO: result: $ac_res" >&5
28922 echo "${ECHO_T}$ac_res" >&6; }
28923 if test `eval echo '${'$as_ac_var'}'` = yes; then
28924 cat >>confdefs.h <<_ACEOF
28925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28926 _ACEOF
28927 cat >>confdefs.h <<\_ACEOF
28928 #define BX_HAVE_STRREV 1
28929 _ACEOF
28932 done
28935 for ac_func in sleep
28937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28941 echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943 cat >conftest.$ac_ext <<_ACEOF
28944 /* confdefs.h. */
28945 _ACEOF
28946 cat confdefs.h >>conftest.$ac_ext
28947 cat >>conftest.$ac_ext <<_ACEOF
28948 /* end confdefs.h. */
28949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28951 #define $ac_func innocuous_$ac_func
28953 /* System header to define __stub macros and hopefully few prototypes,
28954 which can conflict with char $ac_func (); below.
28955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28956 <limits.h> exists even on freestanding compilers. */
28958 #ifdef __STDC__
28959 # include <limits.h>
28960 #else
28961 # include <assert.h>
28962 #endif
28964 #undef $ac_func
28966 /* Override any GCC internal prototype to avoid an error.
28967 Use char because int might match the return type of a GCC
28968 builtin and then its argument prototype would still apply. */
28969 #ifdef __cplusplus
28970 extern "C"
28971 #endif
28972 char $ac_func ();
28973 /* The GNU C library defines this for functions which it implements
28974 to always fail with ENOSYS. Some functions are actually named
28975 something starting with __ and the normal name is an alias. */
28976 #if defined __stub_$ac_func || defined __stub___$ac_func
28977 choke me
28978 #endif
28981 main ()
28983 return $ac_func ();
28985 return 0;
28987 _ACEOF
28988 rm -f conftest.$ac_objext conftest$ac_exeext
28989 if { (ac_try="$ac_link"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_link") 2>conftest.er1
28996 ac_status=$?
28997 grep -v '^ *+' conftest.er1 >conftest.err
28998 rm -f conftest.er1
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } &&
29002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29003 { (case "(($ac_try" in
29004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005 *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008 (eval "$ac_try") 2>&5
29009 ac_status=$?
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); }; } &&
29012 { ac_try='test -s conftest$ac_exeext'
29013 { (case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29016 esac
29017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_try") 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; }; then
29022 eval "$as_ac_var=yes"
29023 else
29024 echo "$as_me: failed program was:" >&5
29025 sed 's/^/| /' conftest.$ac_ext >&5
29027 eval "$as_ac_var=no"
29030 rm -f core conftest.err conftest.$ac_objext \
29031 conftest$ac_exeext conftest.$ac_ext
29033 ac_res=`eval echo '${'$as_ac_var'}'`
29034 { echo "$as_me:$LINENO: result: $ac_res" >&5
29035 echo "${ECHO_T}$ac_res" >&6; }
29036 if test `eval echo '${'$as_ac_var'}'` = yes; then
29037 cat >>confdefs.h <<_ACEOF
29038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29039 _ACEOF
29040 cat >>confdefs.h <<\_ACEOF
29041 #define BX_HAVE_SLEEP 1
29042 _ACEOF
29045 done
29048 for ac_func in usleep
29050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29054 echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056 cat >conftest.$ac_ext <<_ACEOF
29057 /* confdefs.h. */
29058 _ACEOF
29059 cat confdefs.h >>conftest.$ac_ext
29060 cat >>conftest.$ac_ext <<_ACEOF
29061 /* end confdefs.h. */
29062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29064 #define $ac_func innocuous_$ac_func
29066 /* System header to define __stub macros and hopefully few prototypes,
29067 which can conflict with char $ac_func (); below.
29068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29069 <limits.h> exists even on freestanding compilers. */
29071 #ifdef __STDC__
29072 # include <limits.h>
29073 #else
29074 # include <assert.h>
29075 #endif
29077 #undef $ac_func
29079 /* Override any GCC internal prototype to avoid an error.
29080 Use char because int might match the return type of a GCC
29081 builtin and then its argument prototype would still apply. */
29082 #ifdef __cplusplus
29083 extern "C"
29084 #endif
29085 char $ac_func ();
29086 /* The GNU C library defines this for functions which it implements
29087 to always fail with ENOSYS. Some functions are actually named
29088 something starting with __ and the normal name is an alias. */
29089 #if defined __stub_$ac_func || defined __stub___$ac_func
29090 choke me
29091 #endif
29094 main ()
29096 return $ac_func ();
29098 return 0;
29100 _ACEOF
29101 rm -f conftest.$ac_objext conftest$ac_exeext
29102 if { (ac_try="$ac_link"
29103 case "(($ac_try" in
29104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29105 *) ac_try_echo=$ac_try;;
29106 esac
29107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29108 (eval "$ac_link") 2>conftest.er1
29109 ac_status=$?
29110 grep -v '^ *+' conftest.er1 >conftest.err
29111 rm -f conftest.er1
29112 cat conftest.err >&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } &&
29115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29116 { (case "(($ac_try" in
29117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118 *) ac_try_echo=$ac_try;;
29119 esac
29120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121 (eval "$ac_try") 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; } &&
29125 { ac_try='test -s conftest$ac_exeext'
29126 { (case "(($ac_try" in
29127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29128 *) ac_try_echo=$ac_try;;
29129 esac
29130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29131 (eval "$ac_try") 2>&5
29132 ac_status=$?
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); }; }; then
29135 eval "$as_ac_var=yes"
29136 else
29137 echo "$as_me: failed program was:" >&5
29138 sed 's/^/| /' conftest.$ac_ext >&5
29140 eval "$as_ac_var=no"
29143 rm -f core conftest.err conftest.$ac_objext \
29144 conftest$ac_exeext conftest.$ac_ext
29146 ac_res=`eval echo '${'$as_ac_var'}'`
29147 { echo "$as_me:$LINENO: result: $ac_res" >&5
29148 echo "${ECHO_T}$ac_res" >&6; }
29149 if test `eval echo '${'$as_ac_var'}'` = yes; then
29150 cat >>confdefs.h <<_ACEOF
29151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29152 _ACEOF
29153 cat >>confdefs.h <<\_ACEOF
29154 #define BX_HAVE_USLEEP 1
29155 _ACEOF
29158 done
29161 for ac_func in nanosleep
29163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29164 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29167 echo $ECHO_N "(cached) $ECHO_C" >&6
29168 else
29169 cat >conftest.$ac_ext <<_ACEOF
29170 /* confdefs.h. */
29171 _ACEOF
29172 cat confdefs.h >>conftest.$ac_ext
29173 cat >>conftest.$ac_ext <<_ACEOF
29174 /* end confdefs.h. */
29175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29177 #define $ac_func innocuous_$ac_func
29179 /* System header to define __stub macros and hopefully few prototypes,
29180 which can conflict with char $ac_func (); below.
29181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29182 <limits.h> exists even on freestanding compilers. */
29184 #ifdef __STDC__
29185 # include <limits.h>
29186 #else
29187 # include <assert.h>
29188 #endif
29190 #undef $ac_func
29192 /* Override any GCC internal prototype to avoid an error.
29193 Use char because int might match the return type of a GCC
29194 builtin and then its argument prototype would still apply. */
29195 #ifdef __cplusplus
29196 extern "C"
29197 #endif
29198 char $ac_func ();
29199 /* The GNU C library defines this for functions which it implements
29200 to always fail with ENOSYS. Some functions are actually named
29201 something starting with __ and the normal name is an alias. */
29202 #if defined __stub_$ac_func || defined __stub___$ac_func
29203 choke me
29204 #endif
29207 main ()
29209 return $ac_func ();
29211 return 0;
29213 _ACEOF
29214 rm -f conftest.$ac_objext conftest$ac_exeext
29215 if { (ac_try="$ac_link"
29216 case "(($ac_try" in
29217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218 *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221 (eval "$ac_link") 2>conftest.er1
29222 ac_status=$?
29223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29229 { (case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29232 esac
29233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_try") 2>&5
29235 ac_status=$?
29236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237 (exit $ac_status); }; } &&
29238 { ac_try='test -s conftest$ac_exeext'
29239 { (case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_try") 2>&5
29245 ac_status=$?
29246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); }; }; then
29248 eval "$as_ac_var=yes"
29249 else
29250 echo "$as_me: failed program was:" >&5
29251 sed 's/^/| /' conftest.$ac_ext >&5
29253 eval "$as_ac_var=no"
29256 rm -f core conftest.err conftest.$ac_objext \
29257 conftest$ac_exeext conftest.$ac_ext
29259 ac_res=`eval echo '${'$as_ac_var'}'`
29260 { echo "$as_me:$LINENO: result: $ac_res" >&5
29261 echo "${ECHO_T}$ac_res" >&6; }
29262 if test `eval echo '${'$as_ac_var'}'` = yes; then
29263 cat >>confdefs.h <<_ACEOF
29264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29265 _ACEOF
29266 cat >>confdefs.h <<\_ACEOF
29267 #define BX_HAVE_NANOSLEEP 1
29268 _ACEOF
29271 done
29274 for ac_func in abort
29276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29280 echo $ECHO_N "(cached) $ECHO_C" >&6
29281 else
29282 cat >conftest.$ac_ext <<_ACEOF
29283 /* confdefs.h. */
29284 _ACEOF
29285 cat confdefs.h >>conftest.$ac_ext
29286 cat >>conftest.$ac_ext <<_ACEOF
29287 /* end confdefs.h. */
29288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29290 #define $ac_func innocuous_$ac_func
29292 /* System header to define __stub macros and hopefully few prototypes,
29293 which can conflict with char $ac_func (); below.
29294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29295 <limits.h> exists even on freestanding compilers. */
29297 #ifdef __STDC__
29298 # include <limits.h>
29299 #else
29300 # include <assert.h>
29301 #endif
29303 #undef $ac_func
29305 /* Override any GCC internal prototype to avoid an error.
29306 Use char because int might match the return type of a GCC
29307 builtin and then its argument prototype would still apply. */
29308 #ifdef __cplusplus
29309 extern "C"
29310 #endif
29311 char $ac_func ();
29312 /* The GNU C library defines this for functions which it implements
29313 to always fail with ENOSYS. Some functions are actually named
29314 something starting with __ and the normal name is an alias. */
29315 #if defined __stub_$ac_func || defined __stub___$ac_func
29316 choke me
29317 #endif
29320 main ()
29322 return $ac_func ();
29324 return 0;
29326 _ACEOF
29327 rm -f conftest.$ac_objext conftest$ac_exeext
29328 if { (ac_try="$ac_link"
29329 case "(($ac_try" in
29330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29331 *) ac_try_echo=$ac_try;;
29332 esac
29333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29334 (eval "$ac_link") 2>conftest.er1
29335 ac_status=$?
29336 grep -v '^ *+' conftest.er1 >conftest.err
29337 rm -f conftest.er1
29338 cat conftest.err >&5
29339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29340 (exit $ac_status); } &&
29341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29342 { (case "(($ac_try" in
29343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29344 *) ac_try_echo=$ac_try;;
29345 esac
29346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29347 (eval "$ac_try") 2>&5
29348 ac_status=$?
29349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29350 (exit $ac_status); }; } &&
29351 { ac_try='test -s conftest$ac_exeext'
29352 { (case "(($ac_try" in
29353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354 *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357 (eval "$ac_try") 2>&5
29358 ac_status=$?
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); }; }; then
29361 eval "$as_ac_var=yes"
29362 else
29363 echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366 eval "$as_ac_var=no"
29369 rm -f core conftest.err conftest.$ac_objext \
29370 conftest$ac_exeext conftest.$ac_ext
29372 ac_res=`eval echo '${'$as_ac_var'}'`
29373 { echo "$as_me:$LINENO: result: $ac_res" >&5
29374 echo "${ECHO_T}$ac_res" >&6; }
29375 if test `eval echo '${'$as_ac_var'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29378 _ACEOF
29379 cat >>confdefs.h <<\_ACEOF
29380 #define BX_HAVE_ABORT 1
29381 _ACEOF
29384 done
29387 for ac_func in gettimeofday
29389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29393 echo $ECHO_N "(cached) $ECHO_C" >&6
29394 else
29395 cat >conftest.$ac_ext <<_ACEOF
29396 /* confdefs.h. */
29397 _ACEOF
29398 cat confdefs.h >>conftest.$ac_ext
29399 cat >>conftest.$ac_ext <<_ACEOF
29400 /* end confdefs.h. */
29401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29403 #define $ac_func innocuous_$ac_func
29405 /* System header to define __stub macros and hopefully few prototypes,
29406 which can conflict with char $ac_func (); below.
29407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29408 <limits.h> exists even on freestanding compilers. */
29410 #ifdef __STDC__
29411 # include <limits.h>
29412 #else
29413 # include <assert.h>
29414 #endif
29416 #undef $ac_func
29418 /* Override any GCC internal prototype to avoid an error.
29419 Use char because int might match the return type of a GCC
29420 builtin and then its argument prototype would still apply. */
29421 #ifdef __cplusplus
29422 extern "C"
29423 #endif
29424 char $ac_func ();
29425 /* The GNU C library defines this for functions which it implements
29426 to always fail with ENOSYS. Some functions are actually named
29427 something starting with __ and the normal name is an alias. */
29428 #if defined __stub_$ac_func || defined __stub___$ac_func
29429 choke me
29430 #endif
29433 main ()
29435 return $ac_func ();
29437 return 0;
29439 _ACEOF
29440 rm -f conftest.$ac_objext conftest$ac_exeext
29441 if { (ac_try="$ac_link"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_link") 2>conftest.er1
29448 ac_status=$?
29449 grep -v '^ *+' conftest.er1 >conftest.err
29450 rm -f conftest.er1
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } &&
29454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29455 { (case "(($ac_try" in
29456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29457 *) ac_try_echo=$ac_try;;
29458 esac
29459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29460 (eval "$ac_try") 2>&5
29461 ac_status=$?
29462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29463 (exit $ac_status); }; } &&
29464 { ac_try='test -s conftest$ac_exeext'
29465 { (case "(($ac_try" in
29466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467 *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470 (eval "$ac_try") 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 eval "$as_ac_var=yes"
29475 else
29476 echo "$as_me: failed program was:" >&5
29477 sed 's/^/| /' conftest.$ac_ext >&5
29479 eval "$as_ac_var=no"
29482 rm -f core conftest.err conftest.$ac_objext \
29483 conftest$ac_exeext conftest.$ac_ext
29485 ac_res=`eval echo '${'$as_ac_var'}'`
29486 { echo "$as_me:$LINENO: result: $ac_res" >&5
29487 echo "${ECHO_T}$ac_res" >&6; }
29488 if test `eval echo '${'$as_ac_var'}'` = yes; then
29489 cat >>confdefs.h <<_ACEOF
29490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29491 _ACEOF
29492 cat >>confdefs.h <<\_ACEOF
29493 #define BX_HAVE_GETTIMEOFDAY 1
29494 _ACEOF
29497 done
29499 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29500 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29501 if test "${ac_cv_type_socklen_t+set}" = set; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29503 else
29504 cat >conftest.$ac_ext <<_ACEOF
29505 /* confdefs.h. */
29506 _ACEOF
29507 cat confdefs.h >>conftest.$ac_ext
29508 cat >>conftest.$ac_ext <<_ACEOF
29509 /* end confdefs.h. */
29510 #include <sys/types.h>
29511 #include <sys/socket.h>
29513 typedef socklen_t ac__type_new_;
29515 main ()
29517 if ((ac__type_new_ *) 0)
29518 return 0;
29519 if (sizeof (ac__type_new_))
29520 return 0;
29522 return 0;
29524 _ACEOF
29525 rm -f conftest.$ac_objext
29526 if { (ac_try="$ac_compile"
29527 case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_compile") 2>conftest.er1
29533 ac_status=$?
29534 grep -v '^ *+' conftest.er1 >conftest.err
29535 rm -f conftest.er1
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
29539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29540 { (case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_try") 2>&5
29546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; } &&
29549 { ac_try='test -s conftest.$ac_objext'
29550 { (case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29553 esac
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_try") 2>&5
29556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_type_socklen_t=yes
29560 else
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29564 ac_cv_type_socklen_t=no
29567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29570 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29571 if test $ac_cv_type_socklen_t = yes; then
29572 cat >>confdefs.h <<\_ACEOF
29573 #define BX_HAVE_SOCKLEN_T 1
29574 _ACEOF
29578 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
29579 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
29580 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
29581 echo $ECHO_N "(cached) $ECHO_C" >&6
29582 else
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h. */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29589 #include <sys/socket.h>
29590 #include <netinet/in.h>
29593 main ()
29595 static struct sockaddr_in ac_aggr;
29596 if (ac_aggr.sin_len)
29597 return 0;
29599 return 0;
29601 _ACEOF
29602 rm -f conftest.$ac_objext
29603 if { (ac_try="$ac_compile"
29604 case "(($ac_try" in
29605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606 *) ac_try_echo=$ac_try;;
29607 esac
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609 (eval "$ac_compile") 2>conftest.er1
29610 ac_status=$?
29611 grep -v '^ *+' conftest.er1 >conftest.err
29612 rm -f conftest.er1
29613 cat conftest.err >&5
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); } &&
29616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29617 { (case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29620 esac
29621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29622 (eval "$ac_try") 2>&5
29623 ac_status=$?
29624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29625 (exit $ac_status); }; } &&
29626 { ac_try='test -s conftest.$ac_objext'
29627 { (case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630 esac
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_try") 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; }; then
29636 ac_cv_member_struct_sockaddr_in_sin_len=yes
29637 else
29638 echo "$as_me: failed program was:" >&5
29639 sed 's/^/| /' conftest.$ac_ext >&5
29641 cat >conftest.$ac_ext <<_ACEOF
29642 /* confdefs.h. */
29643 _ACEOF
29644 cat confdefs.h >>conftest.$ac_ext
29645 cat >>conftest.$ac_ext <<_ACEOF
29646 /* end confdefs.h. */
29647 #include <sys/socket.h>
29648 #include <netinet/in.h>
29651 main ()
29653 static struct sockaddr_in ac_aggr;
29654 if (sizeof ac_aggr.sin_len)
29655 return 0;
29657 return 0;
29659 _ACEOF
29660 rm -f conftest.$ac_objext
29661 if { (ac_try="$ac_compile"
29662 case "(($ac_try" in
29663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29664 *) ac_try_echo=$ac_try;;
29665 esac
29666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29667 (eval "$ac_compile") 2>conftest.er1
29668 ac_status=$?
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } &&
29674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29675 { (case "(($ac_try" in
29676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677 *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680 (eval "$ac_try") 2>&5
29681 ac_status=$?
29682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29683 (exit $ac_status); }; } &&
29684 { ac_try='test -s conftest.$ac_objext'
29685 { (case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29688 esac
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_try") 2>&5
29691 ac_status=$?
29692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693 (exit $ac_status); }; }; then
29694 ac_cv_member_struct_sockaddr_in_sin_len=yes
29695 else
29696 echo "$as_me: failed program was:" >&5
29697 sed 's/^/| /' conftest.$ac_ext >&5
29699 ac_cv_member_struct_sockaddr_in_sin_len=no
29702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
29708 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
29709 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
29710 cat >>confdefs.h <<\_ACEOF
29711 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
29712 _ACEOF
29717 for ac_func in mkstemp
29719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29723 echo $ECHO_N "(cached) $ECHO_C" >&6
29724 else
29725 cat >conftest.$ac_ext <<_ACEOF
29726 /* confdefs.h. */
29727 _ACEOF
29728 cat confdefs.h >>conftest.$ac_ext
29729 cat >>conftest.$ac_ext <<_ACEOF
29730 /* end confdefs.h. */
29731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29733 #define $ac_func innocuous_$ac_func
29735 /* System header to define __stub macros and hopefully few prototypes,
29736 which can conflict with char $ac_func (); below.
29737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29738 <limits.h> exists even on freestanding compilers. */
29740 #ifdef __STDC__
29741 # include <limits.h>
29742 #else
29743 # include <assert.h>
29744 #endif
29746 #undef $ac_func
29748 /* Override any GCC internal prototype to avoid an error.
29749 Use char because int might match the return type of a GCC
29750 builtin and then its argument prototype would still apply. */
29751 #ifdef __cplusplus
29752 extern "C"
29753 #endif
29754 char $ac_func ();
29755 /* The GNU C library defines this for functions which it implements
29756 to always fail with ENOSYS. Some functions are actually named
29757 something starting with __ and the normal name is an alias. */
29758 #if defined __stub_$ac_func || defined __stub___$ac_func
29759 choke me
29760 #endif
29763 main ()
29765 return $ac_func ();
29767 return 0;
29769 _ACEOF
29770 rm -f conftest.$ac_objext conftest$ac_exeext
29771 if { (ac_try="$ac_link"
29772 case "(($ac_try" in
29773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774 *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777 (eval "$ac_link") 2>conftest.er1
29778 ac_status=$?
29779 grep -v '^ *+' conftest.er1 >conftest.err
29780 rm -f conftest.er1
29781 cat conftest.err >&5
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } &&
29784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29785 { (case "(($ac_try" in
29786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29787 *) ac_try_echo=$ac_try;;
29788 esac
29789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29790 (eval "$ac_try") 2>&5
29791 ac_status=$?
29792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; } &&
29794 { ac_try='test -s conftest$ac_exeext'
29795 { (case "(($ac_try" in
29796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797 *) ac_try_echo=$ac_try;;
29798 esac
29799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29800 (eval "$ac_try") 2>&5
29801 ac_status=$?
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); }; }; then
29804 eval "$as_ac_var=yes"
29805 else
29806 echo "$as_me: failed program was:" >&5
29807 sed 's/^/| /' conftest.$ac_ext >&5
29809 eval "$as_ac_var=no"
29812 rm -f core conftest.err conftest.$ac_objext \
29813 conftest$ac_exeext conftest.$ac_ext
29815 ac_res=`eval echo '${'$as_ac_var'}'`
29816 { echo "$as_me:$LINENO: result: $ac_res" >&5
29817 echo "${ECHO_T}$ac_res" >&6; }
29818 if test `eval echo '${'$as_ac_var'}'` = yes; then
29819 cat >>confdefs.h <<_ACEOF
29820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29821 _ACEOF
29822 cat >>confdefs.h <<\_ACEOF
29823 #define BX_HAVE_MKSTEMP 1
29824 _ACEOF
29827 done
29829 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29830 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29831 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29832 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29836 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29837 else
29838 # Is the header compilable?
29839 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
29840 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
29841 cat >conftest.$ac_ext <<_ACEOF
29842 /* confdefs.h. */
29843 _ACEOF
29844 cat confdefs.h >>conftest.$ac_ext
29845 cat >>conftest.$ac_ext <<_ACEOF
29846 /* end confdefs.h. */
29847 $ac_includes_default
29848 #include <sys/mman.h>
29849 _ACEOF
29850 rm -f conftest.$ac_objext
29851 if { (ac_try="$ac_compile"
29852 case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855 esac
29856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_compile") 2>conftest.er1
29858 ac_status=$?
29859 grep -v '^ *+' conftest.er1 >conftest.err
29860 rm -f conftest.er1
29861 cat conftest.err >&5
29862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29863 (exit $ac_status); } &&
29864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29865 { (case "(($ac_try" in
29866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29867 *) ac_try_echo=$ac_try;;
29868 esac
29869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29870 (eval "$ac_try") 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; } &&
29874 { ac_try='test -s conftest.$ac_objext'
29875 { (case "(($ac_try" in
29876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29877 *) ac_try_echo=$ac_try;;
29878 esac
29879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29880 (eval "$ac_try") 2>&5
29881 ac_status=$?
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); }; }; then
29884 ac_header_compiler=yes
29885 else
29886 echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29889 ac_header_compiler=no
29892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29894 echo "${ECHO_T}$ac_header_compiler" >&6; }
29896 # Is the header present?
29897 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
29898 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
29899 cat >conftest.$ac_ext <<_ACEOF
29900 /* confdefs.h. */
29901 _ACEOF
29902 cat confdefs.h >>conftest.$ac_ext
29903 cat >>conftest.$ac_ext <<_ACEOF
29904 /* end confdefs.h. */
29905 #include <sys/mman.h>
29906 _ACEOF
29907 if { (ac_try="$ac_cpp conftest.$ac_ext"
29908 case "(($ac_try" in
29909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29910 *) ac_try_echo=$ac_try;;
29911 esac
29912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29914 ac_status=$?
29915 grep -v '^ *+' conftest.er1 >conftest.err
29916 rm -f conftest.er1
29917 cat conftest.err >&5
29918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919 (exit $ac_status); } >/dev/null; then
29920 if test -s conftest.err; then
29921 ac_cpp_err=$ac_c_preproc_warn_flag
29922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29923 else
29924 ac_cpp_err=
29926 else
29927 ac_cpp_err=yes
29929 if test -z "$ac_cpp_err"; then
29930 ac_header_preproc=yes
29931 else
29932 echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29935 ac_header_preproc=no
29938 rm -f conftest.err conftest.$ac_ext
29939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29940 echo "${ECHO_T}$ac_header_preproc" >&6; }
29942 # So? What about this header?
29943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29944 yes:no: )
29945 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
29946 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
29948 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
29949 ac_header_preproc=yes
29951 no:yes:* )
29952 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
29953 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
29954 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
29955 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
29957 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
29959 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
29961 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
29963 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
29966 esac
29967 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29968 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29969 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971 else
29972 ac_cv_header_sys_mman_h=$ac_header_preproc
29974 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29975 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29978 if test $ac_cv_header_sys_mman_h = yes; then
29979 cat >>confdefs.h <<\_ACEOF
29980 #define BX_HAVE_SYS_MMAN_H 1
29981 _ACEOF
29987 for ac_func in timelocal
29989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995 cat >conftest.$ac_ext <<_ACEOF
29996 /* confdefs.h. */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30003 #define $ac_func innocuous_$ac_func
30005 /* System header to define __stub macros and hopefully few prototypes,
30006 which can conflict with char $ac_func (); below.
30007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30008 <limits.h> exists even on freestanding compilers. */
30010 #ifdef __STDC__
30011 # include <limits.h>
30012 #else
30013 # include <assert.h>
30014 #endif
30016 #undef $ac_func
30018 /* Override any GCC internal prototype to avoid an error.
30019 Use char because int might match the return type of a GCC
30020 builtin and then its argument prototype would still apply. */
30021 #ifdef __cplusplus
30022 extern "C"
30023 #endif
30024 char $ac_func ();
30025 /* The GNU C library defines this for functions which it implements
30026 to always fail with ENOSYS. Some functions are actually named
30027 something starting with __ and the normal name is an alias. */
30028 #if defined __stub_$ac_func || defined __stub___$ac_func
30029 choke me
30030 #endif
30033 main ()
30035 return $ac_func ();
30037 return 0;
30039 _ACEOF
30040 rm -f conftest.$ac_objext conftest$ac_exeext
30041 if { (ac_try="$ac_link"
30042 case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30045 esac
30046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_link") 2>conftest.er1
30048 ac_status=$?
30049 grep -v '^ *+' conftest.er1 >conftest.err
30050 rm -f conftest.er1
30051 cat conftest.err >&5
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); } &&
30054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30055 { (case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30058 esac
30059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_try") 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); }; } &&
30064 { ac_try='test -s conftest$ac_exeext'
30065 { (case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30068 esac
30069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_try") 2>&5
30071 ac_status=$?
30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073 (exit $ac_status); }; }; then
30074 eval "$as_ac_var=yes"
30075 else
30076 echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30079 eval "$as_ac_var=no"
30082 rm -f core conftest.err conftest.$ac_objext \
30083 conftest$ac_exeext conftest.$ac_ext
30085 ac_res=`eval echo '${'$as_ac_var'}'`
30086 { echo "$as_me:$LINENO: result: $ac_res" >&5
30087 echo "${ECHO_T}$ac_res" >&6; }
30088 if test `eval echo '${'$as_ac_var'}'` = yes; then
30089 cat >>confdefs.h <<_ACEOF
30090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30091 _ACEOF
30092 cat >>confdefs.h <<\_ACEOF
30093 #define BX_HAVE_TIMELOCAL 1
30094 _ACEOF
30097 done
30100 for ac_func in gmtime
30102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30106 echo $ECHO_N "(cached) $ECHO_C" >&6
30107 else
30108 cat >conftest.$ac_ext <<_ACEOF
30109 /* confdefs.h. */
30110 _ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h. */
30114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30116 #define $ac_func innocuous_$ac_func
30118 /* System header to define __stub macros and hopefully few prototypes,
30119 which can conflict with char $ac_func (); below.
30120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30121 <limits.h> exists even on freestanding compilers. */
30123 #ifdef __STDC__
30124 # include <limits.h>
30125 #else
30126 # include <assert.h>
30127 #endif
30129 #undef $ac_func
30131 /* Override any GCC internal prototype to avoid an error.
30132 Use char because int might match the return type of a GCC
30133 builtin and then its argument prototype would still apply. */
30134 #ifdef __cplusplus
30135 extern "C"
30136 #endif
30137 char $ac_func ();
30138 /* The GNU C library defines this for functions which it implements
30139 to always fail with ENOSYS. Some functions are actually named
30140 something starting with __ and the normal name is an alias. */
30141 #if defined __stub_$ac_func || defined __stub___$ac_func
30142 choke me
30143 #endif
30146 main ()
30148 return $ac_func ();
30150 return 0;
30152 _ACEOF
30153 rm -f conftest.$ac_objext conftest$ac_exeext
30154 if { (ac_try="$ac_link"
30155 case "(($ac_try" in
30156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157 *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160 (eval "$ac_link") 2>conftest.er1
30161 ac_status=$?
30162 grep -v '^ *+' conftest.er1 >conftest.err
30163 rm -f conftest.er1
30164 cat conftest.err >&5
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); } &&
30167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171 esac
30172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; } &&
30177 { ac_try='test -s conftest$ac_exeext'
30178 { (case "(($ac_try" in
30179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30180 *) ac_try_echo=$ac_try;;
30181 esac
30182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30183 (eval "$ac_try") 2>&5
30184 ac_status=$?
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); }; }; then
30187 eval "$as_ac_var=yes"
30188 else
30189 echo "$as_me: failed program was:" >&5
30190 sed 's/^/| /' conftest.$ac_ext >&5
30192 eval "$as_ac_var=no"
30195 rm -f core conftest.err conftest.$ac_objext \
30196 conftest$ac_exeext conftest.$ac_ext
30198 ac_res=`eval echo '${'$as_ac_var'}'`
30199 { echo "$as_me:$LINENO: result: $ac_res" >&5
30200 echo "${ECHO_T}$ac_res" >&6; }
30201 if test `eval echo '${'$as_ac_var'}'` = yes; then
30202 cat >>confdefs.h <<_ACEOF
30203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30204 _ACEOF
30205 cat >>confdefs.h <<\_ACEOF
30206 #define BX_HAVE_GMTIME 1
30207 _ACEOF
30210 done
30213 for ac_func in mktime
30215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30219 echo $ECHO_N "(cached) $ECHO_C" >&6
30220 else
30221 cat >conftest.$ac_ext <<_ACEOF
30222 /* confdefs.h. */
30223 _ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h. */
30227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30229 #define $ac_func innocuous_$ac_func
30231 /* System header to define __stub macros and hopefully few prototypes,
30232 which can conflict with char $ac_func (); below.
30233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30234 <limits.h> exists even on freestanding compilers. */
30236 #ifdef __STDC__
30237 # include <limits.h>
30238 #else
30239 # include <assert.h>
30240 #endif
30242 #undef $ac_func
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30247 #ifdef __cplusplus
30248 extern "C"
30249 #endif
30250 char $ac_func ();
30251 /* The GNU C library defines this for functions which it implements
30252 to always fail with ENOSYS. Some functions are actually named
30253 something starting with __ and the normal name is an alias. */
30254 #if defined __stub_$ac_func || defined __stub___$ac_func
30255 choke me
30256 #endif
30259 main ()
30261 return $ac_func ();
30263 return 0;
30265 _ACEOF
30266 rm -f conftest.$ac_objext conftest$ac_exeext
30267 if { (ac_try="$ac_link"
30268 case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30271 esac
30272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_link") 2>conftest.er1
30274 ac_status=$?
30275 grep -v '^ *+' conftest.er1 >conftest.err
30276 rm -f conftest.er1
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); } &&
30280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284 esac
30285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest$ac_exeext'
30291 { (case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294 esac
30295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_try") 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
30300 eval "$as_ac_var=yes"
30301 else
30302 echo "$as_me: failed program was:" >&5
30303 sed 's/^/| /' conftest.$ac_ext >&5
30305 eval "$as_ac_var=no"
30308 rm -f core conftest.err conftest.$ac_objext \
30309 conftest$ac_exeext conftest.$ac_ext
30311 ac_res=`eval echo '${'$as_ac_var'}'`
30312 { echo "$as_me:$LINENO: result: $ac_res" >&5
30313 echo "${ECHO_T}$ac_res" >&6; }
30314 if test `eval echo '${'$as_ac_var'}'` = yes; then
30315 cat >>confdefs.h <<_ACEOF
30316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30317 _ACEOF
30318 cat >>confdefs.h <<\_ACEOF
30319 #define BX_HAVE_MKTIME 1
30320 _ACEOF
30323 done
30326 # Check whether --enable-largefile was given.
30327 if test "${enable_largefile+set}" = set; then
30328 enableval=$enable_largefile;
30331 if test "$enable_largefile" != no; then
30332 wx_largefile=no
30334 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
30335 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
30336 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30337 echo $ECHO_N "(cached) $ECHO_C" >&6
30338 else
30340 cat >conftest.$ac_ext <<_ACEOF
30341 /* confdefs.h. */
30342 _ACEOF
30343 cat confdefs.h >>conftest.$ac_ext
30344 cat >>conftest.$ac_ext <<_ACEOF
30345 /* end confdefs.h. */
30346 #define _FILE_OFFSET_BITS 64
30347 #include <sys/types.h>
30349 main ()
30351 typedef struct {
30352 unsigned int field: sizeof(off_t) == 8;
30353 } wxlf;
30356 return 0;
30358 _ACEOF
30359 rm -f conftest.$ac_objext
30360 if { (ac_try="$ac_compile"
30361 case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30364 esac
30365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_compile") 2>conftest.er1
30367 ac_status=$?
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
30373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30374 { (case "(($ac_try" in
30375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30376 *) ac_try_echo=$ac_try;;
30377 esac
30378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379 (eval "$ac_try") 2>&5
30380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; } &&
30383 { ac_try='test -s conftest.$ac_objext'
30384 { (case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30387 esac
30388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_try") 2>&5
30390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30393 ac_cv_sys_file_offset_bits=64
30394 else
30395 echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30398 ac_cv_sys_file_offset_bits=no
30401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30405 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30406 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
30408 if test "$ac_cv_sys_file_offset_bits" != no; then
30409 wx_largefile=yes
30410 cat >>confdefs.h <<_ACEOF
30411 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30412 _ACEOF
30416 if test "x$wx_largefile" != "xyes"; then
30418 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
30419 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
30420 if test "${ac_cv_sys_large_files+set}" = set; then
30421 echo $ECHO_N "(cached) $ECHO_C" >&6
30422 else
30424 cat >conftest.$ac_ext <<_ACEOF
30425 /* confdefs.h. */
30426 _ACEOF
30427 cat confdefs.h >>conftest.$ac_ext
30428 cat >>conftest.$ac_ext <<_ACEOF
30429 /* end confdefs.h. */
30430 #define _LARGE_FILES 1
30431 #include <sys/types.h>
30433 main ()
30435 typedef struct {
30436 unsigned int field: sizeof(off_t) == 8;
30437 } wxlf;
30440 return 0;
30442 _ACEOF
30443 rm -f conftest.$ac_objext
30444 if { (ac_try="$ac_compile"
30445 case "(($ac_try" in
30446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447 *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450 (eval "$ac_compile") 2>conftest.er1
30451 ac_status=$?
30452 grep -v '^ *+' conftest.er1 >conftest.err
30453 rm -f conftest.er1
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } &&
30457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; } &&
30467 { ac_try='test -s conftest.$ac_objext'
30468 { (case "(($ac_try" in
30469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470 *) ac_try_echo=$ac_try;;
30471 esac
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473 (eval "$ac_try") 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 ac_cv_sys_large_files=1
30478 else
30479 echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30482 ac_cv_sys_large_files=no
30485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30489 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30490 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
30492 if test "$ac_cv_sys_large_files" != no; then
30493 wx_largefile=yes
30494 cat >>confdefs.h <<_ACEOF
30495 #define _LARGE_FILES $ac_cv_sys_large_files
30496 _ACEOF
30502 { echo "$as_me:$LINENO: checking if large file support is available" >&5
30503 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
30504 if test "x$wx_largefile" = "xyes"; then
30505 cat >>confdefs.h <<\_ACEOF
30506 #define HAVE_LARGEFILE_SUPPORT 1
30507 _ACEOF
30510 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
30511 echo "${ECHO_T}$wx_largefile" >&6; }
30515 if test "x$wx_largefile" = "xyes"; then
30516 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
30517 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
30518 else
30519 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
30521 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
30522 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
30523 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
30526 have_cos=0
30527 have_floor=0
30529 for ac_func in cos
30531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30535 echo $ECHO_N "(cached) $ECHO_C" >&6
30536 else
30537 cat >conftest.$ac_ext <<_ACEOF
30538 /* confdefs.h. */
30539 _ACEOF
30540 cat confdefs.h >>conftest.$ac_ext
30541 cat >>conftest.$ac_ext <<_ACEOF
30542 /* end confdefs.h. */
30543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30545 #define $ac_func innocuous_$ac_func
30547 /* System header to define __stub macros and hopefully few prototypes,
30548 which can conflict with char $ac_func (); below.
30549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30550 <limits.h> exists even on freestanding compilers. */
30552 #ifdef __STDC__
30553 # include <limits.h>
30554 #else
30555 # include <assert.h>
30556 #endif
30558 #undef $ac_func
30560 /* Override any GCC internal prototype to avoid an error.
30561 Use char because int might match the return type of a GCC
30562 builtin and then its argument prototype would still apply. */
30563 #ifdef __cplusplus
30564 extern "C"
30565 #endif
30566 char $ac_func ();
30567 /* The GNU C library defines this for functions which it implements
30568 to always fail with ENOSYS. Some functions are actually named
30569 something starting with __ and the normal name is an alias. */
30570 #if defined __stub_$ac_func || defined __stub___$ac_func
30571 choke me
30572 #endif
30575 main ()
30577 return $ac_func ();
30579 return 0;
30581 _ACEOF
30582 rm -f conftest.$ac_objext conftest$ac_exeext
30583 if { (ac_try="$ac_link"
30584 case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30587 esac
30588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30589 (eval "$ac_link") 2>conftest.er1
30590 ac_status=$?
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
30596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30597 { (case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600 esac
30601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_try") 2>&5
30603 ac_status=$?
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; } &&
30606 { ac_try='test -s conftest$ac_exeext'
30607 { (case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_try") 2>&5
30613 ac_status=$?
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; }; then
30616 eval "$as_ac_var=yes"
30617 else
30618 echo "$as_me: failed program was:" >&5
30619 sed 's/^/| /' conftest.$ac_ext >&5
30621 eval "$as_ac_var=no"
30624 rm -f core conftest.err conftest.$ac_objext \
30625 conftest$ac_exeext conftest.$ac_ext
30627 ac_res=`eval echo '${'$as_ac_var'}'`
30628 { echo "$as_me:$LINENO: result: $ac_res" >&5
30629 echo "${ECHO_T}$ac_res" >&6; }
30630 if test `eval echo '${'$as_ac_var'}'` = yes; then
30631 cat >>confdefs.h <<_ACEOF
30632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30633 _ACEOF
30634 have_cos=1
30636 done
30639 for ac_func in floor
30641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30645 echo $ECHO_N "(cached) $ECHO_C" >&6
30646 else
30647 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h. */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h. */
30653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30655 #define $ac_func innocuous_$ac_func
30657 /* System header to define __stub macros and hopefully few prototypes,
30658 which can conflict with char $ac_func (); below.
30659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30660 <limits.h> exists even on freestanding compilers. */
30662 #ifdef __STDC__
30663 # include <limits.h>
30664 #else
30665 # include <assert.h>
30666 #endif
30668 #undef $ac_func
30670 /* Override any GCC internal prototype to avoid an error.
30671 Use char because int might match the return type of a GCC
30672 builtin and then its argument prototype would still apply. */
30673 #ifdef __cplusplus
30674 extern "C"
30675 #endif
30676 char $ac_func ();
30677 /* The GNU C library defines this for functions which it implements
30678 to always fail with ENOSYS. Some functions are actually named
30679 something starting with __ and the normal name is an alias. */
30680 #if defined __stub_$ac_func || defined __stub___$ac_func
30681 choke me
30682 #endif
30685 main ()
30687 return $ac_func ();
30689 return 0;
30691 _ACEOF
30692 rm -f conftest.$ac_objext conftest$ac_exeext
30693 if { (ac_try="$ac_link"
30694 case "(($ac_try" in
30695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30696 *) ac_try_echo=$ac_try;;
30697 esac
30698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30699 (eval "$ac_link") 2>conftest.er1
30700 ac_status=$?
30701 grep -v '^ *+' conftest.er1 >conftest.err
30702 rm -f conftest.er1
30703 cat conftest.err >&5
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); } &&
30706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; } &&
30716 { ac_try='test -s conftest$ac_exeext'
30717 { (case "(($ac_try" in
30718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719 *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722 (eval "$ac_try") 2>&5
30723 ac_status=$?
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); }; }; then
30726 eval "$as_ac_var=yes"
30727 else
30728 echo "$as_me: failed program was:" >&5
30729 sed 's/^/| /' conftest.$ac_ext >&5
30731 eval "$as_ac_var=no"
30734 rm -f core conftest.err conftest.$ac_objext \
30735 conftest$ac_exeext conftest.$ac_ext
30737 ac_res=`eval echo '${'$as_ac_var'}'`
30738 { echo "$as_me:$LINENO: result: $ac_res" >&5
30739 echo "${ECHO_T}$ac_res" >&6; }
30740 if test `eval echo '${'$as_ac_var'}'` = yes; then
30741 cat >>confdefs.h <<_ACEOF
30742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30743 _ACEOF
30744 have_floor=1
30746 done
30748 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
30749 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
30750 if test "$have_cos" = 1 -a "$have_floor" = 1; then
30751 { echo "$as_me:$LINENO: result: yes" >&5
30752 echo "${ECHO_T}yes" >&6; }
30753 else
30754 { echo "$as_me:$LINENO: result: no" >&5
30755 echo "${ECHO_T}no" >&6; }
30756 LIBS="$LIBS -lm"
30757 # use different functions to bypass configure caching
30758 have_sin=0
30759 have_ceil=0
30761 for ac_func in sin
30763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30767 echo $ECHO_N "(cached) $ECHO_C" >&6
30768 else
30769 cat >conftest.$ac_ext <<_ACEOF
30770 /* confdefs.h. */
30771 _ACEOF
30772 cat confdefs.h >>conftest.$ac_ext
30773 cat >>conftest.$ac_ext <<_ACEOF
30774 /* end confdefs.h. */
30775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30777 #define $ac_func innocuous_$ac_func
30779 /* System header to define __stub macros and hopefully few prototypes,
30780 which can conflict with char $ac_func (); below.
30781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30782 <limits.h> exists even on freestanding compilers. */
30784 #ifdef __STDC__
30785 # include <limits.h>
30786 #else
30787 # include <assert.h>
30788 #endif
30790 #undef $ac_func
30792 /* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply. */
30795 #ifdef __cplusplus
30796 extern "C"
30797 #endif
30798 char $ac_func ();
30799 /* The GNU C library defines this for functions which it implements
30800 to always fail with ENOSYS. Some functions are actually named
30801 something starting with __ and the normal name is an alias. */
30802 #if defined __stub_$ac_func || defined __stub___$ac_func
30803 choke me
30804 #endif
30807 main ()
30809 return $ac_func ();
30811 return 0;
30813 _ACEOF
30814 rm -f conftest.$ac_objext conftest$ac_exeext
30815 if { (ac_try="$ac_link"
30816 case "(($ac_try" in
30817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30818 *) ac_try_echo=$ac_try;;
30819 esac
30820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30821 (eval "$ac_link") 2>conftest.er1
30822 ac_status=$?
30823 grep -v '^ *+' conftest.er1 >conftest.err
30824 rm -f conftest.er1
30825 cat conftest.err >&5
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); } &&
30828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30829 { (case "(($ac_try" in
30830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30831 *) ac_try_echo=$ac_try;;
30832 esac
30833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30834 (eval "$ac_try") 2>&5
30835 ac_status=$?
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); }; } &&
30838 { ac_try='test -s conftest$ac_exeext'
30839 { (case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30842 esac
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_try") 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; }; then
30848 eval "$as_ac_var=yes"
30849 else
30850 echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30853 eval "$as_ac_var=no"
30856 rm -f core conftest.err conftest.$ac_objext \
30857 conftest$ac_exeext conftest.$ac_ext
30859 ac_res=`eval echo '${'$as_ac_var'}'`
30860 { echo "$as_me:$LINENO: result: $ac_res" >&5
30861 echo "${ECHO_T}$ac_res" >&6; }
30862 if test `eval echo '${'$as_ac_var'}'` = yes; then
30863 cat >>confdefs.h <<_ACEOF
30864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30865 _ACEOF
30866 have_sin=1
30868 done
30871 for ac_func in ceil
30873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30877 echo $ECHO_N "(cached) $ECHO_C" >&6
30878 else
30879 cat >conftest.$ac_ext <<_ACEOF
30880 /* confdefs.h. */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h. */
30885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30887 #define $ac_func innocuous_$ac_func
30889 /* System header to define __stub macros and hopefully few prototypes,
30890 which can conflict with char $ac_func (); below.
30891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30892 <limits.h> exists even on freestanding compilers. */
30894 #ifdef __STDC__
30895 # include <limits.h>
30896 #else
30897 # include <assert.h>
30898 #endif
30900 #undef $ac_func
30902 /* Override any GCC internal prototype to avoid an error.
30903 Use char because int might match the return type of a GCC
30904 builtin and then its argument prototype would still apply. */
30905 #ifdef __cplusplus
30906 extern "C"
30907 #endif
30908 char $ac_func ();
30909 /* The GNU C library defines this for functions which it implements
30910 to always fail with ENOSYS. Some functions are actually named
30911 something starting with __ and the normal name is an alias. */
30912 #if defined __stub_$ac_func || defined __stub___$ac_func
30913 choke me
30914 #endif
30917 main ()
30919 return $ac_func ();
30921 return 0;
30923 _ACEOF
30924 rm -f conftest.$ac_objext conftest$ac_exeext
30925 if { (ac_try="$ac_link"
30926 case "(($ac_try" in
30927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928 *) ac_try_echo=$ac_try;;
30929 esac
30930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931 (eval "$ac_link") 2>conftest.er1
30932 ac_status=$?
30933 grep -v '^ *+' conftest.er1 >conftest.err
30934 rm -f conftest.er1
30935 cat conftest.err >&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); } &&
30938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30939 { (case "(($ac_try" in
30940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30941 *) ac_try_echo=$ac_try;;
30942 esac
30943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30944 (eval "$ac_try") 2>&5
30945 ac_status=$?
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); }; } &&
30948 { ac_try='test -s conftest$ac_exeext'
30949 { (case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_try") 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; }; then
30958 eval "$as_ac_var=yes"
30959 else
30960 echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30963 eval "$as_ac_var=no"
30966 rm -f core conftest.err conftest.$ac_objext \
30967 conftest$ac_exeext conftest.$ac_ext
30969 ac_res=`eval echo '${'$as_ac_var'}'`
30970 { echo "$as_me:$LINENO: result: $ac_res" >&5
30971 echo "${ECHO_T}$ac_res" >&6; }
30972 if test `eval echo '${'$as_ac_var'}'` = yes; then
30973 cat >>confdefs.h <<_ACEOF
30974 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30975 _ACEOF
30976 have_ceil=1
30978 done
30980 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
30981 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
30982 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
30983 { echo "$as_me:$LINENO: result: yes" >&5
30984 echo "${ECHO_T}yes" >&6; }
30985 else
30986 { echo "$as_me:$LINENO: result: no" >&5
30987 echo "${ECHO_T}no" >&6; }
30988 # not sure we should warn the user, crash, etc.
30989 # expect link failure
30993 { echo "$as_me:$LINENO: checking for struct timeval" >&5
30994 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
30995 cat >conftest.$ac_ext <<_ACEOF
30996 /* confdefs.h. */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h. */
31001 #include <sys/time.h>
31003 main ()
31005 struct timeval x;
31007 return 0;
31009 _ACEOF
31010 rm -f conftest.$ac_objext
31011 if { (ac_try="$ac_compile"
31012 case "(($ac_try" in
31013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014 *) ac_try_echo=$ac_try;;
31015 esac
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017 (eval "$ac_compile") 2>conftest.er1
31018 ac_status=$?
31019 grep -v '^ *+' conftest.er1 >conftest.err
31020 rm -f conftest.er1
31021 cat conftest.err >&5
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); } &&
31024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31025 { (case "(($ac_try" in
31026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027 *) ac_try_echo=$ac_try;;
31028 esac
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030 (eval "$ac_try") 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; } &&
31034 { ac_try='test -s conftest.$ac_objext'
31035 { (case "(($ac_try" in
31036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037 *) ac_try_echo=$ac_try;;
31038 esac
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040 (eval "$ac_try") 2>&5
31041 ac_status=$?
31042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043 (exit $ac_status); }; }; then
31045 { echo "$as_me:$LINENO: result: yes" >&5
31046 echo "${ECHO_T}yes" >&6; }
31047 cat >>confdefs.h <<\_ACEOF
31048 #define BX_HAVE_STRUCT_TIMEVAL 1
31049 _ACEOF
31052 else
31053 echo "$as_me: failed program was:" >&5
31054 sed 's/^/| /' conftest.$ac_ext >&5
31056 { echo "$as_me:$LINENO: result: no" >&5
31057 echo "${ECHO_T}no" >&6; }
31060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31062 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
31063 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
31064 cat >conftest.$ac_ext <<_ACEOF
31065 /* confdefs.h. */
31066 _ACEOF
31067 cat confdefs.h >>conftest.$ac_ext
31068 cat >>conftest.$ac_ext <<_ACEOF
31069 /* end confdefs.h. */
31072 main ()
31074 typedef struct { } junk;
31076 return 0;
31078 _ACEOF
31079 rm -f conftest.$ac_objext
31080 if { (ac_try="$ac_compile"
31081 case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_compile") 2>conftest.er1
31087 ac_status=$?
31088 grep -v '^ *+' conftest.er1 >conftest.err
31089 rm -f conftest.er1
31090 cat conftest.err >&5
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); } &&
31093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31094 { (case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31097 esac
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_try") 2>&5
31100 ac_status=$?
31101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102 (exit $ac_status); }; } &&
31103 { ac_try='test -s conftest.$ac_objext'
31104 { (case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31107 esac
31108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_try") 2>&5
31110 ac_status=$?
31111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31112 (exit $ac_status); }; }; then
31113 { echo "$as_me:$LINENO: result: yes" >&5
31114 echo "${ECHO_T}yes" >&6; }
31115 else
31116 echo "$as_me: failed program was:" >&5
31117 sed 's/^/| /' conftest.$ac_ext >&5
31120 cat >>confdefs.h <<\_ACEOF
31121 #define BX_NO_EMPTY_STRUCTS 1
31122 _ACEOF
31124 { echo "$as_me:$LINENO: result: no" >&5
31125 echo "${ECHO_T}no" >&6; }
31129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31131 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
31132 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
31133 cat >conftest.$ac_ext <<_ACEOF
31134 /* confdefs.h. */
31135 _ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h. */
31141 main ()
31143 typedef struct { } __attribute__ ((packed)) junk;
31145 return 0;
31147 _ACEOF
31148 rm -f conftest.$ac_objext
31149 if { (ac_try="$ac_compile"
31150 case "(($ac_try" in
31151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152 *) ac_try_echo=$ac_try;;
31153 esac
31154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155 (eval "$ac_compile") 2>conftest.er1
31156 ac_status=$?
31157 grep -v '^ *+' conftest.er1 >conftest.err
31158 rm -f conftest.er1
31159 cat conftest.err >&5
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); } &&
31162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31163 { (case "(($ac_try" in
31164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31165 *) ac_try_echo=$ac_try;;
31166 esac
31167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31168 (eval "$ac_try") 2>&5
31169 ac_status=$?
31170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171 (exit $ac_status); }; } &&
31172 { ac_try='test -s conftest.$ac_objext'
31173 { (case "(($ac_try" in
31174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175 *) ac_try_echo=$ac_try;;
31176 esac
31177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31178 (eval "$ac_try") 2>&5
31179 ac_status=$?
31180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31181 (exit $ac_status); }; }; then
31182 { echo "$as_me:$LINENO: result: yes" >&5
31183 echo "${ECHO_T}yes" >&6; }
31184 else
31185 echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31189 { echo "$as_me:$LINENO: result: no" >&5
31190 echo "${ECHO_T}no" >&6; }
31191 cat >>confdefs.h <<\_ACEOF
31192 #define BX_NO_ATTRIBUTES 1
31193 _ACEOF
31198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31201 ac_ext=cpp
31202 ac_cpp='$CXXCPP $CPPFLAGS'
31203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31207 { echo "$as_me:$LINENO: checking for hash_map" >&5
31208 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
31209 cat >conftest.$ac_ext <<_ACEOF
31210 /* confdefs.h. */
31211 _ACEOF
31212 cat confdefs.h >>conftest.$ac_ext
31213 cat >>conftest.$ac_ext <<_ACEOF
31214 /* end confdefs.h. */
31215 #include <hash_map>
31217 main ()
31221 return 0;
31223 _ACEOF
31224 rm -f conftest.$ac_objext
31225 if { (ac_try="$ac_compile"
31226 case "(($ac_try" in
31227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31228 *) ac_try_echo=$ac_try;;
31229 esac
31230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31231 (eval "$ac_compile") 2>conftest.er1
31232 ac_status=$?
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
31238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31239 { (case "(($ac_try" in
31240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241 *) ac_try_echo=$ac_try;;
31242 esac
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244 (eval "$ac_try") 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; } &&
31248 { ac_try='test -s conftest.$ac_objext'
31249 { (case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252 esac
31253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_try") 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; }; then
31259 { echo "$as_me:$LINENO: result: yes" >&5
31260 echo "${ECHO_T}yes" >&6; }
31261 cat >>confdefs.h <<\_ACEOF
31262 #define BX_HAVE_HASH_MAP 1
31263 _ACEOF
31266 else
31267 echo "$as_me: failed program was:" >&5
31268 sed 's/^/| /' conftest.$ac_ext >&5
31270 { echo "$as_me:$LINENO: result: no" >&5
31271 echo "${ECHO_T}no" >&6; }
31274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31275 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
31276 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
31277 cat >conftest.$ac_ext <<_ACEOF
31278 /* confdefs.h. */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h. */
31283 #include <hash_map.h>
31285 main ()
31289 return 0;
31291 _ACEOF
31292 rm -f conftest.$ac_objext
31293 if { (ac_try="$ac_compile"
31294 case "(($ac_try" in
31295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31296 *) ac_try_echo=$ac_try;;
31297 esac
31298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31299 (eval "$ac_compile") 2>conftest.er1
31300 ac_status=$?
31301 grep -v '^ *+' conftest.er1 >conftest.err
31302 rm -f conftest.er1
31303 cat conftest.err >&5
31304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31305 (exit $ac_status); } &&
31306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31307 { (case "(($ac_try" in
31308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31309 *) ac_try_echo=$ac_try;;
31310 esac
31311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31312 (eval "$ac_try") 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; } &&
31316 { ac_try='test -s conftest.$ac_objext'
31317 { (case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31320 esac
31321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_try") 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
31327 { echo "$as_me:$LINENO: result: yes" >&5
31328 echo "${ECHO_T}yes" >&6; }
31329 cat >>confdefs.h <<\_ACEOF
31330 #define BX_HAVE_HASH_MAP_H 1
31331 _ACEOF
31334 else
31335 echo "$as_me: failed program was:" >&5
31336 sed 's/^/| /' conftest.$ac_ext >&5
31338 { echo "$as_me:$LINENO: result: no" >&5
31339 echo "${ECHO_T}no" >&6; }
31342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31343 { echo "$as_me:$LINENO: checking for set" >&5
31344 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
31345 cat >conftest.$ac_ext <<_ACEOF
31346 /* confdefs.h. */
31347 _ACEOF
31348 cat confdefs.h >>conftest.$ac_ext
31349 cat >>conftest.$ac_ext <<_ACEOF
31350 /* end confdefs.h. */
31351 #include <set>
31353 main ()
31357 return 0;
31359 _ACEOF
31360 rm -f conftest.$ac_objext
31361 if { (ac_try="$ac_compile"
31362 case "(($ac_try" in
31363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31364 *) ac_try_echo=$ac_try;;
31365 esac
31366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31367 (eval "$ac_compile") 2>conftest.er1
31368 ac_status=$?
31369 grep -v '^ *+' conftest.er1 >conftest.err
31370 rm -f conftest.er1
31371 cat conftest.err >&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); } &&
31374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31375 { (case "(($ac_try" in
31376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31377 *) ac_try_echo=$ac_try;;
31378 esac
31379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31380 (eval "$ac_try") 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; } &&
31384 { ac_try='test -s conftest.$ac_objext'
31385 { (case "(($ac_try" in
31386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31387 *) ac_try_echo=$ac_try;;
31388 esac
31389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31390 (eval "$ac_try") 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; }; then
31395 { echo "$as_me:$LINENO: result: yes" >&5
31396 echo "${ECHO_T}yes" >&6; }
31397 cat >>confdefs.h <<\_ACEOF
31398 #define BX_HAVE_SET 1
31399 _ACEOF
31402 else
31403 echo "$as_me: failed program was:" >&5
31404 sed 's/^/| /' conftest.$ac_ext >&5
31406 { echo "$as_me:$LINENO: result: no" >&5
31407 echo "${ECHO_T}no" >&6; }
31410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31411 { echo "$as_me:$LINENO: checking for set.h" >&5
31412 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
31413 cat >conftest.$ac_ext <<_ACEOF
31414 /* confdefs.h. */
31415 _ACEOF
31416 cat confdefs.h >>conftest.$ac_ext
31417 cat >>conftest.$ac_ext <<_ACEOF
31418 /* end confdefs.h. */
31419 #include <set.h>
31421 main ()
31425 return 0;
31427 _ACEOF
31428 rm -f conftest.$ac_objext
31429 if { (ac_try="$ac_compile"
31430 case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_compile") 2>conftest.er1
31436 ac_status=$?
31437 grep -v '^ *+' conftest.er1 >conftest.err
31438 rm -f conftest.er1
31439 cat conftest.err >&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } &&
31442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31443 { (case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31446 esac
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_try") 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; } &&
31452 { ac_try='test -s conftest.$ac_objext'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31456 esac
31457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31463 { echo "$as_me:$LINENO: result: yes" >&5
31464 echo "${ECHO_T}yes" >&6; }
31465 cat >>confdefs.h <<\_ACEOF
31466 #define BX_HAVE_SET_H 1
31467 _ACEOF
31470 else
31471 echo "$as_me: failed program was:" >&5
31472 sed 's/^/| /' conftest.$ac_ext >&5
31474 { echo "$as_me:$LINENO: result: no" >&5
31475 echo "${ECHO_T}no" >&6; }
31478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479 ac_ext=c
31480 ac_cpp='$CPP $CPPFLAGS'
31481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31486 if test "$with_all_libs" = yes; then
31487 if test "$cross_configure" = 1; then
31488 { 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
31489 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;}
31491 if test "$with_beos" != yes; then
31492 can_compile_beos=1
31493 if test "${ac_cv_header_app_Application_h+set}" = set; then
31494 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31495 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31496 if test "${ac_cv_header_app_Application_h+set}" = set; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31499 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31500 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31501 else
31502 # Is the header compilable?
31503 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
31504 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
31505 cat >conftest.$ac_ext <<_ACEOF
31506 /* confdefs.h. */
31507 _ACEOF
31508 cat confdefs.h >>conftest.$ac_ext
31509 cat >>conftest.$ac_ext <<_ACEOF
31510 /* end confdefs.h. */
31511 $ac_includes_default
31512 #include <app/Application.h>
31513 _ACEOF
31514 rm -f conftest.$ac_objext
31515 if { (ac_try="$ac_compile"
31516 case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31519 esac
31520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_compile") 2>conftest.er1
31522 ac_status=$?
31523 grep -v '^ *+' conftest.er1 >conftest.err
31524 rm -f conftest.er1
31525 cat conftest.err >&5
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); } &&
31528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31529 { (case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31532 esac
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_try") 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest.$ac_objext'
31539 { (case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31542 esac
31543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_try") 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
31548 ac_header_compiler=yes
31549 else
31550 echo "$as_me: failed program was:" >&5
31551 sed 's/^/| /' conftest.$ac_ext >&5
31553 ac_header_compiler=no
31556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31558 echo "${ECHO_T}$ac_header_compiler" >&6; }
31560 # Is the header present?
31561 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
31562 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
31563 cat >conftest.$ac_ext <<_ACEOF
31564 /* confdefs.h. */
31565 _ACEOF
31566 cat confdefs.h >>conftest.$ac_ext
31567 cat >>conftest.$ac_ext <<_ACEOF
31568 /* end confdefs.h. */
31569 #include <app/Application.h>
31570 _ACEOF
31571 if { (ac_try="$ac_cpp conftest.$ac_ext"
31572 case "(($ac_try" in
31573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31574 *) ac_try_echo=$ac_try;;
31575 esac
31576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31578 ac_status=$?
31579 grep -v '^ *+' conftest.er1 >conftest.err
31580 rm -f conftest.er1
31581 cat conftest.err >&5
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); } >/dev/null; then
31584 if test -s conftest.err; then
31585 ac_cpp_err=$ac_c_preproc_warn_flag
31586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31587 else
31588 ac_cpp_err=
31590 else
31591 ac_cpp_err=yes
31593 if test -z "$ac_cpp_err"; then
31594 ac_header_preproc=yes
31595 else
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 ac_header_preproc=no
31602 rm -f conftest.err conftest.$ac_ext
31603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31604 echo "${ECHO_T}$ac_header_preproc" >&6; }
31606 # So? What about this header?
31607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31608 yes:no: )
31609 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
31610 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
31612 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
31613 ac_header_preproc=yes
31615 no:yes:* )
31616 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
31617 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
31619 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
31621 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
31623 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
31625 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
31627 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
31630 esac
31631 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31632 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31633 if test "${ac_cv_header_app_Application_h+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31635 else
31636 ac_cv_header_app_Application_h=$ac_header_preproc
31638 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31639 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31642 if test $ac_cv_header_app_Application_h = yes; then
31644 else
31645 can_compile_beos=0
31649 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31650 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31651 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31652 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31653 echo $ECHO_N "(cached) $ECHO_C" >&6
31655 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31656 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31657 else
31658 # Is the header compilable?
31659 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
31660 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
31661 cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h. */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h. */
31667 $ac_includes_default
31668 #include <interface/Window.h>
31669 _ACEOF
31670 rm -f conftest.$ac_objext
31671 if { (ac_try="$ac_compile"
31672 case "(($ac_try" in
31673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31674 *) ac_try_echo=$ac_try;;
31675 esac
31676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31677 (eval "$ac_compile") 2>conftest.er1
31678 ac_status=$?
31679 grep -v '^ *+' conftest.er1 >conftest.err
31680 rm -f conftest.er1
31681 cat conftest.err >&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); } &&
31684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31688 esac
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31691 ac_status=$?
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; } &&
31694 { ac_try='test -s conftest.$ac_objext'
31695 { (case "(($ac_try" in
31696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697 *) ac_try_echo=$ac_try;;
31698 esac
31699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700 (eval "$ac_try") 2>&5
31701 ac_status=$?
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); }; }; then
31704 ac_header_compiler=yes
31705 else
31706 echo "$as_me: failed program was:" >&5
31707 sed 's/^/| /' conftest.$ac_ext >&5
31709 ac_header_compiler=no
31712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31714 echo "${ECHO_T}$ac_header_compiler" >&6; }
31716 # Is the header present?
31717 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
31718 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
31719 cat >conftest.$ac_ext <<_ACEOF
31720 /* confdefs.h. */
31721 _ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h. */
31725 #include <interface/Window.h>
31726 _ACEOF
31727 if { (ac_try="$ac_cpp conftest.$ac_ext"
31728 case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31731 esac
31732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31734 ac_status=$?
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } >/dev/null; then
31740 if test -s conftest.err; then
31741 ac_cpp_err=$ac_c_preproc_warn_flag
31742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31743 else
31744 ac_cpp_err=
31746 else
31747 ac_cpp_err=yes
31749 if test -z "$ac_cpp_err"; then
31750 ac_header_preproc=yes
31751 else
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31755 ac_header_preproc=no
31758 rm -f conftest.err conftest.$ac_ext
31759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31760 echo "${ECHO_T}$ac_header_preproc" >&6; }
31762 # So? What about this header?
31763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31764 yes:no: )
31765 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
31766 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
31768 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
31769 ac_header_preproc=yes
31771 no:yes:* )
31772 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
31773 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
31774 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
31775 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
31777 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
31779 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
31781 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
31783 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
31786 esac
31787 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31788 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31789 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792 ac_cv_header_interface_Window_h=$ac_header_preproc
31794 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31795 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31798 if test $ac_cv_header_interface_Window_h = yes; then
31800 else
31801 can_compile_beos=0
31805 if test "${ac_cv_header_interface_View_h+set}" = set; then
31806 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31807 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31808 if test "${ac_cv_header_interface_View_h+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31812 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31813 else
31814 # Is the header compilable?
31815 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
31816 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
31817 cat >conftest.$ac_ext <<_ACEOF
31818 /* confdefs.h. */
31819 _ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 $ac_includes_default
31824 #include <interface/View.h>
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31834 ac_status=$?
31835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } &&
31840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31841 { (case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31844 esac
31845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; } &&
31850 { ac_try='test -s conftest.$ac_objext'
31851 { (case "(($ac_try" in
31852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853 *) ac_try_echo=$ac_try;;
31854 esac
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856 (eval "$ac_try") 2>&5
31857 ac_status=$?
31858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859 (exit $ac_status); }; }; then
31860 ac_header_compiler=yes
31861 else
31862 echo "$as_me: failed program was:" >&5
31863 sed 's/^/| /' conftest.$ac_ext >&5
31865 ac_header_compiler=no
31868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31870 echo "${ECHO_T}$ac_header_compiler" >&6; }
31872 # Is the header present?
31873 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
31874 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
31875 cat >conftest.$ac_ext <<_ACEOF
31876 /* confdefs.h. */
31877 _ACEOF
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31881 #include <interface/View.h>
31882 _ACEOF
31883 if { (ac_try="$ac_cpp conftest.$ac_ext"
31884 case "(($ac_try" in
31885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31886 *) ac_try_echo=$ac_try;;
31887 esac
31888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31890 ac_status=$?
31891 grep -v '^ *+' conftest.er1 >conftest.err
31892 rm -f conftest.er1
31893 cat conftest.err >&5
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); } >/dev/null; then
31896 if test -s conftest.err; then
31897 ac_cpp_err=$ac_c_preproc_warn_flag
31898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31899 else
31900 ac_cpp_err=
31902 else
31903 ac_cpp_err=yes
31905 if test -z "$ac_cpp_err"; then
31906 ac_header_preproc=yes
31907 else
31908 echo "$as_me: failed program was:" >&5
31909 sed 's/^/| /' conftest.$ac_ext >&5
31911 ac_header_preproc=no
31914 rm -f conftest.err conftest.$ac_ext
31915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31916 echo "${ECHO_T}$ac_header_preproc" >&6; }
31918 # So? What about this header?
31919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31920 yes:no: )
31921 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
31922 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31923 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
31924 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
31925 ac_header_preproc=yes
31927 no:yes:* )
31928 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
31929 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
31930 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
31931 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
31932 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
31933 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
31934 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
31935 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
31936 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
31937 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
31938 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
31939 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
31942 esac
31943 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31944 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31945 if test "${ac_cv_header_interface_View_h+set}" = set; then
31946 echo $ECHO_N "(cached) $ECHO_C" >&6
31947 else
31948 ac_cv_header_interface_View_h=$ac_header_preproc
31950 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31951 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31954 if test $ac_cv_header_interface_View_h = yes; then
31956 else
31957 can_compile_beos=0
31961 if test $can_compile_beos = 1; then
31962 with_beos=yes
31966 if test "$with_amigaos" != yes; then
31967 can_compile_amigaos=1
31968 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31969 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
31970 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
31971 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31972 echo $ECHO_N "(cached) $ECHO_C" >&6
31974 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
31975 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
31976 else
31977 # Is the header compilable?
31978 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
31979 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
31980 cat >conftest.$ac_ext <<_ACEOF
31981 /* confdefs.h. */
31982 _ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31986 $ac_includes_default
31987 #include <proto/intuition.h>
31988 _ACEOF
31989 rm -f conftest.$ac_objext
31990 if { (ac_try="$ac_compile"
31991 case "(($ac_try" in
31992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993 *) ac_try_echo=$ac_try;;
31994 esac
31995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996 (eval "$ac_compile") 2>conftest.er1
31997 ac_status=$?
31998 grep -v '^ *+' conftest.er1 >conftest.err
31999 rm -f conftest.er1
32000 cat conftest.err >&5
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); } &&
32003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32004 { (case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32007 esac
32008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_try") 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; } &&
32013 { ac_try='test -s conftest.$ac_objext'
32014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017 esac
32018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
32020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; }; then
32023 ac_header_compiler=yes
32024 else
32025 echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32028 ac_header_compiler=no
32031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32033 echo "${ECHO_T}$ac_header_compiler" >&6; }
32035 # Is the header present?
32036 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
32037 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
32038 cat >conftest.$ac_ext <<_ACEOF
32039 /* confdefs.h. */
32040 _ACEOF
32041 cat confdefs.h >>conftest.$ac_ext
32042 cat >>conftest.$ac_ext <<_ACEOF
32043 /* end confdefs.h. */
32044 #include <proto/intuition.h>
32045 _ACEOF
32046 if { (ac_try="$ac_cpp conftest.$ac_ext"
32047 case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050 esac
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); } >/dev/null; then
32059 if test -s conftest.err; then
32060 ac_cpp_err=$ac_c_preproc_warn_flag
32061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32062 else
32063 ac_cpp_err=
32065 else
32066 ac_cpp_err=yes
32068 if test -z "$ac_cpp_err"; then
32069 ac_header_preproc=yes
32070 else
32071 echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32074 ac_header_preproc=no
32077 rm -f conftest.err conftest.$ac_ext
32078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32079 echo "${ECHO_T}$ac_header_preproc" >&6; }
32081 # So? What about this header?
32082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32083 yes:no: )
32084 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
32085 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32086 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
32087 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
32088 ac_header_preproc=yes
32090 no:yes:* )
32091 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
32092 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
32093 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
32094 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
32095 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
32096 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
32097 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
32098 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
32099 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
32100 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
32101 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
32102 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
32105 esac
32106 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
32107 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
32108 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
32109 echo $ECHO_N "(cached) $ECHO_C" >&6
32110 else
32111 ac_cv_header_proto_intuition_h=$ac_header_preproc
32113 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
32114 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
32117 if test $ac_cv_header_proto_intuition_h = yes; then
32119 else
32120 can_compile_amigaos=0
32124 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32125 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32126 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32127 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32130 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32131 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32132 else
32133 # Is the header compilable?
32134 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
32135 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
32136 cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h. */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h. */
32142 $ac_includes_default
32143 #include <intuition/intuitionbase.h>
32144 _ACEOF
32145 rm -f conftest.$ac_objext
32146 if { (ac_try="$ac_compile"
32147 case "(($ac_try" in
32148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32149 *) ac_try_echo=$ac_try;;
32150 esac
32151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32152 (eval "$ac_compile") 2>conftest.er1
32153 ac_status=$?
32154 grep -v '^ *+' conftest.er1 >conftest.err
32155 rm -f conftest.er1
32156 cat conftest.err >&5
32157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32158 (exit $ac_status); } &&
32159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32160 { (case "(($ac_try" in
32161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32162 *) ac_try_echo=$ac_try;;
32163 esac
32164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32165 (eval "$ac_try") 2>&5
32166 ac_status=$?
32167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168 (exit $ac_status); }; } &&
32169 { ac_try='test -s conftest.$ac_objext'
32170 { (case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173 esac
32174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_try") 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
32179 ac_header_compiler=yes
32180 else
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.$ac_ext >&5
32184 ac_header_compiler=no
32187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32189 echo "${ECHO_T}$ac_header_compiler" >&6; }
32191 # Is the header present?
32192 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
32193 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
32194 cat >conftest.$ac_ext <<_ACEOF
32195 /* confdefs.h. */
32196 _ACEOF
32197 cat confdefs.h >>conftest.$ac_ext
32198 cat >>conftest.$ac_ext <<_ACEOF
32199 /* end confdefs.h. */
32200 #include <intuition/intuitionbase.h>
32201 _ACEOF
32202 if { (ac_try="$ac_cpp conftest.$ac_ext"
32203 case "(($ac_try" in
32204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205 *) ac_try_echo=$ac_try;;
32206 esac
32207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32209 ac_status=$?
32210 grep -v '^ *+' conftest.er1 >conftest.err
32211 rm -f conftest.er1
32212 cat conftest.err >&5
32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214 (exit $ac_status); } >/dev/null; then
32215 if test -s conftest.err; then
32216 ac_cpp_err=$ac_c_preproc_warn_flag
32217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32218 else
32219 ac_cpp_err=
32221 else
32222 ac_cpp_err=yes
32224 if test -z "$ac_cpp_err"; then
32225 ac_header_preproc=yes
32226 else
32227 echo "$as_me: failed program was:" >&5
32228 sed 's/^/| /' conftest.$ac_ext >&5
32230 ac_header_preproc=no
32233 rm -f conftest.err conftest.$ac_ext
32234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32235 echo "${ECHO_T}$ac_header_preproc" >&6; }
32237 # So? What about this header?
32238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32239 yes:no: )
32240 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
32241 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32242 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
32243 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
32244 ac_header_preproc=yes
32246 no:yes:* )
32247 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
32248 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
32249 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
32250 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
32251 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
32252 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
32253 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
32254 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
32255 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
32256 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
32257 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
32258 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
32261 esac
32262 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32263 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32264 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32265 echo $ECHO_N "(cached) $ECHO_C" >&6
32266 else
32267 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
32269 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32270 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32273 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
32275 else
32276 can_compile_amigaos=0
32280 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32281 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32282 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32283 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32286 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32287 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32288 else
32289 # Is the header compilable?
32290 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
32291 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
32292 cat >conftest.$ac_ext <<_ACEOF
32293 /* confdefs.h. */
32294 _ACEOF
32295 cat confdefs.h >>conftest.$ac_ext
32296 cat >>conftest.$ac_ext <<_ACEOF
32297 /* end confdefs.h. */
32298 $ac_includes_default
32299 #include <cybergraphx/cybergraphics.h>
32300 _ACEOF
32301 rm -f conftest.$ac_objext
32302 if { (ac_try="$ac_compile"
32303 case "(($ac_try" in
32304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32305 *) ac_try_echo=$ac_try;;
32306 esac
32307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32308 (eval "$ac_compile") 2>conftest.er1
32309 ac_status=$?
32310 grep -v '^ *+' conftest.er1 >conftest.err
32311 rm -f conftest.er1
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32316 { (case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319 esac
32320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32321 (eval "$ac_try") 2>&5
32322 ac_status=$?
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest.$ac_objext'
32326 { (case "(($ac_try" in
32327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32328 *) ac_try_echo=$ac_try;;
32329 esac
32330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32331 (eval "$ac_try") 2>&5
32332 ac_status=$?
32333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334 (exit $ac_status); }; }; then
32335 ac_header_compiler=yes
32336 else
32337 echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32340 ac_header_compiler=no
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32345 echo "${ECHO_T}$ac_header_compiler" >&6; }
32347 # Is the header present?
32348 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
32349 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
32350 cat >conftest.$ac_ext <<_ACEOF
32351 /* confdefs.h. */
32352 _ACEOF
32353 cat confdefs.h >>conftest.$ac_ext
32354 cat >>conftest.$ac_ext <<_ACEOF
32355 /* end confdefs.h. */
32356 #include <cybergraphx/cybergraphics.h>
32357 _ACEOF
32358 if { (ac_try="$ac_cpp conftest.$ac_ext"
32359 case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32365 ac_status=$?
32366 grep -v '^ *+' conftest.er1 >conftest.err
32367 rm -f conftest.er1
32368 cat conftest.err >&5
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); } >/dev/null; then
32371 if test -s conftest.err; then
32372 ac_cpp_err=$ac_c_preproc_warn_flag
32373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32374 else
32375 ac_cpp_err=
32377 else
32378 ac_cpp_err=yes
32380 if test -z "$ac_cpp_err"; then
32381 ac_header_preproc=yes
32382 else
32383 echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32386 ac_header_preproc=no
32389 rm -f conftest.err conftest.$ac_ext
32390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391 echo "${ECHO_T}$ac_header_preproc" >&6; }
32393 # So? What about this header?
32394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32395 yes:no: )
32396 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
32397 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32398 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
32399 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
32400 ac_header_preproc=yes
32402 no:yes:* )
32403 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
32404 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
32405 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
32406 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
32408 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
32410 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
32412 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
32414 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
32417 esac
32418 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32419 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32420 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32421 echo $ECHO_N "(cached) $ECHO_C" >&6
32422 else
32423 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
32425 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32426 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32429 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
32431 else
32432 can_compile_amigaos=0
32436 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32437 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32438 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32439 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32442 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32443 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32444 else
32445 # Is the header compilable?
32446 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
32447 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
32448 cat >conftest.$ac_ext <<_ACEOF
32449 /* confdefs.h. */
32450 _ACEOF
32451 cat confdefs.h >>conftest.$ac_ext
32452 cat >>conftest.$ac_ext <<_ACEOF
32453 /* end confdefs.h. */
32454 $ac_includes_default
32455 #include <devices/trackdisk.h>
32456 _ACEOF
32457 rm -f conftest.$ac_objext
32458 if { (ac_try="$ac_compile"
32459 case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32462 esac
32463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_compile") 2>conftest.er1
32465 ac_status=$?
32466 grep -v '^ *+' conftest.er1 >conftest.err
32467 rm -f conftest.er1
32468 cat conftest.err >&5
32469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32470 (exit $ac_status); } &&
32471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32475 esac
32476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest.$ac_objext'
32482 { (case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32485 esac
32486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_try") 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
32491 ac_header_compiler=yes
32492 else
32493 echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32496 ac_header_compiler=no
32499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32501 echo "${ECHO_T}$ac_header_compiler" >&6; }
32503 # Is the header present?
32504 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
32505 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
32506 cat >conftest.$ac_ext <<_ACEOF
32507 /* confdefs.h. */
32508 _ACEOF
32509 cat confdefs.h >>conftest.$ac_ext
32510 cat >>conftest.$ac_ext <<_ACEOF
32511 /* end confdefs.h. */
32512 #include <devices/trackdisk.h>
32513 _ACEOF
32514 if { (ac_try="$ac_cpp conftest.$ac_ext"
32515 case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32521 ac_status=$?
32522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
32525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } >/dev/null; then
32527 if test -s conftest.err; then
32528 ac_cpp_err=$ac_c_preproc_warn_flag
32529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32530 else
32531 ac_cpp_err=
32533 else
32534 ac_cpp_err=yes
32536 if test -z "$ac_cpp_err"; then
32537 ac_header_preproc=yes
32538 else
32539 echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32542 ac_header_preproc=no
32545 rm -f conftest.err conftest.$ac_ext
32546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32547 echo "${ECHO_T}$ac_header_preproc" >&6; }
32549 # So? What about this header?
32550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32551 yes:no: )
32552 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
32553 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32554 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
32555 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
32556 ac_header_preproc=yes
32558 no:yes:* )
32559 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
32560 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
32561 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
32562 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
32563 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
32564 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
32565 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
32566 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
32567 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
32568 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
32570 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
32573 esac
32574 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32575 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32576 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32578 else
32579 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
32581 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32582 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32585 if test $ac_cv_header_devices_trackdisk_h = yes; then
32587 else
32588 can_compile_amigaos=0
32592 if test $can_compile_amigaos = 1; then
32593 with_amigaos=yes
32597 if test "$with_macos" != yes; then
32598 can_compile_macos=1
32599 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32600 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32601 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32602 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32603 echo $ECHO_N "(cached) $ECHO_C" >&6
32605 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32606 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32607 else
32608 # Is the header compilable?
32609 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
32610 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
32611 cat >conftest.$ac_ext <<_ACEOF
32612 /* confdefs.h. */
32613 _ACEOF
32614 cat confdefs.h >>conftest.$ac_ext
32615 cat >>conftest.$ac_ext <<_ACEOF
32616 /* end confdefs.h. */
32617 $ac_includes_default
32618 #include <Quickdraw.h>
32619 _ACEOF
32620 rm -f conftest.$ac_objext
32621 if { (ac_try="$ac_compile"
32622 case "(($ac_try" in
32623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624 *) ac_try_echo=$ac_try;;
32625 esac
32626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32627 (eval "$ac_compile") 2>conftest.er1
32628 ac_status=$?
32629 grep -v '^ *+' conftest.er1 >conftest.err
32630 rm -f conftest.er1
32631 cat conftest.err >&5
32632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633 (exit $ac_status); } &&
32634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32635 { (case "(($ac_try" in
32636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637 *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640 (eval "$ac_try") 2>&5
32641 ac_status=$?
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; } &&
32644 { ac_try='test -s conftest.$ac_objext'
32645 { (case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648 esac
32649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32650 (eval "$ac_try") 2>&5
32651 ac_status=$?
32652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653 (exit $ac_status); }; }; then
32654 ac_header_compiler=yes
32655 else
32656 echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32659 ac_header_compiler=no
32662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32664 echo "${ECHO_T}$ac_header_compiler" >&6; }
32666 # Is the header present?
32667 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
32668 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
32669 cat >conftest.$ac_ext <<_ACEOF
32670 /* confdefs.h. */
32671 _ACEOF
32672 cat confdefs.h >>conftest.$ac_ext
32673 cat >>conftest.$ac_ext <<_ACEOF
32674 /* end confdefs.h. */
32675 #include <Quickdraw.h>
32676 _ACEOF
32677 if { (ac_try="$ac_cpp conftest.$ac_ext"
32678 case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32681 esac
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32684 ac_status=$?
32685 grep -v '^ *+' conftest.er1 >conftest.err
32686 rm -f conftest.er1
32687 cat conftest.err >&5
32688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); } >/dev/null; then
32690 if test -s conftest.err; then
32691 ac_cpp_err=$ac_c_preproc_warn_flag
32692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32693 else
32694 ac_cpp_err=
32696 else
32697 ac_cpp_err=yes
32699 if test -z "$ac_cpp_err"; then
32700 ac_header_preproc=yes
32701 else
32702 echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32705 ac_header_preproc=no
32708 rm -f conftest.err conftest.$ac_ext
32709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32710 echo "${ECHO_T}$ac_header_preproc" >&6; }
32712 # So? What about this header?
32713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32714 yes:no: )
32715 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
32716 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32717 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
32718 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
32719 ac_header_preproc=yes
32721 no:yes:* )
32722 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
32723 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
32724 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
32725 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
32727 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
32729 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
32730 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
32731 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
32732 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
32733 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
32736 esac
32737 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32738 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32739 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741 else
32742 ac_cv_header_Quickdraw_h=$ac_header_preproc
32744 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32745 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32748 if test $ac_cv_header_Quickdraw_h = yes; then
32750 else
32751 can_compile_macos=0
32755 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32756 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32757 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32758 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
32761 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32762 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32763 else
32764 # Is the header compilable?
32765 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
32766 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
32767 cat >conftest.$ac_ext <<_ACEOF
32768 /* confdefs.h. */
32769 _ACEOF
32770 cat confdefs.h >>conftest.$ac_ext
32771 cat >>conftest.$ac_ext <<_ACEOF
32772 /* end confdefs.h. */
32773 $ac_includes_default
32774 #include <Dialogs.h>
32775 _ACEOF
32776 rm -f conftest.$ac_objext
32777 if { (ac_try="$ac_compile"
32778 case "(($ac_try" in
32779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32780 *) ac_try_echo=$ac_try;;
32781 esac
32782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32783 (eval "$ac_compile") 2>conftest.er1
32784 ac_status=$?
32785 grep -v '^ *+' conftest.er1 >conftest.err
32786 rm -f conftest.er1
32787 cat conftest.err >&5
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); } &&
32790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32791 { (case "(($ac_try" in
32792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793 *) ac_try_echo=$ac_try;;
32794 esac
32795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_try") 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; } &&
32800 { ac_try='test -s conftest.$ac_objext'
32801 { (case "(($ac_try" in
32802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32803 *) ac_try_echo=$ac_try;;
32804 esac
32805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32806 (eval "$ac_try") 2>&5
32807 ac_status=$?
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); }; }; then
32810 ac_header_compiler=yes
32811 else
32812 echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.$ac_ext >&5
32815 ac_header_compiler=no
32818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32820 echo "${ECHO_T}$ac_header_compiler" >&6; }
32822 # Is the header present?
32823 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
32824 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
32825 cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h. */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h. */
32831 #include <Dialogs.h>
32832 _ACEOF
32833 if { (ac_try="$ac_cpp conftest.$ac_ext"
32834 case "(($ac_try" in
32835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836 *) ac_try_echo=$ac_try;;
32837 esac
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32840 ac_status=$?
32841 grep -v '^ *+' conftest.er1 >conftest.err
32842 rm -f conftest.er1
32843 cat conftest.err >&5
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); } >/dev/null; then
32846 if test -s conftest.err; then
32847 ac_cpp_err=$ac_c_preproc_warn_flag
32848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32849 else
32850 ac_cpp_err=
32852 else
32853 ac_cpp_err=yes
32855 if test -z "$ac_cpp_err"; then
32856 ac_header_preproc=yes
32857 else
32858 echo "$as_me: failed program was:" >&5
32859 sed 's/^/| /' conftest.$ac_ext >&5
32861 ac_header_preproc=no
32864 rm -f conftest.err conftest.$ac_ext
32865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32866 echo "${ECHO_T}$ac_header_preproc" >&6; }
32868 # So? What about this header?
32869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32870 yes:no: )
32871 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32872 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32873 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
32874 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
32875 ac_header_preproc=yes
32877 no:yes:* )
32878 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
32879 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
32880 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
32881 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
32882 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
32883 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
32884 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
32885 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32886 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
32887 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
32888 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
32889 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
32892 esac
32893 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32894 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32895 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32896 echo $ECHO_N "(cached) $ECHO_C" >&6
32897 else
32898 ac_cv_header_Dialogs_h=$ac_header_preproc
32900 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32901 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32904 if test $ac_cv_header_Dialogs_h = yes; then
32906 else
32907 can_compile_macos=0
32911 if test $can_compile_macos = 1; then
32912 with_macos=yes
32916 if test "$with_carbon" != yes; then
32917 can_compile_carbon=1
32918 if test "${ac_cv_header_Carbon_h+set}" = set; then
32919 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
32920 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
32921 if test "${ac_cv_header_Carbon_h+set}" = set; then
32922 echo $ECHO_N "(cached) $ECHO_C" >&6
32924 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
32925 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
32926 else
32927 # Is the header compilable?
32928 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
32929 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
32930 cat >conftest.$ac_ext <<_ACEOF
32931 /* confdefs.h. */
32932 _ACEOF
32933 cat confdefs.h >>conftest.$ac_ext
32934 cat >>conftest.$ac_ext <<_ACEOF
32935 /* end confdefs.h. */
32936 $ac_includes_default
32937 #include <Carbon.h>
32938 _ACEOF
32939 rm -f conftest.$ac_objext
32940 if { (ac_try="$ac_compile"
32941 case "(($ac_try" in
32942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32943 *) ac_try_echo=$ac_try;;
32944 esac
32945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32946 (eval "$ac_compile") 2>conftest.er1
32947 ac_status=$?
32948 grep -v '^ *+' conftest.er1 >conftest.err
32949 rm -f conftest.er1
32950 cat conftest.err >&5
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); } &&
32953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32954 { (case "(($ac_try" in
32955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956 *) ac_try_echo=$ac_try;;
32957 esac
32958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32959 (eval "$ac_try") 2>&5
32960 ac_status=$?
32961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32962 (exit $ac_status); }; } &&
32963 { ac_try='test -s conftest.$ac_objext'
32964 { (case "(($ac_try" in
32965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32966 *) ac_try_echo=$ac_try;;
32967 esac
32968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32969 (eval "$ac_try") 2>&5
32970 ac_status=$?
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; }; then
32973 ac_header_compiler=yes
32974 else
32975 echo "$as_me: failed program was:" >&5
32976 sed 's/^/| /' conftest.$ac_ext >&5
32978 ac_header_compiler=no
32981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32983 echo "${ECHO_T}$ac_header_compiler" >&6; }
32985 # Is the header present?
32986 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
32987 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
32988 cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h. */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h. */
32994 #include <Carbon.h>
32995 _ACEOF
32996 if { (ac_try="$ac_cpp conftest.$ac_ext"
32997 case "(($ac_try" in
32998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32999 *) ac_try_echo=$ac_try;;
33000 esac
33001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33003 ac_status=$?
33004 grep -v '^ *+' conftest.er1 >conftest.err
33005 rm -f conftest.er1
33006 cat conftest.err >&5
33007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008 (exit $ac_status); } >/dev/null; then
33009 if test -s conftest.err; then
33010 ac_cpp_err=$ac_c_preproc_warn_flag
33011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33012 else
33013 ac_cpp_err=
33015 else
33016 ac_cpp_err=yes
33018 if test -z "$ac_cpp_err"; then
33019 ac_header_preproc=yes
33020 else
33021 echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33024 ac_header_preproc=no
33027 rm -f conftest.err conftest.$ac_ext
33028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33029 echo "${ECHO_T}$ac_header_preproc" >&6; }
33031 # So? What about this header?
33032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33033 yes:no: )
33034 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
33035 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33036 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
33037 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
33038 ac_header_preproc=yes
33040 no:yes:* )
33041 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
33042 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
33043 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
33044 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
33045 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
33046 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
33047 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
33048 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
33049 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
33050 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
33051 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
33052 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
33055 esac
33056 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
33057 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
33058 if test "${ac_cv_header_Carbon_h+set}" = set; then
33059 echo $ECHO_N "(cached) $ECHO_C" >&6
33060 else
33061 ac_cv_header_Carbon_h=$ac_header_preproc
33063 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
33064 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
33067 if test $ac_cv_header_Carbon_h = yes; then
33069 else
33070 can_compile_carbon=0
33074 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33075 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33076 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33077 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33078 echo $ECHO_N "(cached) $ECHO_C" >&6
33080 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33081 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33082 else
33083 # Is the header compilable?
33084 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
33085 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
33086 cat >conftest.$ac_ext <<_ACEOF
33087 /* confdefs.h. */
33088 _ACEOF
33089 cat confdefs.h >>conftest.$ac_ext
33090 cat >>conftest.$ac_ext <<_ACEOF
33091 /* end confdefs.h. */
33092 $ac_includes_default
33093 #include <ApplicationServices/ApplicationServices.h>
33094 _ACEOF
33095 rm -f conftest.$ac_objext
33096 if { (ac_try="$ac_compile"
33097 case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_compile") 2>conftest.er1
33103 ac_status=$?
33104 grep -v '^ *+' conftest.er1 >conftest.err
33105 rm -f conftest.er1
33106 cat conftest.err >&5
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } &&
33109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113 esac
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; } &&
33119 { ac_try='test -s conftest.$ac_objext'
33120 { (case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33123 esac
33124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125 (eval "$ac_try") 2>&5
33126 ac_status=$?
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; }; then
33129 ac_header_compiler=yes
33130 else
33131 echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33134 ac_header_compiler=no
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33139 echo "${ECHO_T}$ac_header_compiler" >&6; }
33141 # Is the header present?
33142 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
33143 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
33144 cat >conftest.$ac_ext <<_ACEOF
33145 /* confdefs.h. */
33146 _ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h. */
33150 #include <ApplicationServices/ApplicationServices.h>
33151 _ACEOF
33152 if { (ac_try="$ac_cpp conftest.$ac_ext"
33153 case "(($ac_try" in
33154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155 *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33159 ac_status=$?
33160 grep -v '^ *+' conftest.er1 >conftest.err
33161 rm -f conftest.er1
33162 cat conftest.err >&5
33163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164 (exit $ac_status); } >/dev/null; then
33165 if test -s conftest.err; then
33166 ac_cpp_err=$ac_c_preproc_warn_flag
33167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33168 else
33169 ac_cpp_err=
33171 else
33172 ac_cpp_err=yes
33174 if test -z "$ac_cpp_err"; then
33175 ac_header_preproc=yes
33176 else
33177 echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33180 ac_header_preproc=no
33183 rm -f conftest.err conftest.$ac_ext
33184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33185 echo "${ECHO_T}$ac_header_preproc" >&6; }
33187 # So? What about this header?
33188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33189 yes:no: )
33190 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
33191 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33192 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
33193 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
33194 ac_header_preproc=yes
33196 no:yes:* )
33197 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
33198 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
33199 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
33200 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
33201 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
33202 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
33203 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
33204 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
33205 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
33206 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
33207 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
33208 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
33211 esac
33212 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33213 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33214 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33215 echo $ECHO_N "(cached) $ECHO_C" >&6
33216 else
33217 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
33219 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33220 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33223 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
33225 else
33226 can_compile_carbon=0
33230 if test $can_compile_carbon = 1; then
33231 with_carbon=yes
33235 if test "$with_win32" != yes; then
33236 can_compile_win32=1
33237 if test "${ac_cv_header_windows_h+set}" = set; then
33238 { echo "$as_me:$LINENO: checking for windows.h" >&5
33239 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33240 if test "${ac_cv_header_windows_h+set}" = set; then
33241 echo $ECHO_N "(cached) $ECHO_C" >&6
33243 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33244 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33245 else
33246 # Is the header compilable?
33247 { echo "$as_me:$LINENO: checking windows.h usability" >&5
33248 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
33249 cat >conftest.$ac_ext <<_ACEOF
33250 /* confdefs.h. */
33251 _ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 $ac_includes_default
33256 #include <windows.h>
33257 _ACEOF
33258 rm -f conftest.$ac_objext
33259 if { (ac_try="$ac_compile"
33260 case "(($ac_try" in
33261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33262 *) ac_try_echo=$ac_try;;
33263 esac
33264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33265 (eval "$ac_compile") 2>conftest.er1
33266 ac_status=$?
33267 grep -v '^ *+' conftest.er1 >conftest.err
33268 rm -f conftest.er1
33269 cat conftest.err >&5
33270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33271 (exit $ac_status); } &&
33272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33273 { (case "(($ac_try" in
33274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33275 *) ac_try_echo=$ac_try;;
33276 esac
33277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33278 (eval "$ac_try") 2>&5
33279 ac_status=$?
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); }; } &&
33282 { ac_try='test -s conftest.$ac_objext'
33283 { (case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33286 esac
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_try") 2>&5
33289 ac_status=$?
33290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291 (exit $ac_status); }; }; then
33292 ac_header_compiler=yes
33293 else
33294 echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33297 ac_header_compiler=no
33300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33302 echo "${ECHO_T}$ac_header_compiler" >&6; }
33304 # Is the header present?
33305 { echo "$as_me:$LINENO: checking windows.h presence" >&5
33306 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
33307 cat >conftest.$ac_ext <<_ACEOF
33308 /* confdefs.h. */
33309 _ACEOF
33310 cat confdefs.h >>conftest.$ac_ext
33311 cat >>conftest.$ac_ext <<_ACEOF
33312 /* end confdefs.h. */
33313 #include <windows.h>
33314 _ACEOF
33315 if { (ac_try="$ac_cpp conftest.$ac_ext"
33316 case "(($ac_try" in
33317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33318 *) ac_try_echo=$ac_try;;
33319 esac
33320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33322 ac_status=$?
33323 grep -v '^ *+' conftest.er1 >conftest.err
33324 rm -f conftest.er1
33325 cat conftest.err >&5
33326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33327 (exit $ac_status); } >/dev/null; then
33328 if test -s conftest.err; then
33329 ac_cpp_err=$ac_c_preproc_warn_flag
33330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33331 else
33332 ac_cpp_err=
33334 else
33335 ac_cpp_err=yes
33337 if test -z "$ac_cpp_err"; then
33338 ac_header_preproc=yes
33339 else
33340 echo "$as_me: failed program was:" >&5
33341 sed 's/^/| /' conftest.$ac_ext >&5
33343 ac_header_preproc=no
33346 rm -f conftest.err conftest.$ac_ext
33347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33348 echo "${ECHO_T}$ac_header_preproc" >&6; }
33350 # So? What about this header?
33351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33352 yes:no: )
33353 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
33354 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33355 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
33356 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
33357 ac_header_preproc=yes
33359 no:yes:* )
33360 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
33361 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
33362 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
33363 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
33364 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
33365 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
33366 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
33367 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
33368 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
33369 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
33370 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
33371 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
33374 esac
33375 { echo "$as_me:$LINENO: checking for windows.h" >&5
33376 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33377 if test "${ac_cv_header_windows_h+set}" = set; then
33378 echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380 ac_cv_header_windows_h=$ac_header_preproc
33382 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33383 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33386 if test $ac_cv_header_windows_h = yes; then
33388 else
33389 can_compile_win32=0
33393 if test "${ac_cv_header_commctrl_h+set}" = set; then
33394 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33395 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33396 if test "${ac_cv_header_commctrl_h+set}" = set; then
33397 echo $ECHO_N "(cached) $ECHO_C" >&6
33399 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33400 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33401 else
33402 # Is the header compilable?
33403 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
33404 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
33405 cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h. */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h. */
33411 $ac_includes_default
33412 #include <commctrl.h>
33413 _ACEOF
33414 rm -f conftest.$ac_objext
33415 if { (ac_try="$ac_compile"
33416 case "(($ac_try" in
33417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33418 *) ac_try_echo=$ac_try;;
33419 esac
33420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33421 (eval "$ac_compile") 2>conftest.er1
33422 ac_status=$?
33423 grep -v '^ *+' conftest.er1 >conftest.err
33424 rm -f conftest.er1
33425 cat conftest.err >&5
33426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427 (exit $ac_status); } &&
33428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33429 { (case "(($ac_try" in
33430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431 *) ac_try_echo=$ac_try;;
33432 esac
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434 (eval "$ac_try") 2>&5
33435 ac_status=$?
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); }; } &&
33438 { ac_try='test -s conftest.$ac_objext'
33439 { (case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_try") 2>&5
33445 ac_status=$?
33446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447 (exit $ac_status); }; }; then
33448 ac_header_compiler=yes
33449 else
33450 echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33453 ac_header_compiler=no
33456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33458 echo "${ECHO_T}$ac_header_compiler" >&6; }
33460 # Is the header present?
33461 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
33462 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
33463 cat >conftest.$ac_ext <<_ACEOF
33464 /* confdefs.h. */
33465 _ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33469 #include <commctrl.h>
33470 _ACEOF
33471 if { (ac_try="$ac_cpp conftest.$ac_ext"
33472 case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33475 esac
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33478 ac_status=$?
33479 grep -v '^ *+' conftest.er1 >conftest.err
33480 rm -f conftest.er1
33481 cat conftest.err >&5
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); } >/dev/null; then
33484 if test -s conftest.err; then
33485 ac_cpp_err=$ac_c_preproc_warn_flag
33486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33487 else
33488 ac_cpp_err=
33490 else
33491 ac_cpp_err=yes
33493 if test -z "$ac_cpp_err"; then
33494 ac_header_preproc=yes
33495 else
33496 echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33499 ac_header_preproc=no
33502 rm -f conftest.err conftest.$ac_ext
33503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33504 echo "${ECHO_T}$ac_header_preproc" >&6; }
33506 # So? What about this header?
33507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33508 yes:no: )
33509 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33510 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33511 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
33512 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
33513 ac_header_preproc=yes
33515 no:yes:* )
33516 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
33517 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
33518 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
33519 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
33520 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
33521 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
33522 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
33523 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33524 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
33525 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
33526 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
33527 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
33530 esac
33531 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33532 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33533 if test "${ac_cv_header_commctrl_h+set}" = set; then
33534 echo $ECHO_N "(cached) $ECHO_C" >&6
33535 else
33536 ac_cv_header_commctrl_h=$ac_header_preproc
33538 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33539 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33542 if test $ac_cv_header_commctrl_h = yes; then
33544 else
33545 can_compile_win32=0
33549 if test $can_compile_win32 = 1; then
33550 with_win32=yes
33554 if test "$with_sdl" != yes; then
33555 can_compile_sdl=1
33556 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33557 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33558 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33559 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33560 echo $ECHO_N "(cached) $ECHO_C" >&6
33562 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33563 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33564 else
33565 # Is the header compilable?
33566 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
33567 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
33568 cat >conftest.$ac_ext <<_ACEOF
33569 /* confdefs.h. */
33570 _ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h. */
33574 $ac_includes_default
33575 #include <SDL/SDL.h>
33576 _ACEOF
33577 rm -f conftest.$ac_objext
33578 if { (ac_try="$ac_compile"
33579 case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33582 esac
33583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_compile") 2>conftest.er1
33585 ac_status=$?
33586 grep -v '^ *+' conftest.er1 >conftest.err
33587 rm -f conftest.er1
33588 cat conftest.err >&5
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } &&
33591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33592 { (case "(($ac_try" in
33593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33594 *) ac_try_echo=$ac_try;;
33595 esac
33596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33597 (eval "$ac_try") 2>&5
33598 ac_status=$?
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; } &&
33601 { ac_try='test -s conftest.$ac_objext'
33602 { (case "(($ac_try" in
33603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33604 *) ac_try_echo=$ac_try;;
33605 esac
33606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33607 (eval "$ac_try") 2>&5
33608 ac_status=$?
33609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610 (exit $ac_status); }; }; then
33611 ac_header_compiler=yes
33612 else
33613 echo "$as_me: failed program was:" >&5
33614 sed 's/^/| /' conftest.$ac_ext >&5
33616 ac_header_compiler=no
33619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33621 echo "${ECHO_T}$ac_header_compiler" >&6; }
33623 # Is the header present?
33624 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
33625 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
33626 cat >conftest.$ac_ext <<_ACEOF
33627 /* confdefs.h. */
33628 _ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h. */
33632 #include <SDL/SDL.h>
33633 _ACEOF
33634 if { (ac_try="$ac_cpp conftest.$ac_ext"
33635 case "(($ac_try" in
33636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637 *) ac_try_echo=$ac_try;;
33638 esac
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33641 ac_status=$?
33642 grep -v '^ *+' conftest.er1 >conftest.err
33643 rm -f conftest.er1
33644 cat conftest.err >&5
33645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); } >/dev/null; then
33647 if test -s conftest.err; then
33648 ac_cpp_err=$ac_c_preproc_warn_flag
33649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33650 else
33651 ac_cpp_err=
33653 else
33654 ac_cpp_err=yes
33656 if test -z "$ac_cpp_err"; then
33657 ac_header_preproc=yes
33658 else
33659 echo "$as_me: failed program was:" >&5
33660 sed 's/^/| /' conftest.$ac_ext >&5
33662 ac_header_preproc=no
33665 rm -f conftest.err conftest.$ac_ext
33666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33667 echo "${ECHO_T}$ac_header_preproc" >&6; }
33669 # So? What about this header?
33670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33671 yes:no: )
33672 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
33673 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33674 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
33675 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
33676 ac_header_preproc=yes
33678 no:yes:* )
33679 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
33680 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
33681 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
33682 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
33683 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
33684 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
33685 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
33686 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
33687 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
33688 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
33689 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
33690 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
33693 esac
33694 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33695 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33696 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33697 echo $ECHO_N "(cached) $ECHO_C" >&6
33698 else
33699 ac_cv_header_SDL_SDL_h=$ac_header_preproc
33701 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33702 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33705 if test $ac_cv_header_SDL_SDL_h = yes; then
33707 else
33708 can_compile_sdl=0
33712 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33713 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33714 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33715 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33718 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33719 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33720 else
33721 # Is the header compilable?
33722 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
33723 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
33724 cat >conftest.$ac_ext <<_ACEOF
33725 /* confdefs.h. */
33726 _ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33730 $ac_includes_default
33731 #include <SDL/SDL_main.h>
33732 _ACEOF
33733 rm -f conftest.$ac_objext
33734 if { (ac_try="$ac_compile"
33735 case "(($ac_try" in
33736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33737 *) ac_try_echo=$ac_try;;
33738 esac
33739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33740 (eval "$ac_compile") 2>conftest.er1
33741 ac_status=$?
33742 grep -v '^ *+' conftest.er1 >conftest.err
33743 rm -f conftest.er1
33744 cat conftest.err >&5
33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33746 (exit $ac_status); } &&
33747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33748 { (case "(($ac_try" in
33749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33750 *) ac_try_echo=$ac_try;;
33751 esac
33752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33753 (eval "$ac_try") 2>&5
33754 ac_status=$?
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); }; } &&
33757 { ac_try='test -s conftest.$ac_objext'
33758 { (case "(($ac_try" in
33759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33760 *) ac_try_echo=$ac_try;;
33761 esac
33762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33763 (eval "$ac_try") 2>&5
33764 ac_status=$?
33765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766 (exit $ac_status); }; }; then
33767 ac_header_compiler=yes
33768 else
33769 echo "$as_me: failed program was:" >&5
33770 sed 's/^/| /' conftest.$ac_ext >&5
33772 ac_header_compiler=no
33775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33777 echo "${ECHO_T}$ac_header_compiler" >&6; }
33779 # Is the header present?
33780 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
33781 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
33782 cat >conftest.$ac_ext <<_ACEOF
33783 /* confdefs.h. */
33784 _ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h. */
33788 #include <SDL/SDL_main.h>
33789 _ACEOF
33790 if { (ac_try="$ac_cpp conftest.$ac_ext"
33791 case "(($ac_try" in
33792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33793 *) ac_try_echo=$ac_try;;
33794 esac
33795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33797 ac_status=$?
33798 grep -v '^ *+' conftest.er1 >conftest.err
33799 rm -f conftest.er1
33800 cat conftest.err >&5
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); } >/dev/null; then
33803 if test -s conftest.err; then
33804 ac_cpp_err=$ac_c_preproc_warn_flag
33805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33806 else
33807 ac_cpp_err=
33809 else
33810 ac_cpp_err=yes
33812 if test -z "$ac_cpp_err"; then
33813 ac_header_preproc=yes
33814 else
33815 echo "$as_me: failed program was:" >&5
33816 sed 's/^/| /' conftest.$ac_ext >&5
33818 ac_header_preproc=no
33821 rm -f conftest.err conftest.$ac_ext
33822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33823 echo "${ECHO_T}$ac_header_preproc" >&6; }
33825 # So? What about this header?
33826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33827 yes:no: )
33828 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
33829 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33830 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
33831 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
33832 ac_header_preproc=yes
33834 no:yes:* )
33835 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
33836 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
33837 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
33838 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
33839 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
33840 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
33841 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
33842 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
33843 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
33844 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
33845 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
33846 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
33849 esac
33850 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33851 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33852 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33853 echo $ECHO_N "(cached) $ECHO_C" >&6
33854 else
33855 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
33857 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33858 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33861 if test $ac_cv_header_SDL_SDL_main_h = yes; then
33863 else
33864 can_compile_sdl=0
33868 if test $can_compile_sdl = 1; then
33869 with_sdl=yes
33873 if test "$with_svga" != yes; then
33874 can_compile_svga=1
33875 if test "${ac_cv_header_vga_h+set}" = set; then
33876 { echo "$as_me:$LINENO: checking for vga.h" >&5
33877 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
33878 if test "${ac_cv_header_vga_h+set}" = set; then
33879 echo $ECHO_N "(cached) $ECHO_C" >&6
33881 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
33882 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
33883 else
33884 # Is the header compilable?
33885 { echo "$as_me:$LINENO: checking vga.h usability" >&5
33886 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
33887 cat >conftest.$ac_ext <<_ACEOF
33888 /* confdefs.h. */
33889 _ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h. */
33893 $ac_includes_default
33894 #include <vga.h>
33895 _ACEOF
33896 rm -f conftest.$ac_objext
33897 if { (ac_try="$ac_compile"
33898 case "(($ac_try" in
33899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33900 *) ac_try_echo=$ac_try;;
33901 esac
33902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33903 (eval "$ac_compile") 2>conftest.er1
33904 ac_status=$?
33905 grep -v '^ *+' conftest.er1 >conftest.err
33906 rm -f conftest.er1
33907 cat conftest.err >&5
33908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33909 (exit $ac_status); } &&
33910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33911 { (case "(($ac_try" in
33912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33913 *) ac_try_echo=$ac_try;;
33914 esac
33915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33916 (eval "$ac_try") 2>&5
33917 ac_status=$?
33918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 (exit $ac_status); }; } &&
33920 { ac_try='test -s conftest.$ac_objext'
33921 { (case "(($ac_try" in
33922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923 *) ac_try_echo=$ac_try;;
33924 esac
33925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926 (eval "$ac_try") 2>&5
33927 ac_status=$?
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; }; then
33930 ac_header_compiler=yes
33931 else
33932 echo "$as_me: failed program was:" >&5
33933 sed 's/^/| /' conftest.$ac_ext >&5
33935 ac_header_compiler=no
33938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33940 echo "${ECHO_T}$ac_header_compiler" >&6; }
33942 # Is the header present?
33943 { echo "$as_me:$LINENO: checking vga.h presence" >&5
33944 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
33945 cat >conftest.$ac_ext <<_ACEOF
33946 /* confdefs.h. */
33947 _ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33951 #include <vga.h>
33952 _ACEOF
33953 if { (ac_try="$ac_cpp conftest.$ac_ext"
33954 case "(($ac_try" in
33955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33956 *) ac_try_echo=$ac_try;;
33957 esac
33958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33960 ac_status=$?
33961 grep -v '^ *+' conftest.er1 >conftest.err
33962 rm -f conftest.er1
33963 cat conftest.err >&5
33964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965 (exit $ac_status); } >/dev/null; then
33966 if test -s conftest.err; then
33967 ac_cpp_err=$ac_c_preproc_warn_flag
33968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33969 else
33970 ac_cpp_err=
33972 else
33973 ac_cpp_err=yes
33975 if test -z "$ac_cpp_err"; then
33976 ac_header_preproc=yes
33977 else
33978 echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33981 ac_header_preproc=no
33984 rm -f conftest.err conftest.$ac_ext
33985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33986 echo "${ECHO_T}$ac_header_preproc" >&6; }
33988 # So? What about this header?
33989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33990 yes:no: )
33991 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
33992 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33993 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
33994 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
33995 ac_header_preproc=yes
33997 no:yes:* )
33998 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
33999 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
34000 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
34001 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
34002 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
34003 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
34004 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
34005 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
34006 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
34007 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
34008 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
34009 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
34012 esac
34013 { echo "$as_me:$LINENO: checking for vga.h" >&5
34014 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
34015 if test "${ac_cv_header_vga_h+set}" = set; then
34016 echo $ECHO_N "(cached) $ECHO_C" >&6
34017 else
34018 ac_cv_header_vga_h=$ac_header_preproc
34020 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
34021 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
34024 if test $ac_cv_header_vga_h = yes; then
34026 else
34027 can_compile_svga=0
34031 if test "${ac_cv_header_vgagl_h+set}" = set; then
34032 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34033 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34034 if test "${ac_cv_header_vgagl_h+set}" = set; then
34035 echo $ECHO_N "(cached) $ECHO_C" >&6
34037 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34038 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34039 else
34040 # Is the header compilable?
34041 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
34042 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
34043 cat >conftest.$ac_ext <<_ACEOF
34044 /* confdefs.h. */
34045 _ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h. */
34049 $ac_includes_default
34050 #include <vgagl.h>
34051 _ACEOF
34052 rm -f conftest.$ac_objext
34053 if { (ac_try="$ac_compile"
34054 case "(($ac_try" in
34055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34056 *) ac_try_echo=$ac_try;;
34057 esac
34058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34059 (eval "$ac_compile") 2>conftest.er1
34060 ac_status=$?
34061 grep -v '^ *+' conftest.er1 >conftest.err
34062 rm -f conftest.er1
34063 cat conftest.err >&5
34064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065 (exit $ac_status); } &&
34066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34067 { (case "(($ac_try" in
34068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34069 *) ac_try_echo=$ac_try;;
34070 esac
34071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34072 (eval "$ac_try") 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest.$ac_objext'
34077 { (case "(($ac_try" in
34078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34079 *) ac_try_echo=$ac_try;;
34080 esac
34081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34082 (eval "$ac_try") 2>&5
34083 ac_status=$?
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); }; }; then
34086 ac_header_compiler=yes
34087 else
34088 echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34091 ac_header_compiler=no
34094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34096 echo "${ECHO_T}$ac_header_compiler" >&6; }
34098 # Is the header present?
34099 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
34100 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
34101 cat >conftest.$ac_ext <<_ACEOF
34102 /* confdefs.h. */
34103 _ACEOF
34104 cat confdefs.h >>conftest.$ac_ext
34105 cat >>conftest.$ac_ext <<_ACEOF
34106 /* end confdefs.h. */
34107 #include <vgagl.h>
34108 _ACEOF
34109 if { (ac_try="$ac_cpp conftest.$ac_ext"
34110 case "(($ac_try" in
34111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34112 *) ac_try_echo=$ac_try;;
34113 esac
34114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34116 ac_status=$?
34117 grep -v '^ *+' conftest.er1 >conftest.err
34118 rm -f conftest.er1
34119 cat conftest.err >&5
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); } >/dev/null; then
34122 if test -s conftest.err; then
34123 ac_cpp_err=$ac_c_preproc_warn_flag
34124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34125 else
34126 ac_cpp_err=
34128 else
34129 ac_cpp_err=yes
34131 if test -z "$ac_cpp_err"; then
34132 ac_header_preproc=yes
34133 else
34134 echo "$as_me: failed program was:" >&5
34135 sed 's/^/| /' conftest.$ac_ext >&5
34137 ac_header_preproc=no
34140 rm -f conftest.err conftest.$ac_ext
34141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34142 echo "${ECHO_T}$ac_header_preproc" >&6; }
34144 # So? What about this header?
34145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34146 yes:no: )
34147 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
34148 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34149 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
34150 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
34151 ac_header_preproc=yes
34153 no:yes:* )
34154 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
34155 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
34156 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
34157 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
34158 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
34159 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
34160 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
34161 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
34162 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
34163 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
34164 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
34165 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
34168 esac
34169 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34170 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34171 if test "${ac_cv_header_vgagl_h+set}" = set; then
34172 echo $ECHO_N "(cached) $ECHO_C" >&6
34173 else
34174 ac_cv_header_vgagl_h=$ac_header_preproc
34176 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34177 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34180 if test $ac_cv_header_vgagl_h = yes; then
34182 else
34183 can_compile_svga=0
34187 if test $can_compile_svga = 1; then
34188 with_svga=yes
34192 if test "$with_x11" != yes; then
34193 can_compile_x11=1
34194 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34195 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34196 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34197 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34198 echo $ECHO_N "(cached) $ECHO_C" >&6
34200 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34201 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34202 else
34203 # Is the header compilable?
34204 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
34205 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
34206 cat >conftest.$ac_ext <<_ACEOF
34207 /* confdefs.h. */
34208 _ACEOF
34209 cat confdefs.h >>conftest.$ac_ext
34210 cat >>conftest.$ac_ext <<_ACEOF
34211 /* end confdefs.h. */
34212 $ac_includes_default
34213 #include <X11/Xlib.h>
34214 _ACEOF
34215 rm -f conftest.$ac_objext
34216 if { (ac_try="$ac_compile"
34217 case "(($ac_try" in
34218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219 *) ac_try_echo=$ac_try;;
34220 esac
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222 (eval "$ac_compile") 2>conftest.er1
34223 ac_status=$?
34224 grep -v '^ *+' conftest.er1 >conftest.err
34225 rm -f conftest.er1
34226 cat conftest.err >&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); } &&
34229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34230 { (case "(($ac_try" in
34231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34232 *) ac_try_echo=$ac_try;;
34233 esac
34234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34235 (eval "$ac_try") 2>&5
34236 ac_status=$?
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); }; } &&
34239 { ac_try='test -s conftest.$ac_objext'
34240 { (case "(($ac_try" in
34241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34242 *) ac_try_echo=$ac_try;;
34243 esac
34244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34245 (eval "$ac_try") 2>&5
34246 ac_status=$?
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248 (exit $ac_status); }; }; then
34249 ac_header_compiler=yes
34250 else
34251 echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34254 ac_header_compiler=no
34257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34259 echo "${ECHO_T}$ac_header_compiler" >&6; }
34261 # Is the header present?
34262 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
34263 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
34264 cat >conftest.$ac_ext <<_ACEOF
34265 /* confdefs.h. */
34266 _ACEOF
34267 cat confdefs.h >>conftest.$ac_ext
34268 cat >>conftest.$ac_ext <<_ACEOF
34269 /* end confdefs.h. */
34270 #include <X11/Xlib.h>
34271 _ACEOF
34272 if { (ac_try="$ac_cpp conftest.$ac_ext"
34273 case "(($ac_try" in
34274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34275 *) ac_try_echo=$ac_try;;
34276 esac
34277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34279 ac_status=$?
34280 grep -v '^ *+' conftest.er1 >conftest.err
34281 rm -f conftest.er1
34282 cat conftest.err >&5
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } >/dev/null; then
34285 if test -s conftest.err; then
34286 ac_cpp_err=$ac_c_preproc_warn_flag
34287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34288 else
34289 ac_cpp_err=
34291 else
34292 ac_cpp_err=yes
34294 if test -z "$ac_cpp_err"; then
34295 ac_header_preproc=yes
34296 else
34297 echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34300 ac_header_preproc=no
34303 rm -f conftest.err conftest.$ac_ext
34304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34305 echo "${ECHO_T}$ac_header_preproc" >&6; }
34307 # So? What about this header?
34308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34309 yes:no: )
34310 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34311 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34312 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
34313 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
34314 ac_header_preproc=yes
34316 no:yes:* )
34317 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
34318 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
34319 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
34320 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
34321 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
34322 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
34323 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
34324 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34325 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
34326 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
34327 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
34328 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
34331 esac
34332 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34333 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34334 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34337 ac_cv_header_X11_Xlib_h=$ac_header_preproc
34339 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34340 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34343 if test $ac_cv_header_X11_Xlib_h = yes; then
34345 else
34346 can_compile_x11=0
34350 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34351 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34352 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34353 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34354 echo $ECHO_N "(cached) $ECHO_C" >&6
34356 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34357 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34358 else
34359 # Is the header compilable?
34360 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
34361 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
34362 cat >conftest.$ac_ext <<_ACEOF
34363 /* confdefs.h. */
34364 _ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h. */
34368 $ac_includes_default
34369 #include <X11/Xutil.h>
34370 _ACEOF
34371 rm -f conftest.$ac_objext
34372 if { (ac_try="$ac_compile"
34373 case "(($ac_try" in
34374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375 *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378 (eval "$ac_compile") 2>conftest.er1
34379 ac_status=$?
34380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34386 { (case "(($ac_try" in
34387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34388 *) ac_try_echo=$ac_try;;
34389 esac
34390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34391 (eval "$ac_try") 2>&5
34392 ac_status=$?
34393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394 (exit $ac_status); }; } &&
34395 { ac_try='test -s conftest.$ac_objext'
34396 { (case "(($ac_try" in
34397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34398 *) ac_try_echo=$ac_try;;
34399 esac
34400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34401 (eval "$ac_try") 2>&5
34402 ac_status=$?
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); }; }; then
34405 ac_header_compiler=yes
34406 else
34407 echo "$as_me: failed program was:" >&5
34408 sed 's/^/| /' conftest.$ac_ext >&5
34410 ac_header_compiler=no
34413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34415 echo "${ECHO_T}$ac_header_compiler" >&6; }
34417 # Is the header present?
34418 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
34419 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
34420 cat >conftest.$ac_ext <<_ACEOF
34421 /* confdefs.h. */
34422 _ACEOF
34423 cat confdefs.h >>conftest.$ac_ext
34424 cat >>conftest.$ac_ext <<_ACEOF
34425 /* end confdefs.h. */
34426 #include <X11/Xutil.h>
34427 _ACEOF
34428 if { (ac_try="$ac_cpp conftest.$ac_ext"
34429 case "(($ac_try" in
34430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34431 *) ac_try_echo=$ac_try;;
34432 esac
34433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34435 ac_status=$?
34436 grep -v '^ *+' conftest.er1 >conftest.err
34437 rm -f conftest.er1
34438 cat conftest.err >&5
34439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34440 (exit $ac_status); } >/dev/null; then
34441 if test -s conftest.err; then
34442 ac_cpp_err=$ac_c_preproc_warn_flag
34443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34444 else
34445 ac_cpp_err=
34447 else
34448 ac_cpp_err=yes
34450 if test -z "$ac_cpp_err"; then
34451 ac_header_preproc=yes
34452 else
34453 echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34456 ac_header_preproc=no
34459 rm -f conftest.err conftest.$ac_ext
34460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34461 echo "${ECHO_T}$ac_header_preproc" >&6; }
34463 # So? What about this header?
34464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34465 yes:no: )
34466 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
34467 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34468 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
34469 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
34470 ac_header_preproc=yes
34472 no:yes:* )
34473 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
34474 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
34475 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
34476 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
34477 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
34478 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
34479 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
34480 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
34481 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
34482 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
34483 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
34484 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
34487 esac
34488 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34489 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34490 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34491 echo $ECHO_N "(cached) $ECHO_C" >&6
34492 else
34493 ac_cv_header_X11_Xutil_h=$ac_header_preproc
34495 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34496 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34499 if test $ac_cv_header_X11_Xutil_h = yes; then
34501 else
34502 can_compile_x11=0
34506 if test $can_compile_x11 = 1; then
34507 with_x11=yes
34511 if test "$with_rfb" != yes; then
34512 can_compile_rfb=1
34513 case $target in
34514 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
34515 if test "${ac_cv_header_winsock_h+set}" = set; then
34516 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34517 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34518 if test "${ac_cv_header_winsock_h+set}" = set; then
34519 echo $ECHO_N "(cached) $ECHO_C" >&6
34521 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34522 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34523 else
34524 # Is the header compilable?
34525 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
34526 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
34527 cat >conftest.$ac_ext <<_ACEOF
34528 /* confdefs.h. */
34529 _ACEOF
34530 cat confdefs.h >>conftest.$ac_ext
34531 cat >>conftest.$ac_ext <<_ACEOF
34532 /* end confdefs.h. */
34533 $ac_includes_default
34534 #include <winsock.h>
34535 _ACEOF
34536 rm -f conftest.$ac_objext
34537 if { (ac_try="$ac_compile"
34538 case "(($ac_try" in
34539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34540 *) ac_try_echo=$ac_try;;
34541 esac
34542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34543 (eval "$ac_compile") 2>conftest.er1
34544 ac_status=$?
34545 grep -v '^ *+' conftest.er1 >conftest.err
34546 rm -f conftest.er1
34547 cat conftest.err >&5
34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34549 (exit $ac_status); } &&
34550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34551 { (case "(($ac_try" in
34552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553 *) ac_try_echo=$ac_try;;
34554 esac
34555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556 (eval "$ac_try") 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; } &&
34560 { ac_try='test -s conftest.$ac_objext'
34561 { (case "(($ac_try" in
34562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34563 *) ac_try_echo=$ac_try;;
34564 esac
34565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34566 (eval "$ac_try") 2>&5
34567 ac_status=$?
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); }; }; then
34570 ac_header_compiler=yes
34571 else
34572 echo "$as_me: failed program was:" >&5
34573 sed 's/^/| /' conftest.$ac_ext >&5
34575 ac_header_compiler=no
34578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34580 echo "${ECHO_T}$ac_header_compiler" >&6; }
34582 # Is the header present?
34583 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
34584 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
34585 cat >conftest.$ac_ext <<_ACEOF
34586 /* confdefs.h. */
34587 _ACEOF
34588 cat confdefs.h >>conftest.$ac_ext
34589 cat >>conftest.$ac_ext <<_ACEOF
34590 /* end confdefs.h. */
34591 #include <winsock.h>
34592 _ACEOF
34593 if { (ac_try="$ac_cpp conftest.$ac_ext"
34594 case "(($ac_try" in
34595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34596 *) ac_try_echo=$ac_try;;
34597 esac
34598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34600 ac_status=$?
34601 grep -v '^ *+' conftest.er1 >conftest.err
34602 rm -f conftest.er1
34603 cat conftest.err >&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); } >/dev/null; then
34606 if test -s conftest.err; then
34607 ac_cpp_err=$ac_c_preproc_warn_flag
34608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34609 else
34610 ac_cpp_err=
34612 else
34613 ac_cpp_err=yes
34615 if test -z "$ac_cpp_err"; then
34616 ac_header_preproc=yes
34617 else
34618 echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34621 ac_header_preproc=no
34624 rm -f conftest.err conftest.$ac_ext
34625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34626 echo "${ECHO_T}$ac_header_preproc" >&6; }
34628 # So? What about this header?
34629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34630 yes:no: )
34631 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
34632 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34633 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
34634 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
34635 ac_header_preproc=yes
34637 no:yes:* )
34638 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
34639 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
34640 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
34641 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
34642 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
34643 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
34644 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
34645 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
34646 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
34647 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
34648 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
34649 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
34652 esac
34653 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34654 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34655 if test "${ac_cv_header_winsock_h+set}" = set; then
34656 echo $ECHO_N "(cached) $ECHO_C" >&6
34657 else
34658 ac_cv_header_winsock_h=$ac_header_preproc
34660 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34661 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34664 if test $ac_cv_header_winsock_h = yes; then
34666 else
34667 can_compile_rfb=0
34671 if test "${ac_cv_header_process_h+set}" = set; then
34672 { echo "$as_me:$LINENO: checking for process.h" >&5
34673 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34674 if test "${ac_cv_header_process_h+set}" = set; then
34675 echo $ECHO_N "(cached) $ECHO_C" >&6
34677 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34678 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34679 else
34680 # Is the header compilable?
34681 { echo "$as_me:$LINENO: checking process.h usability" >&5
34682 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
34683 cat >conftest.$ac_ext <<_ACEOF
34684 /* confdefs.h. */
34685 _ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h. */
34689 $ac_includes_default
34690 #include <process.h>
34691 _ACEOF
34692 rm -f conftest.$ac_objext
34693 if { (ac_try="$ac_compile"
34694 case "(($ac_try" in
34695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34696 *) ac_try_echo=$ac_try;;
34697 esac
34698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34699 (eval "$ac_compile") 2>conftest.er1
34700 ac_status=$?
34701 grep -v '^ *+' conftest.er1 >conftest.err
34702 rm -f conftest.er1
34703 cat conftest.err >&5
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); } &&
34706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34707 { (case "(($ac_try" in
34708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34709 *) ac_try_echo=$ac_try;;
34710 esac
34711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34712 (eval "$ac_try") 2>&5
34713 ac_status=$?
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); }; } &&
34716 { ac_try='test -s conftest.$ac_objext'
34717 { (case "(($ac_try" in
34718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34719 *) ac_try_echo=$ac_try;;
34720 esac
34721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34722 (eval "$ac_try") 2>&5
34723 ac_status=$?
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); }; }; then
34726 ac_header_compiler=yes
34727 else
34728 echo "$as_me: failed program was:" >&5
34729 sed 's/^/| /' conftest.$ac_ext >&5
34731 ac_header_compiler=no
34734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34735 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34736 echo "${ECHO_T}$ac_header_compiler" >&6; }
34738 # Is the header present?
34739 { echo "$as_me:$LINENO: checking process.h presence" >&5
34740 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
34741 cat >conftest.$ac_ext <<_ACEOF
34742 /* confdefs.h. */
34743 _ACEOF
34744 cat confdefs.h >>conftest.$ac_ext
34745 cat >>conftest.$ac_ext <<_ACEOF
34746 /* end confdefs.h. */
34747 #include <process.h>
34748 _ACEOF
34749 if { (ac_try="$ac_cpp conftest.$ac_ext"
34750 case "(($ac_try" in
34751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34752 *) ac_try_echo=$ac_try;;
34753 esac
34754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34756 ac_status=$?
34757 grep -v '^ *+' conftest.er1 >conftest.err
34758 rm -f conftest.er1
34759 cat conftest.err >&5
34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761 (exit $ac_status); } >/dev/null; then
34762 if test -s conftest.err; then
34763 ac_cpp_err=$ac_c_preproc_warn_flag
34764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34765 else
34766 ac_cpp_err=
34768 else
34769 ac_cpp_err=yes
34771 if test -z "$ac_cpp_err"; then
34772 ac_header_preproc=yes
34773 else
34774 echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34777 ac_header_preproc=no
34780 rm -f conftest.err conftest.$ac_ext
34781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34782 echo "${ECHO_T}$ac_header_preproc" >&6; }
34784 # So? What about this header?
34785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34786 yes:no: )
34787 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
34788 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34789 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
34790 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
34791 ac_header_preproc=yes
34793 no:yes:* )
34794 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
34795 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
34796 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
34797 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
34798 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
34799 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
34800 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
34801 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
34802 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
34803 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
34804 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
34805 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
34808 esac
34809 { echo "$as_me:$LINENO: checking for process.h" >&5
34810 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34811 if test "${ac_cv_header_process_h+set}" = set; then
34812 echo $ECHO_N "(cached) $ECHO_C" >&6
34813 else
34814 ac_cv_header_process_h=$ac_header_preproc
34816 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34817 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34820 if test $ac_cv_header_process_h = yes; then
34822 else
34823 can_compile_rfb=0
34829 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34830 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34831 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34832 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34833 echo $ECHO_N "(cached) $ECHO_C" >&6
34835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34836 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34837 else
34838 # Is the header compilable?
34839 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
34840 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
34841 cat >conftest.$ac_ext <<_ACEOF
34842 /* confdefs.h. */
34843 _ACEOF
34844 cat confdefs.h >>conftest.$ac_ext
34845 cat >>conftest.$ac_ext <<_ACEOF
34846 /* end confdefs.h. */
34847 $ac_includes_default
34848 #include <sys/socket.h>
34849 _ACEOF
34850 rm -f conftest.$ac_objext
34851 if { (ac_try="$ac_compile"
34852 case "(($ac_try" in
34853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34854 *) ac_try_echo=$ac_try;;
34855 esac
34856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34857 (eval "$ac_compile") 2>conftest.er1
34858 ac_status=$?
34859 grep -v '^ *+' conftest.er1 >conftest.err
34860 rm -f conftest.er1
34861 cat conftest.err >&5
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); } &&
34864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34865 { (case "(($ac_try" in
34866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34867 *) ac_try_echo=$ac_try;;
34868 esac
34869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34870 (eval "$ac_try") 2>&5
34871 ac_status=$?
34872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873 (exit $ac_status); }; } &&
34874 { ac_try='test -s conftest.$ac_objext'
34875 { (case "(($ac_try" in
34876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34877 *) ac_try_echo=$ac_try;;
34878 esac
34879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34880 (eval "$ac_try") 2>&5
34881 ac_status=$?
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; }; then
34884 ac_header_compiler=yes
34885 else
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 ac_header_compiler=no
34892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34894 echo "${ECHO_T}$ac_header_compiler" >&6; }
34896 # Is the header present?
34897 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
34898 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
34899 cat >conftest.$ac_ext <<_ACEOF
34900 /* confdefs.h. */
34901 _ACEOF
34902 cat confdefs.h >>conftest.$ac_ext
34903 cat >>conftest.$ac_ext <<_ACEOF
34904 /* end confdefs.h. */
34905 #include <sys/socket.h>
34906 _ACEOF
34907 if { (ac_try="$ac_cpp conftest.$ac_ext"
34908 case "(($ac_try" in
34909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34911 esac
34912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34914 ac_status=$?
34915 grep -v '^ *+' conftest.er1 >conftest.err
34916 rm -f conftest.er1
34917 cat conftest.err >&5
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); } >/dev/null; then
34920 if test -s conftest.err; then
34921 ac_cpp_err=$ac_c_preproc_warn_flag
34922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34923 else
34924 ac_cpp_err=
34926 else
34927 ac_cpp_err=yes
34929 if test -z "$ac_cpp_err"; then
34930 ac_header_preproc=yes
34931 else
34932 echo "$as_me: failed program was:" >&5
34933 sed 's/^/| /' conftest.$ac_ext >&5
34935 ac_header_preproc=no
34938 rm -f conftest.err conftest.$ac_ext
34939 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34940 echo "${ECHO_T}$ac_header_preproc" >&6; }
34942 # So? What about this header?
34943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34944 yes:no: )
34945 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
34946 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34947 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
34948 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
34949 ac_header_preproc=yes
34951 no:yes:* )
34952 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
34953 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
34954 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
34955 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
34956 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
34957 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
34958 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
34959 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
34960 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
34961 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
34962 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
34963 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
34966 esac
34967 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34968 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34969 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34970 echo $ECHO_N "(cached) $ECHO_C" >&6
34971 else
34972 ac_cv_header_sys_socket_h=$ac_header_preproc
34974 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34975 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34978 if test $ac_cv_header_sys_socket_h = yes; then
34980 else
34981 can_compile_rfb=0
34985 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34986 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
34987 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
34988 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34989 echo $ECHO_N "(cached) $ECHO_C" >&6
34991 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
34992 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
34993 else
34994 # Is the header compilable?
34995 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
34996 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
34997 cat >conftest.$ac_ext <<_ACEOF
34998 /* confdefs.h. */
34999 _ACEOF
35000 cat confdefs.h >>conftest.$ac_ext
35001 cat >>conftest.$ac_ext <<_ACEOF
35002 /* end confdefs.h. */
35003 $ac_includes_default
35004 #include <netinet/tcp.h>
35005 _ACEOF
35006 rm -f conftest.$ac_objext
35007 if { (ac_try="$ac_compile"
35008 case "(($ac_try" in
35009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35010 *) ac_try_echo=$ac_try;;
35011 esac
35012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35013 (eval "$ac_compile") 2>conftest.er1
35014 ac_status=$?
35015 grep -v '^ *+' conftest.er1 >conftest.err
35016 rm -f conftest.er1
35017 cat conftest.err >&5
35018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019 (exit $ac_status); } &&
35020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35021 { (case "(($ac_try" in
35022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35023 *) ac_try_echo=$ac_try;;
35024 esac
35025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35026 (eval "$ac_try") 2>&5
35027 ac_status=$?
35028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35029 (exit $ac_status); }; } &&
35030 { ac_try='test -s conftest.$ac_objext'
35031 { (case "(($ac_try" in
35032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35033 *) ac_try_echo=$ac_try;;
35034 esac
35035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35036 (eval "$ac_try") 2>&5
35037 ac_status=$?
35038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039 (exit $ac_status); }; }; then
35040 ac_header_compiler=yes
35041 else
35042 echo "$as_me: failed program was:" >&5
35043 sed 's/^/| /' conftest.$ac_ext >&5
35045 ac_header_compiler=no
35048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35050 echo "${ECHO_T}$ac_header_compiler" >&6; }
35052 # Is the header present?
35053 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
35054 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
35055 cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h. */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h. */
35061 #include <netinet/tcp.h>
35062 _ACEOF
35063 if { (ac_try="$ac_cpp conftest.$ac_ext"
35064 case "(($ac_try" in
35065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35066 *) ac_try_echo=$ac_try;;
35067 esac
35068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35070 ac_status=$?
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } >/dev/null; then
35076 if test -s conftest.err; then
35077 ac_cpp_err=$ac_c_preproc_warn_flag
35078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35079 else
35080 ac_cpp_err=
35082 else
35083 ac_cpp_err=yes
35085 if test -z "$ac_cpp_err"; then
35086 ac_header_preproc=yes
35087 else
35088 echo "$as_me: failed program was:" >&5
35089 sed 's/^/| /' conftest.$ac_ext >&5
35091 ac_header_preproc=no
35094 rm -f conftest.err conftest.$ac_ext
35095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35096 echo "${ECHO_T}$ac_header_preproc" >&6; }
35098 # So? What about this header?
35099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35100 yes:no: )
35101 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35102 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35103 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
35104 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
35105 ac_header_preproc=yes
35107 no:yes:* )
35108 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
35109 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
35110 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
35111 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
35113 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
35115 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35116 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
35117 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
35118 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
35119 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
35122 esac
35123 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
35124 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
35125 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
35126 echo $ECHO_N "(cached) $ECHO_C" >&6
35127 else
35128 ac_cv_header_netinet_tcp_h=$ac_header_preproc
35130 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
35131 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
35134 if test $ac_cv_header_netinet_tcp_h = yes; then
35136 else
35137 can_compile_rfb=0
35141 if test "${ac_cv_header_pthread_h+set}" = set; then
35142 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35143 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35144 if test "${ac_cv_header_pthread_h+set}" = set; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35147 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35148 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35149 else
35150 # Is the header compilable?
35151 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
35152 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
35153 cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h. */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h. */
35159 $ac_includes_default
35160 #include <pthread.h>
35161 _ACEOF
35162 rm -f conftest.$ac_objext
35163 if { (ac_try="$ac_compile"
35164 case "(($ac_try" in
35165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35166 *) ac_try_echo=$ac_try;;
35167 esac
35168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35169 (eval "$ac_compile") 2>conftest.er1
35170 ac_status=$?
35171 grep -v '^ *+' conftest.er1 >conftest.err
35172 rm -f conftest.er1
35173 cat conftest.err >&5
35174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35175 (exit $ac_status); } &&
35176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35177 { (case "(($ac_try" in
35178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35179 *) ac_try_echo=$ac_try;;
35180 esac
35181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35182 (eval "$ac_try") 2>&5
35183 ac_status=$?
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; } &&
35186 { ac_try='test -s conftest.$ac_objext'
35187 { (case "(($ac_try" in
35188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35189 *) ac_try_echo=$ac_try;;
35190 esac
35191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35192 (eval "$ac_try") 2>&5
35193 ac_status=$?
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; }; then
35196 ac_header_compiler=yes
35197 else
35198 echo "$as_me: failed program was:" >&5
35199 sed 's/^/| /' conftest.$ac_ext >&5
35201 ac_header_compiler=no
35204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35206 echo "${ECHO_T}$ac_header_compiler" >&6; }
35208 # Is the header present?
35209 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
35210 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
35211 cat >conftest.$ac_ext <<_ACEOF
35212 /* confdefs.h. */
35213 _ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h. */
35217 #include <pthread.h>
35218 _ACEOF
35219 if { (ac_try="$ac_cpp conftest.$ac_ext"
35220 case "(($ac_try" in
35221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35222 *) ac_try_echo=$ac_try;;
35223 esac
35224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35226 ac_status=$?
35227 grep -v '^ *+' conftest.er1 >conftest.err
35228 rm -f conftest.er1
35229 cat conftest.err >&5
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } >/dev/null; then
35232 if test -s conftest.err; then
35233 ac_cpp_err=$ac_c_preproc_warn_flag
35234 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35235 else
35236 ac_cpp_err=
35238 else
35239 ac_cpp_err=yes
35241 if test -z "$ac_cpp_err"; then
35242 ac_header_preproc=yes
35243 else
35244 echo "$as_me: failed program was:" >&5
35245 sed 's/^/| /' conftest.$ac_ext >&5
35247 ac_header_preproc=no
35250 rm -f conftest.err conftest.$ac_ext
35251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35252 echo "${ECHO_T}$ac_header_preproc" >&6; }
35254 # So? What about this header?
35255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35256 yes:no: )
35257 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
35258 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35259 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
35260 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
35261 ac_header_preproc=yes
35263 no:yes:* )
35264 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
35265 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
35266 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
35267 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
35268 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
35269 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
35270 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
35271 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
35272 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
35273 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
35274 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
35275 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
35278 esac
35279 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35280 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35281 if test "${ac_cv_header_pthread_h+set}" = set; then
35282 echo $ECHO_N "(cached) $ECHO_C" >&6
35283 else
35284 ac_cv_header_pthread_h=$ac_header_preproc
35286 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35287 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35290 if test $ac_cv_header_pthread_h = yes; then
35292 else
35293 can_compile_rfb=0
35298 esac
35299 if test $can_compile_rfb = 1; then
35300 with_rfb=yes
35304 if test "$with_term" != yes; then
35305 can_compile_term=1
35306 if test "${ac_cv_header_curses_h+set}" = set; then
35307 { echo "$as_me:$LINENO: checking for curses.h" >&5
35308 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35309 if test "${ac_cv_header_curses_h+set}" = set; then
35310 echo $ECHO_N "(cached) $ECHO_C" >&6
35312 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35313 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35314 else
35315 # Is the header compilable?
35316 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35317 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35318 cat >conftest.$ac_ext <<_ACEOF
35319 /* confdefs.h. */
35320 _ACEOF
35321 cat confdefs.h >>conftest.$ac_ext
35322 cat >>conftest.$ac_ext <<_ACEOF
35323 /* end confdefs.h. */
35324 $ac_includes_default
35325 #include <curses.h>
35326 _ACEOF
35327 rm -f conftest.$ac_objext
35328 if { (ac_try="$ac_compile"
35329 case "(($ac_try" in
35330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35331 *) ac_try_echo=$ac_try;;
35332 esac
35333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35334 (eval "$ac_compile") 2>conftest.er1
35335 ac_status=$?
35336 grep -v '^ *+' conftest.er1 >conftest.err
35337 rm -f conftest.er1
35338 cat conftest.err >&5
35339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35340 (exit $ac_status); } &&
35341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35342 { (case "(($ac_try" in
35343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35344 *) ac_try_echo=$ac_try;;
35345 esac
35346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35347 (eval "$ac_try") 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest.$ac_objext'
35352 { (case "(($ac_try" in
35353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35354 *) ac_try_echo=$ac_try;;
35355 esac
35356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35357 (eval "$ac_try") 2>&5
35358 ac_status=$?
35359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360 (exit $ac_status); }; }; then
35361 ac_header_compiler=yes
35362 else
35363 echo "$as_me: failed program was:" >&5
35364 sed 's/^/| /' conftest.$ac_ext >&5
35366 ac_header_compiler=no
35369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35371 echo "${ECHO_T}$ac_header_compiler" >&6; }
35373 # Is the header present?
35374 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35375 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35376 cat >conftest.$ac_ext <<_ACEOF
35377 /* confdefs.h. */
35378 _ACEOF
35379 cat confdefs.h >>conftest.$ac_ext
35380 cat >>conftest.$ac_ext <<_ACEOF
35381 /* end confdefs.h. */
35382 #include <curses.h>
35383 _ACEOF
35384 if { (ac_try="$ac_cpp conftest.$ac_ext"
35385 case "(($ac_try" in
35386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35387 *) ac_try_echo=$ac_try;;
35388 esac
35389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35391 ac_status=$?
35392 grep -v '^ *+' conftest.er1 >conftest.err
35393 rm -f conftest.er1
35394 cat conftest.err >&5
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); } >/dev/null; then
35397 if test -s conftest.err; then
35398 ac_cpp_err=$ac_c_preproc_warn_flag
35399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35400 else
35401 ac_cpp_err=
35403 else
35404 ac_cpp_err=yes
35406 if test -z "$ac_cpp_err"; then
35407 ac_header_preproc=yes
35408 else
35409 echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.$ac_ext >&5
35412 ac_header_preproc=no
35415 rm -f conftest.err conftest.$ac_ext
35416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35417 echo "${ECHO_T}$ac_header_preproc" >&6; }
35419 # So? What about this header?
35420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35421 yes:no: )
35422 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35423 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35424 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35425 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35426 ac_header_preproc=yes
35428 no:yes:* )
35429 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35430 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35431 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35432 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35433 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35434 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35435 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35436 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35437 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35438 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35439 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35440 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35443 esac
35444 { echo "$as_me:$LINENO: checking for curses.h" >&5
35445 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35446 if test "${ac_cv_header_curses_h+set}" = set; then
35447 echo $ECHO_N "(cached) $ECHO_C" >&6
35448 else
35449 ac_cv_header_curses_h=$ac_header_preproc
35451 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35452 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35455 if test $ac_cv_header_curses_h = yes; then
35457 else
35458 can_compile_term=0
35462 if test "${ac_cv_header_signal_h+set}" = set; then
35463 { echo "$as_me:$LINENO: checking for signal.h" >&5
35464 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35465 if test "${ac_cv_header_signal_h+set}" = set; then
35466 echo $ECHO_N "(cached) $ECHO_C" >&6
35468 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35469 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35470 else
35471 # Is the header compilable?
35472 { echo "$as_me:$LINENO: checking signal.h usability" >&5
35473 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
35474 cat >conftest.$ac_ext <<_ACEOF
35475 /* confdefs.h. */
35476 _ACEOF
35477 cat confdefs.h >>conftest.$ac_ext
35478 cat >>conftest.$ac_ext <<_ACEOF
35479 /* end confdefs.h. */
35480 $ac_includes_default
35481 #include <signal.h>
35482 _ACEOF
35483 rm -f conftest.$ac_objext
35484 if { (ac_try="$ac_compile"
35485 case "(($ac_try" in
35486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35487 *) ac_try_echo=$ac_try;;
35488 esac
35489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35490 (eval "$ac_compile") 2>conftest.er1
35491 ac_status=$?
35492 grep -v '^ *+' conftest.er1 >conftest.err
35493 rm -f conftest.er1
35494 cat conftest.err >&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
35497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35498 { (case "(($ac_try" in
35499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35500 *) ac_try_echo=$ac_try;;
35501 esac
35502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35503 (eval "$ac_try") 2>&5
35504 ac_status=$?
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); }; } &&
35507 { ac_try='test -s conftest.$ac_objext'
35508 { (case "(($ac_try" in
35509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35510 *) ac_try_echo=$ac_try;;
35511 esac
35512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35513 (eval "$ac_try") 2>&5
35514 ac_status=$?
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); }; }; then
35517 ac_header_compiler=yes
35518 else
35519 echo "$as_me: failed program was:" >&5
35520 sed 's/^/| /' conftest.$ac_ext >&5
35522 ac_header_compiler=no
35525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35527 echo "${ECHO_T}$ac_header_compiler" >&6; }
35529 # Is the header present?
35530 { echo "$as_me:$LINENO: checking signal.h presence" >&5
35531 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
35532 cat >conftest.$ac_ext <<_ACEOF
35533 /* confdefs.h. */
35534 _ACEOF
35535 cat confdefs.h >>conftest.$ac_ext
35536 cat >>conftest.$ac_ext <<_ACEOF
35537 /* end confdefs.h. */
35538 #include <signal.h>
35539 _ACEOF
35540 if { (ac_try="$ac_cpp conftest.$ac_ext"
35541 case "(($ac_try" in
35542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35543 *) ac_try_echo=$ac_try;;
35544 esac
35545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35547 ac_status=$?
35548 grep -v '^ *+' conftest.er1 >conftest.err
35549 rm -f conftest.er1
35550 cat conftest.err >&5
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); } >/dev/null; then
35553 if test -s conftest.err; then
35554 ac_cpp_err=$ac_c_preproc_warn_flag
35555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35556 else
35557 ac_cpp_err=
35559 else
35560 ac_cpp_err=yes
35562 if test -z "$ac_cpp_err"; then
35563 ac_header_preproc=yes
35564 else
35565 echo "$as_me: failed program was:" >&5
35566 sed 's/^/| /' conftest.$ac_ext >&5
35568 ac_header_preproc=no
35571 rm -f conftest.err conftest.$ac_ext
35572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35573 echo "${ECHO_T}$ac_header_preproc" >&6; }
35575 # So? What about this header?
35576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35577 yes:no: )
35578 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
35579 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35580 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
35581 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
35582 ac_header_preproc=yes
35584 no:yes:* )
35585 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
35586 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
35587 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
35588 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
35589 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
35590 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
35591 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
35592 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
35593 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
35594 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
35595 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
35596 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
35599 esac
35600 { echo "$as_me:$LINENO: checking for signal.h" >&5
35601 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35602 if test "${ac_cv_header_signal_h+set}" = set; then
35603 echo $ECHO_N "(cached) $ECHO_C" >&6
35604 else
35605 ac_cv_header_signal_h=$ac_header_preproc
35607 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35608 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35611 if test $ac_cv_header_signal_h = yes; then
35613 else
35614 can_compile_term=0
35618 if test $can_compile_term = 1; then
35619 with_term=yes
35623 if test "$with_nogui" != yes; then
35624 with_nogui=yes
35626 fi # end of if $with_all_libs = yes
35628 { echo "$as_me:$LINENO: checking for idle hack" >&5
35629 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
35630 # Check whether --enable-idle-hack was given.
35631 if test "${enable_idle_hack+set}" = set; then
35632 enableval=$enable_idle_hack; if test "$enableval" = yes; then
35633 { echo "$as_me:$LINENO: result: yes" >&5
35634 echo "${ECHO_T}yes" >&6; }
35635 cat >>confdefs.h <<\_ACEOF
35636 #define BX_USE_IDLE_HACK 1
35637 _ACEOF
35639 else
35640 { echo "$as_me:$LINENO: result: no" >&5
35641 echo "${ECHO_T}no" >&6; }
35642 cat >>confdefs.h <<\_ACEOF
35643 #define BX_USE_IDLE_HACK 0
35644 _ACEOF
35647 else
35649 { echo "$as_me:$LINENO: result: no" >&5
35650 echo "${ECHO_T}no" >&6; }
35651 cat >>confdefs.h <<\_ACEOF
35652 #define BX_USE_IDLE_HACK 0
35653 _ACEOF
35661 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35662 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35663 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35664 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35665 echo $ECHO_N "(cached) $ECHO_C" >&6
35667 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35668 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35669 else
35670 # Is the header compilable?
35671 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
35672 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
35673 cat >conftest.$ac_ext <<_ACEOF
35674 /* confdefs.h. */
35675 _ACEOF
35676 cat confdefs.h >>conftest.$ac_ext
35677 cat >>conftest.$ac_ext <<_ACEOF
35678 /* end confdefs.h. */
35679 $ac_includes_default
35680 #include <dlfcn.h>
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (ac_try="$ac_compile"
35684 case "(($ac_try" in
35685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35686 *) ac_try_echo=$ac_try;;
35687 esac
35688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35689 (eval "$ac_compile") 2>conftest.er1
35690 ac_status=$?
35691 grep -v '^ *+' conftest.er1 >conftest.err
35692 rm -f conftest.er1
35693 cat conftest.err >&5
35694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695 (exit $ac_status); } &&
35696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35697 { (case "(($ac_try" in
35698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35699 *) ac_try_echo=$ac_try;;
35700 esac
35701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35702 (eval "$ac_try") 2>&5
35703 ac_status=$?
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); }; } &&
35706 { ac_try='test -s conftest.$ac_objext'
35707 { (case "(($ac_try" in
35708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35709 *) ac_try_echo=$ac_try;;
35710 esac
35711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35712 (eval "$ac_try") 2>&5
35713 ac_status=$?
35714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715 (exit $ac_status); }; }; then
35716 ac_header_compiler=yes
35717 else
35718 echo "$as_me: failed program was:" >&5
35719 sed 's/^/| /' conftest.$ac_ext >&5
35721 ac_header_compiler=no
35724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35726 echo "${ECHO_T}$ac_header_compiler" >&6; }
35728 # Is the header present?
35729 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
35730 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
35731 cat >conftest.$ac_ext <<_ACEOF
35732 /* confdefs.h. */
35733 _ACEOF
35734 cat confdefs.h >>conftest.$ac_ext
35735 cat >>conftest.$ac_ext <<_ACEOF
35736 /* end confdefs.h. */
35737 #include <dlfcn.h>
35738 _ACEOF
35739 if { (ac_try="$ac_cpp conftest.$ac_ext"
35740 case "(($ac_try" in
35741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35742 *) ac_try_echo=$ac_try;;
35743 esac
35744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35746 ac_status=$?
35747 grep -v '^ *+' conftest.er1 >conftest.err
35748 rm -f conftest.er1
35749 cat conftest.err >&5
35750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751 (exit $ac_status); } >/dev/null; then
35752 if test -s conftest.err; then
35753 ac_cpp_err=$ac_c_preproc_warn_flag
35754 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35755 else
35756 ac_cpp_err=
35758 else
35759 ac_cpp_err=yes
35761 if test -z "$ac_cpp_err"; then
35762 ac_header_preproc=yes
35763 else
35764 echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35767 ac_header_preproc=no
35770 rm -f conftest.err conftest.$ac_ext
35771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35772 echo "${ECHO_T}$ac_header_preproc" >&6; }
35774 # So? What about this header?
35775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35776 yes:no: )
35777 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
35778 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35779 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
35780 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
35781 ac_header_preproc=yes
35783 no:yes:* )
35784 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
35785 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
35786 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
35787 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
35789 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
35790 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
35791 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
35792 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
35793 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
35794 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
35795 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
35798 esac
35799 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35800 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35801 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35802 echo $ECHO_N "(cached) $ECHO_C" >&6
35803 else
35804 ac_cv_header_dlfcn_h=$ac_header_preproc
35806 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35807 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35810 if test $ac_cv_header_dlfcn_h = yes; then
35811 cat >>confdefs.h <<\_ACEOF
35812 #define BX_HAVE_DLFCN_H 1
35813 _ACEOF
35818 if test "${ac_cv_header_assert_h+set}" = set; then
35819 { echo "$as_me:$LINENO: checking for assert.h" >&5
35820 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35821 if test "${ac_cv_header_assert_h+set}" = set; then
35822 echo $ECHO_N "(cached) $ECHO_C" >&6
35824 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35825 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35826 else
35827 # Is the header compilable?
35828 { echo "$as_me:$LINENO: checking assert.h usability" >&5
35829 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
35830 cat >conftest.$ac_ext <<_ACEOF
35831 /* confdefs.h. */
35832 _ACEOF
35833 cat confdefs.h >>conftest.$ac_ext
35834 cat >>conftest.$ac_ext <<_ACEOF
35835 /* end confdefs.h. */
35836 $ac_includes_default
35837 #include <assert.h>
35838 _ACEOF
35839 rm -f conftest.$ac_objext
35840 if { (ac_try="$ac_compile"
35841 case "(($ac_try" in
35842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35843 *) ac_try_echo=$ac_try;;
35844 esac
35845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35846 (eval "$ac_compile") 2>conftest.er1
35847 ac_status=$?
35848 grep -v '^ *+' conftest.er1 >conftest.err
35849 rm -f conftest.er1
35850 cat conftest.err >&5
35851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852 (exit $ac_status); } &&
35853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35854 { (case "(($ac_try" in
35855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35856 *) ac_try_echo=$ac_try;;
35857 esac
35858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35859 (eval "$ac_try") 2>&5
35860 ac_status=$?
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; } &&
35863 { ac_try='test -s conftest.$ac_objext'
35864 { (case "(($ac_try" in
35865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866 *) ac_try_echo=$ac_try;;
35867 esac
35868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869 (eval "$ac_try") 2>&5
35870 ac_status=$?
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; }; then
35873 ac_header_compiler=yes
35874 else
35875 echo "$as_me: failed program was:" >&5
35876 sed 's/^/| /' conftest.$ac_ext >&5
35878 ac_header_compiler=no
35881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35883 echo "${ECHO_T}$ac_header_compiler" >&6; }
35885 # Is the header present?
35886 { echo "$as_me:$LINENO: checking assert.h presence" >&5
35887 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
35888 cat >conftest.$ac_ext <<_ACEOF
35889 /* confdefs.h. */
35890 _ACEOF
35891 cat confdefs.h >>conftest.$ac_ext
35892 cat >>conftest.$ac_ext <<_ACEOF
35893 /* end confdefs.h. */
35894 #include <assert.h>
35895 _ACEOF
35896 if { (ac_try="$ac_cpp conftest.$ac_ext"
35897 case "(($ac_try" in
35898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899 *) ac_try_echo=$ac_try;;
35900 esac
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35903 ac_status=$?
35904 grep -v '^ *+' conftest.er1 >conftest.err
35905 rm -f conftest.er1
35906 cat conftest.err >&5
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } >/dev/null; then
35909 if test -s conftest.err; then
35910 ac_cpp_err=$ac_c_preproc_warn_flag
35911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35912 else
35913 ac_cpp_err=
35915 else
35916 ac_cpp_err=yes
35918 if test -z "$ac_cpp_err"; then
35919 ac_header_preproc=yes
35920 else
35921 echo "$as_me: failed program was:" >&5
35922 sed 's/^/| /' conftest.$ac_ext >&5
35924 ac_header_preproc=no
35927 rm -f conftest.err conftest.$ac_ext
35928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35929 echo "${ECHO_T}$ac_header_preproc" >&6; }
35931 # So? What about this header?
35932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35933 yes:no: )
35934 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
35935 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35936 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
35937 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
35938 ac_header_preproc=yes
35940 no:yes:* )
35941 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
35942 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
35943 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
35944 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
35945 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
35946 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
35947 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
35948 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
35949 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
35950 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
35951 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
35952 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
35955 esac
35956 { echo "$as_me:$LINENO: checking for assert.h" >&5
35957 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35958 if test "${ac_cv_header_assert_h+set}" = set; then
35959 echo $ECHO_N "(cached) $ECHO_C" >&6
35960 else
35961 ac_cv_header_assert_h=$ac_header_preproc
35963 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35964 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35967 if test $ac_cv_header_assert_h = yes; then
35968 cat >>confdefs.h <<\_ACEOF
35969 #define HAVE_ASSERT_H 1
35970 _ACEOF
35976 { echo "$as_me:$LINENO: checking for plugins support" >&5
35977 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
35978 # Check whether --enable-plugins was given.
35979 if test "${enable_plugins+set}" = set; then
35980 enableval=$enable_plugins; if test "$enableval" = yes; then
35981 bx_plugins=1
35982 else
35983 bx_plugins=0
35985 else
35987 bx_plugins=0
35993 if test "$bx_plugins" = 1; then
35994 { echo "$as_me:$LINENO: result: yes" >&5
35995 echo "${ECHO_T}yes" >&6; }
35996 cat >>confdefs.h <<\_ACEOF
35997 #define BX_PLUGINS 1
35998 _ACEOF
36000 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
36001 GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
36002 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
36003 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
36004 # by special link rules for the plugins that they support.
36005 LIBS="$LIBS $LIBADD_DL"
36006 PLUGIN_VAR='ltdl.o'
36007 PLUGIN_TARGET=bochs_plugins
36008 INSTALL_PLUGINS_VAR=install_libtool_plugins
36009 NONPLUGIN_GUI_LINK_OPTS=''
36010 else
36011 { echo "$as_me:$LINENO: result: no" >&5
36012 echo "${ECHO_T}no" >&6; }
36013 bx_plugins=0
36014 cat >>confdefs.h <<\_ACEOF
36015 #define BX_PLUGINS 0
36016 _ACEOF
36018 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
36019 GUI_PLUGIN_OBJS=''
36020 NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
36025 # copy gui variables into iodev variables. Later, we will add to the gui
36026 # objs list, according to which display libraries are enabled.
36027 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
36028 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
36030 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
36031 # It is provided by a library called dlcompat.
36032 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
36033 have_dlopen=0
36034 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36035 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
36036 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36037 echo $ECHO_N "(cached) $ECHO_C" >&6
36038 else
36039 ac_check_lib_save_LIBS=$LIBS
36040 LIBS="-ldl $LIBS"
36041 cat >conftest.$ac_ext <<_ACEOF
36042 /* confdefs.h. */
36043 _ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h. */
36048 /* Override any GCC internal prototype to avoid an error.
36049 Use char because int might match the return type of a GCC
36050 builtin and then its argument prototype would still apply. */
36051 #ifdef __cplusplus
36052 extern "C"
36053 #endif
36054 char dlopen ();
36056 main ()
36058 return dlopen ();
36060 return 0;
36062 _ACEOF
36063 rm -f conftest.$ac_objext conftest$ac_exeext
36064 if { (ac_try="$ac_link"
36065 case "(($ac_try" in
36066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36067 *) ac_try_echo=$ac_try;;
36068 esac
36069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36070 (eval "$ac_link") 2>conftest.er1
36071 ac_status=$?
36072 grep -v '^ *+' conftest.er1 >conftest.err
36073 rm -f conftest.er1
36074 cat conftest.err >&5
36075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36076 (exit $ac_status); } &&
36077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36078 { (case "(($ac_try" in
36079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36080 *) ac_try_echo=$ac_try;;
36081 esac
36082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36083 (eval "$ac_try") 2>&5
36084 ac_status=$?
36085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36086 (exit $ac_status); }; } &&
36087 { ac_try='test -s conftest$ac_exeext'
36088 { (case "(($ac_try" in
36089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36090 *) ac_try_echo=$ac_try;;
36091 esac
36092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36093 (eval "$ac_try") 2>&5
36094 ac_status=$?
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; }; then
36097 ac_cv_lib_dl_dlopen=yes
36098 else
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_cv_lib_dl_dlopen=no
36105 rm -f core conftest.err conftest.$ac_objext \
36106 conftest$ac_exeext conftest.$ac_ext
36107 LIBS=$ac_check_lib_save_LIBS
36109 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36110 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
36111 if test $ac_cv_lib_dl_dlopen = yes; then
36112 have_dlopen=1
36115 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
36116 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
36117 if test "$have_dlopen" = 0; then
36118 { echo "$as_me:$LINENO: result: no" >&5
36119 echo "${ECHO_T}no" >&6; }
36120 { { 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
36121 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;}
36122 { (exit 1); exit 1; }; }
36123 else
36124 { echo "$as_me:$LINENO: result: yes" >&5
36125 echo "${ECHO_T}yes" >&6; }
36129 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
36130 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
36131 cat >conftest.$ac_ext <<_ACEOF
36132 /* confdefs.h. */
36133 _ACEOF
36134 cat confdefs.h >>conftest.$ac_ext
36135 cat >>conftest.$ac_ext <<_ACEOF
36136 /* end confdefs.h. */
36139 main ()
36141 { label1: }
36143 return 0;
36145 _ACEOF
36146 rm -f conftest.$ac_objext
36147 if { (ac_try="$ac_compile"
36148 case "(($ac_try" in
36149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36150 *) ac_try_echo=$ac_try;;
36151 esac
36152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36153 (eval "$ac_compile") 2>conftest.er1
36154 ac_status=$?
36155 grep -v '^ *+' conftest.er1 >conftest.err
36156 rm -f conftest.er1
36157 cat conftest.err >&5
36158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159 (exit $ac_status); } &&
36160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36161 { (case "(($ac_try" in
36162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163 *) ac_try_echo=$ac_try;;
36164 esac
36165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36166 (eval "$ac_try") 2>&5
36167 ac_status=$?
36168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169 (exit $ac_status); }; } &&
36170 { ac_try='test -s conftest.$ac_objext'
36171 { (case "(($ac_try" in
36172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36173 *) ac_try_echo=$ac_try;;
36174 esac
36175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36176 (eval "$ac_try") 2>&5
36177 ac_status=$?
36178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36179 (exit $ac_status); }; }; then
36180 { echo "$as_me:$LINENO: result: yes" >&5
36181 echo "${ECHO_T}yes" >&6; }
36182 else
36183 echo "$as_me: failed program was:" >&5
36184 sed 's/^/| /' conftest.$ac_ext >&5
36187 { echo "$as_me:$LINENO: result: no" >&5
36188 echo "${ECHO_T}no" >&6; }
36189 cat >>confdefs.h <<\_ACEOF
36190 #define BX_NO_BLANK_LABELS 1
36191 _ACEOF
36196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36198 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
36199 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
36200 cat >conftest.$ac_ext <<_ACEOF
36201 /* confdefs.h. */
36202 _ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h. */
36208 main ()
36210 { 42LL; }
36212 return 0;
36214 _ACEOF
36215 rm -f conftest.$ac_objext
36216 if { (ac_try="$ac_compile"
36217 case "(($ac_try" in
36218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36219 *) ac_try_echo=$ac_try;;
36220 esac
36221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36222 (eval "$ac_compile") 2>conftest.er1
36223 ac_status=$?
36224 grep -v '^ *+' conftest.er1 >conftest.err
36225 rm -f conftest.er1
36226 cat conftest.err >&5
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); } &&
36229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36230 { (case "(($ac_try" in
36231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36232 *) ac_try_echo=$ac_try;;
36233 esac
36234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36235 (eval "$ac_try") 2>&5
36236 ac_status=$?
36237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238 (exit $ac_status); }; } &&
36239 { ac_try='test -s conftest.$ac_objext'
36240 { (case "(($ac_try" in
36241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36242 *) ac_try_echo=$ac_try;;
36243 esac
36244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36245 (eval "$ac_try") 2>&5
36246 ac_status=$?
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); }; }; then
36249 { echo "$as_me:$LINENO: result: yes" >&5
36250 echo "${ECHO_T}yes" >&6; }
36251 else
36252 echo "$as_me: failed program was:" >&5
36253 sed 's/^/| /' conftest.$ac_ext >&5
36256 { echo "$as_me:$LINENO: result: no" >&5
36257 echo "${ECHO_T}no" >&6; }
36258 cat >>confdefs.h <<\_ACEOF
36259 #define BX_64BIT_CONSTANTS_USE_LL 0
36260 _ACEOF
36265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36267 use_x86_64=0
36268 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
36269 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
36270 # Check whether --enable-x86-64 was given.
36271 if test "${enable_x86_64+set}" = set; then
36272 enableval=$enable_x86_64; if test "$enableval" = yes; then
36273 { echo "$as_me:$LINENO: result: yes" >&5
36274 echo "${ECHO_T}yes" >&6; }
36275 OBJS64='$(OBJS64)'
36276 cat >>confdefs.h <<\_ACEOF
36277 #define BX_SUPPORT_X86_64 1
36278 _ACEOF
36280 use_x86_64=1
36281 else
36282 { echo "$as_me:$LINENO: result: no" >&5
36283 echo "${ECHO_T}no" >&6; }
36284 OBJS64=''
36285 cat >>confdefs.h <<\_ACEOF
36286 #define BX_SUPPORT_X86_64 0
36287 _ACEOF
36291 else
36293 { echo "$as_me:$LINENO: result: no" >&5
36294 echo "${ECHO_T}no" >&6; }
36295 OBJS64=''
36296 cat >>confdefs.h <<\_ACEOF
36297 #define BX_SUPPORT_X86_64 0
36298 _ACEOF
36306 use_smp=0
36307 { echo "$as_me:$LINENO: checking for SMP support" >&5
36308 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
36309 # Check whether --enable-smp was given.
36310 if test "${enable_smp+set}" = set; then
36311 enableval=$enable_smp; if test "$enableval" = yes; then
36312 { echo "$as_me:$LINENO: result: yes" >&5
36313 echo "${ECHO_T}yes" >&6; }
36314 cat >>confdefs.h <<\_ACEOF
36315 #define BX_SUPPORT_SMP 1
36316 _ACEOF
36318 cat >>confdefs.h <<\_ACEOF
36319 #define BX_USE_CPU_SMF 0
36320 _ACEOF
36322 use_smp=1
36323 else
36324 { echo "$as_me:$LINENO: result: no" >&5
36325 echo "${ECHO_T}no" >&6; }
36326 cat >>confdefs.h <<\_ACEOF
36327 #define BX_SUPPORT_SMP 0
36328 _ACEOF
36332 else
36334 { echo "$as_me:$LINENO: result: no" >&5
36335 echo "${ECHO_T}no" >&6; }
36336 cat >>confdefs.h <<\_ACEOF
36337 #define BX_SUPPORT_SMP 0
36338 _ACEOF
36345 { echo "$as_me:$LINENO: checking for cpu level" >&5
36346 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
36347 # Check whether --enable-cpu-level was given.
36348 if test "${enable_cpu_level+set}" = set; then
36349 enableval=$enable_cpu_level; case "$enableval" in
36351 { echo "$as_me:$LINENO: result: 3" >&5
36352 echo "${ECHO_T}3" >&6; }
36353 cat >>confdefs.h <<\_ACEOF
36354 #define BX_CPU_LEVEL 3
36355 _ACEOF
36357 cat >>confdefs.h <<\_ACEOF
36358 #define BX_CPU_LEVEL_HACKED 3
36359 _ACEOF
36363 { echo "$as_me:$LINENO: result: 4" >&5
36364 echo "${ECHO_T}4" >&6; }
36365 cat >>confdefs.h <<\_ACEOF
36366 #define BX_CPU_LEVEL 4
36367 _ACEOF
36369 cat >>confdefs.h <<\_ACEOF
36370 #define BX_CPU_LEVEL_HACKED 4
36371 _ACEOF
36375 { echo "$as_me:$LINENO: result: 5" >&5
36376 echo "${ECHO_T}5" >&6; }
36377 cat >>confdefs.h <<\_ACEOF
36378 #define BX_CPU_LEVEL 5
36379 _ACEOF
36381 cat >>confdefs.h <<\_ACEOF
36382 #define BX_CPU_LEVEL_HACKED 5
36383 _ACEOF
36387 { echo "$as_me:$LINENO: result: 6" >&5
36388 echo "${ECHO_T}6" >&6; }
36389 cat >>confdefs.h <<\_ACEOF
36390 #define BX_CPU_LEVEL 6
36391 _ACEOF
36393 cat >>confdefs.h <<\_ACEOF
36394 #define BX_CPU_LEVEL_HACKED 6
36395 _ACEOF
36399 echo " "
36400 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
36401 exit 1
36403 esac
36404 bx_cpu_level=$enableval
36405 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
36406 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
36407 exit 1
36410 else
36412 # for multiprocessors or x86-64, cpu level must be 6
36413 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
36414 { echo "$as_me:$LINENO: result: 6" >&5
36415 echo "${ECHO_T}6" >&6; }
36416 cat >>confdefs.h <<\_ACEOF
36417 #define BX_CPU_LEVEL 6
36418 _ACEOF
36420 cat >>confdefs.h <<\_ACEOF
36421 #define BX_CPU_LEVEL_HACKED 6
36422 _ACEOF
36424 bx_cpu_level=6
36425 else
36426 { echo "$as_me:$LINENO: result: 5" >&5
36427 echo "${ECHO_T}5" >&6; }
36428 cat >>confdefs.h <<\_ACEOF
36429 #define BX_CPU_LEVEL 5
36430 _ACEOF
36432 cat >>confdefs.h <<\_ACEOF
36433 #define BX_CPU_LEVEL_HACKED 5
36434 _ACEOF
36436 bx_cpu_level=5
36444 { echo "$as_me:$LINENO: checking for APIC support" >&5
36445 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
36446 # Check whether --enable-apic was given.
36447 if test "${enable_apic+set}" = set; then
36448 enableval=$enable_apic; if test "$enableval" = yes; then
36449 { echo "$as_me:$LINENO: result: yes" >&5
36450 echo "${ECHO_T}yes" >&6; }
36451 cat >>confdefs.h <<\_ACEOF
36452 #define BX_SUPPORT_APIC 1
36453 _ACEOF
36455 IOAPIC_OBJS='ioapic.o'
36456 else
36457 { echo "$as_me:$LINENO: result: no" >&5
36458 echo "${ECHO_T}no" >&6; }
36459 if test "$use_smp" = 1; then
36460 echo "ERROR: With SMP configuration you must use --enable-apic"
36461 exit 1
36463 cat >>confdefs.h <<\_ACEOF
36464 #define BX_SUPPORT_APIC 0
36465 _ACEOF
36467 IOAPIC_OBJS=''
36470 else
36472 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
36473 # enable APIC by default, if SMP configuration or if cpulevel>5
36474 { echo "$as_me:$LINENO: result: yes" >&5
36475 echo "${ECHO_T}yes" >&6; }
36476 cat >>confdefs.h <<\_ACEOF
36477 #define BX_SUPPORT_APIC 1
36478 _ACEOF
36480 IOAPIC_OBJS='ioapic.o'
36481 else
36482 { echo "$as_me:$LINENO: result: no" >&5
36483 echo "${ECHO_T}no" >&6; }
36484 cat >>confdefs.h <<\_ACEOF
36485 #define BX_SUPPORT_APIC 0
36486 _ACEOF
36488 IOAPIC_OBJS=''
36496 if test "${ac_cv_header_zlib_h+set}" = set; then
36497 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36498 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36499 if test "${ac_cv_header_zlib_h+set}" = set; then
36500 echo $ECHO_N "(cached) $ECHO_C" >&6
36502 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36503 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36504 else
36505 # Is the header compilable?
36506 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
36507 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
36508 cat >conftest.$ac_ext <<_ACEOF
36509 /* confdefs.h. */
36510 _ACEOF
36511 cat confdefs.h >>conftest.$ac_ext
36512 cat >>conftest.$ac_ext <<_ACEOF
36513 /* end confdefs.h. */
36514 $ac_includes_default
36515 #include <zlib.h>
36516 _ACEOF
36517 rm -f conftest.$ac_objext
36518 if { (ac_try="$ac_compile"
36519 case "(($ac_try" in
36520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36521 *) ac_try_echo=$ac_try;;
36522 esac
36523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36524 (eval "$ac_compile") 2>conftest.er1
36525 ac_status=$?
36526 grep -v '^ *+' conftest.er1 >conftest.err
36527 rm -f conftest.er1
36528 cat conftest.err >&5
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); } &&
36531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36532 { (case "(($ac_try" in
36533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36534 *) ac_try_echo=$ac_try;;
36535 esac
36536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36537 (eval "$ac_try") 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest.$ac_objext'
36542 { (case "(($ac_try" in
36543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36544 *) ac_try_echo=$ac_try;;
36545 esac
36546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36547 (eval "$ac_try") 2>&5
36548 ac_status=$?
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; }; then
36551 ac_header_compiler=yes
36552 else
36553 echo "$as_me: failed program was:" >&5
36554 sed 's/^/| /' conftest.$ac_ext >&5
36556 ac_header_compiler=no
36559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36561 echo "${ECHO_T}$ac_header_compiler" >&6; }
36563 # Is the header present?
36564 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
36565 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
36566 cat >conftest.$ac_ext <<_ACEOF
36567 /* confdefs.h. */
36568 _ACEOF
36569 cat confdefs.h >>conftest.$ac_ext
36570 cat >>conftest.$ac_ext <<_ACEOF
36571 /* end confdefs.h. */
36572 #include <zlib.h>
36573 _ACEOF
36574 if { (ac_try="$ac_cpp conftest.$ac_ext"
36575 case "(($ac_try" in
36576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36577 *) ac_try_echo=$ac_try;;
36578 esac
36579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36581 ac_status=$?
36582 grep -v '^ *+' conftest.er1 >conftest.err
36583 rm -f conftest.er1
36584 cat conftest.err >&5
36585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586 (exit $ac_status); } >/dev/null; then
36587 if test -s conftest.err; then
36588 ac_cpp_err=$ac_c_preproc_warn_flag
36589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36590 else
36591 ac_cpp_err=
36593 else
36594 ac_cpp_err=yes
36596 if test -z "$ac_cpp_err"; then
36597 ac_header_preproc=yes
36598 else
36599 echo "$as_me: failed program was:" >&5
36600 sed 's/^/| /' conftest.$ac_ext >&5
36602 ac_header_preproc=no
36605 rm -f conftest.err conftest.$ac_ext
36606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36607 echo "${ECHO_T}$ac_header_preproc" >&6; }
36609 # So? What about this header?
36610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36611 yes:no: )
36612 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36613 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36614 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36615 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36616 ac_header_preproc=yes
36618 no:yes:* )
36619 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36620 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36621 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36622 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36624 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36626 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36628 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36629 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36630 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36633 esac
36634 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36635 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36636 if test "${ac_cv_header_zlib_h+set}" = set; then
36637 echo $ECHO_N "(cached) $ECHO_C" >&6
36638 else
36639 ac_cv_header_zlib_h=$ac_header_preproc
36641 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36642 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36645 if test $ac_cv_header_zlib_h = yes; then
36646 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
36647 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
36648 if test "${ac_cv_lib_z_gzopen+set}" = set; then
36649 echo $ECHO_N "(cached) $ECHO_C" >&6
36650 else
36651 ac_check_lib_save_LIBS=$LIBS
36652 LIBS="-lz $LIBS"
36653 cat >conftest.$ac_ext <<_ACEOF
36654 /* confdefs.h. */
36655 _ACEOF
36656 cat confdefs.h >>conftest.$ac_ext
36657 cat >>conftest.$ac_ext <<_ACEOF
36658 /* end confdefs.h. */
36660 /* Override any GCC internal prototype to avoid an error.
36661 Use char because int might match the return type of a GCC
36662 builtin and then its argument prototype would still apply. */
36663 #ifdef __cplusplus
36664 extern "C"
36665 #endif
36666 char gzopen ();
36668 main ()
36670 return gzopen ();
36672 return 0;
36674 _ACEOF
36675 rm -f conftest.$ac_objext conftest$ac_exeext
36676 if { (ac_try="$ac_link"
36677 case "(($ac_try" in
36678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36679 *) ac_try_echo=$ac_try;;
36680 esac
36681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36682 (eval "$ac_link") 2>conftest.er1
36683 ac_status=$?
36684 grep -v '^ *+' conftest.er1 >conftest.err
36685 rm -f conftest.er1
36686 cat conftest.err >&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); } &&
36689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36690 { (case "(($ac_try" in
36691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36692 *) ac_try_echo=$ac_try;;
36693 esac
36694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36695 (eval "$ac_try") 2>&5
36696 ac_status=$?
36697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36698 (exit $ac_status); }; } &&
36699 { ac_try='test -s conftest$ac_exeext'
36700 { (case "(($ac_try" in
36701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36702 *) ac_try_echo=$ac_try;;
36703 esac
36704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36705 (eval "$ac_try") 2>&5
36706 ac_status=$?
36707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708 (exit $ac_status); }; }; then
36709 ac_cv_lib_z_gzopen=yes
36710 else
36711 echo "$as_me: failed program was:" >&5
36712 sed 's/^/| /' conftest.$ac_ext >&5
36714 ac_cv_lib_z_gzopen=no
36717 rm -f core conftest.err conftest.$ac_objext \
36718 conftest$ac_exeext conftest.$ac_ext
36719 LIBS=$ac_check_lib_save_LIBS
36721 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
36722 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
36723 if test $ac_cv_lib_z_gzopen = yes; then
36724 cat >>confdefs.h <<\_ACEOF
36725 #define BX_HAVE_ZLIB 1
36726 _ACEOF
36734 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
36735 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
36736 # Check whether --enable-compressed-hd was given.
36737 if test "${enable_compressed_hd+set}" = set; then
36738 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
36739 { echo "$as_me:$LINENO: result: yes" >&5
36740 echo "${ECHO_T}yes" >&6; }
36741 cat >>confdefs.h <<\_ACEOF
36742 #define BX_COMPRESSED_HD_SUPPORT 1
36743 _ACEOF
36745 LIBS="$LIBS -lz"
36746 else
36747 { echo "$as_me:$LINENO: result: no" >&5
36748 echo "${ECHO_T}no" >&6; }
36749 cat >>confdefs.h <<\_ACEOF
36750 #define BX_COMPRESSED_HD_SUPPORT 0
36751 _ACEOF
36754 else
36756 { echo "$as_me:$LINENO: result: no" >&5
36757 echo "${ECHO_T}no" >&6; }
36758 cat >>confdefs.h <<\_ACEOF
36759 #define BX_COMPRESSED_HD_SUPPORT 0
36760 _ACEOF
36768 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
36769 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
36770 # Check whether --enable-ne2000 was given.
36771 if test "${enable_ne2000+set}" = set; then
36772 enableval=$enable_ne2000; if test "$enableval" = yes; then
36773 { echo "$as_me:$LINENO: result: yes" >&5
36774 echo "${ECHO_T}yes" >&6; }
36775 cat >>confdefs.h <<\_ACEOF
36776 #define BX_SUPPORT_NE2K 1
36777 _ACEOF
36779 NE2K_OBJS='ne2k.o'
36780 networking=yes
36781 else
36782 { echo "$as_me:$LINENO: result: no" >&5
36783 echo "${ECHO_T}no" >&6; }
36784 cat >>confdefs.h <<\_ACEOF
36785 #define BX_SUPPORT_NE2K 0
36786 _ACEOF
36788 NE2K_OBJS=''
36789 networking=no
36791 else
36793 { echo "$as_me:$LINENO: result: no" >&5
36794 echo "${ECHO_T}no" >&6; }
36795 cat >>confdefs.h <<\_ACEOF
36796 #define BX_SUPPORT_NE2K 0
36797 _ACEOF
36799 NE2K_OBJS=''
36800 networking=no
36807 { echo "$as_me:$LINENO: checking for ACPI support" >&5
36808 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
36809 # Check whether --enable-acpi was given.
36810 if test "${enable_acpi+set}" = set; then
36811 enableval=$enable_acpi; if test "$enableval" = yes; then
36812 { echo "$as_me:$LINENO: result: yes" >&5
36813 echo "${ECHO_T}yes" >&6; }
36814 cat >>confdefs.h <<\_ACEOF
36815 #define BX_SUPPORT_ACPI 1
36816 _ACEOF
36818 else
36819 { echo "$as_me:$LINENO: result: no" >&5
36820 echo "${ECHO_T}no" >&6; }
36821 cat >>confdefs.h <<\_ACEOF
36822 #define BX_SUPPORT_ACPI 0
36823 _ACEOF
36826 else
36828 { echo "$as_me:$LINENO: result: no" >&5
36829 echo "${ECHO_T}no" >&6; }
36830 cat >>confdefs.h <<\_ACEOF
36831 #define BX_SUPPORT_ACPI 0
36832 _ACEOF
36840 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
36841 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
36842 # Check whether --enable-pci was given.
36843 if test "${enable_pci+set}" = set; then
36844 enableval=$enable_pci; if test "$enableval" = yes; then
36845 { echo "$as_me:$LINENO: result: yes" >&5
36846 echo "${ECHO_T}yes" >&6; }
36847 cat >>confdefs.h <<\_ACEOF
36848 #define BX_SUPPORT_PCI 1
36849 _ACEOF
36851 pci=1
36852 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
36853 else
36854 { echo "$as_me:$LINENO: result: no" >&5
36855 echo "${ECHO_T}no" >&6; }
36856 cat >>confdefs.h <<\_ACEOF
36857 #define BX_SUPPORT_PCI 0
36858 _ACEOF
36860 pci=0
36861 PCI_OBJ=''
36863 else
36865 { echo "$as_me:$LINENO: result: no" >&5
36866 echo "${ECHO_T}no" >&6; }
36867 cat >>confdefs.h <<\_ACEOF
36868 #define BX_SUPPORT_PCI 0
36869 _ACEOF
36871 pci=0
36872 PCI_OBJ=''
36880 # PCI host device support
36882 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
36883 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
36884 # Check whether --enable-pcidev was given.
36885 if test "${enable_pcidev+set}" = set; then
36886 enableval=$enable_pcidev;
36887 if test "$enableval" = "yes"; then
36888 { echo "$as_me:$LINENO: result: yes" >&5
36889 echo "${ECHO_T}yes" >&6; }
36890 if test "$pci" != "1"; then
36891 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
36892 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
36893 { (exit 1); exit 1; }; }
36895 case "$target" in
36896 *-linux*)
36897 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
36898 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
36899 linux_version=`uname -r`
36900 case "$linux_version" in
36901 2.4*)
36902 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
36903 KERNEL_MODULE_SUFFIX="o"
36905 2.6*)
36906 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
36907 KERNEL_MODULE_SUFFIX="ko"
36910 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
36911 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
36912 { (exit 1); exit 1; }; }
36914 esac
36915 KERNELDIR="/lib/modules/$linux_version/build"
36916 LSMOD="lsmod"
36917 INSMOD="insmod"
36918 RMMOD="rmmod"
36919 DEPMOD="depmod"
36929 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
36930 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
36931 { (exit 1); exit 1; }; }
36933 esac
36934 cat >>confdefs.h <<\_ACEOF
36935 #define BX_SUPPORT_PCIDEV 1
36936 _ACEOF
36938 PCI_OBJ="$PCI_OBJ pcidev.o"
36939 else
36940 { echo "$as_me:$LINENO: result: no" >&5
36941 echo "${ECHO_T}no" >&6; }
36942 cat >>confdefs.h <<\_ACEOF
36943 #define BX_SUPPORT_PCIDEV 0
36944 _ACEOF
36948 else
36950 { echo "$as_me:$LINENO: result: no" >&5
36951 echo "${ECHO_T}no" >&6; }
36952 cat >>confdefs.h <<\_ACEOF
36953 #define BX_SUPPORT_PCIDEV 0
36954 _ACEOF
36961 USBDEV_OBJS=''
36962 SCSI_OBJS=''
36963 { echo "$as_me:$LINENO: checking for limited USB support" >&5
36964 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
36965 # Check whether --enable-usb was given.
36966 if test "${enable_usb+set}" = set; then
36967 enableval=$enable_usb; if test "$enableval" = yes; then
36968 { echo "$as_me:$LINENO: result: yes" >&5
36969 echo "${ECHO_T}yes" >&6; }
36970 cat >>confdefs.h <<\_ACEOF
36971 #define BX_SUPPORT_PCIUSB 1
36972 _ACEOF
36974 PCI_OBJ="$PCI_OBJ pciusb.o"
36975 USBDEV_OBJS="usb_hid.o usb_msd.o"
36976 SCSI_OBJS="scsi_device.o"
36977 else
36978 { echo "$as_me:$LINENO: result: no" >&5
36979 echo "${ECHO_T}no" >&6; }
36980 cat >>confdefs.h <<\_ACEOF
36981 #define BX_SUPPORT_PCIUSB 0
36982 _ACEOF
36985 else
36987 { echo "$as_me:$LINENO: result: no" >&5
36988 echo "${ECHO_T}no" >&6; }
36989 cat >>confdefs.h <<\_ACEOF
36990 #define BX_SUPPORT_PCIUSB 0
36991 _ACEOF
37001 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
37002 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
37003 # Check whether --enable-pnic was given.
37004 if test "${enable_pnic+set}" = set; then
37005 enableval=$enable_pnic; if test "$enableval" = yes; then
37006 { echo "$as_me:$LINENO: result: yes" >&5
37007 echo "${ECHO_T}yes" >&6; }
37008 cat >>confdefs.h <<\_ACEOF
37009 #define BX_SUPPORT_PCIPNIC 1
37010 _ACEOF
37012 PCI_OBJ="$PCI_OBJ pcipnic.o"
37013 networking=yes
37014 else
37015 { echo "$as_me:$LINENO: result: no" >&5
37016 echo "${ECHO_T}no" >&6; }
37017 cat >>confdefs.h <<\_ACEOF
37018 #define BX_SUPPORT_PCIPNIC 0
37019 _ACEOF
37022 else
37024 { echo "$as_me:$LINENO: result: no" >&5
37025 echo "${ECHO_T}no" >&6; }
37026 cat >>confdefs.h <<\_ACEOF
37027 #define BX_SUPPORT_PCIPNIC 0
37028 _ACEOF
37035 NETLOW_OBJS=''
37036 if test "$networking" = yes; then
37037 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
37038 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37039 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37040 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37041 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37042 echo $ECHO_N "(cached) $ECHO_C" >&6
37044 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37045 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37046 else
37047 # Is the header compilable?
37048 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
37049 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
37050 cat >conftest.$ac_ext <<_ACEOF
37051 /* confdefs.h. */
37052 _ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37056 $ac_includes_default
37057 #include <net/bpf.h>
37058 _ACEOF
37059 rm -f conftest.$ac_objext
37060 if { (ac_try="$ac_compile"
37061 case "(($ac_try" in
37062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37063 *) ac_try_echo=$ac_try;;
37064 esac
37065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37066 (eval "$ac_compile") 2>conftest.er1
37067 ac_status=$?
37068 grep -v '^ *+' conftest.er1 >conftest.err
37069 rm -f conftest.er1
37070 cat conftest.err >&5
37071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072 (exit $ac_status); } &&
37073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37074 { (case "(($ac_try" in
37075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37076 *) ac_try_echo=$ac_try;;
37077 esac
37078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37079 (eval "$ac_try") 2>&5
37080 ac_status=$?
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); }; } &&
37083 { ac_try='test -s conftest.$ac_objext'
37084 { (case "(($ac_try" in
37085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37086 *) ac_try_echo=$ac_try;;
37087 esac
37088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37089 (eval "$ac_try") 2>&5
37090 ac_status=$?
37091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092 (exit $ac_status); }; }; then
37093 ac_header_compiler=yes
37094 else
37095 echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37098 ac_header_compiler=no
37101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37103 echo "${ECHO_T}$ac_header_compiler" >&6; }
37105 # Is the header present?
37106 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
37107 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
37108 cat >conftest.$ac_ext <<_ACEOF
37109 /* confdefs.h. */
37110 _ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h. */
37114 #include <net/bpf.h>
37115 _ACEOF
37116 if { (ac_try="$ac_cpp conftest.$ac_ext"
37117 case "(($ac_try" in
37118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37119 *) ac_try_echo=$ac_try;;
37120 esac
37121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37123 ac_status=$?
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } >/dev/null; then
37129 if test -s conftest.err; then
37130 ac_cpp_err=$ac_c_preproc_warn_flag
37131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37132 else
37133 ac_cpp_err=
37135 else
37136 ac_cpp_err=yes
37138 if test -z "$ac_cpp_err"; then
37139 ac_header_preproc=yes
37140 else
37141 echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37144 ac_header_preproc=no
37147 rm -f conftest.err conftest.$ac_ext
37148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37149 echo "${ECHO_T}$ac_header_preproc" >&6; }
37151 # So? What about this header?
37152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37153 yes:no: )
37154 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
37155 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37156 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
37157 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
37158 ac_header_preproc=yes
37160 no:yes:* )
37161 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
37162 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
37163 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
37164 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
37165 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
37166 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
37167 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
37168 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
37169 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
37170 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
37171 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
37172 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
37175 esac
37176 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37177 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37178 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37179 echo $ECHO_N "(cached) $ECHO_C" >&6
37180 else
37181 ac_cv_header_net_bpf_h=$ac_header_preproc
37183 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37184 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37187 if test $ac_cv_header_net_bpf_h = yes; then
37188 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
37192 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37193 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37194 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37195 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37196 echo $ECHO_N "(cached) $ECHO_C" >&6
37198 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37199 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37200 else
37201 # Is the header compilable?
37202 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
37203 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
37204 cat >conftest.$ac_ext <<_ACEOF
37205 /* confdefs.h. */
37206 _ACEOF
37207 cat confdefs.h >>conftest.$ac_ext
37208 cat >>conftest.$ac_ext <<_ACEOF
37209 /* end confdefs.h. */
37210 $ac_includes_default
37211 #include <netpacket/packet.h>
37212 _ACEOF
37213 rm -f conftest.$ac_objext
37214 if { (ac_try="$ac_compile"
37215 case "(($ac_try" in
37216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37217 *) ac_try_echo=$ac_try;;
37218 esac
37219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37220 (eval "$ac_compile") 2>conftest.er1
37221 ac_status=$?
37222 grep -v '^ *+' conftest.er1 >conftest.err
37223 rm -f conftest.er1
37224 cat conftest.err >&5
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); } &&
37227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37228 { (case "(($ac_try" in
37229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37230 *) ac_try_echo=$ac_try;;
37231 esac
37232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37233 (eval "$ac_try") 2>&5
37234 ac_status=$?
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); }; } &&
37237 { ac_try='test -s conftest.$ac_objext'
37238 { (case "(($ac_try" in
37239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37240 *) ac_try_echo=$ac_try;;
37241 esac
37242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37243 (eval "$ac_try") 2>&5
37244 ac_status=$?
37245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; }; then
37247 ac_header_compiler=yes
37248 else
37249 echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37252 ac_header_compiler=no
37255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37257 echo "${ECHO_T}$ac_header_compiler" >&6; }
37259 # Is the header present?
37260 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
37261 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
37262 cat >conftest.$ac_ext <<_ACEOF
37263 /* confdefs.h. */
37264 _ACEOF
37265 cat confdefs.h >>conftest.$ac_ext
37266 cat >>conftest.$ac_ext <<_ACEOF
37267 /* end confdefs.h. */
37268 #include <netpacket/packet.h>
37269 _ACEOF
37270 if { (ac_try="$ac_cpp conftest.$ac_ext"
37271 case "(($ac_try" in
37272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37273 *) ac_try_echo=$ac_try;;
37274 esac
37275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37277 ac_status=$?
37278 grep -v '^ *+' conftest.er1 >conftest.err
37279 rm -f conftest.er1
37280 cat conftest.err >&5
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); } >/dev/null; then
37283 if test -s conftest.err; then
37284 ac_cpp_err=$ac_c_preproc_warn_flag
37285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37286 else
37287 ac_cpp_err=
37289 else
37290 ac_cpp_err=yes
37292 if test -z "$ac_cpp_err"; then
37293 ac_header_preproc=yes
37294 else
37295 echo "$as_me: failed program was:" >&5
37296 sed 's/^/| /' conftest.$ac_ext >&5
37298 ac_header_preproc=no
37301 rm -f conftest.err conftest.$ac_ext
37302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37303 echo "${ECHO_T}$ac_header_preproc" >&6; }
37305 # So? What about this header?
37306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37307 yes:no: )
37308 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
37309 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37310 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
37311 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
37312 ac_header_preproc=yes
37314 no:yes:* )
37315 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
37316 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
37317 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
37318 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
37319 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
37320 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
37321 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
37322 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
37323 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
37324 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
37325 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
37326 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
37329 esac
37330 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37331 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37332 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37333 echo $ECHO_N "(cached) $ECHO_C" >&6
37334 else
37335 ac_cv_header_netpacket_packet_h=$ac_header_preproc
37337 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37338 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37341 if test $ac_cv_header_netpacket_packet_h = yes; then
37342 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
37346 case "$target" in
37347 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
37348 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
37350 *-macosx* | *-darwin*)
37351 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37352 cat >>confdefs.h <<\_ACEOF
37353 #define HAVE_TUNTAP 1
37354 _ACEOF
37358 { echo "$as_me:$LINENO: checking for net/if.h" >&5
37359 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
37360 if test "${ac_cv_header_net_if_h+set}" = set; then
37361 echo $ECHO_N "(cached) $ECHO_C" >&6
37362 else
37363 cat >conftest.$ac_ext <<_ACEOF
37364 /* confdefs.h. */
37365 _ACEOF
37366 cat confdefs.h >>conftest.$ac_ext
37367 cat >>conftest.$ac_ext <<_ACEOF
37368 /* end confdefs.h. */
37370 #include <sys/types.h>
37371 #include <sys/socket.h>
37374 #include <net/if.h>
37375 _ACEOF
37376 rm -f conftest.$ac_objext
37377 if { (ac_try="$ac_compile"
37378 case "(($ac_try" in
37379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380 *) ac_try_echo=$ac_try;;
37381 esac
37382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37383 (eval "$ac_compile") 2>conftest.er1
37384 ac_status=$?
37385 grep -v '^ *+' conftest.er1 >conftest.err
37386 rm -f conftest.er1
37387 cat conftest.err >&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } &&
37390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37391 { (case "(($ac_try" in
37392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37393 *) ac_try_echo=$ac_try;;
37394 esac
37395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37396 (eval "$ac_try") 2>&5
37397 ac_status=$?
37398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37399 (exit $ac_status); }; } &&
37400 { ac_try='test -s conftest.$ac_objext'
37401 { (case "(($ac_try" in
37402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37403 *) ac_try_echo=$ac_try;;
37404 esac
37405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37406 (eval "$ac_try") 2>&5
37407 ac_status=$?
37408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37409 (exit $ac_status); }; }; then
37410 ac_cv_header_net_if_h=yes
37411 else
37412 echo "$as_me: failed program was:" >&5
37413 sed 's/^/| /' conftest.$ac_ext >&5
37415 ac_cv_header_net_if_h=no
37418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37420 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
37421 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
37422 if test $ac_cv_header_net_if_h = yes; then
37424 use_ethertap=yes
37425 cat >>confdefs.h <<\_ACEOF
37426 #define BX_HAVE_NET_IF_H 1
37427 _ACEOF
37433 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
37434 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
37435 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
37436 echo $ECHO_N "(cached) $ECHO_C" >&6
37437 else
37438 cat >conftest.$ac_ext <<_ACEOF
37439 /* confdefs.h. */
37440 _ACEOF
37441 cat confdefs.h >>conftest.$ac_ext
37442 cat >>conftest.$ac_ext <<_ACEOF
37443 /* end confdefs.h. */
37445 #include <asm/types.h>
37446 #include <sys/socket.h>
37449 #include <linux/netlink.h>
37450 _ACEOF
37451 rm -f conftest.$ac_objext
37452 if { (ac_try="$ac_compile"
37453 case "(($ac_try" in
37454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37455 *) ac_try_echo=$ac_try;;
37456 esac
37457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37458 (eval "$ac_compile") 2>conftest.er1
37459 ac_status=$?
37460 grep -v '^ *+' conftest.er1 >conftest.err
37461 rm -f conftest.er1
37462 cat conftest.err >&5
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); } &&
37465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37466 { (case "(($ac_try" in
37467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37468 *) ac_try_echo=$ac_try;;
37469 esac
37470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37471 (eval "$ac_try") 2>&5
37472 ac_status=$?
37473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474 (exit $ac_status); }; } &&
37475 { ac_try='test -s conftest.$ac_objext'
37476 { (case "(($ac_try" in
37477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37478 *) ac_try_echo=$ac_try;;
37479 esac
37480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37481 (eval "$ac_try") 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485 ac_cv_header_linux_netlink_h=yes
37486 else
37487 echo "$as_me: failed program was:" >&5
37488 sed 's/^/| /' conftest.$ac_ext >&5
37490 ac_cv_header_linux_netlink_h=no
37493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37495 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
37496 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
37497 if test $ac_cv_header_linux_netlink_h = yes; then
37499 use_ethertap=yes
37505 if test "$use_ethertap" = yes; then
37506 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
37507 cat >>confdefs.h <<\_ACEOF
37508 #define HAVE_ETHERTAP 1
37509 _ACEOF
37511 cat >>confdefs.h <<\_ACEOF
37512 #define HAVE_VDE 1
37513 _ACEOF
37517 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
37518 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
37519 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
37520 echo $ECHO_N "(cached) $ECHO_C" >&6
37521 else
37522 cat >conftest.$ac_ext <<_ACEOF
37523 /* confdefs.h. */
37524 _ACEOF
37525 cat confdefs.h >>conftest.$ac_ext
37526 cat >>conftest.$ac_ext <<_ACEOF
37527 /* end confdefs.h. */
37529 #include <sys/types.h>
37530 #include <sys/socket.h>
37531 #include <net/if.h>
37534 #include <net/if_tun.h>
37535 _ACEOF
37536 rm -f conftest.$ac_objext
37537 if { (ac_try="$ac_compile"
37538 case "(($ac_try" in
37539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37540 *) ac_try_echo=$ac_try;;
37541 esac
37542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37543 (eval "$ac_compile") 2>conftest.er1
37544 ac_status=$?
37545 grep -v '^ *+' conftest.er1 >conftest.err
37546 rm -f conftest.er1
37547 cat conftest.err >&5
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); } &&
37550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37551 { (case "(($ac_try" in
37552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37553 *) ac_try_echo=$ac_try;;
37554 esac
37555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37556 (eval "$ac_try") 2>&5
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; } &&
37560 { ac_try='test -s conftest.$ac_objext'
37561 { (case "(($ac_try" in
37562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37563 *) ac_try_echo=$ac_try;;
37564 esac
37565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37566 (eval "$ac_try") 2>&5
37567 ac_status=$?
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; }; then
37570 ac_cv_header_net_if_tun_h=yes
37571 else
37572 echo "$as_me: failed program was:" >&5
37573 sed 's/^/| /' conftest.$ac_ext >&5
37575 ac_cv_header_net_if_tun_h=no
37578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37580 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
37581 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
37582 if test $ac_cv_header_net_if_tun_h = yes; then
37584 use_tuntap=yes
37589 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
37590 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
37591 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
37592 echo $ECHO_N "(cached) $ECHO_C" >&6
37593 else
37594 cat >conftest.$ac_ext <<_ACEOF
37595 /* confdefs.h. */
37596 _ACEOF
37597 cat confdefs.h >>conftest.$ac_ext
37598 cat >>conftest.$ac_ext <<_ACEOF
37599 /* end confdefs.h. */
37601 #include <asm/types.h>
37602 #include <sys/socket.h>
37605 #include <linux/if_tun.h>
37606 _ACEOF
37607 rm -f conftest.$ac_objext
37608 if { (ac_try="$ac_compile"
37609 case "(($ac_try" in
37610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37611 *) ac_try_echo=$ac_try;;
37612 esac
37613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37614 (eval "$ac_compile") 2>conftest.er1
37615 ac_status=$?
37616 grep -v '^ *+' conftest.er1 >conftest.err
37617 rm -f conftest.er1
37618 cat conftest.err >&5
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); } &&
37621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37622 { (case "(($ac_try" in
37623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37624 *) ac_try_echo=$ac_try;;
37625 esac
37626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37627 (eval "$ac_try") 2>&5
37628 ac_status=$?
37629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37630 (exit $ac_status); }; } &&
37631 { ac_try='test -s conftest.$ac_objext'
37632 { (case "(($ac_try" in
37633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37634 *) ac_try_echo=$ac_try;;
37635 esac
37636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37637 (eval "$ac_try") 2>&5
37638 ac_status=$?
37639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37640 (exit $ac_status); }; }; then
37641 ac_cv_header_linux_if_tun_h=yes
37642 else
37643 echo "$as_me: failed program was:" >&5
37644 sed 's/^/| /' conftest.$ac_ext >&5
37646 ac_cv_header_linux_if_tun_h=no
37649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37651 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
37652 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
37653 if test $ac_cv_header_linux_if_tun_h = yes; then
37655 use_tuntap=yes
37660 if test "$use_tuntap" = yes; then
37661 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37662 cat >>confdefs.h <<\_ACEOF
37663 #define HAVE_TUNTAP 1
37664 _ACEOF
37669 esac
37670 cat >>confdefs.h <<\_ACEOF
37671 #define BX_NETWORKING 1
37672 _ACEOF
37674 else
37675 cat >>confdefs.h <<\_ACEOF
37676 #define BX_NETWORKING 0
37677 _ACEOF
37684 { echo "$as_me:$LINENO: checking for large pages support" >&5
37685 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
37686 # Check whether --enable-large-pages was given.
37687 if test "${enable_large_pages+set}" = set; then
37688 enableval=$enable_large_pages; if test "$enableval" = yes; then
37689 { echo "$as_me:$LINENO: result: yes" >&5
37690 echo "${ECHO_T}yes" >&6; }
37691 cat >>confdefs.h <<\_ACEOF
37692 #define BX_SUPPORT_LARGE_PAGES 1
37693 _ACEOF
37695 support_large_pages=1
37696 else
37697 { echo "$as_me:$LINENO: result: no" >&5
37698 echo "${ECHO_T}no" >&6; }
37699 cat >>confdefs.h <<\_ACEOF
37700 #define BX_SUPPORT_LARGE_PAGES 0
37701 _ACEOF
37703 support_large_pages=0
37705 else
37707 if test "$bx_cpu_level" -gt 4; then
37708 { echo "$as_me:$LINENO: result: yes" >&5
37709 echo "${ECHO_T}yes" >&6; }
37710 cat >>confdefs.h <<\_ACEOF
37711 #define BX_SUPPORT_LARGE_PAGES 1
37712 _ACEOF
37714 support_large_pages=1
37715 else
37716 { echo "$as_me:$LINENO: result: no" >&5
37717 echo "${ECHO_T}no" >&6; }
37718 cat >>confdefs.h <<\_ACEOF
37719 #define BX_SUPPORT_LARGE_PAGES 0
37720 _ACEOF
37722 support_large_pages=0
37730 { echo "$as_me:$LINENO: checking for PAE support" >&5
37731 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
37732 # Check whether --enable-pae was given.
37733 if test "${enable_pae+set}" = set; then
37734 enableval=$enable_pae; if test "$enableval" = yes; then
37735 { echo "$as_me:$LINENO: result: yes" >&5
37736 echo "${ECHO_T}yes" >&6; }
37737 cat >>confdefs.h <<\_ACEOF
37738 #define BX_SUPPORT_PAE 1
37739 _ACEOF
37741 support_pae=1
37742 else
37743 { echo "$as_me:$LINENO: result: no" >&5
37744 echo "${ECHO_T}no" >&6; }
37745 cat >>confdefs.h <<\_ACEOF
37746 #define BX_SUPPORT_PAE 0
37747 _ACEOF
37749 support_pae=0
37751 else
37753 if test "$bx_cpu_level" -gt 5; then
37754 { echo "$as_me:$LINENO: result: yes" >&5
37755 echo "${ECHO_T}yes" >&6; }
37756 cat >>confdefs.h <<\_ACEOF
37757 #define BX_SUPPORT_PAE 1
37758 _ACEOF
37760 support_pae=1
37761 else
37762 { echo "$as_me:$LINENO: result: no" >&5
37763 echo "${ECHO_T}no" >&6; }
37764 cat >>confdefs.h <<\_ACEOF
37765 #define BX_SUPPORT_PAE 0
37766 _ACEOF
37768 support_pae=0
37775 { echo "$as_me:$LINENO: checking for global pages support" >&5
37776 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
37777 # Check whether --enable-global-pages was given.
37778 if test "${enable_global_pages+set}" = set; then
37779 enableval=$enable_global_pages; if test "$enableval" = yes; then
37780 { echo "$as_me:$LINENO: result: yes" >&5
37781 echo "${ECHO_T}yes" >&6; }
37782 cat >>confdefs.h <<\_ACEOF
37783 #define BX_SUPPORT_GLOBAL_PAGES 1
37784 _ACEOF
37786 support_global_pages=1
37787 else
37788 { echo "$as_me:$LINENO: result: no" >&5
37789 echo "${ECHO_T}no" >&6; }
37790 cat >>confdefs.h <<\_ACEOF
37791 #define BX_SUPPORT_GLOBAL_PAGES 0
37792 _ACEOF
37794 support_global_pages=0
37796 else
37798 if test "$bx_cpu_level" -gt 5; then
37799 # enable by default
37800 { echo "$as_me:$LINENO: result: yes" >&5
37801 echo "${ECHO_T}yes" >&6; }
37802 cat >>confdefs.h <<\_ACEOF
37803 #define BX_SUPPORT_GLOBAL_PAGES 1
37804 _ACEOF
37806 support_global_pages=1
37807 else
37808 { echo "$as_me:$LINENO: result: no" >&5
37809 echo "${ECHO_T}no" >&6; }
37810 cat >>confdefs.h <<\_ACEOF
37811 #define BX_SUPPORT_GLOBAL_PAGES 0
37812 _ACEOF
37814 support_global_pages=0
37821 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
37822 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
37823 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
37824 { (exit 1); exit 1; }; }
37827 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
37828 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
37829 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
37830 { (exit 1); exit 1; }; }
37833 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
37834 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
37835 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
37836 { (exit 1); exit 1; }; }
37839 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
37840 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
37841 # Check whether --enable-mtrr was given.
37842 if test "${enable_mtrr+set}" = set; then
37843 enableval=$enable_mtrr; if test "$enableval" = yes; then
37844 { echo "$as_me:$LINENO: result: yes" >&5
37845 echo "${ECHO_T}yes" >&6; }
37846 cat >>confdefs.h <<\_ACEOF
37847 #define BX_SUPPORT_MTRR 1
37848 _ACEOF
37850 else
37851 { echo "$as_me:$LINENO: result: no" >&5
37852 echo "${ECHO_T}no" >&6; }
37853 cat >>confdefs.h <<\_ACEOF
37854 #define BX_SUPPORT_MTRR 0
37855 _ACEOF
37858 else
37860 if test "$bx_cpu_level" -gt 5; then
37861 # enable by default
37862 { echo "$as_me:$LINENO: result: yes" >&5
37863 echo "${ECHO_T}yes" >&6; }
37864 cat >>confdefs.h <<\_ACEOF
37865 #define BX_SUPPORT_MTRR 1
37866 _ACEOF
37868 else
37869 { echo "$as_me:$LINENO: result: no" >&5
37870 echo "${ECHO_T}no" >&6; }
37871 cat >>confdefs.h <<\_ACEOF
37872 #define BX_SUPPORT_MTRR 0
37873 _ACEOF
37881 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
37882 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
37883 # Check whether --enable-guest2host-tlb was given.
37884 if test "${enable_guest2host_tlb+set}" = set; then
37885 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
37886 { echo "$as_me:$LINENO: result: yes" >&5
37887 echo "${ECHO_T}yes" >&6; }
37888 speedup_guest2host_tlb=1
37889 else
37890 { echo "$as_me:$LINENO: result: no" >&5
37891 echo "${ECHO_T}no" >&6; }
37892 speedup_guest2host_tlb=0
37894 else
37896 { echo "$as_me:$LINENO: result: no" >&5
37897 echo "${ECHO_T}no" >&6; }
37898 speedup_guest2host_tlb=0
37904 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
37905 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
37906 # Check whether --enable-repeat-speedups was given.
37907 if test "${enable_repeat_speedups+set}" = set; then
37908 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
37909 { echo "$as_me:$LINENO: result: yes" >&5
37910 echo "${ECHO_T}yes" >&6; }
37911 speedup_repeat=1
37912 else
37913 { echo "$as_me:$LINENO: result: no" >&5
37914 echo "${ECHO_T}no" >&6; }
37915 speedup_repeat=0
37917 else
37919 { echo "$as_me:$LINENO: result: no" >&5
37920 echo "${ECHO_T}no" >&6; }
37921 speedup_repeat=0
37927 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
37928 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
37929 # Check whether --enable-trace-cache was given.
37930 if test "${enable_trace_cache+set}" = set; then
37931 enableval=$enable_trace_cache; if test "$enableval" = yes; then
37932 { echo "$as_me:$LINENO: result: yes" >&5
37933 echo "${ECHO_T}yes" >&6; }
37934 speedup_TraceCache=1
37935 else
37936 { echo "$as_me:$LINENO: result: no" >&5
37937 echo "${ECHO_T}no" >&6; }
37938 speedup_TraceCache=0
37940 else
37942 if test "$speedup_TraceCache " = 1; then
37943 { echo "$as_me:$LINENO: result: yes" >&5
37944 echo "${ECHO_T}yes" >&6; }
37945 speedup_TraceCache=1
37946 else
37947 { echo "$as_me:$LINENO: result: no" >&5
37948 echo "${ECHO_T}no" >&6; }
37949 speedup_TraceCache=0
37956 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
37957 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
37958 # Check whether --enable-icache was given.
37959 if test "${enable_icache+set}" = set; then
37960 enableval=$enable_icache; if test "$enableval" = yes; then
37961 { echo "$as_me:$LINENO: result: yes" >&5
37962 echo "${ECHO_T}yes" >&6; }
37963 speedup_iCache=1
37964 else
37965 { echo "$as_me:$LINENO: result: no" >&5
37966 echo "${ECHO_T}no" >&6; }
37967 speedup_iCache=0
37969 else
37971 { echo "$as_me:$LINENO: result: no" >&5
37972 echo "${ECHO_T}no" >&6; }
37973 speedup_iCache=0
37979 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
37980 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
37981 # Check whether --enable-fast-function-calls was given.
37982 if test "${enable_fast_function_calls+set}" = set; then
37983 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
37984 { echo "$as_me:$LINENO: result: yes" >&5
37985 echo "${ECHO_T}yes" >&6; }
37986 speedup_fastcall=1
37987 else
37988 { echo "$as_me:$LINENO: result: no" >&5
37989 echo "${ECHO_T}no" >&6; }
37990 speedup_fastcall=0
37992 else
37994 { echo "$as_me:$LINENO: result: no" >&5
37995 echo "${ECHO_T}no" >&6; }
37996 speedup_fastcall=0
38002 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
38003 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
38004 # Check whether --enable-host-specific-asms was given.
38005 if test "${enable_host_specific_asms+set}" = set; then
38006 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
38007 { echo "$as_me:$LINENO: result: yes" >&5
38008 echo "${ECHO_T}yes" >&6; }
38009 speedup_host_specific_asms=1
38010 else
38011 { echo "$as_me:$LINENO: result: no" >&5
38012 echo "${ECHO_T}no" >&6; }
38013 speedup_host_specific_asms=0
38015 else
38017 { echo "$as_me:$LINENO: result: no" >&5
38018 echo "${ECHO_T}no" >&6; }
38019 speedup_host_specific_asms=0
38025 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
38026 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
38027 # Check whether --enable-ignore-bad-msr was given.
38028 if test "${enable_ignore_bad_msr+set}" = set; then
38029 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
38030 { echo "$as_me:$LINENO: result: yes" >&5
38031 echo "${ECHO_T}yes" >&6; }
38032 cat >>confdefs.h <<\_ACEOF
38033 #define BX_IGNORE_BAD_MSR 1
38034 _ACEOF
38036 else
38037 { echo "$as_me:$LINENO: result: no" >&5
38038 echo "${ECHO_T}no" >&6; }
38039 cat >>confdefs.h <<\_ACEOF
38040 #define BX_IGNORE_BAD_MSR 0
38041 _ACEOF
38044 else
38046 { echo "$as_me:$LINENO: result: yes" >&5
38047 echo "${ECHO_T}yes" >&6; }
38048 cat >>confdefs.h <<\_ACEOF
38049 #define BX_IGNORE_BAD_MSR 1
38050 _ACEOF
38057 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
38058 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
38059 # Check whether --enable-port-e9-hack was given.
38060 if test "${enable_port_e9_hack+set}" = set; then
38061 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
38062 { echo "$as_me:$LINENO: result: yes" >&5
38063 echo "${ECHO_T}yes" >&6; }
38064 cat >>confdefs.h <<\_ACEOF
38065 #define BX_PORT_E9_HACK 1
38066 _ACEOF
38068 else
38069 { echo "$as_me:$LINENO: result: no" >&5
38070 echo "${ECHO_T}no" >&6; }
38071 cat >>confdefs.h <<\_ACEOF
38072 #define BX_PORT_E9_HACK 0
38073 _ACEOF
38076 else
38078 { echo "$as_me:$LINENO: result: yes" >&5
38079 echo "${ECHO_T}yes" >&6; }
38080 cat >>confdefs.h <<\_ACEOF
38081 #define BX_PORT_E9_HACK 1
38082 _ACEOF
38089 { echo "$as_me:$LINENO: checking show IPS" >&5
38090 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
38091 # Check whether --enable-show-ips was given.
38092 if test "${enable_show_ips+set}" = set; then
38093 enableval=$enable_show_ips; if test "$enableval" = yes; then
38094 { echo "$as_me:$LINENO: result: yes" >&5
38095 echo "${ECHO_T}yes" >&6; }
38096 cat >>confdefs.h <<\_ACEOF
38097 #define BX_SHOW_IPS 1
38098 _ACEOF
38100 else
38101 { echo "$as_me:$LINENO: result: no" >&5
38102 echo "${ECHO_T}no" >&6; }
38103 cat >>confdefs.h <<\_ACEOF
38104 #define BX_SHOW_IPS 0
38105 _ACEOF
38108 else
38110 { echo "$as_me:$LINENO: result: no" >&5
38111 echo "${ECHO_T}no" >&6; }
38112 cat >>confdefs.h <<\_ACEOF
38113 #define BX_SHOW_IPS 0
38114 _ACEOF
38121 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
38122 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
38123 # Check whether --enable-cpp was given.
38124 if test "${enable_cpp+set}" = set; then
38125 enableval=$enable_cpp; if test "$enableval" = yes; then
38126 { echo "$as_me:$LINENO: result: yes" >&5
38127 echo "${ECHO_T}yes" >&6; }
38128 SUFFIX_LINE='.SUFFIXES: .cpp'
38129 CPP_SUFFIX='cpp'
38130 else
38131 { echo "$as_me:$LINENO: result: no" >&5
38132 echo "${ECHO_T}no" >&6; }
38133 SUFFIX_LINE='.SUFFIXES: .cc'
38134 CPP_SUFFIX='cc'
38136 else
38138 { echo "$as_me:$LINENO: result: no" >&5
38139 echo "${ECHO_T}no" >&6; }
38140 SUFFIX_LINE='.SUFFIXES: .cc'
38141 CPP_SUFFIX='cc'
38149 if test "$enable_cpp" = yes; then
38150 echo "moving .cc source files to .cpp"
38151 sourcefiles=`find . -name "*.cc" -print`
38152 if test "$sourcefiles" != ""; then
38153 for ccname in $sourcefiles
38155 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
38156 echo "mv $ccname $cppname"
38157 mv $ccname $cppname
38158 done
38159 else
38160 echo "no more .cc source files to rename"
38166 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
38167 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
38168 # Check whether --enable-debugger was given.
38169 if test "${enable_debugger+set}" = set; then
38170 enableval=$enable_debugger; if test "$enableval" = yes; then
38171 { echo "$as_me:$LINENO: result: yes" >&5
38172 echo "${ECHO_T}yes" >&6; }
38173 cat >>confdefs.h <<\_ACEOF
38174 #define BX_DEBUGGER 1
38175 _ACEOF
38177 DEBUGGER_VAR='$(DEBUGGER_LIB)'
38178 bx_debugger=1
38179 else
38180 { echo "$as_me:$LINENO: result: no" >&5
38181 echo "${ECHO_T}no" >&6; }
38182 cat >>confdefs.h <<\_ACEOF
38183 #define BX_DEBUGGER 0
38184 _ACEOF
38186 DEBUGGER_VAR=''
38187 bx_debugger=0
38190 else
38192 { echo "$as_me:$LINENO: result: no" >&5
38193 echo "${ECHO_T}no" >&6; }
38194 cat >>confdefs.h <<\_ACEOF
38195 #define BX_DEBUGGER 0
38196 _ACEOF
38198 DEBUGGER_VAR=''
38199 bx_debugger=0
38206 { echo "$as_me:$LINENO: checking for external debugger" >&5
38207 echo $ECHO_N "checking for external debugger... $ECHO_C" >&6; }
38208 EXT_DEBUG_OBJS=''
38209 # Check whether --enable-external-debugger was given.
38210 if test "${enable_external_debugger+set}" = set; then
38211 enableval=$enable_external_debugger; if test "$enableval" = yes; then
38212 case $target in
38213 *-pc-windows* | *-cygwin* | *-mingw32*)
38214 { echo "$as_me:$LINENO: result: yes" >&5
38215 echo "${ECHO_T}yes" >&6; }
38216 cat >>confdefs.h <<\_ACEOF
38217 #define BX_EXTERNAL_DEBUGGER 1
38218 _ACEOF
38220 EXT_DEBUG_OBJS=extdb.o
38223 echo "ERROR: external debugger is currently supported on win32 only"
38224 exit 1
38226 esac
38227 else
38228 { echo "$as_me:$LINENO: result: no" >&5
38229 echo "${ECHO_T}no" >&6; }
38231 else
38233 { echo "$as_me:$LINENO: result: no" >&5
38234 echo "${ECHO_T}no" >&6; }
38240 { echo "$as_me:$LINENO: checking for disassembler support" >&5
38241 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
38242 # Check whether --enable-disasm was given.
38243 if test "${enable_disasm+set}" = set; then
38244 enableval=$enable_disasm; if test "$enableval" = yes; then
38245 { echo "$as_me:$LINENO: result: yes" >&5
38246 echo "${ECHO_T}yes" >&6; }
38247 cat >>confdefs.h <<\_ACEOF
38248 #define BX_DISASM 1
38249 _ACEOF
38251 DISASM_VAR='$(DISASM_LIB)'
38252 else
38253 { echo "$as_me:$LINENO: result: no" >&5
38254 echo "${ECHO_T}no" >&6; }
38255 if test "$bx_debugger" = 1; then
38256 echo "ERROR: debugger is enabled, so --enable-disasm is required"
38257 exit 1
38259 cat >>confdefs.h <<\_ACEOF
38260 #define BX_DISASM 0
38261 _ACEOF
38263 DISASM_VAR=''
38265 else
38267 { echo "$as_me:$LINENO: result: yes" >&5
38268 echo "${ECHO_T}yes" >&6; }
38269 cat >>confdefs.h <<\_ACEOF
38270 #define BX_DISASM 1
38271 _ACEOF
38273 DISASM_VAR='$(DISASM_LIB)'
38279 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
38280 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
38281 # Check whether --enable-all-optimizations was given.
38282 if test "${enable_all_optimizations+set}" = set; then
38283 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
38284 { echo "$as_me:$LINENO: result: yes" >&5
38285 echo "${ECHO_T}yes" >&6; }
38286 speedups_all=1
38287 else
38288 { echo "$as_me:$LINENO: result: no" >&5
38289 echo "${ECHO_T}no" >&6; }
38290 speedups_all=0
38293 else
38295 { echo "$as_me:$LINENO: result: no" >&5
38296 echo "${ECHO_T}no" >&6; }
38297 speedups_all=0
38304 # Optimizations section. Decide what the status of various optimizations
38305 # should be based on configure choices and other factors.
38308 if test "$speedups_all" = 1; then
38309 # Configure requested to force all options enabled.
38310 speedup_guest2host_tlb=1
38311 speedup_repeat=1
38312 speedup_iCache=1
38313 speedup_TraceCache=1
38314 speedup_fastcall=1
38317 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
38318 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
38319 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
38320 { (exit 1); exit 1; }; }
38323 if test "$speedup_guest2host_tlb" = 1; then
38324 cat >>confdefs.h <<\_ACEOF
38325 #define BX_SupportGuest2HostTLB 1
38326 _ACEOF
38328 else
38329 cat >>confdefs.h <<\_ACEOF
38330 #define BX_SupportGuest2HostTLB 0
38331 _ACEOF
38335 if test "$speedup_repeat" = 1; then
38336 cat >>confdefs.h <<\_ACEOF
38337 #define BX_SupportRepeatSpeedups 1
38338 _ACEOF
38340 else
38341 cat >>confdefs.h <<\_ACEOF
38342 #define BX_SupportRepeatSpeedups 0
38343 _ACEOF
38347 if test "$speedup_iCache" = 1; then
38348 cat >>confdefs.h <<\_ACEOF
38349 #define BX_SUPPORT_ICACHE 1
38350 _ACEOF
38352 else
38353 cat >>confdefs.h <<\_ACEOF
38354 #define BX_SUPPORT_ICACHE 0
38355 _ACEOF
38359 if test "$speedup_host_specific_asms" = 1; then
38360 cat >>confdefs.h <<\_ACEOF
38361 #define BX_SupportHostAsms 1
38362 _ACEOF
38364 else
38365 cat >>confdefs.h <<\_ACEOF
38366 #define BX_SupportHostAsms 0
38367 _ACEOF
38371 if test "$speedup_fastcall" = 1; then
38372 cat >>confdefs.h <<\_ACEOF
38373 #define BX_FAST_FUNC_CALL 1
38374 _ACEOF
38376 else
38377 cat >>confdefs.h <<\_ACEOF
38378 #define BX_FAST_FUNC_CALL 0
38379 _ACEOF
38383 if test "$speedup_TraceCache" = 1; then
38384 cat >>confdefs.h <<\_ACEOF
38385 #define BX_SUPPORT_TRACE_CACHE 1
38386 _ACEOF
38388 else
38389 cat >>confdefs.h <<\_ACEOF
38390 #define BX_SUPPORT_TRACE_CACHE 0
38391 _ACEOF
38396 READLINE_LIB=""
38397 rl_without_curses_ok=no
38398 rl_with_curses_ok=no
38400 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
38401 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
38402 # Check whether --enable-readline was given.
38403 if test "${enable_readline+set}" = set; then
38404 enableval=$enable_readline; if test "$enableval" = yes; then
38405 { echo "$as_me:$LINENO: result: yes" >&5
38406 echo "${ECHO_T}yes" >&6; }
38407 want_readline=yes
38408 else
38409 { echo "$as_me:$LINENO: result: no" >&5
38410 echo "${ECHO_T}no" >&6; }
38411 want_readline=no
38413 else
38415 { echo "$as_me:$LINENO: result: yes" >&5
38416 echo "${ECHO_T}yes" >&6; }
38417 want_readline=yes
38423 use_readline=0
38424 { echo "$as_me:$LINENO: checking whether to use readline" >&5
38425 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
38426 if test "$want_readline" = yes; then
38427 if test "$bx_debugger" = 1; then
38429 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
38430 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
38431 OLD_LIBS=$LIBS
38432 LIBS="$LIBS -lreadline"
38433 if test "$cross_compiling" = yes; then
38434 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38435 See \`config.log' for more details." >&5
38436 echo "$as_me: error: cannot run test program while cross compiling
38437 See \`config.log' for more details." >&2;}
38438 { (exit 1); exit 1; }; }
38439 else
38440 cat >conftest.$ac_ext <<_ACEOF
38441 /* confdefs.h. */
38442 _ACEOF
38443 cat confdefs.h >>conftest.$ac_ext
38444 cat >>conftest.$ac_ext <<_ACEOF
38445 /* end confdefs.h. */
38447 #include <stdio.h>
38448 #include <readline/readline.h>
38449 int main() { rl_initialize(); exit(0); }
38451 _ACEOF
38452 rm -f conftest$ac_exeext
38453 if { (ac_try="$ac_link"
38454 case "(($ac_try" in
38455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38456 *) ac_try_echo=$ac_try;;
38457 esac
38458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38459 (eval "$ac_link") 2>&5
38460 ac_status=$?
38461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38463 { (case "(($ac_try" in
38464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38465 *) ac_try_echo=$ac_try;;
38466 esac
38467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38468 (eval "$ac_try") 2>&5
38469 ac_status=$?
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; }; then
38472 { echo "$as_me:$LINENO: result: yes" >&5
38473 echo "${ECHO_T}yes" >&6; }
38474 rl_without_curses_ok=yes
38475 else
38476 echo "$as_me: program exited with status $ac_status" >&5
38477 echo "$as_me: failed program was:" >&5
38478 sed 's/^/| /' conftest.$ac_ext >&5
38480 ( exit $ac_status )
38481 { echo "$as_me:$LINENO: result: no" >&5
38482 echo "${ECHO_T}no" >&6; }
38485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38489 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
38490 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
38491 LIBS="$LIBS -lcurses"
38492 if test "$cross_compiling" = yes; then
38493 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38494 See \`config.log' for more details." >&5
38495 echo "$as_me: error: cannot run test program while cross compiling
38496 See \`config.log' for more details." >&2;}
38497 { (exit 1); exit 1; }; }
38498 else
38499 cat >conftest.$ac_ext <<_ACEOF
38500 /* confdefs.h. */
38501 _ACEOF
38502 cat confdefs.h >>conftest.$ac_ext
38503 cat >>conftest.$ac_ext <<_ACEOF
38504 /* end confdefs.h. */
38506 #include <stdio.h>
38507 #include <readline/readline.h>
38508 int main() { rl_initialize(); exit(0); }
38510 _ACEOF
38511 rm -f conftest$ac_exeext
38512 if { (ac_try="$ac_link"
38513 case "(($ac_try" in
38514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38515 *) ac_try_echo=$ac_try;;
38516 esac
38517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38518 (eval "$ac_link") 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38522 { (case "(($ac_try" in
38523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38524 *) ac_try_echo=$ac_try;;
38525 esac
38526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38527 (eval "$ac_try") 2>&5
38528 ac_status=$?
38529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38530 (exit $ac_status); }; }; then
38531 { echo "$as_me:$LINENO: result: yes" >&5
38532 echo "${ECHO_T}yes" >&6; }
38533 rl_with_curses_ok=yes
38534 else
38535 echo "$as_me: program exited with status $ac_status" >&5
38536 echo "$as_me: failed program was:" >&5
38537 sed 's/^/| /' conftest.$ac_ext >&5
38539 ( exit $ac_status )
38540 { echo "$as_me:$LINENO: result: no" >&5
38541 echo "${ECHO_T}no" >&6; }
38544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38548 LIBS=$OLD_LIBS
38550 if test "$rl_without_curses_ok" = yes; then
38551 { echo "$as_me:$LINENO: result: yes" >&5
38552 echo "${ECHO_T}yes" >&6; }
38553 cat >>confdefs.h <<\_ACEOF
38554 #define HAVE_LIBREADLINE 1
38555 _ACEOF
38557 READLINE_LIB="-lreadline"
38558 use_readline=1
38559 elif test "$rl_with_curses_ok" = yes; then
38560 { echo "$as_me:$LINENO: result: yes" >&5
38561 echo "${ECHO_T}yes" >&6; }
38562 cat >>confdefs.h <<\_ACEOF
38563 #define HAVE_LIBREADLINE 1
38564 _ACEOF
38566 READLINE_LIB="-lreadline -lcurses"
38567 use_readline=1
38568 else
38569 { echo "$as_me:$LINENO: result: no" >&5
38570 echo "${ECHO_T}no" >&6; }
38571 echo WARNING: The readline library was disabled because it was not found.
38573 else
38574 { echo "$as_me:$LINENO: result: no" >&5
38575 echo "${ECHO_T}no" >&6; }
38577 else
38578 { echo "$as_me:$LINENO: result: no" >&5
38579 echo "${ECHO_T}no" >&6; }
38583 if test "${ac_cv_header_readline_history_h+set}" = set; then
38584 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
38585 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
38586 if test "${ac_cv_header_readline_history_h+set}" = set; then
38587 echo $ECHO_N "(cached) $ECHO_C" >&6
38589 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
38590 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38591 else
38592 # Is the header compilable?
38593 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
38594 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
38595 cat >conftest.$ac_ext <<_ACEOF
38596 /* confdefs.h. */
38597 _ACEOF
38598 cat confdefs.h >>conftest.$ac_ext
38599 cat >>conftest.$ac_ext <<_ACEOF
38600 /* end confdefs.h. */
38601 $ac_includes_default
38602 #include <readline/history.h>
38603 _ACEOF
38604 rm -f conftest.$ac_objext
38605 if { (ac_try="$ac_compile"
38606 case "(($ac_try" in
38607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38608 *) ac_try_echo=$ac_try;;
38609 esac
38610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38611 (eval "$ac_compile") 2>conftest.er1
38612 ac_status=$?
38613 grep -v '^ *+' conftest.er1 >conftest.err
38614 rm -f conftest.er1
38615 cat conftest.err >&5
38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); } &&
38618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38619 { (case "(($ac_try" in
38620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621 *) ac_try_echo=$ac_try;;
38622 esac
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624 (eval "$ac_try") 2>&5
38625 ac_status=$?
38626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38627 (exit $ac_status); }; } &&
38628 { ac_try='test -s conftest.$ac_objext'
38629 { (case "(($ac_try" in
38630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38631 *) ac_try_echo=$ac_try;;
38632 esac
38633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38634 (eval "$ac_try") 2>&5
38635 ac_status=$?
38636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); }; }; then
38638 ac_header_compiler=yes
38639 else
38640 echo "$as_me: failed program was:" >&5
38641 sed 's/^/| /' conftest.$ac_ext >&5
38643 ac_header_compiler=no
38646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38647 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38648 echo "${ECHO_T}$ac_header_compiler" >&6; }
38650 # Is the header present?
38651 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
38652 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
38653 cat >conftest.$ac_ext <<_ACEOF
38654 /* confdefs.h. */
38655 _ACEOF
38656 cat confdefs.h >>conftest.$ac_ext
38657 cat >>conftest.$ac_ext <<_ACEOF
38658 /* end confdefs.h. */
38659 #include <readline/history.h>
38660 _ACEOF
38661 if { (ac_try="$ac_cpp conftest.$ac_ext"
38662 case "(($ac_try" in
38663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38664 *) ac_try_echo=$ac_try;;
38665 esac
38666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38668 ac_status=$?
38669 grep -v '^ *+' conftest.er1 >conftest.err
38670 rm -f conftest.er1
38671 cat conftest.err >&5
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); } >/dev/null; then
38674 if test -s conftest.err; then
38675 ac_cpp_err=$ac_c_preproc_warn_flag
38676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38677 else
38678 ac_cpp_err=
38680 else
38681 ac_cpp_err=yes
38683 if test -z "$ac_cpp_err"; then
38684 ac_header_preproc=yes
38685 else
38686 echo "$as_me: failed program was:" >&5
38687 sed 's/^/| /' conftest.$ac_ext >&5
38689 ac_header_preproc=no
38692 rm -f conftest.err conftest.$ac_ext
38693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38694 echo "${ECHO_T}$ac_header_preproc" >&6; }
38696 # So? What about this header?
38697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38698 yes:no: )
38699 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
38700 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38701 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
38702 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
38703 ac_header_preproc=yes
38705 no:yes:* )
38706 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
38707 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
38708 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
38709 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
38710 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
38711 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
38712 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
38713 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
38714 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
38715 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
38716 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
38717 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
38720 esac
38721 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
38722 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
38723 if test "${ac_cv_header_readline_history_h+set}" = set; then
38724 echo $ECHO_N "(cached) $ECHO_C" >&6
38725 else
38726 ac_cv_header_readline_history_h=$ac_header_preproc
38728 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
38729 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38732 if test $ac_cv_header_readline_history_h = yes; then
38733 cat >>confdefs.h <<\_ACEOF
38734 #define HAVE_READLINE_HISTORY_H 1
38735 _ACEOF
38742 INSTRUMENT_DIR='instrument/stubs'
38744 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
38745 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
38746 # Check whether --enable-instrumentation was given.
38747 if test "${enable_instrumentation+set}" = set; then
38748 enableval=$enable_instrumentation; if test "$enableval" = yes; then
38749 { echo "$as_me:$LINENO: result: yes" >&5
38750 echo "${ECHO_T}yes" >&6; }
38751 cat >>confdefs.h <<\_ACEOF
38752 #define BX_INSTRUMENTATION 1
38753 _ACEOF
38755 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38756 elif test "$enableval" = no; then
38757 { echo "$as_me:$LINENO: result: no" >&5
38758 echo "${ECHO_T}no" >&6; }
38759 cat >>confdefs.h <<\_ACEOF
38760 #define BX_INSTRUMENTATION 0
38761 _ACEOF
38763 INSTRUMENT_VAR=''
38764 else
38765 { echo "$as_me:$LINENO: result: yes" >&5
38766 echo "${ECHO_T}yes" >&6; }
38767 cat >>confdefs.h <<\_ACEOF
38768 #define BX_INSTRUMENTATION 1
38769 _ACEOF
38771 INSTRUMENT_DIR=$enableval
38772 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38774 else
38776 { echo "$as_me:$LINENO: result: no" >&5
38777 echo "${ECHO_T}no" >&6; }
38778 cat >>confdefs.h <<\_ACEOF
38779 #define BX_INSTRUMENTATION 0
38780 _ACEOF
38782 INSTRUMENT_VAR=''
38790 if test "$bx_plugins" = 0; then
38791 case $target in
38792 *-pc-windows*)
38793 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
38795 *-cygwin* | *-mingw32*)
38796 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
38798 esac
38801 { echo "$as_me:$LINENO: checking enable logging" >&5
38802 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
38803 # Check whether --enable-logging was given.
38804 if test "${enable_logging+set}" = set; then
38805 enableval=$enable_logging; if test "$enableval" = yes; then
38806 { echo "$as_me:$LINENO: result: yes" >&5
38807 echo "${ECHO_T}yes" >&6; }
38808 cat >>confdefs.h <<\_ACEOF
38809 #define BX_NO_LOGGING 0
38810 _ACEOF
38812 else
38813 { echo "$as_me:$LINENO: result: no" >&5
38814 echo "${ECHO_T}no" >&6; }
38815 cat >>confdefs.h <<\_ACEOF
38816 #define BX_NO_LOGGING 1
38817 _ACEOF
38820 else
38822 { echo "$as_me:$LINENO: result: yes" >&5
38823 echo "${ECHO_T}yes" >&6; }
38824 cat >>confdefs.h <<\_ACEOF
38825 #define BX_NO_LOGGING 0
38826 _ACEOF
38833 { echo "$as_me:$LINENO: checking for raw serial support" >&5
38834 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
38835 # Check whether --enable-raw-serial was given.
38836 if test "${enable_raw_serial+set}" = set; then
38837 enableval=$enable_raw_serial; if test "$enableval" = yes; then
38838 { echo "$as_me:$LINENO: result: yes" >&5
38839 echo "${ECHO_T}yes" >&6; }
38840 cat >>confdefs.h <<\_ACEOF
38841 #define USE_RAW_SERIAL 1
38842 _ACEOF
38844 else
38845 { echo "$as_me:$LINENO: result: no" >&5
38846 echo "${ECHO_T}no" >&6; }
38847 cat >>confdefs.h <<\_ACEOF
38848 #define USE_RAW_SERIAL 0
38849 _ACEOF
38852 else
38854 { echo "$as_me:$LINENO: result: no" >&5
38855 echo "${ECHO_T}no" >&6; }
38856 cat >>confdefs.h <<\_ACEOF
38857 #define USE_RAW_SERIAL 0
38858 _ACEOF
38865 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
38866 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
38867 # Check whether --enable-vbe was given.
38868 if test "${enable_vbe+set}" = set; then
38869 enableval=$enable_vbe; if test "$enableval" = yes; then
38870 { echo "$as_me:$LINENO: result: yes" >&5
38871 echo "${ECHO_T}yes" >&6; }
38872 cat >>confdefs.h <<\_ACEOF
38873 #define BX_SUPPORT_VBE 1
38874 _ACEOF
38876 if test "$pci" = 1; then
38877 cat >>confdefs.h <<\_ACEOF
38878 #define BX_SUPPORT_PCIVGA 1
38879 _ACEOF
38882 else
38883 { echo "$as_me:$LINENO: result: no" >&5
38884 echo "${ECHO_T}no" >&6; }
38885 cat >>confdefs.h <<\_ACEOF
38886 #define BX_SUPPORT_VBE 0
38887 _ACEOF
38890 else
38892 { echo "$as_me:$LINENO: result: yes" >&5
38893 echo "${ECHO_T}yes" >&6; }
38894 cat >>confdefs.h <<\_ACEOF
38895 #define BX_SUPPORT_VBE 1
38896 _ACEOF
38898 if test "$pci" = 1; then
38899 cat >>confdefs.h <<\_ACEOF
38900 #define BX_SUPPORT_PCIVGA 1
38901 _ACEOF
38909 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
38910 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
38911 # Check whether --enable-clgd54xx was given.
38912 if test "${enable_clgd54xx+set}" = set; then
38913 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
38914 { echo "$as_me:$LINENO: result: yes" >&5
38915 echo "${ECHO_T}yes" >&6; }
38916 cat >>confdefs.h <<\_ACEOF
38917 #define BX_SUPPORT_CLGD54XX 1
38918 _ACEOF
38920 if test "$pci" = 1; then
38921 cat >>confdefs.h <<\_ACEOF
38922 #define BX_SUPPORT_CLGD54XX_PCI 1
38923 _ACEOF
38926 else
38927 { echo "$as_me:$LINENO: result: no" >&5
38928 echo "${ECHO_T}no" >&6; }
38929 cat >>confdefs.h <<\_ACEOF
38930 #define BX_SUPPORT_CLGD54XX 0
38931 _ACEOF
38934 else
38936 { echo "$as_me:$LINENO: result: no" >&5
38937 echo "${ECHO_T}no" >&6; }
38938 cat >>confdefs.h <<\_ACEOF
38939 #define BX_SUPPORT_CLGD54XX 0
38940 _ACEOF
38947 support_fpu=1
38948 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
38949 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
38950 FPU_VAR=''
38951 # Check whether --enable-fpu was given.
38952 if test "${enable_fpu+set}" = set; then
38953 enableval=$enable_fpu; if test "$enableval" = yes; then
38954 { echo "$as_me:$LINENO: result: yes" >&5
38955 echo "${ECHO_T}yes" >&6; }
38956 cat >>confdefs.h <<\_ACEOF
38957 #define BX_SUPPORT_FPU 1
38958 _ACEOF
38960 FPU_VAR='$(FPU_LIB)'
38961 elif test "$enableval" = no; then
38962 { echo "$as_me:$LINENO: result: no" >&5
38963 echo "${ECHO_T}no" >&6; }
38964 cat >>confdefs.h <<\_ACEOF
38965 #define BX_SUPPORT_FPU 0
38966 _ACEOF
38968 support_fpu=0
38969 else
38970 echo " "
38971 echo "ERROR: --enable-fpu does not accept a path"
38972 exit 1
38975 else
38977 { echo "$as_me:$LINENO: result: yes" >&5
38978 echo "${ECHO_T}yes" >&6; }
38979 cat >>confdefs.h <<\_ACEOF
38980 #define BX_SUPPORT_FPU 1
38981 _ACEOF
38983 FPU_VAR='$(FPU_LIB)'
38990 { echo "$as_me:$LINENO: checking for VME support" >&5
38991 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
38992 # Check whether --enable-vme was given.
38993 if test "${enable_vme+set}" = set; then
38994 enableval=$enable_vme; if test "$enableval" = yes; then
38995 { echo "$as_me:$LINENO: result: yes" >&5
38996 echo "${ECHO_T}yes" >&6; }
38997 cat >>confdefs.h <<\_ACEOF
38998 #define BX_SUPPORT_VME 1
38999 _ACEOF
39001 elif test "$enableval" = no; then
39002 { echo "$as_me:$LINENO: result: no" >&5
39003 echo "${ECHO_T}no" >&6; }
39004 cat >>confdefs.h <<\_ACEOF
39005 #define BX_SUPPORT_VME 0
39006 _ACEOF
39010 else
39012 if test "$bx_cpu_level" -ge 5; then
39013 { echo "$as_me:$LINENO: result: yes" >&5
39014 echo "${ECHO_T}yes" >&6; }
39015 cat >>confdefs.h <<\_ACEOF
39016 #define BX_SUPPORT_VME 1
39017 _ACEOF
39025 support_mmx=1
39026 { echo "$as_me:$LINENO: checking for MMX support" >&5
39027 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
39028 # Check whether --enable-mmx was given.
39029 if test "${enable_mmx+set}" = set; then
39030 enableval=$enable_mmx; if test "$enableval" = yes; then
39031 { echo "$as_me:$LINENO: result: yes" >&5
39032 echo "${ECHO_T}yes" >&6; }
39033 cat >>confdefs.h <<\_ACEOF
39034 #define BX_SUPPORT_MMX 1
39035 _ACEOF
39037 elif test "$enableval" = no; then
39038 { echo "$as_me:$LINENO: result: no" >&5
39039 echo "${ECHO_T}no" >&6; }
39040 cat >>confdefs.h <<\_ACEOF
39041 #define BX_SUPPORT_MMX 0
39042 _ACEOF
39044 support_mmx=0
39047 else
39049 if test "$bx_cpu_level" -ge 5; then
39050 { echo "$as_me:$LINENO: result: yes" >&5
39051 echo "${ECHO_T}yes" >&6; }
39052 cat >>confdefs.h <<\_ACEOF
39053 #define BX_SUPPORT_MMX 1
39054 _ACEOF
39062 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
39063 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
39064 # Check whether --enable-3dnow was given.
39065 if test "${enable_3dnow+set}" = set; then
39066 enableval=$enable_3dnow; if test "$enableval" = yes; then
39067 { echo "$as_me:$LINENO: result: yes" >&5
39068 echo "${ECHO_T}yes" >&6; }
39069 cat >>confdefs.h <<\_ACEOF
39070 #define BX_SUPPORT_3DNOW 1
39071 _ACEOF
39073 elif test "$enableval" = no; then
39074 { echo "$as_me:$LINENO: result: no" >&5
39075 echo "${ECHO_T}no" >&6; }
39076 cat >>confdefs.h <<\_ACEOF
39077 #define BX_SUPPORT_3DNOW 0
39078 _ACEOF
39082 else
39084 { echo "$as_me:$LINENO: result: no" >&5
39085 echo "${ECHO_T}no" >&6; }
39086 cat >>confdefs.h <<\_ACEOF
39087 #define BX_SUPPORT_3DNOW 0
39088 _ACEOF
39095 support_sse=0
39096 { echo "$as_me:$LINENO: checking for SSE support" >&5
39097 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
39098 # Check whether --enable-sse was given.
39099 if test "${enable_sse+set}" = set; then
39100 enableval=$enable_sse; case "$enableval" in
39101 no | 0)
39102 support_sse=0
39103 { echo "$as_me:$LINENO: result: no" >&5
39104 echo "${ECHO_T}no" >&6; }
39106 yes | 1)
39107 support_sse=1
39108 { echo "$as_me:$LINENO: result: SSE1" >&5
39109 echo "${ECHO_T}SSE1" >&6; }
39112 support_sse=2
39113 { echo "$as_me:$LINENO: result: SSE2" >&5
39114 echo "${ECHO_T}SSE2" >&6; }
39117 support_sse=3
39118 { echo "$as_me:$LINENO: result: SSE3" >&5
39119 echo "${ECHO_T}SSE3" >&6; }
39122 support_sse=4
39123 { echo "$as_me:$LINENO: result: SSE4" >&5
39124 echo "${ECHO_T}SSE4" >&6; }
39127 echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
39128 exit 1
39130 esac
39132 else
39134 if test "$use_x86_64" = 1; then
39135 support_sse=2
39136 { echo "$as_me:$LINENO: result: SSE2" >&5
39137 echo "${ECHO_T}SSE2" >&6; }
39138 else
39139 { echo "$as_me:$LINENO: result: no" >&5
39140 echo "${ECHO_T}no" >&6; }
39147 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
39148 { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
39149 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
39150 { (exit 1); exit 1; }; }
39153 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
39154 { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
39155 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
39156 { (exit 1); exit 1; }; }
39159 if test "$support_sse" = 4; then
39160 cat >>confdefs.h <<\_ACEOF
39161 #define BX_SUPPORT_SSE 4
39162 _ACEOF
39164 elif test "$support_sse" = 3; then
39165 cat >>confdefs.h <<\_ACEOF
39166 #define BX_SUPPORT_SSE 3
39167 _ACEOF
39169 elif test "$support_sse" = 2; then
39170 cat >>confdefs.h <<\_ACEOF
39171 #define BX_SUPPORT_SSE 2
39172 _ACEOF
39174 elif test "$support_sse" = 1; then
39175 cat >>confdefs.h <<\_ACEOF
39176 #define BX_SUPPORT_SSE 1
39177 _ACEOF
39179 else
39180 cat >>confdefs.h <<\_ACEOF
39181 #define BX_SUPPORT_SSE 0
39182 _ACEOF
39186 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
39187 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
39188 # Check whether --enable-sse-extension was given.
39189 if test "${enable_sse_extension+set}" = set; then
39190 enableval=$enable_sse_extension; if test "$enableval" = yes; then
39191 { echo "$as_me:$LINENO: result: yes" >&5
39192 echo "${ECHO_T}yes" >&6; }
39193 cat >>confdefs.h <<\_ACEOF
39194 #define BX_SUPPORT_SSE_EXTENSION 1
39195 _ACEOF
39197 elif test "$enableval" = no; then
39198 { echo "$as_me:$LINENO: result: no" >&5
39199 echo "${ECHO_T}no" >&6; }
39200 cat >>confdefs.h <<\_ACEOF
39201 #define BX_SUPPORT_SSE_EXTENSION 0
39202 _ACEOF
39206 else
39208 { echo "$as_me:$LINENO: result: no" >&5
39209 echo "${ECHO_T}no" >&6; }
39210 cat >>confdefs.h <<\_ACEOF
39211 #define BX_SUPPORT_SSE_EXTENSION 0
39212 _ACEOF
39219 { echo "$as_me:$LINENO: checking for DAZ support" >&5
39220 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
39221 # Check whether --enable-daz was given.
39222 if test "${enable_daz+set}" = set; then
39223 enableval=$enable_daz; if test "$enableval" = yes; then
39224 { echo "$as_me:$LINENO: result: yes" >&5
39225 echo "${ECHO_T}yes" >&6; }
39226 cat >>confdefs.h <<\_ACEOF
39227 #define BX_SUPPORT_DAZ 1
39228 _ACEOF
39230 elif test "$enableval" = no; then
39231 { echo "$as_me:$LINENO: result: no" >&5
39232 echo "${ECHO_T}no" >&6; }
39233 cat >>confdefs.h <<\_ACEOF
39234 #define BX_SUPPORT_DAZ 0
39235 _ACEOF
39239 else
39241 if test "$support_sse" -ge 2; then
39242 { echo "$as_me:$LINENO: result: yes" >&5
39243 echo "${ECHO_T}yes" >&6; }
39244 cat >>confdefs.h <<\_ACEOF
39245 #define BX_SUPPORT_DAZ 1
39246 _ACEOF
39248 else
39249 { echo "$as_me:$LINENO: result: no" >&5
39250 echo "${ECHO_T}no" >&6; }
39251 cat >>confdefs.h <<\_ACEOF
39252 #define BX_SUPPORT_DAZ 0
39253 _ACEOF
39261 { echo "$as_me:$LINENO: checking for alignment check support" >&5
39262 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
39263 # Check whether --enable-alignment-check was given.
39264 if test "${enable_alignment_check+set}" = set; then
39265 enableval=$enable_alignment_check; if test "$enableval" = yes; then
39266 { echo "$as_me:$LINENO: result: yes" >&5
39267 echo "${ECHO_T}yes" >&6; }
39268 cat >>confdefs.h <<\_ACEOF
39269 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39270 _ACEOF
39272 elif test "$enableval" = no; then
39273 { echo "$as_me:$LINENO: result: no" >&5
39274 echo "${ECHO_T}no" >&6; }
39275 cat >>confdefs.h <<\_ACEOF
39276 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39277 _ACEOF
39281 else
39283 if test "$bx_cpu_level" -gt 3; then
39284 { echo "$as_me:$LINENO: result: yes" >&5
39285 echo "${ECHO_T}yes" >&6; }
39286 cat >>confdefs.h <<\_ACEOF
39287 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39288 _ACEOF
39290 else
39291 { echo "$as_me:$LINENO: result: no" >&5
39292 echo "${ECHO_T}no" >&6; }
39293 cat >>confdefs.h <<\_ACEOF
39294 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39295 _ACEOF
39303 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
39304 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
39305 # Check whether --enable-misaligned-sse was given.
39306 if test "${enable_misaligned_sse+set}" = set; then
39307 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
39308 { echo "$as_me:$LINENO: result: yes" >&5
39309 echo "${ECHO_T}yes" >&6; }
39310 cat >>confdefs.h <<\_ACEOF
39311 #define BX_SUPPORT_MISALIGNED_SSE 1
39312 _ACEOF
39314 elif test "$enableval" = no; then
39315 { echo "$as_me:$LINENO: result: no" >&5
39316 echo "${ECHO_T}no" >&6; }
39317 cat >>confdefs.h <<\_ACEOF
39318 #define BX_SUPPORT_MISALIGNED_SSE 0
39319 _ACEOF
39323 else
39325 { echo "$as_me:$LINENO: result: no" >&5
39326 echo "${ECHO_T}no" >&6; }
39327 cat >>confdefs.h <<\_ACEOF
39328 #define BX_SUPPORT_MISALIGNED_SSE 0
39329 _ACEOF
39336 { echo "$as_me:$LINENO: checking for SEP support" >&5
39337 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
39338 # Check whether --enable-sep was given.
39339 if test "${enable_sep+set}" = set; then
39340 enableval=$enable_sep; if test "$enableval" = yes; then
39341 { echo "$as_me:$LINENO: result: yes" >&5
39342 echo "${ECHO_T}yes" >&6; }
39343 cat >>confdefs.h <<\_ACEOF
39344 #define BX_SUPPORT_SEP 1
39345 _ACEOF
39347 elif test "$enableval" = no; then
39348 { echo "$as_me:$LINENO: result: no" >&5
39349 echo "${ECHO_T}no" >&6; }
39350 cat >>confdefs.h <<\_ACEOF
39351 #define BX_SUPPORT_SEP 0
39352 _ACEOF
39356 else
39358 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
39359 { echo "$as_me:$LINENO: result: yes" >&5
39360 echo "${ECHO_T}yes" >&6; }
39361 cat >>confdefs.h <<\_ACEOF
39362 #define BX_SUPPORT_SEP 1
39363 _ACEOF
39365 else
39366 { echo "$as_me:$LINENO: result: no" >&5
39367 echo "${ECHO_T}no" >&6; }
39368 cat >>confdefs.h <<\_ACEOF
39369 #define BX_SUPPORT_SEP 0
39370 _ACEOF
39378 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
39379 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
39380 # Check whether --enable-popcnt was given.
39381 if test "${enable_popcnt+set}" = set; then
39382 enableval=$enable_popcnt; if test "$enableval" = yes; then
39383 { echo "$as_me:$LINENO: result: yes" >&5
39384 echo "${ECHO_T}yes" >&6; }
39385 cat >>confdefs.h <<\_ACEOF
39386 #define BX_SUPPORT_POPCNT 1
39387 _ACEOF
39389 elif test "$enableval" = no; then
39390 { echo "$as_me:$LINENO: result: no" >&5
39391 echo "${ECHO_T}no" >&6; }
39392 cat >>confdefs.h <<\_ACEOF
39393 #define BX_SUPPORT_POPCNT 0
39394 _ACEOF
39398 else
39400 { echo "$as_me:$LINENO: result: no" >&5
39401 echo "${ECHO_T}no" >&6; }
39402 cat >>confdefs.h <<\_ACEOF
39403 #define BX_SUPPORT_POPCNT 0
39404 _ACEOF
39411 { echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
39412 echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
39413 # Check whether --enable-monitor_mwait was given.
39414 if test "${enable_monitor_mwait+set}" = set; then
39415 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
39416 { echo "$as_me:$LINENO: result: yes" >&5
39417 echo "${ECHO_T}yes" >&6; }
39418 cat >>confdefs.h <<\_ACEOF
39419 #define BX_SUPPORT_MONITOR_MWAIT 1
39420 _ACEOF
39422 elif test "$enableval" = no; then
39423 { echo "$as_me:$LINENO: result: no" >&5
39424 echo "${ECHO_T}no" >&6; }
39425 cat >>confdefs.h <<\_ACEOF
39426 #define BX_SUPPORT_MONITOR_MWAIT 0
39427 _ACEOF
39431 else
39433 { echo "$as_me:$LINENO: result: no" >&5
39434 echo "${ECHO_T}no" >&6; }
39435 cat >>confdefs.h <<\_ACEOF
39436 #define BX_SUPPORT_MONITOR_MWAIT 0
39437 _ACEOF
39444 { echo "$as_me:$LINENO: checking for x86 debugger support" >&5
39445 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
39446 # Check whether --enable-x86-debugger was given.
39447 if test "${enable_x86_debugger+set}" = set; then
39448 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
39449 { echo "$as_me:$LINENO: result: yes" >&5
39450 echo "${ECHO_T}yes" >&6; }
39451 cat >>confdefs.h <<\_ACEOF
39452 #define BX_X86_DEBUGGER 1
39453 _ACEOF
39455 elif test "$enableval" = no; then
39456 { echo "$as_me:$LINENO: result: no" >&5
39457 echo "${ECHO_T}no" >&6; }
39458 cat >>confdefs.h <<\_ACEOF
39459 #define BX_X86_DEBUGGER 0
39460 _ACEOF
39462 else
39463 { echo "$as_me:$LINENO: result: yes" >&5
39464 echo "${ECHO_T}yes" >&6; }
39465 cat >>confdefs.h <<\_ACEOF
39466 #define BX_X86_DEBUGGER 1
39467 _ACEOF
39470 else
39472 { echo "$as_me:$LINENO: result: no" >&5
39473 echo "${ECHO_T}no" >&6; }
39474 cat >>confdefs.h <<\_ACEOF
39475 #define BX_X86_DEBUGGER 0
39476 _ACEOF
39483 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39484 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
39485 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
39486 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39487 echo $ECHO_N "(cached) $ECHO_C" >&6
39489 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39490 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39491 else
39492 # Is the header compilable?
39493 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
39494 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
39495 cat >conftest.$ac_ext <<_ACEOF
39496 /* confdefs.h. */
39497 _ACEOF
39498 cat confdefs.h >>conftest.$ac_ext
39499 cat >>conftest.$ac_ext <<_ACEOF
39500 /* end confdefs.h. */
39501 $ac_includes_default
39502 #include <IOKit/storage/IOCDMedia.h>
39503 _ACEOF
39504 rm -f conftest.$ac_objext
39505 if { (ac_try="$ac_compile"
39506 case "(($ac_try" in
39507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39508 *) ac_try_echo=$ac_try;;
39509 esac
39510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39511 (eval "$ac_compile") 2>conftest.er1
39512 ac_status=$?
39513 grep -v '^ *+' conftest.er1 >conftest.err
39514 rm -f conftest.er1
39515 cat conftest.err >&5
39516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39517 (exit $ac_status); } &&
39518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39519 { (case "(($ac_try" in
39520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39521 *) ac_try_echo=$ac_try;;
39522 esac
39523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39524 (eval "$ac_try") 2>&5
39525 ac_status=$?
39526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527 (exit $ac_status); }; } &&
39528 { ac_try='test -s conftest.$ac_objext'
39529 { (case "(($ac_try" in
39530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39531 *) ac_try_echo=$ac_try;;
39532 esac
39533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39534 (eval "$ac_try") 2>&5
39535 ac_status=$?
39536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39537 (exit $ac_status); }; }; then
39538 ac_header_compiler=yes
39539 else
39540 echo "$as_me: failed program was:" >&5
39541 sed 's/^/| /' conftest.$ac_ext >&5
39543 ac_header_compiler=no
39546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39547 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39548 echo "${ECHO_T}$ac_header_compiler" >&6; }
39550 # Is the header present?
39551 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
39552 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
39553 cat >conftest.$ac_ext <<_ACEOF
39554 /* confdefs.h. */
39555 _ACEOF
39556 cat confdefs.h >>conftest.$ac_ext
39557 cat >>conftest.$ac_ext <<_ACEOF
39558 /* end confdefs.h. */
39559 #include <IOKit/storage/IOCDMedia.h>
39560 _ACEOF
39561 if { (ac_try="$ac_cpp conftest.$ac_ext"
39562 case "(($ac_try" in
39563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39564 *) ac_try_echo=$ac_try;;
39565 esac
39566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39568 ac_status=$?
39569 grep -v '^ *+' conftest.er1 >conftest.err
39570 rm -f conftest.er1
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } >/dev/null; then
39574 if test -s conftest.err; then
39575 ac_cpp_err=$ac_c_preproc_warn_flag
39576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39577 else
39578 ac_cpp_err=
39580 else
39581 ac_cpp_err=yes
39583 if test -z "$ac_cpp_err"; then
39584 ac_header_preproc=yes
39585 else
39586 echo "$as_me: failed program was:" >&5
39587 sed 's/^/| /' conftest.$ac_ext >&5
39589 ac_header_preproc=no
39592 rm -f conftest.err conftest.$ac_ext
39593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39594 echo "${ECHO_T}$ac_header_preproc" >&6; }
39596 # So? What about this header?
39597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39598 yes:no: )
39599 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
39600 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39601 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
39602 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
39603 ac_header_preproc=yes
39605 no:yes:* )
39606 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
39607 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
39608 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&5
39609 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&2;}
39610 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
39611 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
39612 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&5
39613 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&2;}
39614 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
39615 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
39616 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
39617 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
39620 esac
39621 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
39622 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
39623 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39624 echo $ECHO_N "(cached) $ECHO_C" >&6
39625 else
39626 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
39628 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39629 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39632 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
39633 can_use_osx_cdrom=yes
39639 { echo "$as_me:$LINENO: checking for CDROM support" >&5
39640 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
39641 # Check whether --enable-cdrom was given.
39642 if test "${enable_cdrom+set}" = set; then
39643 enableval=$enable_cdrom; if test "$enableval" = no; then
39644 bx_cdrom=0
39645 else
39646 bx_cdrom=1
39648 else
39649 bx_cdrom=1
39654 if test "$bx_cdrom" = 1; then
39655 { echo "$as_me:$LINENO: result: yes" >&5
39656 echo "${ECHO_T}yes" >&6; }
39657 CDROM_OBJS='cdrom.o'
39658 if test "$with_amigaos" = yes; then
39659 # use the amiga cdrom file instead.
39660 CDROM_OBJS="cdrom_amigaos.o"
39661 elif test "$can_use_osx_cdrom" = yes; then
39662 # use cdrom_osx
39663 { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
39664 echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
39665 CDROM_OBJS="cdrom.o"
39666 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
39668 case $target in
39669 *-beos*)
39670 # use the beos cdrom file instead
39671 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
39672 esac
39673 cat >>confdefs.h <<\_ACEOF
39674 #define BX_SUPPORT_CDROM 1
39675 _ACEOF
39677 else
39678 { echo "$as_me:$LINENO: result: no" >&5
39679 echo "${ECHO_T}no" >&6; }
39680 CDROM_OBJS=''
39681 cat >>confdefs.h <<\_ACEOF
39682 #define BX_SUPPORT_CDROM 0
39683 _ACEOF
39690 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
39691 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
39692 SB16_OBJS=''
39693 SOUNDLOW_OBJS=''
39694 GAME_OBJS=''
39695 gameport_present=0
39696 # Check whether --enable-sb16 was given.
39697 if test "${enable_sb16+set}" = set; then
39698 enableval=$enable_sb16; if test "$enableval" = no; then
39699 { echo "$as_me:$LINENO: result: no" >&5
39700 echo "${ECHO_T}no" >&6; }
39701 cat >>confdefs.h <<\_ACEOF
39702 #define BX_SUPPORT_SB16 0
39703 _ACEOF
39705 else
39706 case "$enableval" in
39707 dummy)
39708 SOUNDLOW_OBJS=''
39709 cat >>confdefs.h <<\_ACEOF
39710 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39711 _ACEOF
39713 { echo "$as_me:$LINENO: result: dummy" >&5
39714 echo "${ECHO_T}dummy" >&6; }
39716 freebsd|linux)
39717 SOUNDLOW_OBJS='soundlnx.o'
39718 cat >>confdefs.h <<\_ACEOF
39719 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39720 _ACEOF
39722 { echo "$as_me:$LINENO: result: linux" >&5
39723 echo "${ECHO_T}linux" >&6; }
39725 win)
39726 SOUNDLOW_OBJS='soundwin.o'
39727 cat >>confdefs.h <<\_ACEOF
39728 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39729 _ACEOF
39731 { echo "$as_me:$LINENO: result: win" >&5
39732 echo "${ECHO_T}win" >&6; }
39733 case $target in
39734 *-pc-windows*)
39735 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
39738 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39740 esac
39742 osx)
39743 SOUNDLOW_OBJS='soundosx.o'
39744 cat >>confdefs.h <<\_ACEOF
39745 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39746 _ACEOF
39748 { echo "$as_me:$LINENO: result: osx" >&5
39749 echo "${ECHO_T}osx" >&6; }
39750 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
39752 yes)
39753 case "$target" in
39754 *-linux* | *-freebsd*)
39755 SOUNDLOW_OBJS='soundlnx.o'
39756 cat >>confdefs.h <<\_ACEOF
39757 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39758 _ACEOF
39760 { echo "$as_me:$LINENO: result: linux" >&5
39761 echo "${ECHO_T}linux" >&6; }
39763 *-pc-windows*)
39764 SOUNDLOW_OBJS='soundwin.o'
39765 cat >>confdefs.h <<\_ACEOF
39766 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39767 _ACEOF
39769 { echo "$as_me:$LINENO: result: win" >&5
39770 echo "${ECHO_T}win" >&6; }
39771 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
39773 *-cygwin* | *-mingw32*)
39774 SOUNDLOW_OBJS='soundwin.o'
39775 cat >>confdefs.h <<\_ACEOF
39776 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39777 _ACEOF
39779 { echo "$as_me:$LINENO: result: win" >&5
39780 echo "${ECHO_T}win" >&6; }
39781 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39783 *-macosx* | *-macos*)
39784 SOUNDLOW_OBJS='soundosx.o'
39785 cat >>confdefs.h <<\_ACEOF
39786 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39787 _ACEOF
39789 { echo "$as_me:$LINENO: result: osx" >&5
39790 echo "${ECHO_T}osx" >&6; }
39791 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
39794 SOUNDLOW_OBJS=''
39795 cat >>confdefs.h <<\_ACEOF
39796 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39797 _ACEOF
39799 { echo "$as_me:$LINENO: result: dummy" >&5
39800 echo "${ECHO_T}dummy" >&6; }
39802 esac
39805 echo " "
39806 echo \!\!\!Error\!\!\!
39807 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
39808 exit 1 ;;
39809 esac
39810 SB16_OBJS='sb16.o'
39811 cat >>confdefs.h <<\_ACEOF
39812 #define BX_SUPPORT_SB16 1
39813 _ACEOF
39815 GAME_OBJS='gameport.o'
39816 gameport_present=1
39818 else
39820 { echo "$as_me:$LINENO: result: no" >&5
39821 echo "${ECHO_T}no" >&6; }
39822 cat >>confdefs.h <<\_ACEOF
39823 #define BX_SUPPORT_SB16 0
39824 _ACEOF
39834 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
39835 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
39836 # Check whether --enable-gameport was given.
39837 if test "${enable_gameport+set}" = set; then
39838 enableval=$enable_gameport; if test "$enableval" = yes; then
39839 { echo "$as_me:$LINENO: result: yes" >&5
39840 echo "${ECHO_T}yes" >&6; }
39841 cat >>confdefs.h <<\_ACEOF
39842 #define BX_SUPPORT_GAMEPORT 1
39843 _ACEOF
39845 if test "$gameport_present" = 0; then
39846 GAME_OBJS='gameport.o'
39847 case $target in
39848 *-cygwin* | *-mingw32*)
39849 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39851 esac
39853 else
39854 { echo "$as_me:$LINENO: result: no" >&5
39855 echo "${ECHO_T}no" >&6; }
39856 GAME_OBJS=''
39857 cat >>confdefs.h <<\_ACEOF
39858 #define BX_SUPPORT_GAMEPORT 0
39859 _ACEOF
39862 else
39864 if test "$gameport_present" = 1; then
39865 cat >>confdefs.h <<\_ACEOF
39866 #define BX_SUPPORT_GAMEPORT 1
39867 _ACEOF
39869 { echo "$as_me:$LINENO: result: yes" >&5
39870 echo "${ECHO_T}yes" >&6; }
39871 else
39872 cat >>confdefs.h <<\_ACEOF
39873 #define BX_SUPPORT_GAMEPORT 0
39874 _ACEOF
39876 { echo "$as_me:$LINENO: result: no" >&5
39877 echo "${ECHO_T}no" >&6; }
39885 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
39886 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
39887 # Check whether --enable-gdb-stub was given.
39888 if test "${enable_gdb_stub+set}" = set; then
39889 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
39890 { echo "$as_me:$LINENO: result: yes" >&5
39891 echo "${ECHO_T}yes" >&6; }
39892 cat >>confdefs.h <<\_ACEOF
39893 #define BX_GDBSTUB 1
39894 _ACEOF
39896 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
39897 if test "$bx_debugger" = 1; then
39898 { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
39899 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
39900 { (exit 1); exit 1; }; }
39902 else
39903 { echo "$as_me:$LINENO: result: no" >&5
39904 echo "${ECHO_T}no" >&6; }
39905 cat >>confdefs.h <<\_ACEOF
39906 #define BX_GDBSTUB 0
39907 _ACEOF
39909 GDBSTUB_VAR=''
39911 else
39913 { echo "$as_me:$LINENO: result: no" >&5
39914 echo "${ECHO_T}no" >&6; }
39915 cat >>confdefs.h <<\_ACEOF
39916 #define BX_GDBSTUB 0
39917 _ACEOF
39919 GDBSTUB_VAR=''
39927 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
39928 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
39929 IODEBUG_OBJS=''
39930 # Check whether --enable-iodebug was given.
39931 if test "${enable_iodebug+set}" = set; then
39932 enableval=$enable_iodebug; if test "$enableval" = yes; then
39933 { echo "$as_me:$LINENO: result: yes" >&5
39934 echo "${ECHO_T}yes" >&6; }
39935 cat >>confdefs.h <<\_ACEOF
39936 #define BX_SUPPORT_IODEBUG 1
39937 _ACEOF
39939 IODEBUG_OBJS='iodebug.o'
39940 else
39941 { echo "$as_me:$LINENO: result: no" >&5
39942 echo "${ECHO_T}no" >&6; }
39943 cat >>confdefs.h <<\_ACEOF
39944 #define BX_SUPPORT_IODEBUG 0
39945 _ACEOF
39949 else
39951 if test "" = 1; then
39952 # enable by default if debugger is on
39953 { echo "$as_me:$LINENO: result: yes" >&5
39954 echo "${ECHO_T}yes" >&6; }
39955 cat >>confdefs.h <<\_ACEOF
39956 #define BX_SUPPORT_IODEBUG 1
39957 _ACEOF
39959 IODEBUG_OBJS='iodebug.o'
39960 else
39961 { echo "$as_me:$LINENO: result: no" >&5
39962 echo "${ECHO_T}no" >&6; }
39971 # Extract the first word of "docbook2html", so it can be a program name with args.
39972 set dummy docbook2html; ac_word=$2
39973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39975 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
39976 echo $ECHO_N "(cached) $ECHO_C" >&6
39977 else
39978 case $DOCBOOK2HTML in
39979 [\\/]* | ?:[\\/]*)
39980 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
39983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39984 for as_dir in $PATH
39986 IFS=$as_save_IFS
39987 test -z "$as_dir" && as_dir=.
39988 for ac_exec_ext in '' $ac_executable_extensions; do
39989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
39990 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
39991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39992 break 2
39994 done
39995 done
39996 IFS=$as_save_IFS
39998 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
40000 esac
40002 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
40003 if test -n "$DOCBOOK2HTML"; then
40004 { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
40005 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
40006 else
40007 { echo "$as_me:$LINENO: result: no" >&5
40008 echo "${ECHO_T}no" >&6; }
40012 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
40013 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
40014 build_docbook=0
40015 # Check whether --enable-docbook was given.
40016 if test "${enable_docbook+set}" = set; then
40017 enableval=$enable_docbook;
40018 if test "$enableval" = yes; then build_docbook=1; fi
40020 else
40022 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
40028 if test $build_docbook = 1; then
40029 { echo "$as_me:$LINENO: result: yes" >&5
40030 echo "${ECHO_T}yes" >&6; }
40031 BUILD_DOCBOOK_VAR=build_docbook
40032 INSTALL_DOCBOOK_VAR=install_docbook
40033 if test "$DOCBOOK2HTML" = not_found; then
40034 echo "ERROR: docbook2html must be installed to build the documentation"
40035 exit 1
40037 else
40038 { echo "$as_me:$LINENO: result: no" >&5
40039 echo "${ECHO_T}no" >&6; }
40045 PRIMARY_TARGET='bochs'
40046 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
40048 cat >>confdefs.h <<\_ACEOF
40049 #define BX_PROVIDE_DEVICE_MODELS 1
40050 _ACEOF
40052 IODEV_LIB_VAR='iodev/libiodev.a'
40053 cat >>confdefs.h <<\_ACEOF
40054 #define BX_PROVIDE_CPU_MEMORY 1
40055 _ACEOF
40057 NONINLINE_VAR='$(NONINLINE_OBJS)'
40069 # Check whether --with-x11 was given.
40070 if test "${with_x11+set}" = set; then
40071 withval=$with_x11;
40076 # Check whether --with-beos was given.
40077 if test "${with_beos+set}" = set; then
40078 withval=$with_beos;
40083 # Check whether --with-win32 was given.
40084 if test "${with_win32+set}" = set; then
40085 withval=$with_win32;
40090 # Check whether --with-macos was given.
40091 if test "${with_macos+set}" = set; then
40092 withval=$with_macos;
40097 # Check whether --with-carbon was given.
40098 if test "${with_carbon+set}" = set; then
40099 withval=$with_carbon;
40104 # Check whether --with-nogui was given.
40105 if test "${with_nogui+set}" = set; then
40106 withval=$with_nogui;
40111 # Check whether --with-term was given.
40112 if test "${with_term+set}" = set; then
40113 withval=$with_term;
40118 # Check whether --with-rfb was given.
40119 if test "${with_rfb+set}" = set; then
40120 withval=$with_rfb;
40125 # Check whether --with-amigaos was given.
40126 if test "${with_amigaos+set}" = set; then
40127 withval=$with_amigaos;
40132 # Check whether --with-sdl was given.
40133 if test "${with_sdl+set}" = set; then
40134 withval=$with_sdl;
40139 # Check whether --with-svga was given.
40140 if test "${with_svga+set}" = set; then
40141 withval=$with_svga;
40146 # Check whether --with-wx was given.
40147 if test "${with_wx+set}" = set; then
40148 withval=$with_wx;
40153 # Check whether --with-all-libs was given.
40154 if test "${with_all_libs+set}" = set; then
40155 withval=$with_all_libs;
40159 DASH="-"
40160 SLASH="/"
40161 CXXFP=""
40162 CFP=""
40163 OFP="-o "
40164 MAKELIB="ar rv \$@"
40165 RMCOMMAND="rm -f "
40166 # first define link variables without libtool
40167 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
40168 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
40169 # unless NO_LT is set, add libtool to the front of the link command
40170 if test "$NO_LT" != 1; then
40171 LINK="\$(LIBTOOL) --mode=link $LINK"
40172 LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
40174 EXE=""
40175 COMMAND_SEPARATOR="&& \\"
40176 CD_UP_ONE="echo done"
40177 CD_UP_TWO="echo done"
40178 CD_UP_THREE="echo done"
40180 INSTALL_TARGET=install_unix
40181 INSTALL_LIST_FOR_PLATFORM=
40183 # check for existence of and usable version of wxWidgets. This comes
40184 # early so that it could affect which one gets chosen.
40185 if test x$WX_CONFIG = x; then
40186 # Extract the first word of " wx-config --version ", so it can be a program name with args.
40187 set dummy wx-config --version ; ac_word=$2
40188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40190 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
40191 echo $ECHO_N "(cached) $ECHO_C" >&6
40192 else
40193 if test -n "$WX_CONFIG"; then
40194 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
40195 else
40196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40197 for as_dir in $PATH
40199 IFS=$as_save_IFS
40200 test -z "$as_dir" && as_dir=.
40201 for ac_exec_ext in '' $ac_executable_extensions; do
40202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40203 ac_cv_prog_WX_CONFIG="wx-config"
40204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40205 break 2
40207 done
40208 done
40209 IFS=$as_save_IFS
40211 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
40214 WX_CONFIG=$ac_cv_prog_WX_CONFIG
40215 if test -n "$WX_CONFIG"; then
40216 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
40217 echo "${ECHO_T}$WX_CONFIG" >&6; }
40218 else
40219 { echo "$as_me:$LINENO: result: no" >&5
40220 echo "${ECHO_T}no" >&6; }
40225 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
40226 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
40227 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
40228 echo "${ECHO_T}$WX_CONFIG" >&6; }
40230 ok_wx_version=0
40231 wx_multi_lib=0
40232 wx_needs_gtk2=0
40233 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
40234 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
40235 if test x$WX_CONFIG != xnot_found; then
40236 WX_VERSION=`$WX_CONFIG --version`
40237 WX_BASENAME=`$WX_CONFIG --basename`
40239 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
40240 case x$WX_VERSION in
40241 x2.[012]*) ;; # less than version 2.3.x
40242 x2.3.[01]) ;; # less than version 2.3.2
40243 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
40244 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
40245 x2.[6-9]*) # version 2.6 or greater
40246 ok_wx_version=1
40247 wx_multi_lib=1
40248 case x$WX_BASENAME in
40249 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
40250 *) ;;
40251 esac
40253 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
40254 *) ;; # who knows?
40255 esac
40258 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
40259 echo "${ECHO_T}$WX_VERSION" >&6; }
40260 if test "$cross_configure" = 0; then
40261 if test "$ok_wx_version" = 1; then
40262 # detected a usable version
40263 if test "$with_all_libs" = yes; then
40264 with_wx=yes
40266 else
40267 if test "$with_wx" = yes; then
40268 { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
40269 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
40271 with_wx=no
40275 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
40276 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
40277 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
40278 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
40280 display_libs=""
40282 # the $with_* variable tells the gui library to use, but does NOT necessarily
40283 # indicate the platform. Settings that depend on the platform should be
40284 # handled later.
40286 XPM_LIB=''
40287 if test "$with_x11" = yes; then
40288 display_libs="$display_libs X11"
40289 if test "$no_x" = yes; then
40290 echo ERROR: X windows gui was selected, but X windows libraries were not found.
40291 exit 1
40293 cat >>confdefs.h <<\_ACEOF
40294 #define BX_WITH_X11 1
40295 _ACEOF
40297 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
40298 GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
40299 GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
40300 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
40301 check_xpm=0
40302 { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
40303 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
40304 # Check whether --enable-xpm was given.
40305 if test "${enable_xpm+set}" = set; then
40306 enableval=$enable_xpm; if test "$enableval" = yes; then
40307 check_xpm=0
40308 { echo "$as_me:$LINENO: result: yes" >&5
40309 echo "${ECHO_T}yes" >&6; }
40310 check_xpm=1
40311 else
40312 { echo "$as_me:$LINENO: result: no" >&5
40313 echo "${ECHO_T}no" >&6; }
40314 check_xpm=0
40316 else
40318 { echo "$as_me:$LINENO: result: yes" >&5
40319 echo "${ECHO_T}yes" >&6; }
40320 check_xpm=1
40325 if test $check_xpm = 1; then
40326 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40327 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
40328 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
40329 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40330 echo $ECHO_N "(cached) $ECHO_C" >&6
40332 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
40333 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40334 else
40335 # Is the header compilable?
40336 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
40337 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
40338 cat >conftest.$ac_ext <<_ACEOF
40339 /* confdefs.h. */
40340 _ACEOF
40341 cat confdefs.h >>conftest.$ac_ext
40342 cat >>conftest.$ac_ext <<_ACEOF
40343 /* end confdefs.h. */
40344 $ac_includes_default
40345 #include <X11/xpm.h>
40346 _ACEOF
40347 rm -f conftest.$ac_objext
40348 if { (ac_try="$ac_compile"
40349 case "(($ac_try" in
40350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40351 *) ac_try_echo=$ac_try;;
40352 esac
40353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40354 (eval "$ac_compile") 2>conftest.er1
40355 ac_status=$?
40356 grep -v '^ *+' conftest.er1 >conftest.err
40357 rm -f conftest.er1
40358 cat conftest.err >&5
40359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360 (exit $ac_status); } &&
40361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40362 { (case "(($ac_try" in
40363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40364 *) ac_try_echo=$ac_try;;
40365 esac
40366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40367 (eval "$ac_try") 2>&5
40368 ac_status=$?
40369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40370 (exit $ac_status); }; } &&
40371 { ac_try='test -s conftest.$ac_objext'
40372 { (case "(($ac_try" in
40373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40374 *) ac_try_echo=$ac_try;;
40375 esac
40376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40377 (eval "$ac_try") 2>&5
40378 ac_status=$?
40379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40380 (exit $ac_status); }; }; then
40381 ac_header_compiler=yes
40382 else
40383 echo "$as_me: failed program was:" >&5
40384 sed 's/^/| /' conftest.$ac_ext >&5
40386 ac_header_compiler=no
40389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40391 echo "${ECHO_T}$ac_header_compiler" >&6; }
40393 # Is the header present?
40394 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
40395 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
40396 cat >conftest.$ac_ext <<_ACEOF
40397 /* confdefs.h. */
40398 _ACEOF
40399 cat confdefs.h >>conftest.$ac_ext
40400 cat >>conftest.$ac_ext <<_ACEOF
40401 /* end confdefs.h. */
40402 #include <X11/xpm.h>
40403 _ACEOF
40404 if { (ac_try="$ac_cpp conftest.$ac_ext"
40405 case "(($ac_try" in
40406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40407 *) ac_try_echo=$ac_try;;
40408 esac
40409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40411 ac_status=$?
40412 grep -v '^ *+' conftest.er1 >conftest.err
40413 rm -f conftest.er1
40414 cat conftest.err >&5
40415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416 (exit $ac_status); } >/dev/null; then
40417 if test -s conftest.err; then
40418 ac_cpp_err=$ac_c_preproc_warn_flag
40419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40420 else
40421 ac_cpp_err=
40423 else
40424 ac_cpp_err=yes
40426 if test -z "$ac_cpp_err"; then
40427 ac_header_preproc=yes
40428 else
40429 echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40432 ac_header_preproc=no
40435 rm -f conftest.err conftest.$ac_ext
40436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40437 echo "${ECHO_T}$ac_header_preproc" >&6; }
40439 # So? What about this header?
40440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40441 yes:no: )
40442 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
40443 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40444 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
40445 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
40446 ac_header_preproc=yes
40448 no:yes:* )
40449 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
40450 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
40451 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
40452 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
40453 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
40454 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
40455 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
40456 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
40457 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
40458 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
40459 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
40460 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
40463 esac
40464 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
40465 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
40466 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40468 else
40469 ac_cv_header_X11_xpm_h=$ac_header_preproc
40471 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
40472 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40475 if test $ac_cv_header_X11_xpm_h = yes; then
40477 cat >>confdefs.h <<\_ACEOF
40478 #define BX_HAVE_XPM_H 1
40479 _ACEOF
40481 XPM_LIB='-lXpm'
40490 if test "$with_beos" = yes; then
40491 display_libs="$display_libs beos"
40492 cat >>confdefs.h <<\_ACEOF
40493 #define BX_WITH_BEOS 1
40494 _ACEOF
40496 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
40497 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
40500 if test "$with_sdl" = yes; then
40501 display_libs="$display_libs sdl"
40502 cat >>confdefs.h <<\_ACEOF
40503 #define BX_WITH_SDL 1
40504 _ACEOF
40506 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
40507 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40508 # the files in gui/*.cc.
40509 SDL_CFLAGS=`sdl-config --cflags`
40510 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
40511 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
40512 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
40513 if test "$with_win32" != yes -a "$with_wx" != yes; then
40514 case $target in
40515 *-pc-windows*)
40516 RC_CMD="rc /fo"
40517 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40519 *-cygwin* | *-mingw32*)
40520 RC_CMD="windres -o "
40521 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40523 esac
40527 if test "$with_svga" = yes; then
40528 display_libs="$display_libs svga"
40529 cat >>confdefs.h <<\_ACEOF
40530 #define BX_WITH_SVGA 1
40531 _ACEOF
40533 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
40534 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40535 # the files in gui/*.cc.
40536 GUI_CFLAGS="$GUI_CFLAGS"
40537 GUI_CXXFLAGS="$GUI_CXXFLAGS"
40538 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
40541 if test "$with_rfb" = yes; then
40542 display_libs="$display_libs rfb"
40543 cat >>confdefs.h <<\_ACEOF
40544 #define BX_WITH_RFB 1
40545 _ACEOF
40547 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
40548 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
40551 if test "$with_amigaos" = yes; then
40552 display_libs="$display_libs amigaos"
40553 cat >>confdefs.h <<\_ACEOF
40554 #define BX_WITH_AMIGAOS 1
40555 _ACEOF
40557 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
40558 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
40561 if test "$with_win32" = yes; then
40562 display_libs="$display_libs win32"
40563 cat >>confdefs.h <<\_ACEOF
40564 #define BX_WITH_WIN32 1
40565 _ACEOF
40567 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
40568 case $target in
40569 *-pc-windows*)
40570 if test "$with_wx" != yes; then
40571 RC_CMD="rc /fo"
40572 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40574 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
40576 *-cygwin* | *-mingw32*)
40577 if test "$with_wx" != yes; then
40578 RC_CMD="windres -o "
40579 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40581 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
40583 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
40585 esac
40588 if test "$with_macos" = yes; then
40589 display_libs="$display_libs macos"
40590 cat >>confdefs.h <<\_ACEOF
40591 #define BX_WITH_MACOS 1
40592 _ACEOF
40594 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
40595 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
40598 if test "$with_carbon" = yes; then
40599 display_libs="$display_libs carbon"
40600 cat >>confdefs.h <<\_ACEOF
40601 #define BX_WITH_CARBON 1
40602 _ACEOF
40604 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
40605 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
40606 if test "$bx_plugins" = 1; then
40607 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
40608 else
40609 PRIMARY_TARGET=bochs.app/.build # only for carbon application
40611 INSTALL_TARGET='install_macosx'
40614 if test "$with_term" = yes; then
40615 display_libs="$display_libs term"
40616 cat >>confdefs.h <<\_ACEOF
40617 #define BX_WITH_TERM 1
40618 _ACEOF
40620 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
40621 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
40622 use_curses=yes
40625 if test "$with_wx" = yes; then
40626 display_libs="$display_libs wxWidgets"
40627 if test "$cross_configure" = 1; then
40628 true # do not insist, if configuring for another machine
40629 else
40630 if test x$ok_wx_version != x1; then
40631 echo ERROR: A usable version of wxWidgets was not found.
40632 echo Upgrade the library or choose another gui.
40633 exit 1
40636 cat >>confdefs.h <<\_ACEOF
40637 #define BX_WITH_WX 1
40638 _ACEOF
40640 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
40641 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
40642 WX_CFLAGS="`$WX_CONFIG --cflags`"
40643 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
40644 if test "$wx_multi_lib" = 1; then
40645 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
40646 else
40647 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
40649 if test "$wx_needs_gtk2" = 1; then
40652 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
40653 if test -n "$ac_tool_prefix"; then
40654 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40655 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40658 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40659 echo $ECHO_N "(cached) $ECHO_C" >&6
40660 else
40661 case $PKG_CONFIG in
40662 [\\/]* | ?:[\\/]*)
40663 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40667 for as_dir in $PATH
40669 IFS=$as_save_IFS
40670 test -z "$as_dir" && as_dir=.
40671 for ac_exec_ext in '' $ac_executable_extensions; do
40672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40673 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40675 break 2
40677 done
40678 done
40679 IFS=$as_save_IFS
40682 esac
40684 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40685 if test -n "$PKG_CONFIG"; then
40686 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40687 echo "${ECHO_T}$PKG_CONFIG" >&6; }
40688 else
40689 { echo "$as_me:$LINENO: result: no" >&5
40690 echo "${ECHO_T}no" >&6; }
40695 if test -z "$ac_cv_path_PKG_CONFIG"; then
40696 ac_pt_PKG_CONFIG=$PKG_CONFIG
40697 # Extract the first word of "pkg-config", so it can be a program name with args.
40698 set dummy pkg-config; ac_word=$2
40699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40701 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
40702 echo $ECHO_N "(cached) $ECHO_C" >&6
40703 else
40704 case $ac_pt_PKG_CONFIG in
40705 [\\/]* | ?:[\\/]*)
40706 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
40709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40710 for as_dir in $PATH
40712 IFS=$as_save_IFS
40713 test -z "$as_dir" && as_dir=.
40714 for ac_exec_ext in '' $ac_executable_extensions; do
40715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40716 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40718 break 2
40720 done
40721 done
40722 IFS=$as_save_IFS
40725 esac
40727 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
40728 if test -n "$ac_pt_PKG_CONFIG"; then
40729 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
40730 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
40731 else
40732 { echo "$as_me:$LINENO: result: no" >&5
40733 echo "${ECHO_T}no" >&6; }
40736 if test "x$ac_pt_PKG_CONFIG" = x; then
40737 PKG_CONFIG=""
40738 else
40739 case $cross_compiling:$ac_tool_warned in
40740 yes:)
40741 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
40742 whose name does not start with the host triplet. If you think this
40743 configuration is useful to you, please write to autoconf@gnu.org." >&5
40744 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
40745 whose name does not start with the host triplet. If you think this
40746 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
40747 ac_tool_warned=yes ;;
40748 esac
40749 PKG_CONFIG=$ac_pt_PKG_CONFIG
40751 else
40752 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
40756 if test -n "$PKG_CONFIG"; then
40757 _pkg_min_version=0.9.0
40758 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
40759 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
40760 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
40761 { echo "$as_me:$LINENO: result: yes" >&5
40762 echo "${ECHO_T}yes" >&6; }
40763 else
40764 { echo "$as_me:$LINENO: result: no" >&5
40765 echo "${ECHO_T}no" >&6; }
40766 PKG_CONFIG=""
40771 pkg_failed=no
40772 { echo "$as_me:$LINENO: checking for GTK" >&5
40773 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
40775 if test -n "$PKG_CONFIG"; then
40776 if test -n "$GTK_CFLAGS"; then
40777 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
40778 else
40779 if test -n "$PKG_CONFIG" && \
40780 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
40781 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
40782 ac_status=$?
40783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40784 (exit $ac_status); }; then
40785 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
40786 else
40787 pkg_failed=yes
40790 else
40791 pkg_failed=untried
40793 if test -n "$PKG_CONFIG"; then
40794 if test -n "$GTK_LIBS"; then
40795 pkg_cv_GTK_LIBS="$GTK_LIBS"
40796 else
40797 if test -n "$PKG_CONFIG" && \
40798 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
40799 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
40800 ac_status=$?
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); }; then
40803 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
40804 else
40805 pkg_failed=yes
40808 else
40809 pkg_failed=untried
40814 if test $pkg_failed = yes; then
40816 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40817 _pkg_short_errors_supported=yes
40818 else
40819 _pkg_short_errors_supported=no
40821 if test $_pkg_short_errors_supported = yes; then
40822 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
40823 else
40824 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
40826 # Put the nasty error message in config.log where it belongs
40827 echo "$GTK_PKG_ERRORS" >&5
40829 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
40831 $GTK_PKG_ERRORS
40833 Consider adjusting the PKG_CONFIG_PATH environment variable if you
40834 installed software in a non-standard prefix.
40836 Alternatively, you may set the environment variables GTK_CFLAGS
40837 and GTK_LIBS to avoid the need to call pkg-config.
40838 See the pkg-config man page for more details.
40839 " >&5
40840 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
40842 $GTK_PKG_ERRORS
40844 Consider adjusting the PKG_CONFIG_PATH environment variable if you
40845 installed software in a non-standard prefix.
40847 Alternatively, you may set the environment variables GTK_CFLAGS
40848 and GTK_LIBS to avoid the need to call pkg-config.
40849 See the pkg-config man page for more details.
40850 " >&2;}
40851 { (exit 1); exit 1; }; }
40852 elif test $pkg_failed = untried; then
40853 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
40854 is in your PATH or set the PKG_CONFIG environment variable to the full
40855 path to pkg-config.
40857 Alternatively, you may set the environment variables GTK_CFLAGS
40858 and GTK_LIBS to avoid the need to call pkg-config.
40859 See the pkg-config man page for more details.
40861 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
40862 See \`config.log' for more details." >&5
40863 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
40864 is in your PATH or set the PKG_CONFIG environment variable to the full
40865 path to pkg-config.
40867 Alternatively, you may set the environment variables GTK_CFLAGS
40868 and GTK_LIBS to avoid the need to call pkg-config.
40869 See the pkg-config man page for more details.
40871 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
40872 See \`config.log' for more details." >&2;}
40873 { (exit 1); exit 1; }; }
40874 else
40875 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
40876 GTK_LIBS=$pkg_cv_GTK_LIBS
40877 { echo "$as_me:$LINENO: result: yes" >&5
40878 echo "${ECHO_T}yes" >&6; }
40880 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
40881 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
40884 else
40885 # if gtk-config exists, then add it to the cflags.
40886 gtkconf=`gtk-config --cflags`
40887 if test $? = 0; then
40888 # gtk-config was found and returned 0, so it must return valid output
40889 WX_CFLAGS="$WX_CFLAGS $gtkconf"
40890 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
40893 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
40894 # the files in gui/*.cc. They are not used when building other things
40895 # such as bximage.
40896 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
40897 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
40898 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
40899 # using debugger with readline is failing due to thread/signal handler
40900 # problems.
40901 case $target in
40902 *-pc-windows* | *-cygwin* | *-mingw32*)
40903 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
40904 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
40906 esac
40909 if test "$with_nogui" = yes; then
40910 display_libs="$display_libs nogui"
40911 cat >>confdefs.h <<\_ACEOF
40912 #define BX_WITH_NOGUI 1
40913 _ACEOF
40915 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
40918 { echo "$as_me:$LINENO: checking for display libraries" >&5
40919 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
40920 { echo "$as_me:$LINENO: result: $display_libs" >&5
40921 echo "${ECHO_T}$display_libs" >&6; }
40923 if test "$display_libs" = ""; then
40924 echo "No display libraries were selected. Use --with-* options to enable"
40925 echo "individual display libraries, or --with-all-libs to detect the ones"
40926 echo "that Bochs supports."
40927 exit 1
40930 if test "$display_libs" = " wxWidgets"; then
40931 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
40932 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
40933 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40934 echo "${ECHO_T}wxWidgets" >&6; }
40935 { echo "$as_me:$LINENO: checking for default display library" >&5
40936 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
40937 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40938 echo "${ECHO_T}wxWidgets" >&6; }
40939 cat >>confdefs.h <<\_ACEOF
40940 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
40941 _ACEOF
40943 cat >>confdefs.h <<\_ACEOF
40944 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
40945 _ACEOF
40947 cat >>confdefs.h <<\_ACEOF
40948 #define BX_USE_TEXTCONFIG 0
40949 _ACEOF
40951 else
40952 cat >>confdefs.h <<\_ACEOF
40953 #define BX_USE_TEXTCONFIG 1
40954 _ACEOF
40958 if test "$bx_plugins" = 1; then
40959 # every item in this list will be compiled as a plugin. Do not include
40960 # support objs; they will be mentioned in plugin-specific makefile rules.
40961 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
40962 else
40963 # include support objs
40964 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
40973 for ac_prog in wget curl fetch
40975 # Extract the first word of "$ac_prog", so it can be a program name with args.
40976 set dummy $ac_prog; ac_word=$2
40977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40979 if test "${ac_cv_prog_WGET+set}" = set; then
40980 echo $ECHO_N "(cached) $ECHO_C" >&6
40981 else
40982 if test -n "$WGET"; then
40983 ac_cv_prog_WGET="$WGET" # Let the user override the test.
40984 else
40985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40986 for as_dir in $PATH
40988 IFS=$as_save_IFS
40989 test -z "$as_dir" && as_dir=.
40990 for ac_exec_ext in '' $ac_executable_extensions; do
40991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40992 ac_cv_prog_WGET="$ac_prog"
40993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40994 break 2
40996 done
40997 done
40998 IFS=$as_save_IFS
41002 WGET=$ac_cv_prog_WGET
41003 if test -n "$WGET"; then
41004 { echo "$as_me:$LINENO: result: $WGET" >&5
41005 echo "${ECHO_T}$WGET" >&6; }
41006 else
41007 { echo "$as_me:$LINENO: result: no" >&5
41008 echo "${ECHO_T}no" >&6; }
41012 test -n "$WGET" && break
41013 done
41014 test -n "$WGET" || WGET="not_found"
41016 if test "$WGET" = not_found; then
41017 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
41018 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
41020 # everybody has to re-invent the wheel. differently.
41021 test "${WGET}" = "curl" && WGET="curl -O"
41023 # modify settings based on target platform
41024 case "$target" in
41025 *-macosx*)
41026 cat >>confdefs.h <<\_ACEOF
41027 #define BX_HAVE_STRDUP 0
41028 _ACEOF
41031 *-macos*)
41032 cat >>confdefs.h <<\_ACEOF
41033 #define BX_HAVE_STRDUP 0
41034 _ACEOF
41036 cat >>confdefs.h <<\_ACEOF
41037 #define BX_PLUGINS 0
41038 _ACEOF
41040 cat >>confdefs.h <<\_ACEOF
41041 #define BX_HAVE_DLFCN_H 0
41042 _ACEOF
41044 cat >>confdefs.h <<\_ACEOF
41045 #define BX_HAVE_SOCKLEN_T 0
41046 _ACEOF
41048 cat >>confdefs.h <<\_ACEOF
41049 #define BX_HAVE_SELECT 0
41050 _ACEOF
41052 cat >>confdefs.h <<\_ACEOF
41053 #define BX_HAVE_GETTIMEOFDAY 0
41054 _ACEOF
41056 cat >>confdefs.h <<\_ACEOF
41057 #define BX_NO_ATTRIBUTES 1
41058 _ACEOF
41060 cat >>confdefs.h <<\_ACEOF
41061 #define HAVE_TUNTAP 0
41062 _ACEOF
41064 cat >>confdefs.h <<\_ACEOF
41065 #define HAVE_ETHERTAP 0
41066 _ACEOF
41068 cat >>confdefs.h <<\_ACEOF
41069 #define BX_HAVE_HASH_MAP 0
41070 _ACEOF
41073 *-pc-windows*)
41074 INSTALL_TARGET='install_win32'
41075 CC="cl"
41076 CXX="$CC"
41077 #C_OPT="/Zi" # for debugging
41078 C_OPT="/Ox" # optimize for speed
41079 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
41080 CXXFLAGS="$CFLAGS"
41081 DASH="/"
41082 SLASH="\\"
41083 CXXFP="/Tp"
41084 CFP="/Tc"
41085 OFP="/Fo"
41086 MAKE=nmake
41087 MAKELIB="lib /nologo /subsystem:console /machine:I386 /verbose /out:\$@"
41088 RMCOMMAND="-del"
41089 RANLIB="echo"
41090 #L_OPT="/debug" # for debugging
41091 L_OPT="" # no debug info
41092 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /machine:I386 /out:\$@ "
41093 LINK_CONSOLE=$LINK
41094 EXE=".exe"
41095 PRIMARY_TARGET="bochs.exe"
41096 BXIMAGE_LINK_OPTS="user32.lib"
41097 # also compile niclist if networking is on
41098 if test "$networking" = yes; then
41099 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41101 COMMAND_SEPARATOR=""
41102 CD_UP_ONE="cd .."
41103 CD_UP_TWO="cd ..\.."
41104 CD_UP_THREE="cd ..\..\.."
41105 have_gettimeofday=0 # even though it may exist in build environment
41106 cat >>confdefs.h <<\_ACEOF
41107 #define BX_64BIT_CONSTANTS_USE_LL 0
41108 _ACEOF
41110 cat >>confdefs.h <<\_ACEOF
41111 #define inline __inline
41112 _ACEOF
41114 cat >>confdefs.h <<\_ACEOF
41115 #define BX_NO_EMPTY_STRUCTS 1
41116 _ACEOF
41118 cat >>confdefs.h <<\_ACEOF
41119 #define BX_NO_ATTRIBUTES 1
41120 _ACEOF
41122 cat >>confdefs.h <<\_ACEOF
41123 #define BX_HAVE_HASH_MAP 0
41124 _ACEOF
41126 cat >>confdefs.h <<\_ACEOF
41127 #define BX_HAVE_HASH_MAP_H 0
41128 _ACEOF
41130 cat >>confdefs.h <<\_ACEOF
41131 #define BX_HAVE_STRTOULL 0
41132 _ACEOF
41134 cat >>confdefs.h <<\_ACEOF
41135 #define BX_HAVE_STRTOUQ 0
41136 _ACEOF
41138 cat >>confdefs.h <<\_ACEOF
41139 #define HAVE_LIBREADLINE 0
41140 _ACEOF
41142 cat >>confdefs.h <<\_ACEOF
41143 #define BX_HAVE_GETTIMEOFDAY 0
41144 _ACEOF
41146 cat >>confdefs.h <<\_ACEOF
41147 #define BX_HAVE_DLFCN_H 0
41148 _ACEOF
41150 cat >>confdefs.h <<\_ACEOF
41151 #define BX_HAVE_MKSTEMP 0
41152 _ACEOF
41154 cat >>confdefs.h <<\_ACEOF
41155 #define BX_HAVE_SYS_MMAN_H 0
41156 _ACEOF
41158 cat >>confdefs.h <<\_ACEOF
41159 #define BX_HAVE_USLEEP 0
41160 _ACEOF
41162 cat >>confdefs.h <<\_ACEOF
41163 #define HAVE_ETHERTAP 0
41164 _ACEOF
41166 cat >>confdefs.h <<\_ACEOF
41167 #define BX_HAVE_SELECT 1
41168 _ACEOF
41170 cat >>confdefs.h <<\_ACEOF
41171 #define BX_HAVE_SOCKLEN_T 0
41172 _ACEOF
41175 *-pc-cygwin*)
41176 EXE=".exe"
41177 PRIMARY_TARGET="bochs.exe"
41178 BXIMAGE_LINK_OPTS="-luser32"
41179 if test "$networking" = yes; then
41180 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41182 cat >>confdefs.h <<\_ACEOF
41183 #define BX_HAVE_SELECT 1
41184 _ACEOF
41187 *-pc-mingw*)
41188 BXIMAGE_LINK_OPTS="-luser32"
41189 if test "$networking" = yes; then
41190 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
41192 cat >>confdefs.h <<\_ACEOF
41193 #define BX_HAVE_SELECT 1
41194 _ACEOF
41197 *-beos*)
41198 PRIMARY_TARGET=.bochs_beos_target
41200 esac
41202 DIALOG_OBJS=""
41203 EXPORT_DYNAMIC="-export-dynamic"
41204 case $target in
41205 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
41206 if test "$bx_plugins" = 1; then
41207 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
41208 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
41209 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
41210 echo $ECHO_N "(cached) $ECHO_C" >&6
41211 else
41212 ac_check_lib_save_LIBS=$LIBS
41213 LIBS="-lmingwex $LIBS"
41214 cat >conftest.$ac_ext <<_ACEOF
41215 /* confdefs.h. */
41216 _ACEOF
41217 cat confdefs.h >>conftest.$ac_ext
41218 cat >>conftest.$ac_ext <<_ACEOF
41219 /* end confdefs.h. */
41221 /* Override any GCC internal prototype to avoid an error.
41222 Use char because int might match the return type of a GCC
41223 builtin and then its argument prototype would still apply. */
41224 #ifdef __cplusplus
41225 extern "C"
41226 #endif
41227 char opendir ();
41229 main ()
41231 return opendir ();
41233 return 0;
41235 _ACEOF
41236 rm -f conftest.$ac_objext conftest$ac_exeext
41237 if { (ac_try="$ac_link"
41238 case "(($ac_try" in
41239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41240 *) ac_try_echo=$ac_try;;
41241 esac
41242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41243 (eval "$ac_link") 2>conftest.er1
41244 ac_status=$?
41245 grep -v '^ *+' conftest.er1 >conftest.err
41246 rm -f conftest.er1
41247 cat conftest.err >&5
41248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); } &&
41250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41251 { (case "(($ac_try" in
41252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41253 *) ac_try_echo=$ac_try;;
41254 esac
41255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41256 (eval "$ac_try") 2>&5
41257 ac_status=$?
41258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41259 (exit $ac_status); }; } &&
41260 { ac_try='test -s conftest$ac_exeext'
41261 { (case "(($ac_try" in
41262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41263 *) ac_try_echo=$ac_try;;
41264 esac
41265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41266 (eval "$ac_try") 2>&5
41267 ac_status=$?
41268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41269 (exit $ac_status); }; }; then
41270 ac_cv_lib_mingwex_opendir=yes
41271 else
41272 echo "$as_me: failed program was:" >&5
41273 sed 's/^/| /' conftest.$ac_ext >&5
41275 ac_cv_lib_mingwex_opendir=no
41278 rm -f core conftest.err conftest.$ac_objext \
41279 conftest$ac_exeext conftest.$ac_ext
41280 LIBS=$ac_check_lib_save_LIBS
41282 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
41283 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
41284 if test $ac_cv_lib_mingwex_opendir = yes; then
41285 LIBS="$LIBS -lmingwex"
41288 # set variables for building DLL plugins
41289 PRIMARY_TARGET=".win32_dll_plugin_target"
41290 PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
41291 INSTALL_PLUGINS_VAR=install_dll_plugins
41292 else
41293 if test "$with_win32" != yes; then
41294 LIBS="$LIBS -lcomctl32"
41297 DIALOG_OBJS="win32dialog.o"
41298 EXPORT_DYNAMIC=""
41300 esac
41304 if test "$use_curses" = yes -a "$cross_configure" = 0; then
41305 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
41306 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
41307 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
41308 echo $ECHO_N "(cached) $ECHO_C" >&6
41309 else
41310 ac_check_lib_save_LIBS=$LIBS
41311 LIBS="-lcurses $LIBS"
41312 cat >conftest.$ac_ext <<_ACEOF
41313 /* confdefs.h. */
41314 _ACEOF
41315 cat confdefs.h >>conftest.$ac_ext
41316 cat >>conftest.$ac_ext <<_ACEOF
41317 /* end confdefs.h. */
41319 /* Override any GCC internal prototype to avoid an error.
41320 Use char because int might match the return type of a GCC
41321 builtin and then its argument prototype would still apply. */
41322 #ifdef __cplusplus
41323 extern "C"
41324 #endif
41325 char mvaddch ();
41327 main ()
41329 return mvaddch ();
41331 return 0;
41333 _ACEOF
41334 rm -f conftest.$ac_objext conftest$ac_exeext
41335 if { (ac_try="$ac_link"
41336 case "(($ac_try" in
41337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41338 *) ac_try_echo=$ac_try;;
41339 esac
41340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41341 (eval "$ac_link") 2>conftest.er1
41342 ac_status=$?
41343 grep -v '^ *+' conftest.er1 >conftest.err
41344 rm -f conftest.er1
41345 cat conftest.err >&5
41346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41347 (exit $ac_status); } &&
41348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41349 { (case "(($ac_try" in
41350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41351 *) ac_try_echo=$ac_try;;
41352 esac
41353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41354 (eval "$ac_try") 2>&5
41355 ac_status=$?
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); }; } &&
41358 { ac_try='test -s conftest$ac_exeext'
41359 { (case "(($ac_try" in
41360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41361 *) ac_try_echo=$ac_try;;
41362 esac
41363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41364 (eval "$ac_try") 2>&5
41365 ac_status=$?
41366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41367 (exit $ac_status); }; }; then
41368 ac_cv_lib_curses_mvaddch=yes
41369 else
41370 echo "$as_me: failed program was:" >&5
41371 sed 's/^/| /' conftest.$ac_ext >&5
41373 ac_cv_lib_curses_mvaddch=no
41376 rm -f core conftest.err conftest.$ac_objext \
41377 conftest$ac_exeext conftest.$ac_ext
41378 LIBS=$ac_check_lib_save_LIBS
41380 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
41381 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
41382 if test $ac_cv_lib_curses_mvaddch = yes; then
41383 GUI_LINK_OPTS_TERM='-lcurses'
41386 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
41387 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
41388 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
41389 echo $ECHO_N "(cached) $ECHO_C" >&6
41390 else
41391 ac_check_lib_save_LIBS=$LIBS
41392 LIBS="-lncurses $LIBS"
41393 cat >conftest.$ac_ext <<_ACEOF
41394 /* confdefs.h. */
41395 _ACEOF
41396 cat confdefs.h >>conftest.$ac_ext
41397 cat >>conftest.$ac_ext <<_ACEOF
41398 /* end confdefs.h. */
41400 /* Override any GCC internal prototype to avoid an error.
41401 Use char because int might match the return type of a GCC
41402 builtin and then its argument prototype would still apply. */
41403 #ifdef __cplusplus
41404 extern "C"
41405 #endif
41406 char mvaddch ();
41408 main ()
41410 return mvaddch ();
41412 return 0;
41414 _ACEOF
41415 rm -f conftest.$ac_objext conftest$ac_exeext
41416 if { (ac_try="$ac_link"
41417 case "(($ac_try" in
41418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41419 *) ac_try_echo=$ac_try;;
41420 esac
41421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41422 (eval "$ac_link") 2>conftest.er1
41423 ac_status=$?
41424 grep -v '^ *+' conftest.er1 >conftest.err
41425 rm -f conftest.er1
41426 cat conftest.err >&5
41427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428 (exit $ac_status); } &&
41429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41430 { (case "(($ac_try" in
41431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41432 *) ac_try_echo=$ac_try;;
41433 esac
41434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41435 (eval "$ac_try") 2>&5
41436 ac_status=$?
41437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438 (exit $ac_status); }; } &&
41439 { ac_try='test -s conftest$ac_exeext'
41440 { (case "(($ac_try" in
41441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442 *) ac_try_echo=$ac_try;;
41443 esac
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445 (eval "$ac_try") 2>&5
41446 ac_status=$?
41447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448 (exit $ac_status); }; }; then
41449 ac_cv_lib_ncurses_mvaddch=yes
41450 else
41451 echo "$as_me: failed program was:" >&5
41452 sed 's/^/| /' conftest.$ac_ext >&5
41454 ac_cv_lib_ncurses_mvaddch=no
41457 rm -f core conftest.err conftest.$ac_objext \
41458 conftest$ac_exeext conftest.$ac_ext
41459 LIBS=$ac_check_lib_save_LIBS
41461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
41462 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
41463 if test $ac_cv_lib_ncurses_mvaddch = yes; then
41464 GUI_LINK_OPTS_TERM='-lncurses'
41467 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
41468 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
41469 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
41470 echo $ECHO_N "(cached) $ECHO_C" >&6
41471 else
41472 ac_check_lib_save_LIBS=$LIBS
41473 LIBS="-ltermlib $LIBS"
41474 cat >conftest.$ac_ext <<_ACEOF
41475 /* confdefs.h. */
41476 _ACEOF
41477 cat confdefs.h >>conftest.$ac_ext
41478 cat >>conftest.$ac_ext <<_ACEOF
41479 /* end confdefs.h. */
41481 /* Override any GCC internal prototype to avoid an error.
41482 Use char because int might match the return type of a GCC
41483 builtin and then its argument prototype would still apply. */
41484 #ifdef __cplusplus
41485 extern "C"
41486 #endif
41487 char mvaddch ();
41489 main ()
41491 return mvaddch ();
41493 return 0;
41495 _ACEOF
41496 rm -f conftest.$ac_objext conftest$ac_exeext
41497 if { (ac_try="$ac_link"
41498 case "(($ac_try" in
41499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41500 *) ac_try_echo=$ac_try;;
41501 esac
41502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41503 (eval "$ac_link") 2>conftest.er1
41504 ac_status=$?
41505 grep -v '^ *+' conftest.er1 >conftest.err
41506 rm -f conftest.er1
41507 cat conftest.err >&5
41508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509 (exit $ac_status); } &&
41510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41511 { (case "(($ac_try" in
41512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41513 *) ac_try_echo=$ac_try;;
41514 esac
41515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41516 (eval "$ac_try") 2>&5
41517 ac_status=$?
41518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519 (exit $ac_status); }; } &&
41520 { ac_try='test -s conftest$ac_exeext'
41521 { (case "(($ac_try" in
41522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41523 *) ac_try_echo=$ac_try;;
41524 esac
41525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41526 (eval "$ac_try") 2>&5
41527 ac_status=$?
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); }; }; then
41530 ac_cv_lib_termlib_mvaddch=yes
41531 else
41532 echo "$as_me: failed program was:" >&5
41533 sed 's/^/| /' conftest.$ac_ext >&5
41535 ac_cv_lib_termlib_mvaddch=no
41538 rm -f core conftest.err conftest.$ac_objext \
41539 conftest$ac_exeext conftest.$ac_ext
41540 LIBS=$ac_check_lib_save_LIBS
41542 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
41543 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
41544 if test $ac_cv_lib_termlib_mvaddch = yes; then
41545 GUI_LINK_OPTS_TERM='-ltermlib'
41548 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
41549 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
41550 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
41551 echo $ECHO_N "(cached) $ECHO_C" >&6
41552 else
41553 ac_check_lib_save_LIBS=$LIBS
41554 LIBS="-lpdcurses $LIBS"
41555 cat >conftest.$ac_ext <<_ACEOF
41556 /* confdefs.h. */
41557 _ACEOF
41558 cat confdefs.h >>conftest.$ac_ext
41559 cat >>conftest.$ac_ext <<_ACEOF
41560 /* end confdefs.h. */
41562 /* Override any GCC internal prototype to avoid an error.
41563 Use char because int might match the return type of a GCC
41564 builtin and then its argument prototype would still apply. */
41565 #ifdef __cplusplus
41566 extern "C"
41567 #endif
41568 char mvaddch ();
41570 main ()
41572 return mvaddch ();
41574 return 0;
41576 _ACEOF
41577 rm -f conftest.$ac_objext conftest$ac_exeext
41578 if { (ac_try="$ac_link"
41579 case "(($ac_try" in
41580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41581 *) ac_try_echo=$ac_try;;
41582 esac
41583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41584 (eval "$ac_link") 2>conftest.er1
41585 ac_status=$?
41586 grep -v '^ *+' conftest.er1 >conftest.err
41587 rm -f conftest.er1
41588 cat conftest.err >&5
41589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41590 (exit $ac_status); } &&
41591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41592 { (case "(($ac_try" in
41593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594 *) ac_try_echo=$ac_try;;
41595 esac
41596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41597 (eval "$ac_try") 2>&5
41598 ac_status=$?
41599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41600 (exit $ac_status); }; } &&
41601 { ac_try='test -s conftest$ac_exeext'
41602 { (case "(($ac_try" in
41603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41604 *) ac_try_echo=$ac_try;;
41605 esac
41606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41607 (eval "$ac_try") 2>&5
41608 ac_status=$?
41609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41610 (exit $ac_status); }; }; then
41611 ac_cv_lib_pdcurses_mvaddch=yes
41612 else
41613 echo "$as_me: failed program was:" >&5
41614 sed 's/^/| /' conftest.$ac_ext >&5
41616 ac_cv_lib_pdcurses_mvaddch=no
41619 rm -f core conftest.err conftest.$ac_objext \
41620 conftest$ac_exeext conftest.$ac_ext
41621 LIBS=$ac_check_lib_save_LIBS
41623 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
41624 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
41625 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
41626 GUI_LINK_OPTS_TERM='-lpdcurses'
41629 if test "$GUI_LINK_OPTS_TERM" = ""; then
41630 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
41631 exit 1
41635 if test "$with_term" = yes; then
41636 old_LIBS="$LIBS"
41637 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
41639 for ac_func in color_set
41641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41645 echo $ECHO_N "(cached) $ECHO_C" >&6
41646 else
41647 cat >conftest.$ac_ext <<_ACEOF
41648 /* confdefs.h. */
41649 _ACEOF
41650 cat confdefs.h >>conftest.$ac_ext
41651 cat >>conftest.$ac_ext <<_ACEOF
41652 /* end confdefs.h. */
41653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41655 #define $ac_func innocuous_$ac_func
41657 /* System header to define __stub macros and hopefully few prototypes,
41658 which can conflict with char $ac_func (); below.
41659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41660 <limits.h> exists even on freestanding compilers. */
41662 #ifdef __STDC__
41663 # include <limits.h>
41664 #else
41665 # include <assert.h>
41666 #endif
41668 #undef $ac_func
41670 /* Override any GCC internal prototype to avoid an error.
41671 Use char because int might match the return type of a GCC
41672 builtin and then its argument prototype would still apply. */
41673 #ifdef __cplusplus
41674 extern "C"
41675 #endif
41676 char $ac_func ();
41677 /* The GNU C library defines this for functions which it implements
41678 to always fail with ENOSYS. Some functions are actually named
41679 something starting with __ and the normal name is an alias. */
41680 #if defined __stub_$ac_func || defined __stub___$ac_func
41681 choke me
41682 #endif
41685 main ()
41687 return $ac_func ();
41689 return 0;
41691 _ACEOF
41692 rm -f conftest.$ac_objext conftest$ac_exeext
41693 if { (ac_try="$ac_link"
41694 case "(($ac_try" in
41695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41696 *) ac_try_echo=$ac_try;;
41697 esac
41698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41699 (eval "$ac_link") 2>conftest.er1
41700 ac_status=$?
41701 grep -v '^ *+' conftest.er1 >conftest.err
41702 rm -f conftest.er1
41703 cat conftest.err >&5
41704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41705 (exit $ac_status); } &&
41706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41707 { (case "(($ac_try" in
41708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41709 *) ac_try_echo=$ac_try;;
41710 esac
41711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41712 (eval "$ac_try") 2>&5
41713 ac_status=$?
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); }; } &&
41716 { ac_try='test -s conftest$ac_exeext'
41717 { (case "(($ac_try" in
41718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41719 *) ac_try_echo=$ac_try;;
41720 esac
41721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41722 (eval "$ac_try") 2>&5
41723 ac_status=$?
41724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725 (exit $ac_status); }; }; then
41726 eval "$as_ac_var=yes"
41727 else
41728 echo "$as_me: failed program was:" >&5
41729 sed 's/^/| /' conftest.$ac_ext >&5
41731 eval "$as_ac_var=no"
41734 rm -f core conftest.err conftest.$ac_objext \
41735 conftest$ac_exeext conftest.$ac_ext
41737 ac_res=`eval echo '${'$as_ac_var'}'`
41738 { echo "$as_me:$LINENO: result: $ac_res" >&5
41739 echo "${ECHO_T}$ac_res" >&6; }
41740 if test `eval echo '${'$as_ac_var'}'` = yes; then
41741 cat >>confdefs.h <<_ACEOF
41742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41743 _ACEOF
41744 cat >>confdefs.h <<\_ACEOF
41745 #define BX_HAVE_COLOR_SET 1
41746 _ACEOF
41749 done
41752 for ac_func in mvhline
41754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41758 echo $ECHO_N "(cached) $ECHO_C" >&6
41759 else
41760 cat >conftest.$ac_ext <<_ACEOF
41761 /* confdefs.h. */
41762 _ACEOF
41763 cat confdefs.h >>conftest.$ac_ext
41764 cat >>conftest.$ac_ext <<_ACEOF
41765 /* end confdefs.h. */
41766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41768 #define $ac_func innocuous_$ac_func
41770 /* System header to define __stub macros and hopefully few prototypes,
41771 which can conflict with char $ac_func (); below.
41772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41773 <limits.h> exists even on freestanding compilers. */
41775 #ifdef __STDC__
41776 # include <limits.h>
41777 #else
41778 # include <assert.h>
41779 #endif
41781 #undef $ac_func
41783 /* Override any GCC internal prototype to avoid an error.
41784 Use char because int might match the return type of a GCC
41785 builtin and then its argument prototype would still apply. */
41786 #ifdef __cplusplus
41787 extern "C"
41788 #endif
41789 char $ac_func ();
41790 /* The GNU C library defines this for functions which it implements
41791 to always fail with ENOSYS. Some functions are actually named
41792 something starting with __ and the normal name is an alias. */
41793 #if defined __stub_$ac_func || defined __stub___$ac_func
41794 choke me
41795 #endif
41798 main ()
41800 return $ac_func ();
41802 return 0;
41804 _ACEOF
41805 rm -f conftest.$ac_objext conftest$ac_exeext
41806 if { (ac_try="$ac_link"
41807 case "(($ac_try" in
41808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41809 *) ac_try_echo=$ac_try;;
41810 esac
41811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41812 (eval "$ac_link") 2>conftest.er1
41813 ac_status=$?
41814 grep -v '^ *+' conftest.er1 >conftest.err
41815 rm -f conftest.er1
41816 cat conftest.err >&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); } &&
41819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41820 { (case "(($ac_try" in
41821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41822 *) ac_try_echo=$ac_try;;
41823 esac
41824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41825 (eval "$ac_try") 2>&5
41826 ac_status=$?
41827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41828 (exit $ac_status); }; } &&
41829 { ac_try='test -s conftest$ac_exeext'
41830 { (case "(($ac_try" in
41831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41832 *) ac_try_echo=$ac_try;;
41833 esac
41834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41835 (eval "$ac_try") 2>&5
41836 ac_status=$?
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; }; then
41839 eval "$as_ac_var=yes"
41840 else
41841 echo "$as_me: failed program was:" >&5
41842 sed 's/^/| /' conftest.$ac_ext >&5
41844 eval "$as_ac_var=no"
41847 rm -f core conftest.err conftest.$ac_objext \
41848 conftest$ac_exeext conftest.$ac_ext
41850 ac_res=`eval echo '${'$as_ac_var'}'`
41851 { echo "$as_me:$LINENO: result: $ac_res" >&5
41852 echo "${ECHO_T}$ac_res" >&6; }
41853 if test `eval echo '${'$as_ac_var'}'` = yes; then
41854 cat >>confdefs.h <<_ACEOF
41855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41856 _ACEOF
41857 cat >>confdefs.h <<\_ACEOF
41858 #define BX_HAVE_MVHLINE 1
41859 _ACEOF
41862 done
41865 for ac_func in mvvline
41867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41871 echo $ECHO_N "(cached) $ECHO_C" >&6
41872 else
41873 cat >conftest.$ac_ext <<_ACEOF
41874 /* confdefs.h. */
41875 _ACEOF
41876 cat confdefs.h >>conftest.$ac_ext
41877 cat >>conftest.$ac_ext <<_ACEOF
41878 /* end confdefs.h. */
41879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41881 #define $ac_func innocuous_$ac_func
41883 /* System header to define __stub macros and hopefully few prototypes,
41884 which can conflict with char $ac_func (); below.
41885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41886 <limits.h> exists even on freestanding compilers. */
41888 #ifdef __STDC__
41889 # include <limits.h>
41890 #else
41891 # include <assert.h>
41892 #endif
41894 #undef $ac_func
41896 /* Override any GCC internal prototype to avoid an error.
41897 Use char because int might match the return type of a GCC
41898 builtin and then its argument prototype would still apply. */
41899 #ifdef __cplusplus
41900 extern "C"
41901 #endif
41902 char $ac_func ();
41903 /* The GNU C library defines this for functions which it implements
41904 to always fail with ENOSYS. Some functions are actually named
41905 something starting with __ and the normal name is an alias. */
41906 #if defined __stub_$ac_func || defined __stub___$ac_func
41907 choke me
41908 #endif
41911 main ()
41913 return $ac_func ();
41915 return 0;
41917 _ACEOF
41918 rm -f conftest.$ac_objext conftest$ac_exeext
41919 if { (ac_try="$ac_link"
41920 case "(($ac_try" in
41921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41922 *) ac_try_echo=$ac_try;;
41923 esac
41924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41925 (eval "$ac_link") 2>conftest.er1
41926 ac_status=$?
41927 grep -v '^ *+' conftest.er1 >conftest.err
41928 rm -f conftest.er1
41929 cat conftest.err >&5
41930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41931 (exit $ac_status); } &&
41932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41933 { (case "(($ac_try" in
41934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41935 *) ac_try_echo=$ac_try;;
41936 esac
41937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41938 (eval "$ac_try") 2>&5
41939 ac_status=$?
41940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41941 (exit $ac_status); }; } &&
41942 { ac_try='test -s conftest$ac_exeext'
41943 { (case "(($ac_try" in
41944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41945 *) ac_try_echo=$ac_try;;
41946 esac
41947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41948 (eval "$ac_try") 2>&5
41949 ac_status=$?
41950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41951 (exit $ac_status); }; }; then
41952 eval "$as_ac_var=yes"
41953 else
41954 echo "$as_me: failed program was:" >&5
41955 sed 's/^/| /' conftest.$ac_ext >&5
41957 eval "$as_ac_var=no"
41960 rm -f core conftest.err conftest.$ac_objext \
41961 conftest$ac_exeext conftest.$ac_ext
41963 ac_res=`eval echo '${'$as_ac_var'}'`
41964 { echo "$as_me:$LINENO: result: $ac_res" >&5
41965 echo "${ECHO_T}$ac_res" >&6; }
41966 if test `eval echo '${'$as_ac_var'}'` = yes; then
41967 cat >>confdefs.h <<_ACEOF
41968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41969 _ACEOF
41970 cat >>confdefs.h <<\_ACEOF
41971 #define BX_HAVE_MVVLINE 1
41972 _ACEOF
41975 done
41977 LIBS="$old_LIBS"
41980 if test "$with_rfb" = yes; then
41981 # we need the socket function
41982 case $target in
41983 *-pc-windows*)
41984 # is this okay without a check ?
41985 RFB_LIBS="$RFB_LIBS wsock32.lib"
41986 have_socket=yes
41988 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
41989 # is this okay without a check ?
41990 RFB_LIBS="$RFB_LIBS -lwsock32"
41991 have_socket=yes
41995 for ac_func in socket
41997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41998 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42001 echo $ECHO_N "(cached) $ECHO_C" >&6
42002 else
42003 cat >conftest.$ac_ext <<_ACEOF
42004 /* confdefs.h. */
42005 _ACEOF
42006 cat confdefs.h >>conftest.$ac_ext
42007 cat >>conftest.$ac_ext <<_ACEOF
42008 /* end confdefs.h. */
42009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42011 #define $ac_func innocuous_$ac_func
42013 /* System header to define __stub macros and hopefully few prototypes,
42014 which can conflict with char $ac_func (); below.
42015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42016 <limits.h> exists even on freestanding compilers. */
42018 #ifdef __STDC__
42019 # include <limits.h>
42020 #else
42021 # include <assert.h>
42022 #endif
42024 #undef $ac_func
42026 /* Override any GCC internal prototype to avoid an error.
42027 Use char because int might match the return type of a GCC
42028 builtin and then its argument prototype would still apply. */
42029 #ifdef __cplusplus
42030 extern "C"
42031 #endif
42032 char $ac_func ();
42033 /* The GNU C library defines this for functions which it implements
42034 to always fail with ENOSYS. Some functions are actually named
42035 something starting with __ and the normal name is an alias. */
42036 #if defined __stub_$ac_func || defined __stub___$ac_func
42037 choke me
42038 #endif
42041 main ()
42043 return $ac_func ();
42045 return 0;
42047 _ACEOF
42048 rm -f conftest.$ac_objext conftest$ac_exeext
42049 if { (ac_try="$ac_link"
42050 case "(($ac_try" in
42051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42052 *) ac_try_echo=$ac_try;;
42053 esac
42054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42055 (eval "$ac_link") 2>conftest.er1
42056 ac_status=$?
42057 grep -v '^ *+' conftest.er1 >conftest.err
42058 rm -f conftest.er1
42059 cat conftest.err >&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } &&
42062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42063 { (case "(($ac_try" in
42064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42065 *) ac_try_echo=$ac_try;;
42066 esac
42067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42068 (eval "$ac_try") 2>&5
42069 ac_status=$?
42070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071 (exit $ac_status); }; } &&
42072 { ac_try='test -s conftest$ac_exeext'
42073 { (case "(($ac_try" in
42074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42075 *) ac_try_echo=$ac_try;;
42076 esac
42077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42078 (eval "$ac_try") 2>&5
42079 ac_status=$?
42080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081 (exit $ac_status); }; }; then
42082 eval "$as_ac_var=yes"
42083 else
42084 echo "$as_me: failed program was:" >&5
42085 sed 's/^/| /' conftest.$ac_ext >&5
42087 eval "$as_ac_var=no"
42090 rm -f core conftest.err conftest.$ac_objext \
42091 conftest$ac_exeext conftest.$ac_ext
42093 ac_res=`eval echo '${'$as_ac_var'}'`
42094 { echo "$as_me:$LINENO: result: $ac_res" >&5
42095 echo "${ECHO_T}$ac_res" >&6; }
42096 if test `eval echo '${'$as_ac_var'}'` = yes; then
42097 cat >>confdefs.h <<_ACEOF
42098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42099 _ACEOF
42100 have_socket=yes
42102 done
42104 if test "$have_socket" != yes; then
42105 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42106 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
42107 if test "${ac_cv_lib_socket_socket+set}" = set; then
42108 echo $ECHO_N "(cached) $ECHO_C" >&6
42109 else
42110 ac_check_lib_save_LIBS=$LIBS
42111 LIBS="-lsocket $LIBS"
42112 cat >conftest.$ac_ext <<_ACEOF
42113 /* confdefs.h. */
42114 _ACEOF
42115 cat confdefs.h >>conftest.$ac_ext
42116 cat >>conftest.$ac_ext <<_ACEOF
42117 /* end confdefs.h. */
42119 /* Override any GCC internal prototype to avoid an error.
42120 Use char because int might match the return type of a GCC
42121 builtin and then its argument prototype would still apply. */
42122 #ifdef __cplusplus
42123 extern "C"
42124 #endif
42125 char socket ();
42127 main ()
42129 return socket ();
42131 return 0;
42133 _ACEOF
42134 rm -f conftest.$ac_objext conftest$ac_exeext
42135 if { (ac_try="$ac_link"
42136 case "(($ac_try" in
42137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42138 *) ac_try_echo=$ac_try;;
42139 esac
42140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42141 (eval "$ac_link") 2>conftest.er1
42142 ac_status=$?
42143 grep -v '^ *+' conftest.er1 >conftest.err
42144 rm -f conftest.er1
42145 cat conftest.err >&5
42146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147 (exit $ac_status); } &&
42148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42149 { (case "(($ac_try" in
42150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42151 *) ac_try_echo=$ac_try;;
42152 esac
42153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42154 (eval "$ac_try") 2>&5
42155 ac_status=$?
42156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42157 (exit $ac_status); }; } &&
42158 { ac_try='test -s conftest$ac_exeext'
42159 { (case "(($ac_try" in
42160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42161 *) ac_try_echo=$ac_try;;
42162 esac
42163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42164 (eval "$ac_try") 2>&5
42165 ac_status=$?
42166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42167 (exit $ac_status); }; }; then
42168 ac_cv_lib_socket_socket=yes
42169 else
42170 echo "$as_me: failed program was:" >&5
42171 sed 's/^/| /' conftest.$ac_ext >&5
42173 ac_cv_lib_socket_socket=no
42176 rm -f core conftest.err conftest.$ac_objext \
42177 conftest$ac_exeext conftest.$ac_ext
42178 LIBS=$ac_check_lib_save_LIBS
42180 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42181 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
42182 if test $ac_cv_lib_socket_socket = yes; then
42184 RFB_LIBS="$RFB_LIBS -lsocket"
42185 have_socket=yes
42191 esac
42192 if test "$have_socket" != yes; then
42193 echo 'ERROR: socket function required for RFB compile'
42194 exit 1
42198 # The ACX_PTHREAD function was written by
42199 # Steven G. Johnson <stevenj@alum.mit.edu> and
42200 # Alejandro Forero Cuervo <bachue@bachue.com>
42201 # I found it in the ac-archive project on Source Forge.
42204 pthread_ok=no
42207 acx_pthread_ok=no
42209 # First, check if the POSIX threads header, pthread.h, is available.
42210 # If it isn't, don't bother looking for the threads libraries.
42211 if test "${ac_cv_header_pthread_h+set}" = set; then
42212 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42213 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42214 if test "${ac_cv_header_pthread_h+set}" = set; then
42215 echo $ECHO_N "(cached) $ECHO_C" >&6
42217 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42219 else
42220 # Is the header compilable?
42221 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
42222 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
42223 cat >conftest.$ac_ext <<_ACEOF
42224 /* confdefs.h. */
42225 _ACEOF
42226 cat confdefs.h >>conftest.$ac_ext
42227 cat >>conftest.$ac_ext <<_ACEOF
42228 /* end confdefs.h. */
42229 $ac_includes_default
42230 #include <pthread.h>
42231 _ACEOF
42232 rm -f conftest.$ac_objext
42233 if { (ac_try="$ac_compile"
42234 case "(($ac_try" in
42235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42236 *) ac_try_echo=$ac_try;;
42237 esac
42238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42239 (eval "$ac_compile") 2>conftest.er1
42240 ac_status=$?
42241 grep -v '^ *+' conftest.er1 >conftest.err
42242 rm -f conftest.er1
42243 cat conftest.err >&5
42244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42245 (exit $ac_status); } &&
42246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42247 { (case "(($ac_try" in
42248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42249 *) ac_try_echo=$ac_try;;
42250 esac
42251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42252 (eval "$ac_try") 2>&5
42253 ac_status=$?
42254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42255 (exit $ac_status); }; } &&
42256 { ac_try='test -s conftest.$ac_objext'
42257 { (case "(($ac_try" in
42258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42259 *) ac_try_echo=$ac_try;;
42260 esac
42261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42262 (eval "$ac_try") 2>&5
42263 ac_status=$?
42264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42265 (exit $ac_status); }; }; then
42266 ac_header_compiler=yes
42267 else
42268 echo "$as_me: failed program was:" >&5
42269 sed 's/^/| /' conftest.$ac_ext >&5
42271 ac_header_compiler=no
42274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42276 echo "${ECHO_T}$ac_header_compiler" >&6; }
42278 # Is the header present?
42279 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
42280 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
42281 cat >conftest.$ac_ext <<_ACEOF
42282 /* confdefs.h. */
42283 _ACEOF
42284 cat confdefs.h >>conftest.$ac_ext
42285 cat >>conftest.$ac_ext <<_ACEOF
42286 /* end confdefs.h. */
42287 #include <pthread.h>
42288 _ACEOF
42289 if { (ac_try="$ac_cpp conftest.$ac_ext"
42290 case "(($ac_try" in
42291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42292 *) ac_try_echo=$ac_try;;
42293 esac
42294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42296 ac_status=$?
42297 grep -v '^ *+' conftest.er1 >conftest.err
42298 rm -f conftest.er1
42299 cat conftest.err >&5
42300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42301 (exit $ac_status); } >/dev/null; then
42302 if test -s conftest.err; then
42303 ac_cpp_err=$ac_c_preproc_warn_flag
42304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42305 else
42306 ac_cpp_err=
42308 else
42309 ac_cpp_err=yes
42311 if test -z "$ac_cpp_err"; then
42312 ac_header_preproc=yes
42313 else
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42317 ac_header_preproc=no
42320 rm -f conftest.err conftest.$ac_ext
42321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42322 echo "${ECHO_T}$ac_header_preproc" >&6; }
42324 # So? What about this header?
42325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42326 yes:no: )
42327 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
42328 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42329 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
42330 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
42331 ac_header_preproc=yes
42333 no:yes:* )
42334 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
42335 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
42336 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
42337 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
42338 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
42339 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
42340 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
42341 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
42342 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
42343 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
42344 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
42345 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
42348 esac
42349 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42350 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42351 if test "${ac_cv_header_pthread_h+set}" = set; then
42352 echo $ECHO_N "(cached) $ECHO_C" >&6
42353 else
42354 ac_cv_header_pthread_h=$ac_header_preproc
42356 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42357 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42360 if test $ac_cv_header_pthread_h = yes; then
42362 else
42363 acx_pthread_ok=noheader
42368 # We must check for the threads library under a number of different
42369 # names; the ordering is very important because some systems
42370 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
42371 # libraries is broken (non-POSIX).
42373 # First of all, check if the user has set any of the PTHREAD_LIBS,
42374 # etcetera environment variables, and if threads linking works using
42375 # them:
42376 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
42377 save_CFLAGS="$CFLAGS"
42378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42379 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42380 save_LIBS="$LIBS"
42381 LIBS="$PTHREAD_LIBS $LIBS"
42382 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
42383 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
42384 cat >conftest.$ac_ext <<_ACEOF
42385 /* confdefs.h. */
42386 _ACEOF
42387 cat confdefs.h >>conftest.$ac_ext
42388 cat >>conftest.$ac_ext <<_ACEOF
42389 /* end confdefs.h. */
42391 /* Override any GCC internal prototype to avoid an error.
42392 Use char because int might match the return type of a GCC
42393 builtin and then its argument prototype would still apply. */
42394 #ifdef __cplusplus
42395 extern "C"
42396 #endif
42397 char pthread_join ();
42399 main ()
42401 return pthread_join ();
42403 return 0;
42405 _ACEOF
42406 rm -f conftest.$ac_objext conftest$ac_exeext
42407 if { (ac_try="$ac_link"
42408 case "(($ac_try" in
42409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42410 *) ac_try_echo=$ac_try;;
42411 esac
42412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42413 (eval "$ac_link") 2>conftest.er1
42414 ac_status=$?
42415 grep -v '^ *+' conftest.er1 >conftest.err
42416 rm -f conftest.er1
42417 cat conftest.err >&5
42418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42419 (exit $ac_status); } &&
42420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42421 { (case "(($ac_try" in
42422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42423 *) ac_try_echo=$ac_try;;
42424 esac
42425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42426 (eval "$ac_try") 2>&5
42427 ac_status=$?
42428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42429 (exit $ac_status); }; } &&
42430 { ac_try='test -s conftest$ac_exeext'
42431 { (case "(($ac_try" in
42432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42433 *) ac_try_echo=$ac_try;;
42434 esac
42435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42436 (eval "$ac_try") 2>&5
42437 ac_status=$?
42438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42439 (exit $ac_status); }; }; then
42440 acx_pthread_ok=yes
42441 else
42442 echo "$as_me: failed program was:" >&5
42443 sed 's/^/| /' conftest.$ac_ext >&5
42448 rm -f core conftest.err conftest.$ac_objext \
42449 conftest$ac_exeext conftest.$ac_ext
42450 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42451 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42452 if test x"$acx_pthread_ok" = xno; then
42453 PTHREAD_LIBS=""
42454 PTHREAD_CFLAGS=""
42456 LIBS="$save_LIBS"
42457 CFLAGS="$save_CFLAGS"
42460 # Create a list of thread flags to try. Items starting with a "-" are
42461 # C compiler flags, and other items are library names, except for "none"
42462 # which indicates that we try without any flags at all.
42464 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
42466 # The ordering *is* (sometimes) important. Some notes on the
42467 # individual items follow:
42469 # pthreads: AIX (must check this before -lpthread)
42470 # none: in case threads are in libc; should be tried before -Kthread and
42471 # other compiler flags to prevent continual compiler warnings
42472 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
42473 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
42474 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
42475 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
42476 # -pthreads: Solaris/gcc
42477 # -mthreads: Mingw32/gcc, Lynx/gcc
42478 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
42479 # doesn't hurt to check since this sometimes defines pthreads too;
42480 # also defines -D_REENTRANT)
42481 # pthread: Linux, etcetera
42482 # --thread-safe: KAI C++
42484 case "${host_cpu}-${host_os}" in
42485 *solaris*)
42487 # On Solaris (at least, for some versions), libc contains stubbed
42488 # (non-functional) versions of the pthreads routines, so link-based
42489 # tests will erroneously succeed. (We need to link with -pthread or
42490 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
42491 # a function called by this macro, so we could check for that, but
42492 # who knows whether they'll stub that too in a future libc.) So,
42493 # we'll just look for -pthreads and -lpthread first:
42495 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
42497 esac
42499 if test x"$acx_pthread_ok" = xno; then
42500 for flag in $acx_pthread_flags; do
42502 case $flag in
42503 none)
42504 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42505 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42509 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42510 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42511 PTHREAD_CFLAGS="$flag"
42515 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42516 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42517 PTHREAD_LIBS="-l$flag"
42519 esac
42521 save_LIBS="$LIBS"
42522 save_CFLAGS="$CFLAGS"
42523 LIBS="$PTHREAD_LIBS $LIBS"
42524 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42526 # Check for various functions. We must include pthread.h,
42527 # since some functions may be macros. (On the Sequent, we
42528 # need a special flag -Kthread to make this header compile.)
42529 # We check for pthread_join because it is in -lpthread on IRIX
42530 # while pthread_create is in libc. We check for pthread_attr_init
42531 # due to DEC craziness with -lpthreads. We check for
42532 # pthread_cleanup_push because it is one of the few pthread
42533 # functions on Solaris that doesn't have a non-functional libc stub.
42534 # We try pthread_create on general principles.
42535 cat >conftest.$ac_ext <<_ACEOF
42536 /* confdefs.h. */
42537 _ACEOF
42538 cat confdefs.h >>conftest.$ac_ext
42539 cat >>conftest.$ac_ext <<_ACEOF
42540 /* end confdefs.h. */
42541 #include <pthread.h>
42543 main ()
42545 pthread_t th; pthread_join(th, 0);
42546 pthread_attr_init(0); pthread_cleanup_push(0, 0);
42547 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
42549 return 0;
42551 _ACEOF
42552 rm -f conftest.$ac_objext conftest$ac_exeext
42553 if { (ac_try="$ac_link"
42554 case "(($ac_try" in
42555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42556 *) ac_try_echo=$ac_try;;
42557 esac
42558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42559 (eval "$ac_link") 2>conftest.er1
42560 ac_status=$?
42561 grep -v '^ *+' conftest.er1 >conftest.err
42562 rm -f conftest.er1
42563 cat conftest.err >&5
42564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42565 (exit $ac_status); } &&
42566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42567 { (case "(($ac_try" in
42568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42569 *) ac_try_echo=$ac_try;;
42570 esac
42571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42572 (eval "$ac_try") 2>&5
42573 ac_status=$?
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); }; } &&
42576 { ac_try='test -s conftest$ac_exeext'
42577 { (case "(($ac_try" in
42578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42579 *) ac_try_echo=$ac_try;;
42580 esac
42581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42582 (eval "$ac_try") 2>&5
42583 ac_status=$?
42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585 (exit $ac_status); }; }; then
42586 acx_pthread_ok=yes
42587 else
42588 echo "$as_me: failed program was:" >&5
42589 sed 's/^/| /' conftest.$ac_ext >&5
42594 rm -f core conftest.err conftest.$ac_objext \
42595 conftest$ac_exeext conftest.$ac_ext
42597 LIBS="$save_LIBS"
42598 CFLAGS="$save_CFLAGS"
42600 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42601 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42602 if test "x$acx_pthread_ok" = xyes; then
42603 break;
42606 PTHREAD_LIBS=""
42607 PTHREAD_CFLAGS=""
42608 done
42611 # Various other checks:
42612 if test "x$acx_pthread_ok" = xyes; then
42613 save_LIBS="$LIBS"
42614 LIBS="$PTHREAD_LIBS $LIBS"
42615 save_CFLAGS="$CFLAGS"
42616 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42618 # Detect AIX lossage: threads are created detached by default
42619 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
42620 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
42621 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
42622 cat >conftest.$ac_ext <<_ACEOF
42623 /* confdefs.h. */
42624 _ACEOF
42625 cat confdefs.h >>conftest.$ac_ext
42626 cat >>conftest.$ac_ext <<_ACEOF
42627 /* end confdefs.h. */
42628 #include <pthread.h>
42630 main ()
42632 int attr=PTHREAD_CREATE_JOINABLE;
42634 return 0;
42636 _ACEOF
42637 rm -f conftest.$ac_objext conftest$ac_exeext
42638 if { (ac_try="$ac_link"
42639 case "(($ac_try" in
42640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641 *) ac_try_echo=$ac_try;;
42642 esac
42643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42644 (eval "$ac_link") 2>conftest.er1
42645 ac_status=$?
42646 grep -v '^ *+' conftest.er1 >conftest.err
42647 rm -f conftest.er1
42648 cat conftest.err >&5
42649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650 (exit $ac_status); } &&
42651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42652 { (case "(($ac_try" in
42653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42654 *) ac_try_echo=$ac_try;;
42655 esac
42656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42657 (eval "$ac_try") 2>&5
42658 ac_status=$?
42659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660 (exit $ac_status); }; } &&
42661 { ac_try='test -s conftest$ac_exeext'
42662 { (case "(($ac_try" in
42663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42664 *) ac_try_echo=$ac_try;;
42665 esac
42666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42667 (eval "$ac_try") 2>&5
42668 ac_status=$?
42669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42670 (exit $ac_status); }; }; then
42671 ok=PTHREAD_CREATE_JOINABLE
42672 else
42673 echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42676 ok=unknown
42679 rm -f core conftest.err conftest.$ac_objext \
42680 conftest$ac_exeext conftest.$ac_ext
42681 if test x"$ok" = xunknown; then
42682 cat >conftest.$ac_ext <<_ACEOF
42683 /* confdefs.h. */
42684 _ACEOF
42685 cat confdefs.h >>conftest.$ac_ext
42686 cat >>conftest.$ac_ext <<_ACEOF
42687 /* end confdefs.h. */
42688 #include <pthread.h>
42690 main ()
42692 int attr=PTHREAD_CREATE_UNDETACHED;
42694 return 0;
42696 _ACEOF
42697 rm -f conftest.$ac_objext conftest$ac_exeext
42698 if { (ac_try="$ac_link"
42699 case "(($ac_try" in
42700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42701 *) ac_try_echo=$ac_try;;
42702 esac
42703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42704 (eval "$ac_link") 2>conftest.er1
42705 ac_status=$?
42706 grep -v '^ *+' conftest.er1 >conftest.err
42707 rm -f conftest.er1
42708 cat conftest.err >&5
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); } &&
42711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42712 { (case "(($ac_try" in
42713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42714 *) ac_try_echo=$ac_try;;
42715 esac
42716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42717 (eval "$ac_try") 2>&5
42718 ac_status=$?
42719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42720 (exit $ac_status); }; } &&
42721 { ac_try='test -s conftest$ac_exeext'
42722 { (case "(($ac_try" in
42723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42724 *) ac_try_echo=$ac_try;;
42725 esac
42726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42727 (eval "$ac_try") 2>&5
42728 ac_status=$?
42729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42730 (exit $ac_status); }; }; then
42731 ok=PTHREAD_CREATE_UNDETACHED
42732 else
42733 echo "$as_me: failed program was:" >&5
42734 sed 's/^/| /' conftest.$ac_ext >&5
42736 ok=unknown
42739 rm -f core conftest.err conftest.$ac_objext \
42740 conftest$ac_exeext conftest.$ac_ext
42742 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
42744 cat >>confdefs.h <<\_ACEOF
42745 #define PTHREAD_CREATE_JOINABLE $ok
42746 _ACEOF
42749 { echo "$as_me:$LINENO: result: ${ok}" >&5
42750 echo "${ECHO_T}${ok}" >&6; }
42751 if test x"$ok" = xunknown; then
42752 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
42753 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
42756 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
42757 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
42758 flag=no
42759 case "${host_cpu}-${host_os}" in
42760 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
42761 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
42762 esac
42763 { echo "$as_me:$LINENO: result: ${flag}" >&5
42764 echo "${ECHO_T}${flag}" >&6; }
42765 if test "x$flag" != xno; then
42766 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
42769 LIBS="$save_LIBS"
42770 CFLAGS="$save_CFLAGS"
42772 # More AIX lossage: must compile with cc_r
42773 # Extract the first word of "cc_r", so it can be a program name with args.
42774 set dummy cc_r; ac_word=$2
42775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42777 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
42778 echo $ECHO_N "(cached) $ECHO_C" >&6
42779 else
42780 if test -n "$PTHREAD_CC"; then
42781 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
42782 else
42783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42784 for as_dir in $PATH
42786 IFS=$as_save_IFS
42787 test -z "$as_dir" && as_dir=.
42788 for ac_exec_ext in '' $ac_executable_extensions; do
42789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
42790 ac_cv_prog_PTHREAD_CC="cc_r"
42791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42792 break 2
42794 done
42795 done
42796 IFS=$as_save_IFS
42798 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
42801 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
42802 if test -n "$PTHREAD_CC"; then
42803 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
42804 echo "${ECHO_T}$PTHREAD_CC" >&6; }
42805 else
42806 { echo "$as_me:$LINENO: result: no" >&5
42807 echo "${ECHO_T}no" >&6; }
42811 else
42812 PTHREAD_CC="$CC"
42819 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
42820 if test x"$acx_pthread_ok" = xyes; then
42822 pthread_ok=yes
42823 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
42824 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
42825 #echo Using PTHREAD_CC=$PTHREAD_CC
42828 else
42829 acx_pthread_ok=no
42836 # since RFB (usually) needs pthread library, check that it was found.
42837 # But on win32 platforms, the pthread library is not needed.
42838 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
42839 if test "$pthread_ok" = yes; then
42840 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
42841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42842 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42843 CC="$PTHREAD_CC"
42844 else
42845 case "$target" in
42846 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
42847 # pthread not needed for win32 platform
42850 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
42851 esac
42856 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
42857 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
42858 # Check whether --enable-magic-breakpoints was given.
42859 if test "${enable_magic_breakpoints+set}" = set; then
42860 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
42861 echo "${ECHO_T}$enableval" >&6; }
42862 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
42863 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
42864 { (exit 1); exit 1; }; }
42866 else
42868 { echo "$as_me:$LINENO: result: no" >&5
42869 echo "${ECHO_T}no" >&6; }
42874 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
42875 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
42876 # Check whether --enable-save-restore was given.
42877 if test "${enable_save_restore+set}" = set; then
42878 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
42879 echo "${ECHO_T}$enableval" >&6; }
42880 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
42881 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
42882 { (exit 1); exit 1; }; }
42884 else
42886 { echo "$as_me:$LINENO: result: no" >&5
42887 echo "${ECHO_T}no" >&6; }
42892 { echo "$as_me:$LINENO: checking whether to reset on triple fault (deprecated)" >&5
42893 echo $ECHO_N "checking whether to reset on triple fault (deprecated)... $ECHO_C" >&6; }
42894 # Check whether --enable-reset-on-triple-fault was given.
42895 if test "${enable_reset_on_triple_fault+set}" = set; then
42896 enableval=$enable_reset_on_triple_fault; { echo "$as_me:$LINENO: result: $enableval" >&5
42897 echo "${ECHO_T}$enableval" >&6; }
42898 { { echo "$as_me:$LINENO: error: DEPRECATED - could be configured directly from .bochsrc instead" >&5
42899 echo "$as_me: error: DEPRECATED - could be configured directly from .bochsrc instead" >&2;}
42900 { (exit 1); exit 1; }; }
42902 else
42904 { echo "$as_me:$LINENO: result: no" >&5
42905 echo "${ECHO_T}no" >&6; }
42910 { echo "$as_me:$LINENO: checking PNI support (deprecated)" >&5
42911 echo $ECHO_N "checking PNI support (deprecated)... $ECHO_C" >&6; }
42912 # Check whether --enable---enable-pni was given.
42913 if test "${enable___enable_pni+set}" = set; then
42914 enableval=$enable___enable_pni; { echo "$as_me:$LINENO: result: $enableval" >&5
42915 echo "${ECHO_T}$enableval" >&6; }
42916 { { echo "$as_me:$LINENO: error: DEPRECATED - use --enable-sse=3 instead" >&5
42917 echo "$as_me: error: DEPRECATED - use --enable-sse=3 instead" >&2;}
42918 { (exit 1); exit 1; }; }
42920 else
42922 { echo "$as_me:$LINENO: result: no" >&5
42923 echo "${ECHO_T}no" >&6; }
42928 # Create some subdirectories for when you run configure from some other
42929 # directory.
42930 if test ! -d instrument; then mkdir instrument; fi
42931 if test ! -d build; then mkdir build; fi
42932 if test ! -d build/linux; then mkdir build/linux; fi
42933 if test ! -d build/win32; then mkdir build/win32; fi
42934 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
42973 # Extract the first word of "gzip", so it can be a program name with args.
42974 set dummy gzip; ac_word=$2
42975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42977 if test "${ac_cv_path_GZIP+set}" = set; then
42978 echo $ECHO_N "(cached) $ECHO_C" >&6
42979 else
42980 case $GZIP in
42981 [\\/]* | ?:[\\/]*)
42982 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
42985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42986 for as_dir in $PATH
42988 IFS=$as_save_IFS
42989 test -z "$as_dir" && as_dir=.
42990 for ac_exec_ext in '' $ac_executable_extensions; do
42991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
42992 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
42993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42994 break 2
42996 done
42997 done
42998 IFS=$as_save_IFS
43001 esac
43003 GZIP=$ac_cv_path_GZIP
43004 if test -n "$GZIP"; then
43005 { echo "$as_me:$LINENO: result: $GZIP" >&5
43006 echo "${ECHO_T}$GZIP" >&6; }
43007 else
43008 { echo "$as_me:$LINENO: result: no" >&5
43009 echo "${ECHO_T}no" >&6; }
43013 # Extract the first word of "tar", so it can be a program name with args.
43014 set dummy tar; ac_word=$2
43015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43017 if test "${ac_cv_path_TAR+set}" = set; then
43018 echo $ECHO_N "(cached) $ECHO_C" >&6
43019 else
43020 case $TAR in
43021 [\\/]* | ?:[\\/]*)
43022 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
43025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43026 for as_dir in $PATH
43028 IFS=$as_save_IFS
43029 test -z "$as_dir" && as_dir=.
43030 for ac_exec_ext in '' $ac_executable_extensions; do
43031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
43032 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
43033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43034 break 2
43036 done
43037 done
43038 IFS=$as_save_IFS
43041 esac
43043 TAR=$ac_cv_path_TAR
43044 if test -n "$TAR"; then
43045 { echo "$as_me:$LINENO: result: $TAR" >&5
43046 echo "${ECHO_T}$TAR" >&6; }
43047 else
43048 { echo "$as_me:$LINENO: result: no" >&5
43049 echo "${ECHO_T}no" >&6; }
43054 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"
43056 cat >confcache <<\_ACEOF
43057 # This file is a shell script that caches the results of configure
43058 # tests run on this system so they can be shared between configure
43059 # scripts and configure runs, see configure's option --config-cache.
43060 # It is not useful on other systems. If it contains results you don't
43061 # want to keep, you may remove or edit it.
43063 # config.status only pays attention to the cache file if you give it
43064 # the --recheck option to rerun configure.
43066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43068 # following values.
43070 _ACEOF
43072 # The following way of writing the cache mishandles newlines in values,
43073 # but we know of no workaround that is simple, portable, and efficient.
43074 # So, we kill variables containing newlines.
43075 # Ultrix sh set writes to stderr and can't be redirected directly,
43076 # and sets the high bit in the cache file unless we assign to the vars.
43078 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43079 eval ac_val=\$$ac_var
43080 case $ac_val in #(
43081 *${as_nl}*)
43082 case $ac_var in #(
43083 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43084 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43085 esac
43086 case $ac_var in #(
43087 _ | IFS | as_nl) ;; #(
43088 *) $as_unset $ac_var ;;
43089 esac ;;
43090 esac
43091 done
43093 (set) 2>&1 |
43094 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43095 *${as_nl}ac_space=\ *)
43096 # `set' does not quote correctly, so add quotes (double-quote
43097 # substitution turns \\\\ into \\, and sed turns \\ into \).
43098 sed -n \
43099 "s/'/'\\\\''/g;
43100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43101 ;; #(
43103 # `set' quotes correctly as required by POSIX, so do not add quotes.
43104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43106 esac |
43107 sort
43109 sed '
43110 /^ac_cv_env_/b end
43111 t clear
43112 :clear
43113 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43114 t end
43115 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43116 :end' >>confcache
43117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43118 if test -w "$cache_file"; then
43119 test "x$cache_file" != "x/dev/null" &&
43120 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43121 echo "$as_me: updating cache $cache_file" >&6;}
43122 cat confcache >$cache_file
43123 else
43124 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43125 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43128 rm -f confcache
43130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43131 # Let make expand exec_prefix.
43132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43134 DEFS=-DHAVE_CONFIG_H
43136 ac_libobjs=
43137 ac_ltlibobjs=
43138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43139 # 1. Remove the extension, and $U if already installed.
43140 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43141 ac_i=`echo "$ac_i" | sed "$ac_script"`
43142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43143 # will be set to the directory where LIBOBJS objects are built.
43144 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43145 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43146 done
43147 LIBOBJS=$ac_libobjs
43149 LTLIBOBJS=$ac_ltlibobjs
43153 : ${CONFIG_STATUS=./config.status}
43154 ac_clean_files_save=$ac_clean_files
43155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43158 cat >$CONFIG_STATUS <<_ACEOF
43159 #! $SHELL
43160 # Generated by $as_me.
43161 # Run this file to recreate the current configuration.
43162 # Compiler output produced by configure, useful for debugging
43163 # configure, is in config.log if it exists.
43165 debug=false
43166 ac_cs_recheck=false
43167 ac_cs_silent=false
43168 SHELL=\${CONFIG_SHELL-$SHELL}
43169 _ACEOF
43171 cat >>$CONFIG_STATUS <<\_ACEOF
43172 ## --------------------- ##
43173 ## M4sh Initialization. ##
43174 ## --------------------- ##
43176 # Be Bourne compatible
43177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43178 emulate sh
43179 NULLCMD=:
43180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43181 # is contrary to our usage. Disable this feature.
43182 alias -g '${1+"$@"}'='"$@"'
43183 setopt NO_GLOB_SUBST
43184 else
43185 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
43187 BIN_SH=xpg4; export BIN_SH # for Tru64
43188 DUALCASE=1; export DUALCASE # for MKS sh
43191 # PATH needs CR
43192 # Avoid depending upon Character Ranges.
43193 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43194 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43195 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43196 as_cr_digits='0123456789'
43197 as_cr_alnum=$as_cr_Letters$as_cr_digits
43199 # The user is always right.
43200 if test "${PATH_SEPARATOR+set}" != set; then
43201 echo "#! /bin/sh" >conf$$.sh
43202 echo "exit 0" >>conf$$.sh
43203 chmod +x conf$$.sh
43204 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43205 PATH_SEPARATOR=';'
43206 else
43207 PATH_SEPARATOR=:
43209 rm -f conf$$.sh
43212 # Support unset when possible.
43213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43214 as_unset=unset
43215 else
43216 as_unset=false
43220 # IFS
43221 # We need space, tab and new line, in precisely that order. Quoting is
43222 # there to prevent editors from complaining about space-tab.
43223 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43224 # splitting by setting IFS to empty value.)
43225 as_nl='
43227 IFS=" "" $as_nl"
43229 # Find who we are. Look in the path if we contain no directory separator.
43230 case $0 in
43231 *[\\/]* ) as_myself=$0 ;;
43232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43233 for as_dir in $PATH
43235 IFS=$as_save_IFS
43236 test -z "$as_dir" && as_dir=.
43237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43238 done
43239 IFS=$as_save_IFS
43242 esac
43243 # We did not find ourselves, most probably we were run as `sh COMMAND'
43244 # in which case we are not to be found in the path.
43245 if test "x$as_myself" = x; then
43246 as_myself=$0
43248 if test ! -f "$as_myself"; then
43249 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43250 { (exit 1); exit 1; }
43253 # Work around bugs in pre-3.0 UWIN ksh.
43254 for as_var in ENV MAIL MAILPATH
43255 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43256 done
43257 PS1='$ '
43258 PS2='> '
43259 PS4='+ '
43261 # NLS nuisances.
43262 for as_var in \
43263 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43264 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43265 LC_TELEPHONE LC_TIME
43267 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43268 eval $as_var=C; export $as_var
43269 else
43270 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43272 done
43274 # Required to use basename.
43275 if expr a : '\(a\)' >/dev/null 2>&1 &&
43276 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43277 as_expr=expr
43278 else
43279 as_expr=false
43282 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43283 as_basename=basename
43284 else
43285 as_basename=false
43289 # Name of the executable.
43290 as_me=`$as_basename -- "$0" ||
43291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43292 X"$0" : 'X\(//\)$' \| \
43293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43294 echo X/"$0" |
43295 sed '/^.*\/\([^/][^/]*\)\/*$/{
43296 s//\1/
43299 /^X\/\(\/\/\)$/{
43300 s//\1/
43303 /^X\/\(\/\).*/{
43304 s//\1/
43307 s/.*/./; q'`
43309 # CDPATH.
43310 $as_unset CDPATH
43314 as_lineno_1=$LINENO
43315 as_lineno_2=$LINENO
43316 test "x$as_lineno_1" != "x$as_lineno_2" &&
43317 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43319 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43320 # uniformly replaced by the line number. The first 'sed' inserts a
43321 # line-number line after each line using $LINENO; the second 'sed'
43322 # does the real work. The second script uses 'N' to pair each
43323 # line-number line with the line containing $LINENO, and appends
43324 # trailing '-' during substitution so that $LINENO is not a special
43325 # case at line end.
43326 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43327 # scripts with optimization help from Paolo Bonzini. Blame Lee
43328 # E. McMahon (1931-1989) for sed's syntax. :-)
43329 sed -n '
43331 /[$]LINENO/=
43332 ' <$as_myself |
43333 sed '
43334 s/[$]LINENO.*/&-/
43335 t lineno
43337 :lineno
43339 :loop
43340 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43341 t loop
43342 s/-\n.*//
43343 ' >$as_me.lineno &&
43344 chmod +x "$as_me.lineno" ||
43345 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43346 { (exit 1); exit 1; }; }
43348 # Don't try to exec as it changes $[0], causing all sort of problems
43349 # (the dirname of $[0] is not the place where we might find the
43350 # original and so on. Autoconf is especially sensitive to this).
43351 . "./$as_me.lineno"
43352 # Exit status is that of the last command.
43353 exit
43357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43358 as_dirname=dirname
43359 else
43360 as_dirname=false
43363 ECHO_C= ECHO_N= ECHO_T=
43364 case `echo -n x` in
43365 -n*)
43366 case `echo 'x\c'` in
43367 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43368 *) ECHO_C='\c';;
43369 esac;;
43371 ECHO_N='-n';;
43372 esac
43374 if expr a : '\(a\)' >/dev/null 2>&1 &&
43375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43376 as_expr=expr
43377 else
43378 as_expr=false
43381 rm -f conf$$ conf$$.exe conf$$.file
43382 if test -d conf$$.dir; then
43383 rm -f conf$$.dir/conf$$.file
43384 else
43385 rm -f conf$$.dir
43386 mkdir conf$$.dir
43388 echo >conf$$.file
43389 if ln -s conf$$.file conf$$ 2>/dev/null; then
43390 as_ln_s='ln -s'
43391 # ... but there are two gotchas:
43392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43394 # In both cases, we have to default to `cp -p'.
43395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43396 as_ln_s='cp -p'
43397 elif ln conf$$.file conf$$ 2>/dev/null; then
43398 as_ln_s=ln
43399 else
43400 as_ln_s='cp -p'
43402 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43403 rmdir conf$$.dir 2>/dev/null
43405 if mkdir -p . 2>/dev/null; then
43406 as_mkdir_p=:
43407 else
43408 test -d ./-p && rmdir ./-p
43409 as_mkdir_p=false
43412 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
43413 # systems may use methods other than mode bits to determine executability.
43414 cat >conf$$.file <<_ASEOF
43415 #! /bin/sh
43416 exit 0
43417 _ASEOF
43418 chmod +x conf$$.file
43419 if test -x conf$$.file >/dev/null 2>&1; then
43420 as_executable_p="test -x"
43421 else
43422 as_executable_p=:
43424 rm -f conf$$.file
43426 # Sed expression to map a string onto a valid CPP name.
43427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43429 # Sed expression to map a string onto a valid variable name.
43430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43433 exec 6>&1
43435 # Save the log message, to keep $[0] and so on meaningful, and to
43436 # report actual input values of CONFIG_FILES etc. instead of their
43437 # values after options handling.
43438 ac_log="
43439 This file was extended by $as_me, which was
43440 generated by GNU Autoconf 2.60. Invocation command line was
43442 CONFIG_FILES = $CONFIG_FILES
43443 CONFIG_HEADERS = $CONFIG_HEADERS
43444 CONFIG_LINKS = $CONFIG_LINKS
43445 CONFIG_COMMANDS = $CONFIG_COMMANDS
43446 $ $0 $@
43448 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43451 _ACEOF
43453 cat >>$CONFIG_STATUS <<_ACEOF
43454 # Files that config.status was made for.
43455 config_files="$ac_config_files"
43456 config_headers="$ac_config_headers"
43458 _ACEOF
43460 cat >>$CONFIG_STATUS <<\_ACEOF
43461 ac_cs_usage="\
43462 \`$as_me' instantiates files from templates according to the
43463 current configuration.
43465 Usage: $0 [OPTIONS] [FILE]...
43467 -h, --help print this help, then exit
43468 -V, --version print version number, then exit
43469 -q, --quiet do not print progress messages
43470 -d, --debug don't remove temporary files
43471 --recheck update $as_me by reconfiguring in the same conditions
43472 --file=FILE[:TEMPLATE]
43473 instantiate the configuration file FILE
43474 --header=FILE[:TEMPLATE]
43475 instantiate the configuration header FILE
43477 Configuration files:
43478 $config_files
43480 Configuration headers:
43481 $config_headers
43483 Report bugs to <bug-autoconf@gnu.org>."
43485 _ACEOF
43486 cat >>$CONFIG_STATUS <<_ACEOF
43487 ac_cs_version="\\
43488 config.status
43489 configured by $0, generated by GNU Autoconf 2.60,
43490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43492 Copyright (C) 2006 Free Software Foundation, Inc.
43493 This config.status script is free software; the Free Software Foundation
43494 gives unlimited permission to copy, distribute and modify it."
43496 ac_pwd='$ac_pwd'
43497 srcdir='$srcdir'
43498 _ACEOF
43500 cat >>$CONFIG_STATUS <<\_ACEOF
43501 # If no file are specified by the user, then we need to provide default
43502 # value. By we need to know if files were specified by the user.
43503 ac_need_defaults=:
43504 while test $# != 0
43506 case $1 in
43507 --*=*)
43508 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43509 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43510 ac_shift=:
43513 ac_option=$1
43514 ac_optarg=$2
43515 ac_shift=shift
43517 esac
43519 case $ac_option in
43520 # Handling of the options.
43521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43522 ac_cs_recheck=: ;;
43523 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43524 echo "$ac_cs_version"; exit ;;
43525 --debug | --debu | --deb | --de | --d | -d )
43526 debug=: ;;
43527 --file | --fil | --fi | --f )
43528 $ac_shift
43529 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43530 ac_need_defaults=false;;
43531 --header | --heade | --head | --hea )
43532 $ac_shift
43533 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43534 ac_need_defaults=false;;
43535 --he | --h)
43536 # Conflict between --help and --header
43537 { echo "$as_me: error: ambiguous option: $1
43538 Try \`$0 --help' for more information." >&2
43539 { (exit 1); exit 1; }; };;
43540 --help | --hel | -h )
43541 echo "$ac_cs_usage"; exit ;;
43542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43543 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43544 ac_cs_silent=: ;;
43546 # This is an error.
43547 -*) { echo "$as_me: error: unrecognized option: $1
43548 Try \`$0 --help' for more information." >&2
43549 { (exit 1); exit 1; }; } ;;
43551 *) ac_config_targets="$ac_config_targets $1"
43552 ac_need_defaults=false ;;
43554 esac
43555 shift
43556 done
43558 ac_configure_extra_args=
43560 if $ac_cs_silent; then
43561 exec 6>/dev/null
43562 ac_configure_extra_args="$ac_configure_extra_args --silent"
43565 _ACEOF
43566 cat >>$CONFIG_STATUS <<_ACEOF
43567 if \$ac_cs_recheck; then
43568 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43569 CONFIG_SHELL=$SHELL
43570 export CONFIG_SHELL
43571 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43574 _ACEOF
43575 cat >>$CONFIG_STATUS <<\_ACEOF
43576 exec 5>>config.log
43578 echo
43579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43580 ## Running $as_me. ##
43581 _ASBOX
43582 echo "$ac_log"
43583 } >&5
43585 _ACEOF
43586 cat >>$CONFIG_STATUS <<_ACEOF
43587 _ACEOF
43589 cat >>$CONFIG_STATUS <<\_ACEOF
43591 # Handling of arguments.
43592 for ac_config_target in $ac_config_targets
43594 case $ac_config_target in
43595 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
43596 "ltdlconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
43597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43598 "iodev/Makefile") CONFIG_FILES="$CONFIG_FILES iodev/Makefile" ;;
43599 "bx_debug/Makefile") CONFIG_FILES="$CONFIG_FILES bx_debug/Makefile" ;;
43600 "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
43601 "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
43602 "memory/Makefile") CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
43603 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
43604 "disasm/Makefile") CONFIG_FILES="$CONFIG_FILES disasm/Makefile" ;;
43605 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
43606 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
43607 "fpu/Makefile") CONFIG_FILES="$CONFIG_FILES fpu/Makefile" ;;
43608 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
43609 "build/linux/bochs-dlx") CONFIG_FILES="$CONFIG_FILES build/linux/bochs-dlx" ;;
43610 "bxversion.h") CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
43611 "bxversion.rc") CONFIG_FILES="$CONFIG_FILES bxversion.rc" ;;
43612 "build/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
43613 "build/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/Makefile" ;;
43614 "build/win32/nsis/bochs.nsi") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
43615 "host/linux/pcidev/Makefile") CONFIG_FILES="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
43617 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43618 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43619 { (exit 1); exit 1; }; };;
43620 esac
43621 done
43624 # If the user did not use the arguments to specify the items to instantiate,
43625 # then the envvar interface is used. Set only those that are not.
43626 # We use the long form for the default assignment because of an extremely
43627 # bizarre bug on SunOS 4.1.3.
43628 if $ac_need_defaults; then
43629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43630 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43633 # Have a temporary directory for convenience. Make it in the build tree
43634 # simply because there is no reason against having it here, and in addition,
43635 # creating and moving files from /tmp can sometimes cause problems.
43636 # Hook for its removal unless debugging.
43637 # Note that there is a small window in which the directory will not be cleaned:
43638 # after its creation but before its name has been assigned to `$tmp'.
43639 $debug ||
43641 tmp=
43642 trap 'exit_status=$?
43643 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43645 trap '{ (exit 1); exit 1; }' 1 2 13 15
43647 # Create a (secure) tmp directory for tmp files.
43650 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43651 test -n "$tmp" && test -d "$tmp"
43652 } ||
43654 tmp=./conf$$-$RANDOM
43655 (umask 077 && mkdir "$tmp")
43656 } ||
43658 echo "$me: cannot create a temporary directory in ." >&2
43659 { (exit 1); exit 1; }
43663 # Set up the sed scripts for CONFIG_FILES section.
43666 # No need to generate the scripts if there are no CONFIG_FILES.
43667 # This happens for instance when ./config.status config.h
43668 if test -n "$CONFIG_FILES"; then
43670 _ACEOF
43674 ac_delim='%!_!# '
43675 for ac_last_try in false false false false false :; do
43676 cat >conf$$subs.sed <<_ACEOF
43677 SHELL!$SHELL$ac_delim
43678 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43679 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43680 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43681 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43682 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43683 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43684 exec_prefix!$exec_prefix$ac_delim
43685 prefix!$prefix$ac_delim
43686 program_transform_name!$program_transform_name$ac_delim
43687 bindir!$bindir$ac_delim
43688 sbindir!$sbindir$ac_delim
43689 libexecdir!$libexecdir$ac_delim
43690 datarootdir!$datarootdir$ac_delim
43691 datadir!$datadir$ac_delim
43692 sysconfdir!$sysconfdir$ac_delim
43693 sharedstatedir!$sharedstatedir$ac_delim
43694 localstatedir!$localstatedir$ac_delim
43695 includedir!$includedir$ac_delim
43696 oldincludedir!$oldincludedir$ac_delim
43697 docdir!$docdir$ac_delim
43698 infodir!$infodir$ac_delim
43699 htmldir!$htmldir$ac_delim
43700 dvidir!$dvidir$ac_delim
43701 pdfdir!$pdfdir$ac_delim
43702 psdir!$psdir$ac_delim
43703 libdir!$libdir$ac_delim
43704 localedir!$localedir$ac_delim
43705 mandir!$mandir$ac_delim
43706 DEFS!$DEFS$ac_delim
43707 ECHO_C!$ECHO_C$ac_delim
43708 ECHO_N!$ECHO_N$ac_delim
43709 ECHO_T!$ECHO_T$ac_delim
43710 LIBS!$LIBS$ac_delim
43711 build_alias!$build_alias$ac_delim
43712 host_alias!$host_alias$ac_delim
43713 target_alias!$target_alias$ac_delim
43714 build!$build$ac_delim
43715 build_cpu!$build_cpu$ac_delim
43716 build_vendor!$build_vendor$ac_delim
43717 build_os!$build_os$ac_delim
43718 host!$host$ac_delim
43719 host_cpu!$host_cpu$ac_delim
43720 host_vendor!$host_vendor$ac_delim
43721 host_os!$host_os$ac_delim
43722 target!$target$ac_delim
43723 target_cpu!$target_cpu$ac_delim
43724 target_vendor!$target_vendor$ac_delim
43725 target_os!$target_os$ac_delim
43726 CC!$CC$ac_delim
43727 CFLAGS!$CFLAGS$ac_delim
43728 LDFLAGS!$LDFLAGS$ac_delim
43729 CPPFLAGS!$CPPFLAGS$ac_delim
43730 ac_ct_CC!$ac_ct_CC$ac_delim
43731 EXEEXT!$EXEEXT$ac_delim
43732 OBJEXT!$OBJEXT$ac_delim
43733 CXX!$CXX$ac_delim
43734 CXXFLAGS!$CXXFLAGS$ac_delim
43735 ac_ct_CXX!$ac_ct_CXX$ac_delim
43736 SET_MAKE!$SET_MAKE$ac_delim
43737 GREP!$GREP$ac_delim
43738 EGREP!$EGREP$ac_delim
43739 LN_S!$LN_S$ac_delim
43740 ECHO!$ECHO$ac_delim
43741 AR!$AR$ac_delim
43742 RANLIB!$RANLIB$ac_delim
43743 STRIP!$STRIP$ac_delim
43744 CPP!$CPP$ac_delim
43745 CXXCPP!$CXXCPP$ac_delim
43746 F77!$F77$ac_delim
43747 FFLAGS!$FFLAGS$ac_delim
43748 ac_ct_F77!$ac_ct_F77$ac_delim
43749 LIBTOOL!$LIBTOOL$ac_delim
43750 LIBADD_DL!$LIBADD_DL$ac_delim
43751 XMKMF!$XMKMF$ac_delim
43752 X_CFLAGS!$X_CFLAGS$ac_delim
43753 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43754 X_LIBS!$X_LIBS$ac_delim
43755 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43756 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
43757 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
43758 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
43759 OBJS64!$OBJS64$ac_delim
43760 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
43761 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
43762 NE2K_OBJS!$NE2K_OBJS$ac_delim
43763 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
43764 PCI_OBJ!$PCI_OBJ$ac_delim
43765 KERNELDIR!$KERNELDIR$ac_delim
43766 LSMOD!$LSMOD$ac_delim
43767 INSMOD!$INSMOD$ac_delim
43768 RMMOD!$RMMOD$ac_delim
43769 DEPMOD!$DEPMOD$ac_delim
43770 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
43771 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
43772 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
43773 SCSI_OBJS!$SCSI_OBJS$ac_delim
43774 _ACEOF
43776 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43777 break
43778 elif $ac_last_try; then
43779 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43780 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43781 { (exit 1); exit 1; }; }
43782 else
43783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43785 done
43787 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43788 if test -n "$ac_eof"; then
43789 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43790 ac_eof=`expr $ac_eof + 1`
43793 cat >>$CONFIG_STATUS <<_ACEOF
43794 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43796 _ACEOF
43797 sed '
43798 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43799 s/^/s,@/; s/!/@,|#_!!_#|/
43802 s/'"$ac_delim"'$/,g/; t
43803 s/$/\\/; p
43804 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43805 ' >>$CONFIG_STATUS <conf$$subs.sed
43806 rm -f conf$$subs.sed
43807 cat >>$CONFIG_STATUS <<_ACEOF
43808 CEOF$ac_eof
43809 _ACEOF
43812 ac_delim='%!_!# '
43813 for ac_last_try in false false false false false :; do
43814 cat >conf$$subs.sed <<_ACEOF
43815 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
43816 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
43817 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
43818 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
43819 BX_EXTERNAL_DEBUGGER!$BX_EXTERNAL_DEBUGGER$ac_delim
43820 DISASM_VAR!$DISASM_VAR$ac_delim
43821 READLINE_LIB!$READLINE_LIB$ac_delim
43822 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
43823 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
43824 FPU_VAR!$FPU_VAR$ac_delim
43825 CDROM_OBJS!$CDROM_OBJS$ac_delim
43826 SB16_OBJS!$SB16_OBJS$ac_delim
43827 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
43828 GAME_OBJS!$GAME_OBJS$ac_delim
43829 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
43830 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
43831 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
43832 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
43833 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
43834 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
43835 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
43836 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
43837 INLINE_VAR!$INLINE_VAR$ac_delim
43838 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
43839 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
43840 RC_CMD!$RC_CMD$ac_delim
43841 WX_CONFIG!$WX_CONFIG$ac_delim
43842 XPM_LIB!$XPM_LIB$ac_delim
43843 PKG_CONFIG!$PKG_CONFIG$ac_delim
43844 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
43845 GTK_LIBS!$GTK_LIBS$ac_delim
43846 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
43847 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
43848 WX_CFLAGS!$WX_CFLAGS$ac_delim
43849 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
43850 WGET!$WGET$ac_delim
43851 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
43852 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
43853 PTHREAD_CC!$PTHREAD_CC$ac_delim
43854 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
43855 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
43856 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
43857 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
43858 RFB_LIBS!$RFB_LIBS$ac_delim
43859 GUI_OBJS!$GUI_OBJS$ac_delim
43860 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
43861 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
43862 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
43863 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
43864 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
43865 DASH!$DASH$ac_delim
43866 SLASH!$SLASH$ac_delim
43867 CXXFP!$CXXFP$ac_delim
43868 CFP!$CFP$ac_delim
43869 OFP!$OFP$ac_delim
43870 MAKELIB!$MAKELIB$ac_delim
43871 RMCOMMAND!$RMCOMMAND$ac_delim
43872 LINK!$LINK$ac_delim
43873 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
43874 EXE!$EXE$ac_delim
43875 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
43876 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
43877 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
43878 CD_UP_ONE!$CD_UP_ONE$ac_delim
43879 CD_UP_TWO!$CD_UP_TWO$ac_delim
43880 CD_UP_THREE!$CD_UP_THREE$ac_delim
43881 VERSION!$VERSION$ac_delim
43882 VER_STRING!$VER_STRING$ac_delim
43883 REL_STRING!$REL_STRING$ac_delim
43884 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
43885 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
43886 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
43887 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
43888 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
43889 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
43890 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
43891 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
43892 GZIP!$GZIP$ac_delim
43893 TAR!$TAR$ac_delim
43894 LIBOBJS!$LIBOBJS$ac_delim
43895 LTLIBOBJS!$LTLIBOBJS$ac_delim
43896 _ACEOF
43898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
43899 break
43900 elif $ac_last_try; then
43901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43903 { (exit 1); exit 1; }; }
43904 else
43905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43907 done
43909 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43910 if test -n "$ac_eof"; then
43911 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43912 ac_eof=`expr $ac_eof + 1`
43915 cat >>$CONFIG_STATUS <<_ACEOF
43916 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43918 _ACEOF
43919 sed '
43920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43921 s/^/s,@/; s/!/@,|#_!!_#|/
43924 s/'"$ac_delim"'$/,g/; t
43925 s/$/\\/; p
43926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43927 ' >>$CONFIG_STATUS <conf$$subs.sed
43928 rm -f conf$$subs.sed
43929 cat >>$CONFIG_STATUS <<_ACEOF
43930 :end
43931 s/|#_!!_#|//g
43932 CEOF$ac_eof
43933 _ACEOF
43936 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43937 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43938 # trailing colons and then remove the whole line if VPATH becomes empty
43939 # (actually we leave an empty line to preserve line numbers).
43940 if test "x$srcdir" = x.; then
43941 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43942 s/:*\$(srcdir):*/:/
43943 s/:*\${srcdir}:*/:/
43944 s/:*@srcdir@:*/:/
43945 s/^\([^=]*=[ ]*\):*/\1/
43946 s/:*$//
43947 s/^[^=]*=[ ]*$//
43951 cat >>$CONFIG_STATUS <<\_ACEOF
43952 fi # test -n "$CONFIG_FILES"
43955 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
43957 case $ac_tag in
43958 :[FHLC]) ac_mode=$ac_tag; continue;;
43959 esac
43960 case $ac_mode$ac_tag in
43961 :[FHL]*:*);;
43962 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43963 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43964 { (exit 1); exit 1; }; };;
43965 :[FH]-) ac_tag=-:-;;
43966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43967 esac
43968 ac_save_IFS=$IFS
43969 IFS=:
43970 set x $ac_tag
43971 IFS=$ac_save_IFS
43972 shift
43973 ac_file=$1
43974 shift
43976 case $ac_mode in
43977 :L) ac_source=$1;;
43978 :[FH])
43979 ac_file_inputs=
43980 for ac_f
43982 case $ac_f in
43983 -) ac_f="$tmp/stdin";;
43984 *) # Look for the file first in the build tree, then in the source tree
43985 # (if the path is not absolute). The absolute path cannot be DOS-style,
43986 # because $ac_f cannot contain `:'.
43987 test -f "$ac_f" ||
43988 case $ac_f in
43989 [\\/$]*) false;;
43990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43991 esac ||
43992 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
43993 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
43994 { (exit 1); exit 1; }; };;
43995 esac
43996 ac_file_inputs="$ac_file_inputs $ac_f"
43997 done
43999 # Let's still pretend it is `configure' which instantiates (i.e., don't
44000 # use $as_me), people would be surprised to read:
44001 # /* config.h. Generated by config.status. */
44002 configure_input="Generated from "`IFS=:
44003 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44004 if test x"$ac_file" != x-; then
44005 configure_input="$ac_file. $configure_input"
44006 { echo "$as_me:$LINENO: creating $ac_file" >&5
44007 echo "$as_me: creating $ac_file" >&6;}
44010 case $ac_tag in
44011 *:-:* | *:-) cat >"$tmp/stdin";;
44012 esac
44014 esac
44016 ac_dir=`$as_dirname -- "$ac_file" ||
44017 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44018 X"$ac_file" : 'X\(//\)[^/]' \| \
44019 X"$ac_file" : 'X\(//\)$' \| \
44020 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44021 echo X"$ac_file" |
44022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44023 s//\1/
44026 /^X\(\/\/\)[^/].*/{
44027 s//\1/
44030 /^X\(\/\/\)$/{
44031 s//\1/
44034 /^X\(\/\).*/{
44035 s//\1/
44038 s/.*/./; q'`
44039 { as_dir="$ac_dir"
44040 case $as_dir in #(
44041 -*) as_dir=./$as_dir;;
44042 esac
44043 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44044 as_dirs=
44045 while :; do
44046 case $as_dir in #(
44047 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44048 *) as_qdir=$as_dir;;
44049 esac
44050 as_dirs="'$as_qdir' $as_dirs"
44051 as_dir=`$as_dirname -- "$as_dir" ||
44052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44053 X"$as_dir" : 'X\(//\)[^/]' \| \
44054 X"$as_dir" : 'X\(//\)$' \| \
44055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44056 echo X"$as_dir" |
44057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44058 s//\1/
44061 /^X\(\/\/\)[^/].*/{
44062 s//\1/
44065 /^X\(\/\/\)$/{
44066 s//\1/
44069 /^X\(\/\).*/{
44070 s//\1/
44073 s/.*/./; q'`
44074 test -d "$as_dir" && break
44075 done
44076 test -z "$as_dirs" || eval "mkdir $as_dirs"
44077 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44078 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44079 { (exit 1); exit 1; }; }; }
44080 ac_builddir=.
44082 case "$ac_dir" in
44083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44086 # A ".." for each directory in $ac_dir_suffix.
44087 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44088 case $ac_top_builddir_sub in
44089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44091 esac ;;
44092 esac
44093 ac_abs_top_builddir=$ac_pwd
44094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44095 # for backward compatibility:
44096 ac_top_builddir=$ac_top_build_prefix
44098 case $srcdir in
44099 .) # We are building in place.
44100 ac_srcdir=.
44101 ac_top_srcdir=$ac_top_builddir_sub
44102 ac_abs_top_srcdir=$ac_pwd ;;
44103 [\\/]* | ?:[\\/]* ) # Absolute name.
44104 ac_srcdir=$srcdir$ac_dir_suffix;
44105 ac_top_srcdir=$srcdir
44106 ac_abs_top_srcdir=$srcdir ;;
44107 *) # Relative name.
44108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44109 ac_top_srcdir=$ac_top_build_prefix$srcdir
44110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44111 esac
44112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44115 case $ac_mode in
44118 # CONFIG_FILE
44121 _ACEOF
44123 cat >>$CONFIG_STATUS <<\_ACEOF
44124 # If the template does not know about datarootdir, expand it.
44125 # FIXME: This hack should be removed a few years after 2.60.
44126 ac_datarootdir_hack=; ac_datarootdir_seen=
44128 case `sed -n '/datarootdir/ {
44132 /@datadir@/p
44133 /@docdir@/p
44134 /@infodir@/p
44135 /@localedir@/p
44136 /@mandir@/p
44137 ' $ac_file_inputs` in
44138 *datarootdir*) ac_datarootdir_seen=yes;;
44139 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44140 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44141 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44142 _ACEOF
44143 cat >>$CONFIG_STATUS <<_ACEOF
44144 ac_datarootdir_hack='
44145 s&@datadir@&$datadir&g
44146 s&@docdir@&$docdir&g
44147 s&@infodir@&$infodir&g
44148 s&@localedir@&$localedir&g
44149 s&@mandir@&$mandir&g
44150 s&\\\${datarootdir}&$datarootdir&g' ;;
44151 esac
44152 _ACEOF
44154 # Neutralize VPATH when `$srcdir' = `.'.
44155 # Shell code in configure.ac might set extrasub.
44156 # FIXME: do we really want to maintain this feature?
44157 cat >>$CONFIG_STATUS <<_ACEOF
44158 sed "$ac_vpsub
44159 $extrasub
44160 _ACEOF
44161 cat >>$CONFIG_STATUS <<\_ACEOF
44163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44164 s&@configure_input@&$configure_input&;t t
44165 s&@top_builddir@&$ac_top_builddir_sub&;t t
44166 s&@srcdir@&$ac_srcdir&;t t
44167 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44168 s&@top_srcdir@&$ac_top_srcdir&;t t
44169 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44170 s&@builddir@&$ac_builddir&;t t
44171 s&@abs_builddir@&$ac_abs_builddir&;t t
44172 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44173 $ac_datarootdir_hack
44174 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
44176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44177 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44179 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44180 which seems to be undefined. Please make sure it is defined." >&5
44181 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44182 which seems to be undefined. Please make sure it is defined." >&2;}
44184 rm -f "$tmp/stdin"
44185 case $ac_file in
44186 -) cat "$tmp/out"; rm -f "$tmp/out";;
44187 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44188 esac
44192 # CONFIG_HEADER
44194 _ACEOF
44196 # Transform confdefs.h into a sed script `conftest.defines', that
44197 # substitutes the proper values into config.h.in to produce config.h.
44198 rm -f conftest.defines conftest.tail
44199 # First, append a space to every undef/define line, to ease matching.
44200 echo 's/$/ /' >conftest.defines
44201 # Then, protect against being on the right side of a sed subst, or in
44202 # an unquoted here document, in config.status. If some macros were
44203 # called several times there might be several #defines for the same
44204 # symbol, which is useless. But do not sort them, since the last
44205 # AC_DEFINE must be honored.
44206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44207 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44208 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44209 # PARAMS is the parameter list in the macro definition--in most cases, it's
44210 # just an empty string.
44211 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44212 ac_dB='\\)[ (].*,\\1define\\2'
44213 ac_dC=' '
44214 ac_dD=' ,'
44216 uniq confdefs.h |
44217 sed -n '
44218 t rset
44219 :rset
44220 s/^[ ]*#[ ]*define[ ][ ]*//
44221 t ok
44224 s/[\\&,]/\\&/g
44225 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44226 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44227 ' >>conftest.defines
44229 # Remove the space that was appended to ease matching.
44230 # Then replace #undef with comments. This is necessary, for
44231 # example, in the case of _POSIX_SOURCE, which is predefined and required
44232 # on some systems where configure will not decide to define it.
44233 # (The regexp can be short, since the line contains either #define or #undef.)
44234 echo 's/ $//
44235 s,^[ #]*u.*,/* & */,' >>conftest.defines
44237 # Break up conftest.defines:
44238 ac_max_sed_lines=50
44240 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44241 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44242 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44243 # et cetera.
44244 ac_in='$ac_file_inputs'
44245 ac_out='"$tmp/out1"'
44246 ac_nxt='"$tmp/out2"'
44248 while :
44250 # Write a here document:
44251 cat >>$CONFIG_STATUS <<_ACEOF
44252 # First, check the format of the line:
44253 cat >"\$tmp/defines.sed" <<\\CEOF
44254 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44255 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44257 :def
44258 _ACEOF
44259 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44260 echo 'CEOF
44261 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44262 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44263 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44264 grep . conftest.tail >/dev/null || break
44265 rm -f conftest.defines
44266 mv conftest.tail conftest.defines
44267 done
44268 rm -f conftest.defines conftest.tail
44270 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44271 cat >>$CONFIG_STATUS <<\_ACEOF
44272 if test x"$ac_file" != x-; then
44273 echo "/* $configure_input */" >"$tmp/config.h"
44274 cat "$ac_result" >>"$tmp/config.h"
44275 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44277 echo "$as_me: $ac_file is unchanged" >&6;}
44278 else
44279 rm -f $ac_file
44280 mv "$tmp/config.h" $ac_file
44282 else
44283 echo "/* $configure_input */"
44284 cat "$ac_result"
44286 rm -f "$tmp/out12"
44290 esac
44292 done # for ac_tag
44295 { (exit 0); exit 0; }
44296 _ACEOF
44297 chmod +x $CONFIG_STATUS
44298 ac_clean_files=$ac_clean_files_save
44301 # configure is writing to config.log, and then calls config.status.
44302 # config.status does its own redirection, appending to config.log.
44303 # Unfortunately, on DOS this fails, as config.log is still kept open
44304 # by configure, so config.status won't be able to write to it; its
44305 # output is simply discarded. So we exec the FD to /dev/null,
44306 # effectively closing config.log, so it can be properly (re)opened and
44307 # appended to by config.status. When coming back to configure, we
44308 # need to make the FD available again.
44309 if test "$no_create" != yes; then
44310 ac_cs_success=:
44311 ac_config_status_args=
44312 test "$silent" = yes &&
44313 ac_config_status_args="$ac_config_status_args --quiet"
44314 exec 5>/dev/null
44315 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44316 exec 5>>config.log
44317 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44318 # would make configure fail if this is the last instruction.
44319 $ac_cs_success || { (exit 1); exit 1; }