- skip SMM init if already done at first boot time (fixes reboot failure)
[bochs-mirror.git] / configure
blob4922f3a87d66561a081c604faa0314143df99b79
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.352 2007/11/26 20:38:39 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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 BX_MAGIC_BREAKPOINT
859 DISASM_VAR
860 READLINE_LIB
861 INSTRUMENT_DIR
862 INSTRUMENT_VAR
863 FPU_VAR
864 CDROM_OBJS
865 SB16_OBJS
866 SOUNDLOW_OBJS
867 GAME_OBJS
868 GDBSTUB_VAR
869 IODEBUG_OBJS
870 DOCBOOK2HTML
871 BUILD_DOCBOOK_VAR
872 INSTALL_DOCBOOK_VAR
873 IODEV_LIB_VAR
874 EXTRA_BX_OBJS
875 NONINLINE_VAR
876 INLINE_VAR
877 EXTERNAL_DEPENDENCY
878 EXT_DEBUG_OBJS
879 RC_CMD
880 WX_CONFIG
881 XPM_LIB
882 PKG_CONFIG
883 GTK_CFLAGS
884 GTK_LIBS
885 GUI_CFLAGS
886 GUI_CXXFLAGS
887 WX_CFLAGS
888 WX_CXXFLAGS
889 WGET
890 DIALOG_OBJS
891 EXPORT_DYNAMIC
892 PTHREAD_CC
893 PTHREAD_LIBS
894 PTHREAD_CFLAGS
895 INSTALL_TARGET
896 INSTALL_LIST_FOR_PLATFORM
897 RFB_LIBS
898 GUI_OBJS
899 DEVICE_LINK_OPTS
900 GUI_LINK_OPTS
901 GUI_LINK_OPTS_TERM
902 GUI_LINK_OPTS_WX
903 BXIMAGE_LINK_OPTS
904 DASH
905 SLASH
906 CXXFP
909 MAKELIB
910 RMCOMMAND
911 LINK
912 LINK_CONSOLE
914 PRIMARY_TARGET
915 PLUGIN_LIBNAME_TRANSFORMATION
916 COMMAND_SEPARATOR
917 CD_UP_ONE
918 CD_UP_TWO
919 CD_UP_THREE
920 VERSION
921 VER_STRING
922 REL_STRING
923 EXTRA_LINK_OPTS
924 GUI_NON_PLUGIN_OBJS
925 GUI_PLUGIN_OBJS
926 IODEV_NON_PLUGIN_OBJS
927 IODEV_PLUGIN_OBJS
928 PLUGIN_VAR
929 PLUGIN_TARGET
930 INSTALL_PLUGINS_VAR
931 GZIP
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
940 CFLAGS
941 LDFLAGS
942 CPPFLAGS
944 CXXFLAGS
947 CXXCPP
949 FFLAGS
950 XMKMF
951 PKG_CONFIG
952 GTK_CFLAGS
953 GTK_LIBS'
956 # Initialize some variables set by options.
957 ac_init_help=
958 ac_init_version=false
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1022 ac_dashdash=yes ;;
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1063 eval enable_$ac_feature=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1066 ac_prev=docdir ;;
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071 ac_prev=dvidir ;;
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1082 eval enable_$ac_feature=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1272 -with-* | --with-*)
1273 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package| sed 's/-/_/g'`
1279 eval with_$ac_package=\$ac_optarg ;;
1281 -without-* | --without-*)
1282 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
1287 ac_package=`echo $ac_package | sed 's/-/_/g'`
1288 eval with_$ac_package=no ;;
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1308 -*) { echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310 { (exit 1); exit 1; }; }
1313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318 { (exit 1); exit 1; }; }
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1330 esac
1331 done
1333 if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 { echo "$as_me: error: missing argument to $ac_option" >&2
1336 { (exit 1); exit 1; }; }
1339 # Be sure to have absolute directory names.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 case $ac_val in
1347 [\\/$]* | ?:[\\/]* ) continue;;
1348 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1349 esac
1350 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1351 { (exit 1); exit 1; }; }
1352 done
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used." >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 { echo "$as_me: error: Working directory cannot be determined" >&2
1382 { (exit 1); exit 1; }; }
1383 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1384 { echo "$as_me: error: pwd does not report name of working directory" >&2
1385 { (exit 1); exit 1; }; }
1388 # Find the source files, if location was not specified.
1389 if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
1391 # Try the directory containing this script, then the parent directory.
1392 ac_confdir=`$as_dirname -- "$0" ||
1393 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$0" : 'X\(//\)[^/]' \| \
1395 X"$0" : 'X\(//\)$' \| \
1396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1397 echo X"$0" |
1398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1406 /^X\(\/\/\)$/{
1407 s//\1/
1410 /^X\(\/\).*/{
1411 s//\1/
1414 s/.*/./; q'`
1415 srcdir=$ac_confdir
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 srcdir=..
1419 else
1420 ac_srcdir_defaulted=no
1422 if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1424 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1425 { (exit 1); exit 1; }; }
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1430 { (exit 1); exit 1; }; }
1431 pwd)`
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1434 srcdir=.
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1439 case $srcdir in
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 esac
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1447 done
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1455 cat <<_ACEOF
1456 \`configure' configures this package to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1465 Configuration:
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 [PREFIX]
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1511 cat <<\_ACEOF
1513 X features:
1514 --x-includes=DIR X include files are in DIR
1515 --x-libraries=DIR X library files are in DIR
1517 System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521 _ACEOF
1524 if test -n "$ac_init_help"; then
1526 cat <<\_ACEOF
1528 Optional Features:
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1531 --enable-static[=PKGS] build static libraries [default=no]
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-fast-install[=PKGS]
1534 optimize for fast installation [default=yes]
1535 --disable-libtool-lock avoid locking (might break parallel builds)
1536 --enable-ltdl-install install libltdl
1537 --disable-largefile omit support for large files
1538 --enable-idle-hack use Roland Mainz's idle hack
1539 --enable-plugins enable plugins
1540 --enable-x86-64 compile in support for x86-64 instructions
1541 --enable-smp compile in support for SMP configurations
1542 --enable-cpu-level select cpu level (3,4,5,6)
1543 --enable-apic enable APIC support
1544 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1545 --enable-ne2000 enable limited ne2000 support
1546 --enable-acpi enable ACPI support
1547 --enable-pci enable limited i440FX PCI support
1548 --enable-pcidev enable PCI host device mapping support (linux host only)
1549 --enable-usb enable limited USB support
1550 --enable-pnic enable PCI pseudo NIC support
1551 --enable-large-pages support for large pages (2M/4M pages)
1552 --enable-pae support Physical Address Extensions
1553 --enable-global-pages support for global pages in PDE/PTE
1554 --enable-mtrr support for MTRRs
1555 --enable-guest2host-tlb support guest to host addr TLB for speed
1556 --enable-repeat-speedups support repeated IO and mem copy speedups
1557 --enable-icache support instruction cache
1558 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1559 --enable-host-specific-asms support for host specific inline assembly
1560 --enable-ignore-bad-msr ignore bad MSR references
1561 --enable-port-e9-hack writes to port e9 go to console
1562 --enable-show-ips show IPS in Bochs log file
1563 --enable-cpp use .cpp as C++ suffix
1564 --enable-debugger compile in support for Bochs internal debugger
1565 --enable-external-debugger enable external debugger support (win32 only)
1566 --enable-magic-breakpoints enable magic debugger breakpoints
1567 --enable-disasm compile in support for disassembler
1568 --enable-all-optimizations compile in all possible optimizations
1569 --enable-readline use readline library, if available
1570 --enable-instrumentation compile in support for instrumentation
1571 --enable-logging enable logging
1572 --enable-raw-serial use raw serial port access
1573 --enable-vbe use VESA BIOS extensions
1574 --enable-clgd54xx enable CLGD54XX emulation
1575 --enable-fpu compile in FPU emulation
1576 --enable-vme virtual 8086 mode extensions
1577 --enable-mmx MMX support
1578 --enable-3dnow 3DNow! support
1579 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1580 --enable-sse-extension support for SSE extensions
1581 --enable-daz denormals-are-zeroes support
1582 --enable-alignment-check alignment check (#AC) support
1583 --enable-misaligned-sse misaligned SSE support
1584 --enable-sep SYSENTER/SYSEXIT support
1585 --enable-popcnt support for POPCNT instruction
1586 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1587 --enable-x86-debugger x86 debugger support
1588 --enable-cdrom CDROM support
1589 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1590 --enable-gameport enable standard PC gameport support
1591 --enable-gdb-stub enable gdb stub support
1592 --enable-iodebug enable I/O interface to debugger
1593 --enable-docbook build the Docbook documentation
1594 --enable-xpm enable the check for XPM support
1595 --enable-save-restore enables save/restore (deprecated)
1596 --enable-processors select number of processors (deprecated)
1597 --enable-reset-on-triple-fault reset when cpu detects a triple fault (deprecated)
1598 --enable-pni PNI support (deprecated)
1599 --enable-new-pit use Greg Alexander's new PIT model (deprecated)
1601 Optional Packages:
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-pic try to use only PIC/non-PIC objects [default=use
1606 both]
1607 --with-tags[=TAGS] include additional configurations [automatic]
1608 --with-x use the X Window System
1609 --with-x11 use X11 GUI
1610 --with-beos use BeOS GUI
1611 --with-win32 use Win32 GUI
1612 --with-macos use Macintosh/CodeWarrior environment
1613 --with-carbon compile for MacOS X with Carbon GUI
1614 --with-nogui no native GUI, just use blank stubs
1615 --with-term textmode terminal environment
1616 --with-rfb use RFB protocol, works with VNC viewer
1617 --with-amigaos use AmigaOS (or MorphOS) GUI
1618 --with-sdl use SDL libraries
1619 --with-svga use SVGALib libraries
1620 --with-wx use wxWidgets libraries
1621 --with-all-libs compile all guis that Bochs supports
1623 Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1630 CXX C++ compiler command
1631 CXXFLAGS C++ compiler flags
1632 CPP C preprocessor
1633 CXXCPP C++ preprocessor
1634 F77 Fortran 77 compiler command
1635 FFLAGS Fortran 77 compiler flags
1636 XMKMF Path to xmkmf, Makefile generator for X Window System
1637 PKG_CONFIG path to pkg-config utility
1638 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1639 GTK_LIBS linker flags for GTK, overriding pkg-config
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 _ACEOF
1645 ac_status=$?
1648 if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1651 test -d "$ac_dir" || continue
1652 ac_builddir=.
1654 case "$ac_dir" in
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664 esac
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1670 case $srcdir in
1671 .) # We are building in place.
1672 ac_srcdir=.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1683 esac
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1694 else
1695 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1698 done
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1703 cat <<\_ACEOF
1704 configure
1705 generated by GNU Autoconf 2.60
1707 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1708 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1709 This configure script is free software; the Free Software Foundation
1710 gives unlimited permission to copy, distribute and modify it.
1711 _ACEOF
1712 exit
1714 cat >config.log <<_ACEOF
1715 This file contains any messages produced by compilers while
1716 running configure, to aid debugging if configure makes a mistake.
1718 It was created by $as_me, which was
1719 generated by GNU Autoconf 2.60. Invocation command line was
1721 $ $0 $@
1723 _ACEOF
1724 exec 5>>config.log
1726 cat <<_ASUNAME
1727 ## --------- ##
1728 ## Platform. ##
1729 ## --------- ##
1731 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1732 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1733 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1734 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1735 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1738 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1740 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1741 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1742 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1743 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1744 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1745 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1746 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1748 _ASUNAME
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1753 IFS=$as_save_IFS
1754 test -z "$as_dir" && as_dir=.
1755 echo "PATH: $as_dir"
1756 done
1757 IFS=$as_save_IFS
1759 } >&5
1761 cat >&5 <<_ACEOF
1764 ## ----------- ##
1765 ## Core tests. ##
1766 ## ----------- ##
1768 _ACEOF
1771 # Keep a trace of the command line.
1772 # Strip out --no-create and --no-recursion so they do not pile up.
1773 # Strip out --silent because we don't want to record it for future runs.
1774 # Also quote any args containing shell meta-characters.
1775 # Make two passes to allow for proper duplicate-argument suppression.
1776 ac_configure_args=
1777 ac_configure_args0=
1778 ac_configure_args1=
1779 ac_must_keep_next=false
1780 for ac_pass in 1 2
1782 for ac_arg
1784 case $ac_arg in
1785 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1787 | -silent | --silent | --silen | --sile | --sil)
1788 continue ;;
1789 *\'*)
1790 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 esac
1792 case $ac_pass in
1793 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1796 if test $ac_must_keep_next = true; then
1797 ac_must_keep_next=false # Got value, back to normal.
1798 else
1799 case $ac_arg in
1800 *=* | --config-cache | -C | -disable-* | --disable-* \
1801 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1802 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1803 | -with-* | --with-* | -without-* | --without-* | --x)
1804 case "$ac_configure_args0 " in
1805 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 esac
1808 -* ) ac_must_keep_next=true ;;
1809 esac
1811 ac_configure_args="$ac_configure_args '$ac_arg'"
1813 esac
1814 done
1815 done
1816 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1817 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819 # When interrupted or exit'd, cleanup temporary files, and complete
1820 # config.log. We remove comments because anyway the quotes in there
1821 # would cause problems or look ugly.
1822 # WARNING: Use '\'' to represent an apostrophe within the trap.
1823 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1824 trap 'exit_status=$?
1825 # Save into config.log some information that might help in debugging.
1827 echo
1829 cat <<\_ASBOX
1830 ## ---------------- ##
1831 ## Cache variables. ##
1832 ## ---------------- ##
1833 _ASBOX
1834 echo
1835 # The following way of writing the cache mishandles newlines in values,
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1839 case $ac_val in #(
1840 *${as_nl}*)
1841 case $ac_var in #(
1842 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1843 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1844 esac
1845 case $ac_var in #(
1846 _ | IFS | as_nl) ;; #(
1847 *) $as_unset $ac_var ;;
1848 esac ;;
1849 esac
1850 done
1851 (set) 2>&1 |
1852 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1853 *${as_nl}ac_space=\ *)
1854 sed -n \
1855 "s/'\''/'\''\\\\'\'''\''/g;
1856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857 ;; #(
1859 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861 esac |
1862 sort
1864 echo
1866 cat <<\_ASBOX
1867 ## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##
1870 _ASBOX
1871 echo
1872 for ac_var in $ac_subst_vars
1874 eval ac_val=\$$ac_var
1875 case $ac_val in
1876 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 esac
1878 echo "$ac_var='\''$ac_val'\''"
1879 done | sort
1880 echo
1882 if test -n "$ac_subst_files"; then
1883 cat <<\_ASBOX
1884 ## ------------------- ##
1885 ## File substitutions. ##
1886 ## ------------------- ##
1887 _ASBOX
1888 echo
1889 for ac_var in $ac_subst_files
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 echo "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1900 if test -s confdefs.h; then
1901 cat <<\_ASBOX
1902 ## ----------- ##
1903 ## confdefs.h. ##
1904 ## ----------- ##
1905 _ASBOX
1906 echo
1907 cat confdefs.h
1908 echo
1910 test "$ac_signal" != 0 &&
1911 echo "$as_me: caught signal $ac_signal"
1912 echo "$as_me: exit $exit_status"
1913 } >&5
1914 rm -f core *.core core.conftest.* &&
1915 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1916 exit $exit_status
1918 for ac_signal in 1 2 13 15; do
1919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1920 done
1921 ac_signal=0
1923 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1924 rm -f -r conftest* confdefs.h
1926 # Predefined preprocessor variables.
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_NAME "$PACKAGE_NAME"
1930 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935 _ACEOF
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1940 _ACEOF
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_STRING "$PACKAGE_STRING"
1945 _ACEOF
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1950 _ACEOF
1953 # Let the site file select an alternate cache file if it wants to.
1954 # Prefer explicitly selected file to automatically selected ones.
1955 if test -n "$CONFIG_SITE"; then
1956 set x "$CONFIG_SITE"
1957 elif test "x$prefix" != xNONE; then
1958 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1959 else
1960 set x "$ac_default_prefix/share/config.site" \
1961 "$ac_default_prefix/etc/config.site"
1963 shift
1964 for ac_site_file
1966 if test -r "$ac_site_file"; then
1967 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1968 echo "$as_me: loading site script $ac_site_file" >&6;}
1969 sed 's/^/| /' "$ac_site_file" >&5
1970 . "$ac_site_file"
1972 done
1974 if test -r "$cache_file"; then
1975 # Some versions of bash will fail to source /dev/null (special
1976 # files actually), so we avoid doing that.
1977 if test -f "$cache_file"; then
1978 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1979 echo "$as_me: loading cache $cache_file" >&6;}
1980 case $cache_file in
1981 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1982 *) . "./$cache_file";;
1983 esac
1985 else
1986 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1987 echo "$as_me: creating cache $cache_file" >&6;}
1988 >$cache_file
1991 # Check that the precious variables saved in the cache have kept the same
1992 # value.
1993 ac_cache_corrupted=false
1994 for ac_var in $ac_precious_vars; do
1995 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1996 eval ac_new_set=\$ac_env_${ac_var}_set
1997 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1998 eval ac_new_val=\$ac_env_${ac_var}_value
1999 case $ac_old_set,$ac_new_set in
2000 set,)
2001 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2002 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2003 ac_cache_corrupted=: ;;
2004 ,set)
2005 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2006 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2007 ac_cache_corrupted=: ;;
2008 ,);;
2010 if test "x$ac_old_val" != "x$ac_new_val"; then
2011 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2012 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2013 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2014 echo "$as_me: former value: $ac_old_val" >&2;}
2015 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2016 echo "$as_me: current value: $ac_new_val" >&2;}
2017 ac_cache_corrupted=:
2018 fi;;
2019 esac
2020 # Pass precious variables to config.status.
2021 if test "$ac_new_set" = set; then
2022 case $ac_new_val in
2023 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2024 *) ac_arg=$ac_var=$ac_new_val ;;
2025 esac
2026 case " $ac_configure_args " in
2027 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2028 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029 esac
2031 done
2032 if $ac_cache_corrupted; then
2033 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2034 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2035 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2036 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2037 { (exit 1); exit 1; }; }
2056 ac_ext=c
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 ac_config_headers="$ac_config_headers config.h"
2066 ac_config_headers="$ac_config_headers ltdlconf.h"
2069 VERSION="2.3.5.cvs"
2070 VER_STRING="2.3.5.cvs"
2071 REL_STRING="Build from CVS snapshot, after release 2.3.5"
2076 ac_aux_dir=
2077 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2078 if test -f "$ac_dir/install-sh"; then
2079 ac_aux_dir=$ac_dir
2080 ac_install_sh="$ac_aux_dir/install-sh -c"
2081 break
2082 elif test -f "$ac_dir/install.sh"; then
2083 ac_aux_dir=$ac_dir
2084 ac_install_sh="$ac_aux_dir/install.sh -c"
2085 break
2086 elif test -f "$ac_dir/shtool"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/shtool install -c"
2089 break
2091 done
2092 if test -z "$ac_aux_dir"; then
2093 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2094 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2095 { (exit 1); exit 1; }; }
2098 # These three variables are undocumented and unsupported,
2099 # and are intended to be withdrawn in a future Autoconf release.
2100 # They can cause serious problems if a builder's source tree is in a directory
2101 # whose full name contains unusual characters.
2102 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2103 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2104 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2107 # Make sure we can run config.sub.
2108 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2109 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2110 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2111 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: checking build system type" >&5
2114 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2115 if test "${ac_cv_build+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 ac_build_alias=$build_alias
2119 test "x$ac_build_alias" = x &&
2120 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2121 test "x$ac_build_alias" = x &&
2122 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2123 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2124 { (exit 1); exit 1; }; }
2125 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2126 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2127 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2128 { (exit 1); exit 1; }; }
2131 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2132 echo "${ECHO_T}$ac_cv_build" >&6; }
2133 case $ac_cv_build in
2134 *-*-*) ;;
2135 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2136 echo "$as_me: error: invalid value of canonical build" >&2;}
2137 { (exit 1); exit 1; }; };;
2138 esac
2139 build=$ac_cv_build
2140 ac_save_IFS=$IFS; IFS='-'
2141 set x $ac_cv_build
2142 shift
2143 build_cpu=$1
2144 build_vendor=$2
2145 shift; shift
2146 # Remember, the first character of IFS is used to create $*,
2147 # except with old shells:
2148 build_os=$*
2149 IFS=$ac_save_IFS
2150 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2153 { echo "$as_me:$LINENO: checking host system type" >&5
2154 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2155 if test "${ac_cv_host+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test "x$host_alias" = x; then
2159 ac_cv_host=$ac_cv_build
2160 else
2161 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2169 echo "${ECHO_T}$ac_cv_host" >&6; }
2170 case $ac_cv_host in
2171 *-*-*) ;;
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2173 echo "$as_me: error: invalid value of canonical host" >&2;}
2174 { (exit 1); exit 1; }; };;
2175 esac
2176 host=$ac_cv_host
2177 ac_save_IFS=$IFS; IFS='-'
2178 set x $ac_cv_host
2179 shift
2180 host_cpu=$1
2181 host_vendor=$2
2182 shift; shift
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2185 host_os=$*
2186 IFS=$ac_save_IFS
2187 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking target system type" >&5
2191 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_target+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195 if test "x$target_alias" = x; then
2196 ac_cv_target=$ac_cv_host
2197 else
2198 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2206 echo "${ECHO_T}$ac_cv_target" >&6; }
2207 case $ac_cv_target in
2208 *-*-*) ;;
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2210 echo "$as_me: error: invalid value of canonical target" >&2;}
2211 { (exit 1); exit 1; }; };;
2212 esac
2213 target=$ac_cv_target
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_target
2216 shift
2217 target_cpu=$1
2218 target_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 target_os=$*
2223 IFS=$ac_save_IFS
2224 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2227 # The aliases save the names the user supplied, while $host etc.
2228 # will get canonicalized.
2229 test -n "$target_alias" &&
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2231 NONENONEs,x,x, &&
2232 program_prefix=${target_alias}-
2234 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2235 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2236 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2237 { echo "$as_me:$LINENO: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6; }
2239 cross_configure=1
2240 else
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2243 cross_configure=0
2246 # this case statement defines the compile flags which are needed to
2247 # compile bochs on a platform. Don't put things like optimization settings
2248 # into the configure.in file, since people will want to be able to change
2249 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2250 NO_LT=0
2251 need_dlcompat_for_plugins=0
2252 case "$target" in
2253 *-pc-windows* | *-pc-winnt*)
2254 DEFAULT_GUI=win32 # default to win32 gui
2256 *-pc-cygwin* | *-pc-mingw32*)
2257 NO_LT=1 # do not use libtool at all on cygwin
2258 if test "$with_term" = yes; then
2259 # ncurses won't compile with -mno-cygwin or -DWIN32
2260 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2261 # see /usr/include/curses.h for details.
2262 ADD_FLAGS="-DBROKEN_LINKER=1"
2263 else
2264 # default case
2265 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2266 DEFAULT_GUI=win32 # default to win32 gui
2269 *-macosx* | *-darwin*)
2270 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2271 DEFAULT_GUI=carbon # default to carbon
2272 need_dlcompat_for_plugins=1
2274 *-macos*)
2275 DEFAULT_GUI=macos # macos defaults to macos
2277 *-beos*)
2278 ADD_FLAGS="-Wno-multichar"
2279 DEFAULT_GUI=beos # beos defaults to beos
2281 *-amigaos* | *-morphos*)
2282 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2284 *-solaris*)
2285 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2286 LIBS="$LIBS -lsocket -lnsl"
2287 DEFAULT_GUI=x11
2290 DEFAULT_GUI=x11
2292 esac
2293 if test "${ADD_FLAGS:+set}" = set; then
2294 CFLAGS="$CFLAGS $ADD_FLAGS"
2295 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2296 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2299 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2300 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2301 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2302 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2304 if (test "$with_sdl" != yes) && \
2305 (test "$with_svga" != yes) && \
2306 (test "$with_x11" != yes) && \
2307 (test "$with_beos" != yes) && \
2308 (test "$with_win32" != yes) && \
2309 (test "$with_nogui" != yes) && \
2310 (test "$with_term" != yes) && \
2311 (test "$with_rfb" != yes) && \
2312 (test "$with_amigaos" != yes) && \
2313 (test "$with_carbon" != yes) && \
2314 (test "$with_wx" != yes) && \
2315 (test "$with_macos" != yes); then
2316 # use DEFAULT_GUI. Set the appropriate variable.
2317 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2318 # valid $with_* variable will be set and who knows what will happen?
2319 eval "with_${DEFAULT_GUI}=yes"
2322 ac_ext=c
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2327 if test -n "$ac_tool_prefix"; then
2328 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2332 if test "${ac_cv_prog_CC+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335 if test -n "$CC"; then
2336 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 else
2338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 for ac_exec_ext in '' $ac_executable_extensions; do
2344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2345 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 break 2
2349 done
2350 done
2351 IFS=$as_save_IFS
2355 CC=$ac_cv_prog_CC
2356 if test -n "$CC"; then
2357 { echo "$as_me:$LINENO: result: $CC" >&5
2358 echo "${ECHO_T}$CC" >&6; }
2359 else
2360 { echo "$as_me:$LINENO: result: no" >&5
2361 echo "${ECHO_T}no" >&6; }
2366 if test -z "$ac_cv_prog_CC"; then
2367 ac_ct_CC=$CC
2368 # Extract the first word of "gcc", so it can be a program name with args.
2369 set dummy gcc; ac_word=$2
2370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 else
2375 if test -n "$ac_ct_CC"; then
2376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2377 else
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_ac_ct_CC="gcc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2389 done
2390 done
2391 IFS=$as_save_IFS
2395 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2396 if test -n "$ac_ct_CC"; then
2397 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2398 echo "${ECHO_T}$ac_ct_CC" >&6; }
2399 else
2400 { echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6; }
2404 if test "x$ac_ct_CC" = x; then
2405 CC=""
2406 else
2407 case $cross_compiling:$ac_tool_warned in
2408 yes:)
2409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2410 whose name does not start with the host triplet. If you think this
2411 configuration is useful to you, please write to autoconf@gnu.org." >&5
2412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2415 ac_tool_warned=yes ;;
2416 esac
2417 CC=$ac_ct_CC
2419 else
2420 CC="$ac_cv_prog_CC"
2423 if test -z "$CC"; then
2424 if test -n "$ac_tool_prefix"; then
2425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2426 set dummy ${ac_tool_prefix}cc; ac_word=$2
2427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_CC+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432 if test -n "$CC"; then
2433 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 else
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 for as_dir in $PATH
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2442 ac_cv_prog_CC="${ac_tool_prefix}cc"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2446 done
2447 done
2448 IFS=$as_save_IFS
2452 CC=$ac_cv_prog_CC
2453 if test -n "$CC"; then
2454 { echo "$as_me:$LINENO: result: $CC" >&5
2455 echo "${ECHO_T}$CC" >&6; }
2456 else
2457 { echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6; }
2464 if test -z "$CC"; then
2465 # Extract the first word of "cc", so it can be a program name with args.
2466 set dummy cc; ac_word=$2
2467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2469 if test "${ac_cv_prog_CC+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 else
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2474 else
2475 ac_prog_rejected=no
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2484 ac_prog_rejected=yes
2485 continue
2487 ac_cv_prog_CC="cc"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2491 done
2492 done
2493 IFS=$as_save_IFS
2495 if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy $ac_cv_prog_CC
2498 shift
2499 if test $# != 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2503 shift
2504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { echo "$as_me:$LINENO: result: $CC" >&5
2512 echo "${ECHO_T}$CC" >&6; }
2513 else
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2520 if test -z "$CC"; then
2521 if test -n "$ac_tool_prefix"; then
2522 for ac_prog in cl.exe
2524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2528 if test "${ac_cv_prog_CC+set}" = set; then
2529 echo $ECHO_N "(cached) $ECHO_C" >&6
2530 else
2531 if test -n "$CC"; then
2532 ac_cv_prog_CC="$CC" # Let the user override the test.
2533 else
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2545 done
2546 done
2547 IFS=$as_save_IFS
2551 CC=$ac_cv_prog_CC
2552 if test -n "$CC"; then
2553 { echo "$as_me:$LINENO: result: $CC" >&5
2554 echo "${ECHO_T}$CC" >&6; }
2555 else
2556 { echo "$as_me:$LINENO: result: no" >&5
2557 echo "${ECHO_T}no" >&6; }
2561 test -n "$CC" && break
2562 done
2564 if test -z "$CC"; then
2565 ac_ct_CC=$CC
2566 for ac_prog in cl.exe
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 if test -n "$ac_ct_CC"; then
2576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_ac_ct_CC="$ac_prog"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2596 if test -n "$ac_ct_CC"; then
2597 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2598 echo "${ECHO_T}$ac_ct_CC" >&6; }
2599 else
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2605 test -n "$ac_ct_CC" && break
2606 done
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2614 whose name does not start with the host triplet. If you think this
2615 configuration is useful to you, please write to autoconf@gnu.org." >&5
2616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2617 whose name does not start with the host triplet. If you think this
2618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2619 ac_tool_warned=yes ;;
2620 esac
2621 CC=$ac_ct_CC
2628 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2629 See \`config.log' for more details." >&5
2630 echo "$as_me: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2634 # Provide some information about the compiler.
2635 echo "$as_me:$LINENO: checking for C compiler version" >&5
2636 ac_compiler=`set X $ac_compile; echo $2`
2637 { (ac_try="$ac_compiler --version >&5"
2638 case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compiler --version >&5") 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }
2647 { (ac_try="$ac_compiler -v >&5"
2648 case "(($ac_try" in
2649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650 *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653 (eval "$ac_compiler -v >&5") 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }
2657 { (ac_try="$ac_compiler -V >&5"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler -V >&5") 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2676 main ()
2680 return 0;
2682 _ACEOF
2683 ac_clean_files_save=$ac_clean_files
2684 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2685 # Try to create an executable without -o first, disregard a.out.
2686 # It will help us diagnose broken compilers, and finding out an intuition
2687 # of exeext.
2688 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2689 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2690 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2692 # List of possible output files, starting from the most likely.
2693 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2694 # only as a last resort. b.out is created by i960 compilers.
2695 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2697 # The IRIX 6 linker writes into existing files which may not be
2698 # executable, retaining their permissions. Remove them first so a
2699 # subsequent execution test works.
2700 ac_rmfiles=
2701 for ac_file in $ac_files
2703 case $ac_file in
2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2706 esac
2707 done
2708 rm -f $ac_rmfiles
2710 if { (ac_try="$ac_link_default"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_link_default") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; then
2720 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2721 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2722 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2723 # so that the user can short-circuit this test for compilers unknown to
2724 # Autoconf.
2725 for ac_file in $ac_files
2727 test -f "$ac_file" || continue
2728 case $ac_file in
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2731 [ab].out )
2732 # We found the default executable, but exeext='' is most
2733 # certainly right.
2734 break;;
2735 *.* )
2736 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2737 then :; else
2738 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2740 # We set ac_cv_exeext here because the later test for it is not
2741 # safe: cross compilers may not add the suffix if given an `-o'
2742 # argument, so we may need to know it at that point already.
2743 # Even if this section looks crufty: it has the advantage of
2744 # actually working.
2745 break;;
2747 break;;
2748 esac
2749 done
2750 test "$ac_cv_exeext" = no && ac_cv_exeext=
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2757 See \`config.log' for more details." >&5
2758 echo "$as_me: error: C compiler cannot create executables
2759 See \`config.log' for more details." >&2;}
2760 { (exit 77); exit 77; }; }
2763 ac_exeext=$ac_cv_exeext
2764 { echo "$as_me:$LINENO: result: $ac_file" >&5
2765 echo "${ECHO_T}$ac_file" >&6; }
2767 # Check that the compiler produces executables we can run. If not, either
2768 # the compiler is broken, or we cross compile.
2769 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2770 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2771 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2772 # If not cross compiling, check that we can run a simple program.
2773 if test "$cross_compiling" != yes; then
2774 if { ac_try='./$ac_file'
2775 { (case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_try") 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 cross_compiling=no
2785 else
2786 if test "$cross_compiling" = maybe; then
2787 cross_compiling=yes
2788 else
2789 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: cannot run C compiled programs.
2793 If you meant to cross compile, use \`--host'.
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2799 { echo "$as_me:$LINENO: result: yes" >&5
2800 echo "${ECHO_T}yes" >&6; }
2802 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2803 ac_clean_files=$ac_clean_files_save
2804 # Check that the compiler produces executables we can run. If not, either
2805 # the compiler is broken, or we cross compile.
2806 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2807 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2808 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2809 echo "${ECHO_T}$cross_compiling" >&6; }
2811 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2812 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2813 if { (ac_try="$ac_link"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_link") 2>&5
2820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; then
2823 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2824 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2825 # work properly (i.e., refer to `conftest.exe'), while it won't with
2826 # `rm'.
2827 for ac_file in conftest.exe conftest conftest.*; do
2828 test -f "$ac_file" || continue
2829 case $ac_file in
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2831 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 break;;
2833 * ) break;;
2834 esac
2835 done
2836 else
2837 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2838 See \`config.log' for more details." >&5
2839 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2840 See \`config.log' for more details." >&2;}
2841 { (exit 1); exit 1; }; }
2844 rm -f conftest$ac_cv_exeext
2845 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2846 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2848 rm -f conftest.$ac_ext
2849 EXEEXT=$ac_cv_exeext
2850 ac_exeext=$EXEEXT
2851 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2852 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2853 if test "${ac_cv_objext+set}" = set; then
2854 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856 cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h. */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 rm -f conftest.o conftest.obj
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compile") 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; then
2882 for ac_file in conftest.o conftest.obj conftest.*; do
2883 test -f "$ac_file" || continue;
2884 case $ac_file in
2885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2886 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2887 break;;
2888 esac
2889 done
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2894 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2897 See \`config.log' for more details." >&2;}
2898 { (exit 1); exit 1; }; }
2901 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2904 echo "${ECHO_T}$ac_cv_objext" >&6; }
2905 OBJEXT=$ac_cv_objext
2906 ac_objext=$OBJEXT
2907 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2908 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2909 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h. */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2920 main ()
2922 #ifndef __GNUC__
2923 choke me
2924 #endif
2927 return 0;
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (ac_try="$ac_compile"
2932 case "(($ac_try" in
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2935 esac
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
2944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2945 { (case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_try") 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 ac_compiler_gnu=yes
2965 else
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 ac_compiler_gnu=no
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2976 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2977 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2978 GCC=`test $ac_compiler_gnu = yes && echo yes`
2979 ac_test_CFLAGS=${CFLAGS+set}
2980 ac_save_CFLAGS=$CFLAGS
2981 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2982 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_g+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_save_c_werror_flag=$ac_c_werror_flag
2987 ac_c_werror_flag=yes
2988 ac_cv_prog_cc_g=no
2989 CFLAGS="-g"
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 rm -f conftest.$ac_objext
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_prog_cc_g=yes
3040 else
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 CFLAGS=""
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3053 main ()
3057 return 0;
3059 _ACEOF
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3095 else
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 ac_c_werror_flag=$ac_save_c_werror_flag
3100 CFLAGS="-g"
3101 cat >conftest.$ac_ext <<_ACEOF
3102 /* confdefs.h. */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3109 main ()
3113 return 0;
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3118 case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121 esac
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3124 ac_status=$?
3125 grep -v '^ *+' conftest.er1 >conftest.err
3126 rm -f conftest.er1
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144 esac
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3150 ac_cv_prog_cc_g=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_c_werror_flag=$ac_save_c_werror_flag
3167 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3168 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3169 if test "$ac_test_CFLAGS" = set; then
3170 CFLAGS=$ac_save_CFLAGS
3171 elif test $ac_cv_prog_cc_g = yes; then
3172 if test "$GCC" = yes; then
3173 CFLAGS="-g -O2"
3174 else
3175 CFLAGS="-g"
3177 else
3178 if test "$GCC" = yes; then
3179 CFLAGS="-O2"
3180 else
3181 CFLAGS=
3184 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3185 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_cc_c89+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 ac_cv_prog_cc_c89=no
3190 ac_save_CC=$CC
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 #include <stdarg.h>
3198 #include <stdio.h>
3199 #include <sys/types.h>
3200 #include <sys/stat.h>
3201 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3202 struct buf { int x; };
3203 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3204 static char *e (p, i)
3205 char **p;
3206 int i;
3208 return p[i];
3210 static char *f (char * (*g) (char **, int), char **p, ...)
3212 char *s;
3213 va_list v;
3214 va_start (v,p);
3215 s = g (p, va_arg (v,int));
3216 va_end (v);
3217 return s;
3220 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3221 function prototypes and stuff, but not '\xHH' hex character constants.
3222 These don't provoke an error unfortunately, instead are silently treated
3223 as 'x'. The following induces an error, until -std is added to get
3224 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3225 array size at least. It's necessary to write '\x00'==0 to get something
3226 that's true only with -std. */
3227 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3229 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3230 inside strings and character constants. */
3231 #define FOO(x) 'x'
3232 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3234 int test (int i, double x);
3235 struct s1 {int (*f) (int a);};
3236 struct s2 {int (*f) (double a);};
3237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3238 int argc;
3239 char **argv;
3241 main ()
3243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3245 return 0;
3247 _ACEOF
3248 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3249 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3251 CC="$ac_save_CC $ac_arg"
3252 rm -f conftest.$ac_objext
3253 if { (ac_try="$ac_compile"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compile") 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3267 { (case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; } &&
3276 { ac_try='test -s conftest.$ac_objext'
3277 { (case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 ac_cv_prog_cc_c89=$ac_arg
3287 else
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3294 rm -f core conftest.err conftest.$ac_objext
3295 test "x$ac_cv_prog_cc_c89" != "xno" && break
3296 done
3297 rm -f conftest.$ac_ext
3298 CC=$ac_save_CC
3301 # AC_CACHE_VAL
3302 case "x$ac_cv_prog_cc_c89" in
3304 { echo "$as_me:$LINENO: result: none needed" >&5
3305 echo "${ECHO_T}none needed" >&6; } ;;
3306 xno)
3307 { echo "$as_me:$LINENO: result: unsupported" >&5
3308 echo "${ECHO_T}unsupported" >&6; } ;;
3310 CC="$CC $ac_cv_prog_cc_c89"
3311 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3312 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3313 esac
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 ac_ext=cpp
3323 ac_cpp='$CXXCPP $CPPFLAGS'
3324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3327 if test -z "$CXX"; then
3328 if test -n "$CCC"; then
3329 CXX=$CCC
3330 else
3331 if test -n "$ac_tool_prefix"; then
3332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_CXX+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341 if test -n "$CXX"; then
3342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3343 else
3344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 for as_dir in $PATH
3347 IFS=$as_save_IFS
3348 test -z "$as_dir" && as_dir=.
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 break 2
3355 done
3356 done
3357 IFS=$as_save_IFS
3361 CXX=$ac_cv_prog_CXX
3362 if test -n "$CXX"; then
3363 { echo "$as_me:$LINENO: result: $CXX" >&5
3364 echo "${ECHO_T}$CXX" >&6; }
3365 else
3366 { echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6; }
3371 test -n "$CXX" && break
3372 done
3374 if test -z "$CXX"; then
3375 ac_ct_CXX=$CXX
3376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 # Extract the first word of "$ac_prog", so it can be a program name with args.
3379 set dummy $ac_prog; ac_word=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$ac_ct_CXX"; then
3386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CXX="$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3399 done
3400 done
3401 IFS=$as_save_IFS
3405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3406 if test -n "$ac_ct_CXX"; then
3407 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3408 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3409 else
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3415 test -n "$ac_ct_CXX" && break
3416 done
3418 if test "x$ac_ct_CXX" = x; then
3419 CXX="g++"
3420 else
3421 case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3424 whose name does not start with the host triplet. If you think this
3425 configuration is useful to you, please write to autoconf@gnu.org." >&5
3426 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3427 whose name does not start with the host triplet. If you think this
3428 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3429 ac_tool_warned=yes ;;
3430 esac
3431 CXX=$ac_ct_CXX
3437 # Provide some information about the compiler.
3438 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3439 ac_compiler=`set X $ac_compile; echo $2`
3440 { (ac_try="$ac_compiler --version >&5"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compiler --version >&5") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }
3450 { (ac_try="$ac_compiler -v >&5"
3451 case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compiler -v >&5") 2>&5
3457 ac_status=$?
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); }
3460 { (ac_try="$ac_compiler -V >&5"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compiler -V >&5") 2>&5
3467 ac_status=$?
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }
3471 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3472 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3473 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3484 main ()
3486 #ifndef __GNUC__
3487 choke me
3488 #endif
3491 return 0;
3493 _ACEOF
3494 rm -f conftest.$ac_objext
3495 if { (ac_try="$ac_compile"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_compile") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3509 { (case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_try") 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_try") 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_compiler_gnu=yes
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 ac_compiler_gnu=no
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3540 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3542 GXX=`test $ac_compiler_gnu = yes && echo yes`
3543 ac_test_CXXFLAGS=${CXXFLAGS+set}
3544 ac_save_CXXFLAGS=$CXXFLAGS
3545 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3546 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3547 if test "${ac_cv_prog_cxx_g+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3551 ac_cxx_werror_flag=yes
3552 ac_cv_prog_cxx_g=no
3553 CXXFLAGS="-g"
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3562 main ()
3566 return 0;
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3584 { (case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_try") 2>&5
3590 ac_status=$?
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try='test -s conftest.$ac_objext'
3594 { (case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_try") 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_prog_cxx_g=yes
3604 else
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 CXXFLAGS=""
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h. */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3639 { (case "(($ac_try" in
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3642 esac
3643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3644 (eval "$ac_try") 2>&5
3645 ac_status=$?
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_try") 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3659 else
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3664 CXXFLAGS="-g"
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3673 main ()
3677 return 0;
3679 _ACEOF
3680 rm -f conftest.$ac_objext
3681 if { (ac_try="$ac_compile"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_compile") 2>conftest.er1
3688 ac_status=$?
3689 grep -v '^ *+' conftest.er1 >conftest.err
3690 rm -f conftest.er1
3691 cat conftest.err >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3695 { (case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_try") 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 ac_cv_prog_cxx_g=yes
3715 else
3716 echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3732 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3733 if test "$ac_test_CXXFLAGS" = set; then
3734 CXXFLAGS=$ac_save_CXXFLAGS
3735 elif test $ac_cv_prog_cxx_g = yes; then
3736 if test "$GXX" = yes; then
3737 CXXFLAGS="-g -O2"
3738 else
3739 CXXFLAGS="-g"
3741 else
3742 if test "$GXX" = yes; then
3743 CXXFLAGS="-O2"
3744 else
3745 CXXFLAGS=
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3755 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3756 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3757 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760 cat >conftest.make <<\_ACEOF
3761 SHELL = /bin/sh
3762 all:
3763 @echo '@@@%%%=$(MAKE)=@@@%%%'
3764 _ACEOF
3765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3767 *@@@%%%=?*=@@@%%%*)
3768 eval ac_cv_prog_make_${ac_make}_set=yes;;
3770 eval ac_cv_prog_make_${ac_make}_set=no;;
3771 esac
3772 rm -f conftest.make
3774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3775 { echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6; }
3777 SET_MAKE=
3778 else
3779 { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781 SET_MAKE="MAKE=${MAKE-make}"
3785 # Check whether --enable-static was given.
3786 if test "${enable_static+set}" = set; then
3787 enableval=$enable_static; p=${PACKAGE-default}
3788 case $enableval in
3789 yes) enable_static=yes ;;
3790 no) enable_static=no ;;
3792 enable_static=no
3793 # Look at the argument we got. We use all the common list separators.
3794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3795 for pkg in $enableval; do
3796 IFS="$lt_save_ifs"
3797 if test "X$pkg" = "X$p"; then
3798 enable_static=yes
3800 done
3801 IFS="$lt_save_ifs"
3803 esac
3804 else
3805 enable_static=no
3812 # Check whether --enable-shared was given.
3813 if test "${enable_shared+set}" = set; then
3814 enableval=$enable_shared; p=${PACKAGE-default}
3815 case $enableval in
3816 yes) enable_shared=yes ;;
3817 no) enable_shared=no ;;
3819 enable_shared=no
3820 # Look at the argument we got. We use all the common list separators.
3821 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3822 for pkg in $enableval; do
3823 IFS="$lt_save_ifs"
3824 if test "X$pkg" = "X$p"; then
3825 enable_shared=yes
3827 done
3828 IFS="$lt_save_ifs"
3830 esac
3831 else
3832 enable_shared=yes
3836 # Check whether --enable-fast-install was given.
3837 if test "${enable_fast_install+set}" = set; then
3838 enableval=$enable_fast_install; p=${PACKAGE-default}
3839 case $enableval in
3840 yes) enable_fast_install=yes ;;
3841 no) enable_fast_install=no ;;
3843 enable_fast_install=no
3844 # Look at the argument we got. We use all the common list separators.
3845 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3846 for pkg in $enableval; do
3847 IFS="$lt_save_ifs"
3848 if test "X$pkg" = "X$p"; then
3849 enable_fast_install=yes
3851 done
3852 IFS="$lt_save_ifs"
3854 esac
3855 else
3856 enable_fast_install=yes
3860 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3861 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3862 if test "${lt_cv_path_SED+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865 # Loop through the user's path and test for sed and gsed.
3866 # Then use that list of sed's as ones to test for truncation.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for lt_ac_prog in sed gsed; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3875 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877 done
3878 done
3879 done
3880 lt_ac_max=0
3881 lt_ac_count=0
3882 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3883 # along with /bin/sed that truncates output.
3884 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3885 test ! -f $lt_ac_sed && break
3886 cat /dev/null > conftest.in
3887 lt_ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3889 # Check for GNU sed and select it if it is found.
3890 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3891 lt_cv_path_SED=$lt_ac_sed
3892 break
3894 while true; do
3895 cat conftest.in conftest.in >conftest.tmp
3896 mv conftest.tmp conftest.in
3897 cp conftest.in conftest.nl
3898 echo >>conftest.nl
3899 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3900 cmp -s conftest.out conftest.nl || break
3901 # 10000 chars as input seems more than enough
3902 test $lt_ac_count -gt 10 && break
3903 lt_ac_count=`expr $lt_ac_count + 1`
3904 if test $lt_ac_count -gt $lt_ac_max; then
3905 lt_ac_max=$lt_ac_count
3906 lt_cv_path_SED=$lt_ac_sed
3908 done
3909 done
3910 SED=$lt_cv_path_SED
3914 { echo "$as_me:$LINENO: result: $SED" >&5
3915 echo "${ECHO_T}$SED" >&6; }
3917 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3918 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3919 if test "${ac_cv_path_GREP+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 # Extract the first word of "grep ggrep" to use in msg output
3923 if test -z "$GREP"; then
3924 set dummy grep ggrep; ac_prog_name=$2
3925 if test "${ac_cv_path_GREP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928 ac_path_GREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in grep ggrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3939 # Check for GNU ac_path_GREP and select it if it is found.
3940 # Check for GNU $ac_path_GREP
3941 case `"$ac_path_GREP" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945 ac_count=0
3946 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3947 while :
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 echo 'GREP' >> "conftest.nl"
3953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 ac_count=`expr $ac_count + 1`
3956 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_GREP="$ac_path_GREP"
3959 ac_path_GREP_max=$ac_count
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3968 $ac_path_GREP_found && break 3
3969 done
3970 done
3972 done
3973 IFS=$as_save_IFS
3978 GREP="$ac_cv_path_GREP"
3979 if test -z "$GREP"; then
3980 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3981 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3982 { (exit 1); exit 1; }; }
3985 else
3986 ac_cv_path_GREP=$GREP
3991 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3993 GREP="$ac_cv_path_GREP"
3996 { echo "$as_me:$LINENO: checking for egrep" >&5
3997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002 then ac_cv_path_EGREP="$GREP -E"
4003 else
4004 # Extract the first word of "egrep" to use in msg output
4005 if test -z "$EGREP"; then
4006 set dummy egrep; ac_prog_name=$2
4007 if test "${ac_cv_path_EGREP+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 ac_path_EGREP_found=false
4011 # Loop through the user's path and test for each of PROGNAME-LIST
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_prog in egrep; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022 # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4024 *GNU*)
4025 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 ac_count=0
4028 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4029 while :
4031 cat "conftest.in" "conftest.in" >"conftest.tmp"
4032 mv "conftest.tmp" "conftest.in"
4033 cp "conftest.in" "conftest.nl"
4034 echo 'EGREP' >> "conftest.nl"
4035 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037 ac_count=`expr $ac_count + 1`
4038 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039 # Best one so far, save it but keep looking for a better one
4040 ac_cv_path_EGREP="$ac_path_EGREP"
4041 ac_path_EGREP_max=$ac_count
4043 # 10*(2^10) chars as input seems more than enough
4044 test $ac_count -gt 10 && break
4045 done
4046 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4050 $ac_path_EGREP_found && break 3
4051 done
4052 done
4054 done
4055 IFS=$as_save_IFS
4060 EGREP="$ac_cv_path_EGREP"
4061 if test -z "$EGREP"; then
4062 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4063 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4064 { (exit 1); exit 1; }; }
4067 else
4068 ac_cv_path_EGREP=$EGREP
4074 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4075 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4076 EGREP="$ac_cv_path_EGREP"
4080 # Check whether --with-gnu-ld was given.
4081 if test "${with_gnu_ld+set}" = set; then
4082 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4083 else
4084 with_gnu_ld=no
4087 ac_prog=ld
4088 if test "$GCC" = yes; then
4089 # Check if gcc -print-prog-name=ld gives a path.
4090 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4091 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4092 case $host in
4093 *-*-mingw*)
4094 # gcc leaves a trailing carriage return which upsets mingw
4095 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4097 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4098 esac
4099 case $ac_prog in
4100 # Accept absolute paths.
4101 [\\/]* | ?:[\\/]*)
4102 re_direlt='/[^/][^/]*/\.\./'
4103 # Canonicalize the pathname of ld
4104 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4105 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4106 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4107 done
4108 test -z "$LD" && LD="$ac_prog"
4111 # If it fails, then pretend we aren't using GCC.
4112 ac_prog=ld
4115 # If it is relative, then search for the first ld in PATH.
4116 with_gnu_ld=unknown
4118 esac
4119 elif test "$with_gnu_ld" = yes; then
4120 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4121 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4122 else
4123 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4124 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4126 if test "${lt_cv_path_LD+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129 if test -z "$LD"; then
4130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131 for ac_dir in $PATH; do
4132 IFS="$lt_save_ifs"
4133 test -z "$ac_dir" && ac_dir=.
4134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4135 lt_cv_path_LD="$ac_dir/$ac_prog"
4136 # Check to see if the program is GNU ld. I'd rather use --version,
4137 # but apparently some GNU ld's only accept -v.
4138 # Break only if it was the GNU/non-GNU ld that we prefer.
4139 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4140 *GNU* | *'with BFD'*)
4141 test "$with_gnu_ld" != no && break
4144 test "$with_gnu_ld" != yes && break
4146 esac
4148 done
4149 IFS="$lt_save_ifs"
4150 else
4151 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4155 LD="$lt_cv_path_LD"
4156 if test -n "$LD"; then
4157 { echo "$as_me:$LINENO: result: $LD" >&5
4158 echo "${ECHO_T}$LD" >&6; }
4159 else
4160 { echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6; }
4163 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4164 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4165 { (exit 1); exit 1; }; }
4166 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4167 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4168 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4172 case `$LD -v 2>&1 </dev/null` in
4173 *GNU* | *'with BFD'*)
4174 lt_cv_prog_gnu_ld=yes
4177 lt_cv_prog_gnu_ld=no
4179 esac
4181 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4182 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4183 with_gnu_ld=$lt_cv_prog_gnu_ld
4186 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4187 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4188 if test "${lt_cv_ld_reload_flag+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 lt_cv_ld_reload_flag='-r'
4193 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4194 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4195 reload_flag=$lt_cv_ld_reload_flag
4196 case $reload_flag in
4197 "" | " "*) ;;
4198 *) reload_flag=" $reload_flag" ;;
4199 esac
4200 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4202 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4203 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4204 if test "${lt_cv_path_NM+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 if test -n "$NM"; then
4208 # Let the user override the test.
4209 lt_cv_path_NM="$NM"
4210 else
4211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4212 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4213 IFS="$lt_save_ifs"
4214 test -z "$ac_dir" && ac_dir=.
4215 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4216 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4217 # Check to see if the nm accepts a BSD-compat flag.
4218 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4219 # nm: unknown option "B" ignored
4220 # Tru64's nm complains that /dev/null is an invalid object file
4221 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4222 */dev/null* | *'Invalid file or object type'*)
4223 lt_cv_path_NM="$tmp_nm -B"
4224 break
4227 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4228 */dev/null*)
4229 lt_cv_path_NM="$tmp_nm -p"
4230 break
4233 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4234 continue # so that we can try to find one that supports BSD flags
4236 esac
4237 esac
4239 done
4240 IFS="$lt_save_ifs"
4241 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4244 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4245 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4246 NM="$lt_cv_path_NM"
4248 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4249 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4250 LN_S=$as_ln_s
4251 if test "$LN_S" = "ln -s"; then
4252 { echo "$as_me:$LINENO: result: yes" >&5
4253 echo "${ECHO_T}yes" >&6; }
4254 else
4255 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4256 echo "${ECHO_T}no, using $LN_S" >&6; }
4259 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4260 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4261 if test "${lt_cv_deplibs_check_method+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264 lt_cv_file_magic_cmd='$MAGIC_CMD'
4265 lt_cv_file_magic_test_file=
4266 lt_cv_deplibs_check_method='unknown'
4267 # Need to set the preceding variable on all platforms that support
4268 # interlibrary dependencies.
4269 # 'none' -- dependencies not supported.
4270 # `unknown' -- same as none, but documents that we really don't know.
4271 # 'pass_all' -- all dependencies passed with no checks.
4272 # 'test_compile' -- check by making test program.
4273 # 'file_magic [[regex]]' -- check by looking for files in library path
4274 # which responds to the $file_magic_cmd with a given extended regex.
4275 # If you have `file' or equivalent on your system and you're not sure
4276 # whether `pass_all' will *always* work, you probably want this one.
4278 case $host_os in
4279 aix4* | aix5*)
4280 lt_cv_deplibs_check_method=pass_all
4283 beos*)
4284 lt_cv_deplibs_check_method=pass_all
4287 bsdi4*)
4288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4289 lt_cv_file_magic_cmd='/usr/bin/file -L'
4290 lt_cv_file_magic_test_file=/shlib/libc.so
4293 cygwin* | mingw* | pw32*)
4294 # win32_libid is a shell function defined in ltmain.sh
4295 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4296 lt_cv_file_magic_cmd='win32_libid'
4299 darwin* | rhapsody*)
4300 # this will be overwritten by pass_all, but leave it in just in case
4301 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4302 lt_cv_file_magic_cmd='/usr/bin/file -L'
4303 case "$host_os" in
4304 rhapsody* | darwin1.[012])
4305 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4307 *) # Darwin 1.3 on
4308 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4310 esac
4311 lt_cv_deplibs_check_method=pass_all
4314 freebsd* | kfreebsd*-gnu)
4315 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4316 case $host_cpu in
4317 i*86 )
4318 # Not sure whether the presence of OpenBSD here was a mistake.
4319 # Let's accept both of them until this is cleared up.
4320 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4321 lt_cv_file_magic_cmd=/usr/bin/file
4322 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324 esac
4325 else
4326 lt_cv_deplibs_check_method=pass_all
4330 gnu*)
4331 lt_cv_deplibs_check_method=pass_all
4334 hpux10.20* | hpux11*)
4335 lt_cv_file_magic_cmd=/usr/bin/file
4336 case "$host_cpu" in
4337 ia64*)
4338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4341 hppa*64*)
4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4343 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4346 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4347 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4349 esac
4352 irix5* | irix6* | nonstopux*)
4353 case $host_os in
4354 irix5* | nonstopux*)
4355 # this will be overridden with pass_all, but let us keep it just in case
4356 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359 case $LD in
4360 *-32|*"-32 ") libmagic=32-bit;;
4361 *-n32|*"-n32 ") libmagic=N32;;
4362 *-64|*"-64 ") libmagic=64-bit;;
4363 *) libmagic=never-match;;
4364 esac
4365 # this will be overridden with pass_all, but let us keep it just in case
4366 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4368 esac
4369 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4370 lt_cv_deplibs_check_method=pass_all
4373 # This must be Linux ELF.
4374 linux*)
4375 case $host_cpu in
4376 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4377 lt_cv_deplibs_check_method=pass_all ;;
4379 # glibc up to 2.1.1 does not perform some relocations on ARM
4380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4381 esac
4382 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4385 netbsd*)
4386 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4388 else
4389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4393 newos6*)
4394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4395 lt_cv_file_magic_cmd=/usr/bin/file
4396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4399 nto-qnx*)
4400 lt_cv_deplibs_check_method=unknown
4403 openbsd*)
4404 lt_cv_file_magic_cmd=/usr/bin/file
4405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4408 else
4409 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4413 osf3* | osf4* | osf5*)
4414 # this will be overridden with pass_all, but let us keep it just in case
4415 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4416 lt_cv_file_magic_test_file=/shlib/libc.so
4417 lt_cv_deplibs_check_method=pass_all
4420 sco3.2v5*)
4421 lt_cv_deplibs_check_method=pass_all
4424 solaris*)
4425 lt_cv_deplibs_check_method=pass_all
4426 lt_cv_file_magic_test_file=/lib/libc.so
4429 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4430 case $host_vendor in
4431 motorola)
4432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4435 ncr)
4436 lt_cv_deplibs_check_method=pass_all
4438 sequent)
4439 lt_cv_file_magic_cmd='/bin/file'
4440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4442 sni)
4443 lt_cv_file_magic_cmd='/bin/file'
4444 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4445 lt_cv_file_magic_test_file=/lib/libc.so
4447 siemens)
4448 lt_cv_deplibs_check_method=pass_all
4450 esac
4453 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4454 lt_cv_deplibs_check_method=pass_all
4456 esac
4459 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4460 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4461 file_magic_cmd=$lt_cv_file_magic_cmd
4462 deplibs_check_method=$lt_cv_deplibs_check_method
4463 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4468 # If no C compiler was specified, use CC.
4469 LTCC=${LTCC-"$CC"}
4471 # Allow CC to be a program name with arguments.
4472 compiler=$CC
4475 # Check whether --enable-libtool-lock was given.
4476 if test "${enable_libtool_lock+set}" = set; then
4477 enableval=$enable_libtool_lock;
4480 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4482 # Some flags need to be propagated to the compiler or linker for good
4483 # libtool support.
4484 case $host in
4485 ia64-*-hpux*)
4486 # Find out which ABI we are using.
4487 echo 'int i;' > conftest.$ac_ext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 case `/usr/bin/file conftest.$ac_objext` in
4494 *ELF-32*)
4495 HPUX_IA64_MODE="32"
4497 *ELF-64*)
4498 HPUX_IA64_MODE="64"
4500 esac
4502 rm -rf conftest*
4504 *-*-irix6*)
4505 # Find out which ABI we are using.
4506 echo '#line 4506 "configure"' > conftest.$ac_ext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508 (eval $ac_compile) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; then
4512 if test "$lt_cv_prog_gnu_ld" = yes; then
4513 case `/usr/bin/file conftest.$ac_objext` in
4514 *32-bit*)
4515 LD="${LD-ld} -melf32bsmip"
4517 *N32*)
4518 LD="${LD-ld} -melf32bmipn32"
4520 *64-bit*)
4521 LD="${LD-ld} -melf64bmip"
4523 esac
4524 else
4525 case `/usr/bin/file conftest.$ac_objext` in
4526 *32-bit*)
4527 LD="${LD-ld} -32"
4529 *N32*)
4530 LD="${LD-ld} -n32"
4532 *64-bit*)
4533 LD="${LD-ld} -64"
4535 esac
4538 rm -rf conftest*
4541 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4542 # Find out which ABI we are using.
4543 echo 'int i;' > conftest.$ac_ext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545 (eval $ac_compile) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 case "`/usr/bin/file conftest.o`" in
4550 *32-bit*)
4551 case $host in
4552 x86_64-*linux*)
4553 LD="${LD-ld} -m elf_i386"
4555 ppc64-*linux*|powerpc64-*linux*)
4556 LD="${LD-ld} -m elf32ppclinux"
4558 s390x-*linux*)
4559 LD="${LD-ld} -m elf_s390"
4561 sparc64-*linux*)
4562 LD="${LD-ld} -m elf32_sparc"
4564 esac
4566 *64-bit*)
4567 case $host in
4568 x86_64-*linux*)
4569 LD="${LD-ld} -m elf_x86_64"
4571 ppc*-*linux*|powerpc*-*linux*)
4572 LD="${LD-ld} -m elf64ppc"
4574 s390*-*linux*)
4575 LD="${LD-ld} -m elf64_s390"
4577 sparc*-*linux*)
4578 LD="${LD-ld} -m elf64_sparc"
4580 esac
4582 esac
4584 rm -rf conftest*
4587 *-*-sco3.2v5*)
4588 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4589 SAVE_CFLAGS="$CFLAGS"
4590 CFLAGS="$CFLAGS -belf"
4591 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4592 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4593 if test "${lt_cv_cc_needs_belf+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 ac_ext=c
4597 ac_cpp='$CPP $CPPFLAGS'
4598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h. */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4610 main ()
4614 return 0;
4616 _ACEOF
4617 rm -f conftest.$ac_objext conftest$ac_exeext
4618 if { (ac_try="$ac_link"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624 (eval "$ac_link") 2>conftest.er1
4625 ac_status=$?
4626 grep -v '^ *+' conftest.er1 >conftest.err
4627 rm -f conftest.er1
4628 cat conftest.err >&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } &&
4631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635 esac
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; } &&
4641 { ac_try='test -s conftest$ac_exeext'
4642 { (case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_try") 2>&5
4648 ac_status=$?
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 lt_cv_cc_needs_belf=yes
4652 else
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4656 lt_cv_cc_needs_belf=no
4659 rm -f core conftest.err conftest.$ac_objext \
4660 conftest$ac_exeext conftest.$ac_ext
4661 ac_ext=c
4662 ac_cpp='$CPP $CPPFLAGS'
4663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4669 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4670 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4671 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4672 CFLAGS="$SAVE_CFLAGS"
4676 esac
4678 need_locks="$enable_libtool_lock"
4681 ac_ext=c
4682 ac_cpp='$CPP $CPPFLAGS'
4683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4686 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4687 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4688 # On Suns, sometimes $CPP names a directory.
4689 if test -n "$CPP" && test -d "$CPP"; then
4690 CPP=
4692 if test -z "$CPP"; then
4693 if test "${ac_cv_prog_CPP+set}" = set; then
4694 echo $ECHO_N "(cached) $ECHO_C" >&6
4695 else
4696 # Double quotes because CPP needs to be expanded
4697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4699 ac_preproc_ok=false
4700 for ac_c_preproc_warn_flag in '' yes
4702 # Use a header file that comes with gcc, so configuring glibc
4703 # with a fresh cross-compiler works.
4704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4705 # <limits.h> exists even on freestanding compilers.
4706 # On the NeXT, cc -E runs the code through the compiler's parser,
4707 # not just through cpp. "Syntax error" is here to catch this case.
4708 cat >conftest.$ac_ext <<_ACEOF
4709 /* confdefs.h. */
4710 _ACEOF
4711 cat confdefs.h >>conftest.$ac_ext
4712 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4714 #ifdef __STDC__
4715 # include <limits.h>
4716 #else
4717 # include <assert.h>
4718 #endif
4719 Syntax error
4720 _ACEOF
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4728 ac_status=$?
4729 grep -v '^ *+' conftest.er1 >conftest.err
4730 rm -f conftest.er1
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null; then
4734 if test -s conftest.err; then
4735 ac_cpp_err=$ac_c_preproc_warn_flag
4736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4737 else
4738 ac_cpp_err=
4740 else
4741 ac_cpp_err=yes
4743 if test -z "$ac_cpp_err"; then
4745 else
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 # Broken: fails on valid input.
4750 continue
4753 rm -f conftest.err conftest.$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h. */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4764 _ACEOF
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 ac_status=$?
4773 grep -v '^ *+' conftest.er1 >conftest.err
4774 rm -f conftest.er1
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null; then
4778 if test -s conftest.err; then
4779 ac_cpp_err=$ac_c_preproc_warn_flag
4780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4781 else
4782 ac_cpp_err=
4784 else
4785 ac_cpp_err=yes
4787 if test -z "$ac_cpp_err"; then
4788 # Broken: success on invalid input.
4789 continue
4790 else
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 # Passes both tests.
4795 ac_preproc_ok=:
4796 break
4799 rm -f conftest.err conftest.$ac_ext
4801 done
4802 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4803 rm -f conftest.err conftest.$ac_ext
4804 if $ac_preproc_ok; then
4805 break
4808 done
4809 ac_cv_prog_CPP=$CPP
4812 CPP=$ac_cv_prog_CPP
4813 else
4814 ac_cv_prog_CPP=$CPP
4816 { echo "$as_me:$LINENO: result: $CPP" >&5
4817 echo "${ECHO_T}$CPP" >&6; }
4818 ac_preproc_ok=false
4819 for ac_c_preproc_warn_flag in '' yes
4821 # Use a header file that comes with gcc, so configuring glibc
4822 # with a fresh cross-compiler works.
4823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4824 # <limits.h> exists even on freestanding compilers.
4825 # On the NeXT, cc -E runs the code through the compiler's parser,
4826 # not just through cpp. "Syntax error" is here to catch this case.
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #ifdef __STDC__
4834 # include <limits.h>
4835 #else
4836 # include <assert.h>
4837 #endif
4838 Syntax error
4839 _ACEOF
4840 if { (ac_try="$ac_cpp conftest.$ac_ext"
4841 case "(($ac_try" in
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4844 esac
4845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null; then
4853 if test -s conftest.err; then
4854 ac_cpp_err=$ac_c_preproc_warn_flag
4855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4856 else
4857 ac_cpp_err=
4859 else
4860 ac_cpp_err=yes
4862 if test -z "$ac_cpp_err"; then
4864 else
4865 echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 # Broken: fails on valid input.
4869 continue
4872 rm -f conftest.err conftest.$ac_ext
4874 # OK, works on sane cases. Now check whether nonexistent headers
4875 # can be detected and how.
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <ac_nonexistent.h>
4883 _ACEOF
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4885 case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4891 ac_status=$?
4892 grep -v '^ *+' conftest.er1 >conftest.err
4893 rm -f conftest.er1
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } >/dev/null; then
4897 if test -s conftest.err; then
4898 ac_cpp_err=$ac_c_preproc_warn_flag
4899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4900 else
4901 ac_cpp_err=
4903 else
4904 ac_cpp_err=yes
4906 if test -z "$ac_cpp_err"; then
4907 # Broken: success on invalid input.
4908 continue
4909 else
4910 echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4913 # Passes both tests.
4914 ac_preproc_ok=:
4915 break
4918 rm -f conftest.err conftest.$ac_ext
4920 done
4921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4922 rm -f conftest.err conftest.$ac_ext
4923 if $ac_preproc_ok; then
4925 else
4926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4927 See \`config.log' for more details." >&5
4928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4929 See \`config.log' for more details." >&2;}
4930 { (exit 1); exit 1; }; }
4933 ac_ext=c
4934 ac_cpp='$CPP $CPPFLAGS'
4935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4942 if test "${ac_cv_header_stdc+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h. */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <stdlib.h>
4952 #include <stdarg.h>
4953 #include <string.h>
4954 #include <float.h>
4957 main ()
4961 return 0;
4963 _ACEOF
4964 rm -f conftest.$ac_objext
4965 if { (ac_try="$ac_compile"
4966 case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969 esac
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_compile") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4979 { (case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982 esac
4983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_try") 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992 esac
4993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994 (eval "$ac_try") 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_header_stdc=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 if test $ac_cv_header_stdc = yes; then
5009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h. */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5016 #include <string.h>
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "memchr" >/dev/null 2>&1; then
5022 else
5023 ac_cv_header_stdc=no
5025 rm -f conftest*
5029 if test $ac_cv_header_stdc = yes; then
5030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <stdlib.h>
5039 _ACEOF
5040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5041 $EGREP "free" >/dev/null 2>&1; then
5043 else
5044 ac_cv_header_stdc=no
5046 rm -f conftest*
5050 if test $ac_cv_header_stdc = yes; then
5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5052 if test "$cross_compiling" = yes; then
5054 else
5055 cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h. */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 #include <ctype.h>
5062 #include <stdlib.h>
5063 #if ((' ' & 0x0FF) == 0x020)
5064 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5065 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5066 #else
5067 # define ISLOWER(c) \
5068 (('a' <= (c) && (c) <= 'i') \
5069 || ('j' <= (c) && (c) <= 'r') \
5070 || ('s' <= (c) && (c) <= 'z'))
5071 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5072 #endif
5074 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 main ()
5078 int i;
5079 for (i = 0; i < 256; i++)
5080 if (XOR (islower (i), ISLOWER (i))
5081 || toupper (i) != TOUPPER (i))
5082 return 2;
5083 return 0;
5085 _ACEOF
5086 rm -f conftest$ac_exeext
5087 if { (ac_try="$ac_link"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5093 (eval "$ac_link") 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100 esac
5101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5107 else
5108 echo "$as_me: program exited with status $ac_status" >&5
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5112 ( exit $ac_status )
5113 ac_cv_header_stdc=no
5115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5122 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5123 if test $ac_cv_header_stdc = yes; then
5125 cat >>confdefs.h <<\_ACEOF
5126 #define STDC_HEADERS 1
5127 _ACEOF
5131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5141 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5142 inttypes.h stdint.h unistd.h
5144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h. */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5156 $ac_includes_default
5158 #include <$ac_header>
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (ac_try="$ac_compile"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_compile") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } &&
5174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5175 { (case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178 esac
5179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_try") 2>&5
5181 ac_status=$?
5182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5183 (exit $ac_status); }; } &&
5184 { ac_try='test -s conftest.$ac_objext'
5185 { (case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_try") 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; }; then
5194 eval "$as_ac_Header=yes"
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 eval "$as_ac_Header=no"
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 ac_res=`eval echo '${'$as_ac_Header'}'`
5205 { echo "$as_me:$LINENO: result: $ac_res" >&5
5206 echo "${ECHO_T}$ac_res" >&6; }
5207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5208 cat >>confdefs.h <<_ACEOF
5209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5210 _ACEOF
5214 done
5218 for ac_header in dlfcn.h
5220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_res=`eval echo '${'$as_ac_Header'}'`
5228 { echo "$as_me:$LINENO: result: $ac_res" >&5
5229 echo "${ECHO_T}$ac_res" >&6; }
5230 else
5231 # Is the header compilable?
5232 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5233 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 $ac_includes_default
5241 #include <$ac_header>
5242 _ACEOF
5243 rm -f conftest.$ac_objext
5244 if { (ac_try="$ac_compile"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_try") 2>&5
5264 ac_status=$?
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (case "(($ac_try" in
5269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270 *) ac_try_echo=$ac_try;;
5271 esac
5272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5273 (eval "$ac_try") 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; }; then
5277 ac_header_compiler=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_header_compiler=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5287 echo "${ECHO_T}$ac_header_compiler" >&6; }
5289 # Is the header present?
5290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5292 cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h. */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5298 #include <$ac_header>
5299 _ACEOF
5300 if { (ac_try="$ac_cpp conftest.$ac_ext"
5301 case "(($ac_try" in
5302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303 *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } >/dev/null; then
5313 if test -s conftest.err; then
5314 ac_cpp_err=$ac_c_preproc_warn_flag
5315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5316 else
5317 ac_cpp_err=
5319 else
5320 ac_cpp_err=yes
5322 if test -z "$ac_cpp_err"; then
5323 ac_header_preproc=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_header_preproc=no
5331 rm -f conftest.err conftest.$ac_ext
5332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333 echo "${ECHO_T}$ac_header_preproc" >&6; }
5335 # So? What about this header?
5336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5337 yes:no: )
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342 ac_header_preproc=yes
5344 no:yes:* )
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5348 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5352 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5359 esac
5360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 eval "$as_ac_Header=\$ac_header_preproc"
5367 ac_res=`eval echo '${'$as_ac_Header'}'`
5368 { echo "$as_me:$LINENO: result: $ac_res" >&5
5369 echo "${ECHO_T}$ac_res" >&6; }
5372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5375 _ACEOF
5379 done
5381 ac_ext=cpp
5382 ac_cpp='$CXXCPP $CPPFLAGS'
5383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5386 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5387 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5388 if test -z "$CXXCPP"; then
5389 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392 # Double quotes because CXXCPP needs to be expanded
5393 for CXXCPP in "$CXX -E" "/lib/cpp"
5395 ac_preproc_ok=false
5396 for ac_cxx_preproc_warn_flag in '' yes
5398 # Use a header file that comes with gcc, so configuring glibc
5399 # with a fresh cross-compiler works.
5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401 # <limits.h> exists even on freestanding compilers.
5402 # On the NeXT, cc -E runs the code through the compiler's parser,
5403 # not just through cpp. "Syntax error" is here to catch this case.
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #ifdef __STDC__
5411 # include <limits.h>
5412 #else
5413 # include <assert.h>
5414 #endif
5415 Syntax error
5416 _ACEOF
5417 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 case "(($ac_try" in
5419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420 *) ac_try_echo=$ac_try;;
5421 esac
5422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_cxx_preproc_warn_flag
5432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5433 else
5434 ac_cpp_err=
5436 else
5437 ac_cpp_err=yes
5439 if test -z "$ac_cpp_err"; then
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 # Broken: fails on valid input.
5446 continue
5449 rm -f conftest.err conftest.$ac_ext
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat >conftest.$ac_ext <<_ACEOF
5454 /* confdefs.h. */
5455 _ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <ac_nonexistent.h>
5460 _ACEOF
5461 if { (ac_try="$ac_cpp conftest.$ac_ext"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } >/dev/null; then
5474 if test -s conftest.err; then
5475 ac_cpp_err=$ac_cxx_preproc_warn_flag
5476 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5477 else
5478 ac_cpp_err=
5480 else
5481 ac_cpp_err=yes
5483 if test -z "$ac_cpp_err"; then
5484 # Broken: success on invalid input.
5485 continue
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5490 # Passes both tests.
5491 ac_preproc_ok=:
5492 break
5495 rm -f conftest.err conftest.$ac_ext
5497 done
5498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5499 rm -f conftest.err conftest.$ac_ext
5500 if $ac_preproc_ok; then
5501 break
5504 done
5505 ac_cv_prog_CXXCPP=$CXXCPP
5508 CXXCPP=$ac_cv_prog_CXXCPP
5509 else
5510 ac_cv_prog_CXXCPP=$CXXCPP
5512 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5513 echo "${ECHO_T}$CXXCPP" >&6; }
5514 ac_preproc_ok=false
5515 for ac_cxx_preproc_warn_flag in '' yes
5517 # Use a header file that comes with gcc, so configuring glibc
5518 # with a fresh cross-compiler works.
5519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5520 # <limits.h> exists even on freestanding compilers.
5521 # On the NeXT, cc -E runs the code through the compiler's parser,
5522 # not just through cpp. "Syntax error" is here to catch this case.
5523 cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h. */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h. */
5529 #ifdef __STDC__
5530 # include <limits.h>
5531 #else
5532 # include <assert.h>
5533 #endif
5534 Syntax error
5535 _ACEOF
5536 if { (ac_try="$ac_cpp conftest.$ac_ext"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } >/dev/null; then
5549 if test -s conftest.err; then
5550 ac_cpp_err=$ac_cxx_preproc_warn_flag
5551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5552 else
5553 ac_cpp_err=
5555 else
5556 ac_cpp_err=yes
5558 if test -z "$ac_cpp_err"; then
5560 else
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 # Broken: fails on valid input.
5565 continue
5568 rm -f conftest.err conftest.$ac_ext
5570 # OK, works on sane cases. Now check whether nonexistent headers
5571 # can be detected and how.
5572 cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h. */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5578 #include <ac_nonexistent.h>
5579 _ACEOF
5580 if { (ac_try="$ac_cpp conftest.$ac_ext"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } >/dev/null; then
5593 if test -s conftest.err; then
5594 ac_cpp_err=$ac_cxx_preproc_warn_flag
5595 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5596 else
5597 ac_cpp_err=
5599 else
5600 ac_cpp_err=yes
5602 if test -z "$ac_cpp_err"; then
5603 # Broken: success on invalid input.
5604 continue
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 # Passes both tests.
5610 ac_preproc_ok=:
5611 break
5614 rm -f conftest.err conftest.$ac_ext
5616 done
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.err conftest.$ac_ext
5619 if $ac_preproc_ok; then
5621 else
5622 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5623 See \`config.log' for more details." >&5
5624 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5625 See \`config.log' for more details." >&2;}
5626 { (exit 1); exit 1; }; }
5629 ac_ext=cpp
5630 ac_cpp='$CXXCPP $CPPFLAGS'
5631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5636 ac_ext=f
5637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5640 if test -n "$ac_tool_prefix"; then
5641 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5647 if test "${ac_cv_prog_F77+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 if test -n "$F77"; then
5651 ac_cv_prog_F77="$F77" # Let the user override the test.
5652 else
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 for as_dir in $PATH
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5664 done
5665 done
5666 IFS=$as_save_IFS
5670 F77=$ac_cv_prog_F77
5671 if test -n "$F77"; then
5672 { echo "$as_me:$LINENO: result: $F77" >&5
5673 echo "${ECHO_T}$F77" >&6; }
5674 else
5675 { echo "$as_me:$LINENO: result: no" >&5
5676 echo "${ECHO_T}no" >&6; }
5680 test -n "$F77" && break
5681 done
5683 if test -z "$F77"; then
5684 ac_ct_F77=$F77
5685 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5691 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test -n "$ac_ct_F77"; then
5695 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_prog_ac_ct_F77="$ac_prog"
5705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5708 done
5709 done
5710 IFS=$as_save_IFS
5714 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5715 if test -n "$ac_ct_F77"; then
5716 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5717 echo "${ECHO_T}$ac_ct_F77" >&6; }
5718 else
5719 { echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6; }
5724 test -n "$ac_ct_F77" && break
5725 done
5727 if test "x$ac_ct_F77" = x; then
5728 F77=""
5729 else
5730 case $cross_compiling:$ac_tool_warned in
5731 yes:)
5732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5733 whose name does not start with the host triplet. If you think this
5734 configuration is useful to you, please write to autoconf@gnu.org." >&5
5735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5736 whose name does not start with the host triplet. If you think this
5737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 F77=$ac_ct_F77
5745 # Provide some information about the compiler.
5746 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5747 ac_compiler=`set X $ac_compile; echo $2`
5748 { (ac_try="$ac_compiler --version >&5"
5749 case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compiler --version >&5") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }
5758 { (ac_try="$ac_compiler -v >&5"
5759 case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762 esac
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler -v >&5") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (ac_try="$ac_compiler -V >&5"
5769 case "(($ac_try" in
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5772 esac
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -V >&5") 2>&5
5775 ac_status=$?
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5778 rm -f a.out
5780 # If we don't use `.F' as extension, the preprocessor is not run on the
5781 # input file. (Note that this only needs to work for GNU compilers.)
5782 ac_save_ext=$ac_ext
5783 ac_ext=F
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789 cat >conftest.$ac_ext <<_ACEOF
5790 program main
5791 #ifndef __GNUC__
5792 choke me
5793 #endif
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815 esac
5816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; } &&
5821 { ac_try='test -s conftest.$ac_objext'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825 esac
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_compiler_gnu=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 ac_compiler_gnu=no
5839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5843 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5844 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5845 ac_ext=$ac_save_ext
5846 ac_test_FFLAGS=${FFLAGS+set}
5847 ac_save_FFLAGS=$FFLAGS
5848 FFLAGS=
5849 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5851 if test "${ac_cv_prog_f77_g+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854 FFLAGS=-g
5855 cat >conftest.$ac_ext <<_ACEOF
5856 program main
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878 esac
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888 esac
5889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 ac_cv_prog_f77_g=yes
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 ac_cv_prog_f77_g=no
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5906 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5907 if test "$ac_test_FFLAGS" = set; then
5908 FFLAGS=$ac_save_FFLAGS
5909 elif test $ac_cv_prog_f77_g = yes; then
5910 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5911 FFLAGS="-g -O2"
5912 else
5913 FFLAGS="-g"
5915 else
5916 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5917 FFLAGS="-O2"
5918 else
5919 FFLAGS=
5923 G77=`test $ac_compiler_gnu = yes && echo yes`
5924 ac_ext=c
5925 ac_cpp='$CPP $CPPFLAGS'
5926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5932 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5934 # find the maximum length of command line arguments
5935 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5936 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5937 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5941 testring="ABCD"
5943 case $build_os in
5944 msdosdjgpp*)
5945 # On DJGPP, this test can blow up pretty badly due to problems in libc
5946 # (any single argument exceeding 2000 bytes causes a buffer overrun
5947 # during glob expansion). Even if it were fixed, the result of this
5948 # check would be larger than it should be.
5949 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5952 gnu*)
5953 # Under GNU Hurd, this test is not required because there is
5954 # no limit to the length of command line arguments.
5955 # Libtool will interpret -1 as no limit whatsoever
5956 lt_cv_sys_max_cmd_len=-1;
5959 cygwin* | mingw*)
5960 # On Win9x/ME, this test blows up -- it succeeds, but takes
5961 # about 5 minutes as the teststring grows exponentially.
5962 # Worse, since 9x/ME are not pre-emptively multitasking,
5963 # you end up with a "frozen" computer, even though with patience
5964 # the test eventually succeeds (with a max line length of 256k).
5965 # Instead, let's just punt: use the minimum linelength reported by
5966 # all of the supported platforms: 8192 (on NT/2K/XP).
5967 lt_cv_sys_max_cmd_len=8192;
5970 amigaos* | morphos*)
5971 # On AmigaOS with pdksh, this test takes hours, literally.
5972 # So we just punt and use a minimum line length of 8192.
5973 lt_cv_sys_max_cmd_len=8192;
5977 # If test is not a shell built-in, we'll probably end up computing a
5978 # maximum length that is only half of the actual maximum length, but
5979 # we can't tell.
5980 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5981 = "XX$testring") >/dev/null 2>&1 &&
5982 new_result=`expr "X$testring" : ".*" 2>&1` &&
5983 lt_cv_sys_max_cmd_len=$new_result &&
5984 test $i != 17 # 1/2 MB should be enough
5986 i=`expr $i + 1`
5987 testring=$testring$testring
5988 done
5989 testring=
5990 # Add a significant safety factor because C++ compilers can tack on massive
5991 # amounts of additional arguments before passing them to the linker.
5992 # It appears as though 1/2 is a usable value.
5993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5995 esac
5999 if test -n $lt_cv_sys_max_cmd_len ; then
6000 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6001 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6002 else
6003 { echo "$as_me:$LINENO: result: none" >&5
6004 echo "${ECHO_T}none" >&6; }
6010 # Check for command to grab the raw symbol name followed by C symbol from nm.
6011 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6012 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6013 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 else
6017 # These are sane defaults that work on at least a few old systems.
6018 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6020 # Character class describing NM global symbol codes.
6021 symcode='[BCDEGRST]'
6023 # Regexp to match symbols that can be accessed directly from C.
6024 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6026 # Transform the above into a raw symbol and a C symbol.
6027 symxfrm='\1 \2\3 \3'
6029 # Transform an extracted symbol line into a proper C declaration
6030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6032 # Transform an extracted symbol line into symbol name and symbol address
6033 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6035 # Define system-specific variables.
6036 case $host_os in
6037 aix*)
6038 symcode='[BCDT]'
6040 cygwin* | mingw* | pw32*)
6041 symcode='[ABCDGISTW]'
6043 hpux*) # Its linker distinguishes data from code symbols
6044 if test "$host_cpu" = ia64; then
6045 symcode='[ABCDEGRST]'
6047 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6050 irix* | nonstopux*)
6051 symcode='[BCDEGRST]'
6053 osf*)
6054 symcode='[BCDEGQRST]'
6056 solaris* | sysv5*)
6057 symcode='[BDRT]'
6059 sysv4)
6060 symcode='[DFNSTU]'
6062 esac
6064 # Handle CRLF in mingw tool chain
6065 opt_cr=
6066 case $build_os in
6067 mingw*)
6068 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6070 esac
6072 # If we're using GNU nm, then use its standard symbol codes.
6073 case `$NM -V 2>&1` in
6074 *GNU* | *'with BFD'*)
6075 symcode='[ABCDGIRSTW]' ;;
6076 esac
6078 # Try without a prefix undercore, then with it.
6079 for ac_symprfx in "" "_"; do
6081 # Write the raw and C identifiers.
6082 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6084 # Check to see that the pipe works correctly.
6085 pipe_works=no
6087 rm -f conftest*
6088 cat > conftest.$ac_ext <<EOF
6089 #ifdef __cplusplus
6090 extern "C" {
6091 #endif
6092 char nm_test_var;
6093 void nm_test_func(){}
6094 #ifdef __cplusplus
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6119 # Make sure that we snagged all the symbols we need.
6120 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6121 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6131 cat <<EOF >> conftest.$ac_ext
6132 #if defined (__STDC__) && __STDC__
6133 # define lt_ptr_t void *
6134 #else
6135 # define lt_ptr_t char *
6136 # define const
6137 #endif
6139 /* The mapping between symbol names and symbols. */
6140 const struct {
6141 const char *name;
6142 lt_ptr_t address;
6144 lt_preloaded_symbols[] =
6147 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6148 cat <<\EOF >> conftest.$ac_ext
6149 {0, (lt_ptr_t) 0}
6152 #ifdef __cplusplus
6154 #endif
6156 # Now try linking the two files.
6157 mv conftest.$ac_objext conftstm.$ac_objext
6158 lt_save_LIBS="$LIBS"
6159 lt_save_CFLAGS="$CFLAGS"
6160 LIBS="conftstm.$ac_objext"
6161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163 (eval $ac_link) 2>&5
6164 ac_status=$?
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6167 pipe_works=yes
6169 LIBS="$lt_save_LIBS"
6170 CFLAGS="$lt_save_CFLAGS"
6171 else
6172 echo "cannot find nm_test_func in $nlist" >&5
6174 else
6175 echo "cannot find nm_test_var in $nlist" >&5
6177 else
6178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6180 else
6181 echo "$progname: failed program was:" >&5
6182 cat conftest.$ac_ext >&5
6184 rm -f conftest* conftst*
6186 # Do not use the global_symbol_pipe unless it works.
6187 if test "$pipe_works" = yes; then
6188 break
6189 else
6190 lt_cv_sys_global_symbol_pipe=
6192 done
6196 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6197 lt_cv_sys_global_symbol_to_cdecl=
6199 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6200 { echo "$as_me:$LINENO: result: failed" >&5
6201 echo "${ECHO_T}failed" >&6; }
6202 else
6203 { echo "$as_me:$LINENO: result: ok" >&5
6204 echo "${ECHO_T}ok" >&6; }
6207 { echo "$as_me:$LINENO: checking for objdir" >&5
6208 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6209 if test "${lt_cv_objdir+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 else
6212 rm -f .libs 2>/dev/null
6213 mkdir .libs 2>/dev/null
6214 if test -d .libs; then
6215 lt_cv_objdir=.libs
6216 else
6217 # MS-DOS does not allow filenames that begin with a dot.
6218 lt_cv_objdir=_libs
6220 rmdir .libs 2>/dev/null
6222 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6223 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6224 objdir=$lt_cv_objdir
6230 case $host_os in
6231 aix3*)
6232 # AIX sometimes has problems with the GCC collect2 program. For some
6233 # reason, if we set the COLLECT_NAMES environment variable, the problems
6234 # vanish in a puff of smoke.
6235 if test "X${COLLECT_NAMES+set}" != Xset; then
6236 COLLECT_NAMES=
6237 export COLLECT_NAMES
6240 esac
6242 # Sed substitution that helps us do robust quoting. It backslashifies
6243 # metacharacters that are still active within double-quoted strings.
6244 Xsed='sed -e s/^X//'
6245 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6247 # Same as above, but do not quote variable references.
6248 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6250 # Sed substitution to delay expansion of an escaped shell variable in a
6251 # double_quote_subst'ed string.
6252 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6254 # Sed substitution to avoid accidental globbing in evaled expressions
6255 no_glob_subst='s/\*/\\\*/g'
6257 # Constants:
6258 rm="rm -f"
6260 # Global variables:
6261 default_ofile=libtool
6262 can_build_shared=yes
6264 # All known linkers require a `.a' archive for static linking (except M$VC,
6265 # which needs '.lib').
6266 libext=a
6267 ltmain="$ac_aux_dir/ltmain.sh"
6268 ofile="$default_ofile"
6269 with_gnu_ld="$lt_cv_prog_gnu_ld"
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}ar; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_AR+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 if test -n "$AR"; then
6280 ac_cv_prog_AR="$AR" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_AR="${ac_tool_prefix}ar"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 AR=$ac_cv_prog_AR
6300 if test -n "$AR"; then
6301 { echo "$as_me:$LINENO: result: $AR" >&5
6302 echo "${ECHO_T}$AR" >&6; }
6303 else
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6310 if test -z "$ac_cv_prog_AR"; then
6311 ac_ct_AR=$AR
6312 # Extract the first word of "ar", so it can be a program name with args.
6313 set dummy ar; ac_word=$2
6314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6316 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 else
6319 if test -n "$ac_ct_AR"; then
6320 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_AR="ar"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6340 if test -n "$ac_ct_AR"; then
6341 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6342 echo "${ECHO_T}$ac_ct_AR" >&6; }
6343 else
6344 { echo "$as_me:$LINENO: result: no" >&5
6345 echo "${ECHO_T}no" >&6; }
6348 if test "x$ac_ct_AR" = x; then
6349 AR="false"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6354 whose name does not start with the host triplet. If you think this
6355 configuration is useful to you, please write to autoconf@gnu.org." >&5
6356 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6357 whose name does not start with the host triplet. If you think this
6358 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6359 ac_tool_warned=yes ;;
6360 esac
6361 AR=$ac_ct_AR
6363 else
6364 AR="$ac_cv_prog_AR"
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_prog_RANLIB+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 if test -n "$RANLIB"; then
6376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6389 done
6390 done
6391 IFS=$as_save_IFS
6395 RANLIB=$ac_cv_prog_RANLIB
6396 if test -n "$RANLIB"; then
6397 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6398 echo "${ECHO_T}$RANLIB" >&6; }
6399 else
6400 { echo "$as_me:$LINENO: result: no" >&5
6401 echo "${ECHO_T}no" >&6; }
6406 if test -z "$ac_cv_prog_RANLIB"; then
6407 ac_ct_RANLIB=$RANLIB
6408 # Extract the first word of "ranlib", so it can be a program name with args.
6409 set dummy ranlib; ac_word=$2
6410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6412 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 else
6415 if test -n "$ac_ct_RANLIB"; then
6416 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_ac_ct_RANLIB="ranlib"
6426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6436 if test -n "$ac_ct_RANLIB"; then
6437 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6438 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6439 else
6440 { echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6; }
6444 if test "x$ac_ct_RANLIB" = x; then
6445 RANLIB=":"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6450 whose name does not start with the host triplet. If you think this
6451 configuration is useful to you, please write to autoconf@gnu.org." >&5
6452 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6453 whose name does not start with the host triplet. If you think this
6454 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6455 ac_tool_warned=yes ;;
6456 esac
6457 RANLIB=$ac_ct_RANLIB
6459 else
6460 RANLIB="$ac_cv_prog_RANLIB"
6463 if test -n "$ac_tool_prefix"; then
6464 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6465 set dummy ${ac_tool_prefix}strip; ac_word=$2
6466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6468 if test "${ac_cv_prog_STRIP+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 if test -n "$STRIP"; then
6472 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6473 else
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 for as_dir in $PATH
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6485 done
6486 done
6487 IFS=$as_save_IFS
6491 STRIP=$ac_cv_prog_STRIP
6492 if test -n "$STRIP"; then
6493 { echo "$as_me:$LINENO: result: $STRIP" >&5
6494 echo "${ECHO_T}$STRIP" >&6; }
6495 else
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6502 if test -z "$ac_cv_prog_STRIP"; then
6503 ac_ct_STRIP=$STRIP
6504 # Extract the first word of "strip", so it can be a program name with args.
6505 set dummy strip; ac_word=$2
6506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 if test -n "$ac_ct_STRIP"; then
6512 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6517 IFS=$as_save_IFS
6518 test -z "$as_dir" && as_dir=.
6519 for ac_exec_ext in '' $ac_executable_extensions; do
6520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6521 ac_cv_prog_ac_ct_STRIP="strip"
6522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523 break 2
6525 done
6526 done
6527 IFS=$as_save_IFS
6531 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6532 if test -n "$ac_ct_STRIP"; then
6533 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6534 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6535 else
6536 { echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6; }
6540 if test "x$ac_ct_STRIP" = x; then
6541 STRIP=":"
6542 else
6543 case $cross_compiling:$ac_tool_warned in
6544 yes:)
6545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6546 whose name does not start with the host triplet. If you think this
6547 configuration is useful to you, please write to autoconf@gnu.org." >&5
6548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet. If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6551 ac_tool_warned=yes ;;
6552 esac
6553 STRIP=$ac_ct_STRIP
6555 else
6556 STRIP="$ac_cv_prog_STRIP"
6560 old_CC="$CC"
6561 old_CFLAGS="$CFLAGS"
6563 # Set sane defaults for various variables
6564 test -z "$AR" && AR=ar
6565 test -z "$AR_FLAGS" && AR_FLAGS=cru
6566 test -z "$AS" && AS=as
6567 test -z "$CC" && CC=cc
6568 test -z "$LTCC" && LTCC=$CC
6569 test -z "$DLLTOOL" && DLLTOOL=dlltool
6570 test -z "$LD" && LD=ld
6571 test -z "$LN_S" && LN_S="ln -s"
6572 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6573 test -z "$NM" && NM=nm
6574 test -z "$SED" && SED=sed
6575 test -z "$OBJDUMP" && OBJDUMP=objdump
6576 test -z "$RANLIB" && RANLIB=:
6577 test -z "$STRIP" && STRIP=:
6578 test -z "$ac_objext" && ac_objext=o
6580 # Determine commands to create old-style static archives.
6581 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6582 old_postinstall_cmds='chmod 644 $oldlib'
6583 old_postuninstall_cmds=
6585 if test -n "$RANLIB"; then
6586 case $host_os in
6587 openbsd*)
6588 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6591 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6593 esac
6594 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6597 # Only perform the check for file, if the check method requires it
6598 case $deplibs_check_method in
6599 file_magic*)
6600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6601 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6602 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6603 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 else
6606 case $MAGIC_CMD in
6607 [\\/*] | ?:[\\/]*)
6608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6611 lt_save_MAGIC_CMD="$MAGIC_CMD"
6612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6614 for ac_dir in $ac_dummy; do
6615 IFS="$lt_save_ifs"
6616 test -z "$ac_dir" && ac_dir=.
6617 if test -f $ac_dir/${ac_tool_prefix}file; then
6618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6619 if test -n "$file_magic_test_file"; then
6620 case $deplibs_check_method in
6621 "file_magic "*)
6622 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6625 $EGREP "$file_magic_regex" > /dev/null; then
6627 else
6628 cat <<EOF 1>&2
6630 *** Warning: the command libtool uses to detect shared libraries,
6631 *** $file_magic_cmd, produces output that libtool cannot recognize.
6632 *** The result is that libtool may fail to recognize shared libraries
6633 *** as such. This will affect the creation of libtool libraries that
6634 *** depend on shared libraries, but programs linked with such libtool
6635 *** libraries will work regardless of this problem. Nevertheless, you
6636 *** may want to report the problem to your system manager and/or to
6637 *** bug-libtool@gnu.org
6640 fi ;;
6641 esac
6643 break
6645 done
6646 IFS="$lt_save_ifs"
6647 MAGIC_CMD="$lt_save_MAGIC_CMD"
6649 esac
6652 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6653 if test -n "$MAGIC_CMD"; then
6654 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6655 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6656 else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6661 if test -z "$lt_cv_path_MAGIC_CMD"; then
6662 if test -n "$ac_tool_prefix"; then
6663 { echo "$as_me:$LINENO: checking for file" >&5
6664 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6665 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668 case $MAGIC_CMD in
6669 [\\/*] | ?:[\\/]*)
6670 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6673 lt_save_MAGIC_CMD="$MAGIC_CMD"
6674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6675 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6676 for ac_dir in $ac_dummy; do
6677 IFS="$lt_save_ifs"
6678 test -z "$ac_dir" && ac_dir=.
6679 if test -f $ac_dir/file; then
6680 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6681 if test -n "$file_magic_test_file"; then
6682 case $deplibs_check_method in
6683 "file_magic "*)
6684 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6686 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6687 $EGREP "$file_magic_regex" > /dev/null; then
6689 else
6690 cat <<EOF 1>&2
6692 *** Warning: the command libtool uses to detect shared libraries,
6693 *** $file_magic_cmd, produces output that libtool cannot recognize.
6694 *** The result is that libtool may fail to recognize shared libraries
6695 *** as such. This will affect the creation of libtool libraries that
6696 *** depend on shared libraries, but programs linked with such libtool
6697 *** libraries will work regardless of this problem. Nevertheless, you
6698 *** may want to report the problem to your system manager and/or to
6699 *** bug-libtool@gnu.org
6702 fi ;;
6703 esac
6705 break
6707 done
6708 IFS="$lt_save_ifs"
6709 MAGIC_CMD="$lt_save_MAGIC_CMD"
6711 esac
6714 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6715 if test -n "$MAGIC_CMD"; then
6716 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6717 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6718 else
6719 { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6723 else
6724 MAGIC_CMD=:
6730 esac
6732 enable_dlopen=yes
6733 enable_win32_dll=no
6735 # Check whether --enable-libtool-lock was given.
6736 if test "${enable_libtool_lock+set}" = set; then
6737 enableval=$enable_libtool_lock;
6740 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6743 # Check whether --with-pic was given.
6744 if test "${with_pic+set}" = set; then
6745 withval=$with_pic; pic_mode="$withval"
6746 else
6747 pic_mode=default
6750 test -z "$pic_mode" && pic_mode=default
6752 # Use C for the default configuration in the libtool script
6753 tagname=
6754 lt_save_CC="$CC"
6755 ac_ext=c
6756 ac_cpp='$CPP $CPPFLAGS'
6757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762 # Source file extension for C test sources.
6763 ac_ext=c
6765 # Object file extension for compiled C test sources.
6766 objext=o
6767 objext=$objext
6769 # Code to be used in simple compile tests
6770 lt_simple_compile_test_code="int some_variable = 0;\n"
6772 # Code to be used in simple link tests
6773 lt_simple_link_test_code='int main(){return(0);}\n'
6776 # If no C compiler was specified, use CC.
6777 LTCC=${LTCC-"$CC"}
6779 # Allow CC to be a program name with arguments.
6780 compiler=$CC
6784 # Check for any special shared library compilation flags.
6786 lt_prog_cc_shlib=
6787 if test "$GCC" = no; then
6788 case $host_os in
6789 sco3.2v5*)
6790 lt_prog_cc_shlib='-belf'
6792 esac
6794 if test -n "$lt_prog_cc_shlib"; then
6795 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6796 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6797 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6798 else
6799 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6800 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6801 lt_cv_prog_cc_can_build_shared=no
6807 # Check to make sure the static flag actually works.
6809 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6810 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6811 if test "${lt_prog_compiler_static_works+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 lt_prog_compiler_static_works=no
6815 save_LDFLAGS="$LDFLAGS"
6816 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6817 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6819 # The compiler can only warn and ignore the option if not recognized
6820 # So say no if there are warnings
6821 if test -s conftest.err; then
6822 # Append any errors to the config.log.
6823 cat conftest.err 1>&5
6824 else
6825 lt_prog_compiler_static_works=yes
6828 $rm conftest*
6829 LDFLAGS="$save_LDFLAGS"
6832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6833 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6835 if test x"$lt_prog_compiler_static_works" = xyes; then
6837 else
6838 lt_prog_compiler_static=
6843 ## CAVEAT EMPTOR:
6844 ## There is no encapsulation within the following macros, do not change
6845 ## the running order or otherwise move them around unless you know exactly
6846 ## what you are doing...
6848 lt_prog_compiler_no_builtin_flag=
6850 if test "$GCC" = yes; then
6851 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6854 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6855 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6856 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859 lt_cv_prog_compiler_rtti_exceptions=no
6860 ac_outfile=conftest.$ac_objext
6861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6862 lt_compiler_flag="-fno-rtti -fno-exceptions"
6863 # Insert the option either (1) after the last *FLAGS variable, or
6864 # (2) before a word containing "conftest.", or (3) at the end.
6865 # Note that $ac_compile itself does not contain backslashes and begins
6866 # with a dollar sign (not a hyphen), so the echo should work correctly.
6867 # The option is referenced via a variable to avoid confusing sed.
6868 lt_compile=`echo "$ac_compile" | $SED \
6869 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6871 -e 's:$: $lt_compiler_flag:'`
6872 (eval echo "\"\$as_me:6872: $lt_compile\"" >&5)
6873 (eval "$lt_compile" 2>conftest.err)
6874 ac_status=$?
6875 cat conftest.err >&5
6876 echo "$as_me:6876: \$? = $ac_status" >&5
6877 if (exit $ac_status) && test -s "$ac_outfile"; then
6878 # The compiler can only warn and ignore the option if not recognized
6879 # So say no if there are warnings
6880 if test ! -s conftest.err; then
6881 lt_cv_prog_compiler_rtti_exceptions=yes
6884 $rm conftest*
6887 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6888 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6890 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6891 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6892 else
6898 lt_prog_compiler_wl=
6899 lt_prog_compiler_pic=
6900 lt_prog_compiler_static=
6902 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6903 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6905 if test "$GCC" = yes; then
6906 lt_prog_compiler_wl='-Wl,'
6907 lt_prog_compiler_static='-static'
6909 case $host_os in
6910 aix*)
6911 # All AIX code is PIC.
6912 if test "$host_cpu" = ia64; then
6913 # AIX 5 now supports IA64 processor
6914 lt_prog_compiler_static='-Bstatic'
6918 amigaos*)
6919 # FIXME: we need at least 68020 code to build shared libraries, but
6920 # adding the `-m68020' flag to GCC prevents building anything better,
6921 # like `-m68040'.
6922 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6925 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6926 # PIC is the default for these OSes.
6929 mingw* | pw32* | os2*)
6930 # This hack is so that the source file can tell whether it is being
6931 # built for inclusion in a dll (and should export symbols for example).
6932 lt_prog_compiler_pic='-DDLL_EXPORT'
6935 darwin* | rhapsody*)
6936 # PIC is the default on this platform
6937 # Common symbols not allowed in MH_DYLIB files
6938 lt_prog_compiler_pic='-fno-common'
6941 msdosdjgpp*)
6942 # Just because we use GCC doesn't mean we suddenly get shared libraries
6943 # on systems that don't support them.
6944 lt_prog_compiler_can_build_shared=no
6945 enable_shared=no
6948 sysv4*MP*)
6949 if test -d /usr/nec; then
6950 lt_prog_compiler_pic=-Kconform_pic
6954 hpux*)
6955 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6956 # not for PA HP-UX.
6957 case "$host_cpu" in
6958 hppa*64*|ia64*)
6959 # +Z the default
6962 lt_prog_compiler_pic='-fPIC'
6964 esac
6968 lt_prog_compiler_pic='-fPIC'
6970 esac
6971 else
6972 # PORTME Check for flag to pass linker flags through the system compiler.
6973 case $host_os in
6974 aix*)
6975 lt_prog_compiler_wl='-Wl,'
6976 if test "$host_cpu" = ia64; then
6977 # AIX 5 now supports IA64 processor
6978 lt_prog_compiler_static='-Bstatic'
6979 else
6980 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6984 mingw* | pw32* | os2*)
6985 # This hack is so that the source file can tell whether it is being
6986 # built for inclusion in a dll (and should export symbols for example).
6987 lt_prog_compiler_pic='-DDLL_EXPORT'
6990 hpux9* | hpux10* | hpux11*)
6991 lt_prog_compiler_wl='-Wl,'
6992 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6993 # not for PA HP-UX.
6994 case "$host_cpu" in
6995 hppa*64*|ia64*)
6996 # +Z the default
6999 lt_prog_compiler_pic='+Z'
7001 esac
7002 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7003 lt_prog_compiler_static='${wl}-a ${wl}archive'
7006 irix5* | irix6* | nonstopux*)
7007 lt_prog_compiler_wl='-Wl,'
7008 # PIC (with -KPIC) is the default.
7009 lt_prog_compiler_static='-non_shared'
7012 newsos6)
7013 lt_prog_compiler_pic='-KPIC'
7014 lt_prog_compiler_static='-Bstatic'
7017 linux*)
7018 case $CC in
7019 icc* | ecc*)
7020 lt_prog_compiler_wl='-Wl,'
7021 lt_prog_compiler_pic='-KPIC'
7022 lt_prog_compiler_static='-static'
7024 ccc*)
7025 lt_prog_compiler_wl='-Wl,'
7026 # All Alpha code is PIC.
7027 lt_prog_compiler_static='-non_shared'
7029 esac
7032 osf3* | osf4* | osf5*)
7033 lt_prog_compiler_wl='-Wl,'
7034 # All OSF/1 code is PIC.
7035 lt_prog_compiler_static='-non_shared'
7038 sco3.2v5*)
7039 lt_prog_compiler_pic='-Kpic'
7040 lt_prog_compiler_static='-dn'
7043 solaris*)
7044 lt_prog_compiler_wl='-Wl,'
7045 lt_prog_compiler_pic='-KPIC'
7046 lt_prog_compiler_static='-Bstatic'
7049 sunos4*)
7050 lt_prog_compiler_wl='-Qoption ld '
7051 lt_prog_compiler_pic='-PIC'
7052 lt_prog_compiler_static='-Bstatic'
7055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7056 lt_prog_compiler_wl='-Wl,'
7057 lt_prog_compiler_pic='-KPIC'
7058 lt_prog_compiler_static='-Bstatic'
7061 sysv4*MP*)
7062 if test -d /usr/nec ;then
7063 lt_prog_compiler_pic='-Kconform_pic'
7064 lt_prog_compiler_static='-Bstatic'
7068 uts4*)
7069 lt_prog_compiler_pic='-pic'
7070 lt_prog_compiler_static='-Bstatic'
7074 lt_prog_compiler_can_build_shared=no
7076 esac
7079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7080 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7083 # Check to make sure the PIC flag actually works.
7085 if test -n "$lt_prog_compiler_pic"; then
7087 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7088 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7089 if test "${lt_prog_compiler_pic_works+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 lt_prog_compiler_pic_works=no
7093 ac_outfile=conftest.$ac_objext
7094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7095 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7096 # Insert the option either (1) after the last *FLAGS variable, or
7097 # (2) before a word containing "conftest.", or (3) at the end.
7098 # Note that $ac_compile itself does not contain backslashes and begins
7099 # with a dollar sign (not a hyphen), so the echo should work correctly.
7100 # The option is referenced via a variable to avoid confusing sed.
7101 lt_compile=`echo "$ac_compile" | $SED \
7102 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7104 -e 's:$: $lt_compiler_flag:'`
7105 (eval echo "\"\$as_me:7105: $lt_compile\"" >&5)
7106 (eval "$lt_compile" 2>conftest.err)
7107 ac_status=$?
7108 cat conftest.err >&5
7109 echo "$as_me:7109: \$? = $ac_status" >&5
7110 if (exit $ac_status) && test -s "$ac_outfile"; then
7111 # The compiler can only warn and ignore the option if not recognized
7112 # So say no if there are warnings
7113 if test ! -s conftest.err; then
7114 lt_prog_compiler_pic_works=yes
7117 $rm conftest*
7120 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7121 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7123 if test x"$lt_prog_compiler_pic_works" = xyes; then
7124 case $lt_prog_compiler_pic in
7125 "" | " "*) ;;
7126 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7127 esac
7128 else
7129 lt_prog_compiler_pic=
7130 lt_prog_compiler_can_build_shared=no
7134 case "$host_os" in
7135 # For platforms which do not support PIC, -DPIC is meaningless:
7136 *djgpp*)
7137 lt_prog_compiler_pic=
7140 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7142 esac
7144 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7145 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7146 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 else
7149 lt_cv_prog_compiler_c_o=no
7150 $rm -r conftest 2>/dev/null
7151 mkdir conftest
7152 cd conftest
7153 mkdir out
7154 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7156 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7157 # that will create temporary files in the current directory regardless of
7158 # the output directory. Thus, making CWD read-only will cause this test
7159 # to fail, enabling locking or at least warning the user not to do parallel
7160 # builds.
7161 chmod -w .
7163 lt_compiler_flag="-o out/conftest2.$ac_objext"
7164 # Insert the option either (1) after the last *FLAGS variable, or
7165 # (2) before a word containing "conftest.", or (3) at the end.
7166 # Note that $ac_compile itself does not contain backslashes and begins
7167 # with a dollar sign (not a hyphen), so the echo should work correctly.
7168 lt_compile=`echo "$ac_compile" | $SED \
7169 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5)
7173 (eval "$lt_compile" 2>out/conftest.err)
7174 ac_status=$?
7175 cat out/conftest.err >&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7178 then
7179 # The compiler can only warn and ignore the option if not recognized
7180 # So say no if there are warnings
7181 if test ! -s out/conftest.err; then
7182 lt_cv_prog_compiler_c_o=yes
7185 chmod u+w .
7186 $rm conftest*
7187 # SGI C++ compiler will create directory out/ii_files/ for
7188 # template instantiation
7189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7190 $rm out/* && rmdir out
7191 cd ..
7192 rmdir conftest
7193 $rm conftest*
7196 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7197 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7200 hard_links="nottested"
7201 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7202 # do not overwrite the value of need_locks provided by the user
7203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7204 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7205 hard_links=yes
7206 $rm conftest*
7207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7208 touch conftest.a
7209 ln conftest.a conftest.b 2>&5 || hard_links=no
7210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7211 { echo "$as_me:$LINENO: result: $hard_links" >&5
7212 echo "${ECHO_T}$hard_links" >&6; }
7213 if test "$hard_links" = no; then
7214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7215 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7216 need_locks=warn
7218 else
7219 need_locks=no
7222 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7223 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7225 runpath_var=
7226 allow_undefined_flag=
7227 enable_shared_with_static_runtimes=no
7228 archive_cmds=
7229 archive_expsym_cmds=
7230 old_archive_From_new_cmds=
7231 old_archive_from_expsyms_cmds=
7232 export_dynamic_flag_spec=
7233 whole_archive_flag_spec=
7234 thread_safe_flag_spec=
7235 hardcode_libdir_flag_spec=
7236 hardcode_libdir_flag_spec_ld=
7237 hardcode_libdir_separator=
7238 hardcode_direct=no
7239 hardcode_minus_L=no
7240 hardcode_shlibpath_var=unsupported
7241 link_all_deplibs=unknown
7242 hardcode_automatic=no
7243 module_cmds=
7244 module_expsym_cmds=
7245 always_export_symbols=no
7246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7247 # include_expsyms should be a list of space-separated symbols to be *always*
7248 # included in the symbol list
7249 include_expsyms=
7250 # exclude_expsyms can be an extended regexp of symbols to exclude
7251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7253 # as well as any symbol that contains `d'.
7254 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7256 # platforms (ab)use it in PIC code, but their linkers get confused if
7257 # the symbol is explicitly referenced. Since portable code cannot
7258 # rely on this symbol name, it's probably fine to never include it in
7259 # preloaded symbol tables.
7260 extract_expsyms_cmds=
7262 case $host_os in
7263 cygwin* | mingw* | pw32*)
7264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7265 # When not using gcc, we currently assume that we are using
7266 # Microsoft Visual C++.
7267 if test "$GCC" != yes; then
7268 with_gnu_ld=no
7271 openbsd*)
7272 with_gnu_ld=no
7274 esac
7276 ld_shlibs=yes
7277 if test "$with_gnu_ld" = yes; then
7278 # If archive_cmds runs LD, not CC, wlarc should be empty
7279 wlarc='${wl}'
7281 # See if GNU ld supports shared libraries.
7282 case $host_os in
7283 aix3* | aix4* | aix5*)
7284 # On AIX/PPC, the GNU linker is very broken
7285 if test "$host_cpu" != ia64; then
7286 ld_shlibs=no
7287 cat <<EOF 1>&2
7289 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7290 *** to be unable to reliably create shared libraries on AIX.
7291 *** Therefore, libtool is disabling shared libraries support. If you
7292 *** really care for shared libraries, you may want to modify your PATH
7293 *** so that a non-GNU linker is found, and then restart.
7299 amigaos*)
7300 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7301 hardcode_libdir_flag_spec='-L$libdir'
7302 hardcode_minus_L=yes
7304 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7305 # that the semantics of dynamic libraries on AmigaOS, at least up
7306 # to version 4, is to share data among multiple programs linked
7307 # with the same dynamic library. Since this doesn't match the
7308 # behavior of shared libraries on other platforms, we can't use
7309 # them.
7310 ld_shlibs=no
7313 beos*)
7314 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7315 allow_undefined_flag=unsupported
7316 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7317 # support --undefined. This deserves some investigation. FIXME
7318 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7319 else
7320 ld_shlibs=no
7324 cygwin* | mingw* | pw32*)
7325 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7326 # as there is no search path for DLLs.
7327 hardcode_libdir_flag_spec='-L$libdir'
7328 allow_undefined_flag=unsupported
7329 always_export_symbols=no
7330 enable_shared_with_static_runtimes=yes
7331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7333 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7335 # If the export-symbols file already is a .def file (1st line
7336 # is EXPORTS), use it as is; otherwise, prepend...
7337 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7338 cp $export_symbols $output_objdir/$soname.def;
7339 else
7340 echo EXPORTS > $output_objdir/$soname.def;
7341 cat $export_symbols >> $output_objdir/$soname.def;
7343 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7344 else
7345 ld_shlibs=no
7349 netbsd*)
7350 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7351 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7352 wlarc=
7353 else
7354 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7355 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7359 solaris* | sysv5*)
7360 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7361 ld_shlibs=no
7362 cat <<EOF 1>&2
7364 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7365 *** create shared libraries on Solaris systems. Therefore, libtool
7366 *** is disabling shared libraries support. We urge you to upgrade GNU
7367 *** binutils to release 2.9.1 or newer. Another option is to modify
7368 *** your PATH or compiler configuration so that the native linker is
7369 *** used, and then restart.
7372 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7375 else
7376 ld_shlibs=no
7380 sunos4*)
7381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7382 wlarc=
7383 hardcode_direct=yes
7384 hardcode_shlibpath_var=no
7387 linux*)
7388 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7389 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7390 archive_cmds="$tmp_archive_cmds"
7391 supports_anon_versioning=no
7392 case `$LD -v 2>/dev/null` in
7393 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7396 *\ 2.11.*) ;; # other 2.11 versions
7397 *) supports_anon_versioning=yes ;;
7398 esac
7399 if test $supports_anon_versioning = yes; then
7400 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7402 $echo "local: *; };" >> $output_objdir/$libname.ver~
7403 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7404 else
7405 archive_expsym_cmds="$tmp_archive_cmds"
7407 else
7408 ld_shlibs=no
7413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7415 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7416 else
7417 ld_shlibs=no
7420 esac
7422 if test "$ld_shlibs" = yes; then
7423 runpath_var=LD_RUN_PATH
7424 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7425 export_dynamic_flag_spec='${wl}--export-dynamic'
7426 # ancient GNU ld didn't support --whole-archive et. al.
7427 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7428 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7429 else
7430 whole_archive_flag_spec=
7433 else
7434 # PORTME fill in a description of your system's linker (not GNU ld)
7435 case $host_os in
7436 aix3*)
7437 allow_undefined_flag=unsupported
7438 always_export_symbols=yes
7439 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7440 # Note: this linker hardcodes the directories in LIBPATH if there
7441 # are no directories specified by -L.
7442 hardcode_minus_L=yes
7443 if test "$GCC" = yes && test -z "$link_static_flag"; then
7444 # Neither direct hardcoding nor static linking is supported with a
7445 # broken collect2.
7446 hardcode_direct=unsupported
7450 aix4* | aix5*)
7451 if test "$host_cpu" = ia64; then
7452 # On IA64, the linker does run time linking by default, so we don't
7453 # have to do anything special.
7454 aix_use_runtimelinking=no
7455 exp_sym_flag='-Bexport'
7456 no_entry_flag=""
7457 else
7458 # If we're using GNU nm, then we don't want the "-C" option.
7459 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7460 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7461 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7462 else
7463 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7465 aix_use_runtimelinking=no
7467 # Test if we are trying to use run time linking or normal
7468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7469 # need to do runtime linking.
7470 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7471 for ld_flag in $LDFLAGS; do
7472 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7473 aix_use_runtimelinking=yes
7474 break
7476 done
7477 esac
7479 exp_sym_flag='-bexport'
7480 no_entry_flag='-bnoentry'
7483 # When large executables or shared objects are built, AIX ld can
7484 # have problems creating the table of contents. If linking a library
7485 # or program results in "error TOC overflow" add -mminimal-toc to
7486 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7487 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7489 archive_cmds=''
7490 hardcode_direct=yes
7491 hardcode_libdir_separator=':'
7492 link_all_deplibs=yes
7494 if test "$GCC" = yes; then
7495 case $host_os in aix4.012|aix4.012.*)
7496 # We only want to do this on AIX 4.2 and lower, the check
7497 # below for broken collect2 doesn't work under 4.3+
7498 collect2name=`${CC} -print-prog-name=collect2`
7499 if test -f "$collect2name" && \
7500 strings "$collect2name" | grep resolve_lib_name >/dev/null
7501 then
7502 # We have reworked collect2
7503 hardcode_direct=yes
7504 else
7505 # We have old collect2
7506 hardcode_direct=unsupported
7507 # It fails to find uninstalled libraries when the uninstalled
7508 # path is not listed in the libpath. Setting hardcode_minus_L
7509 # to unsupported forces relinking
7510 hardcode_minus_L=yes
7511 hardcode_libdir_flag_spec='-L$libdir'
7512 hardcode_libdir_separator=
7514 esac
7515 shared_flag='-shared'
7516 else
7517 # not using gcc
7518 if test "$host_cpu" = ia64; then
7519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7520 # chokes on -Wl,-G. The following line is correct:
7521 shared_flag='-G'
7522 else
7523 if test "$aix_use_runtimelinking" = yes; then
7524 shared_flag='${wl}-G'
7525 else
7526 shared_flag='${wl}-bM:SRE'
7531 # It seems that -bexpall does not export symbols beginning with
7532 # underscore (_), so it is better to generate a list of symbols to export.
7533 always_export_symbols=yes
7534 if test "$aix_use_runtimelinking" = yes; then
7535 # Warning - without using the other runtime loading flags (-brtl),
7536 # -berok will link without error, but may produce a broken library.
7537 allow_undefined_flag='-berok'
7538 # Determine the default libpath from the value encoded in an empty executable.
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7547 main ()
7551 return 0;
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (ac_try="$ac_link"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_link") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } &&
7568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7569 { (case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_try") 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7582 esac
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_try") 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7591 # Check for a 64-bit object if we didn't find anything.
7592 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7593 }'`; fi
7594 else
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7601 rm -f core conftest.err conftest.$ac_objext \
7602 conftest$ac_exeext conftest.$ac_ext
7603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7605 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7606 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7607 else
7608 if test "$host_cpu" = ia64; then
7609 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7610 allow_undefined_flag="-z nodefs"
7611 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7612 else
7613 # Determine the default libpath from the value encoded in an empty executable.
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7622 main ()
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (ac_try="$ac_link"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } &&
7643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7644 { (case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_try") 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest$ac_exeext'
7654 { (case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_try") 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7666 # Check for a 64-bit object if we didn't find anything.
7667 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7668 }'`; fi
7669 else
7670 echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7676 rm -f core conftest.err conftest.$ac_objext \
7677 conftest$ac_exeext conftest.$ac_ext
7678 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7680 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7681 # Warning - without using the other run time loading flags,
7682 # -berok will link without error, but may produce a broken library.
7683 no_undefined_flag=' ${wl}-bernotok'
7684 allow_undefined_flag=' ${wl}-berok'
7685 # -bexpall does not export symbols beginning with underscore (_)
7686 always_export_symbols=yes
7687 # Exported symbols can be pulled into shared objects from archives
7688 whole_archive_flag_spec=' '
7689 archive_cmds_need_lc=yes
7690 # This is similar to how AIX traditionally builds it's shared libraries.
7691 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7696 amigaos*)
7697 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7698 hardcode_libdir_flag_spec='-L$libdir'
7699 hardcode_minus_L=yes
7700 # see comment about different semantics on the GNU ld section
7701 ld_shlibs=no
7704 bsdi4*)
7705 export_dynamic_flag_spec=-rdynamic
7708 cygwin* | mingw* | pw32*)
7709 # When not using gcc, we currently assume that we are using
7710 # Microsoft Visual C++.
7711 # hardcode_libdir_flag_spec is actually meaningless, as there is
7712 # no search path for DLLs.
7713 hardcode_libdir_flag_spec=' '
7714 allow_undefined_flag=unsupported
7715 # Tell ltmain to make .lib files, not .a files.
7716 libext=lib
7717 # Tell ltmain to make .dll files, not .so files.
7718 shrext=".dll"
7719 # FIXME: Setting linknames here is a bad hack.
7720 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7721 # The linker will automatically build a .lib file if we build a DLL.
7722 old_archive_From_new_cmds='true'
7723 # FIXME: Should let the user specify the lib program.
7724 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7725 fix_srcfile_path='`cygpath -w "$srcfile"`'
7726 enable_shared_with_static_runtimes=yes
7729 darwin* | rhapsody*)
7730 if test "$GXX" = yes ; then
7731 archive_cmds_need_lc=no
7732 case "$host_os" in
7733 rhapsody* | darwin1.[012])
7734 allow_undefined_flag='-undefined suppress'
7736 *) # Darwin 1.3 on
7737 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7738 allow_undefined_flag='-flat_namespace -undefined suppress'
7739 else
7740 case ${MACOSX_DEPLOYMENT_TARGET} in
7741 10.[012])
7742 allow_undefined_flag='-flat_namespace -undefined suppress'
7744 10.*)
7745 allow_undefined_flag='-undefined dynamic_lookup'
7747 esac
7750 esac
7751 lt_int_apple_cc_single_mod=no
7752 output_verbose_link_cmd='echo'
7753 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7754 lt_int_apple_cc_single_mod=yes
7756 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7757 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7758 else
7759 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7761 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7762 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7763 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7764 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7765 else
7766 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7768 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769 hardcode_direct=no
7770 hardcode_automatic=yes
7771 hardcode_shlibpath_var=unsupported
7772 whole_archive_flag_spec='-all_load $convenience'
7773 link_all_deplibs=yes
7774 else
7775 ld_shlibs=no
7779 dgux*)
7780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7781 hardcode_libdir_flag_spec='-L$libdir'
7782 hardcode_shlibpath_var=no
7785 freebsd1*)
7786 ld_shlibs=no
7789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7790 # support. Future versions do this automatically, but an explicit c++rt0.o
7791 # does not break anything, and helps significantly (at the cost of a little
7792 # extra space).
7793 freebsd2.2*)
7794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7795 hardcode_libdir_flag_spec='-R$libdir'
7796 hardcode_direct=yes
7797 hardcode_shlibpath_var=no
7800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7801 freebsd2*)
7802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7803 hardcode_direct=yes
7804 hardcode_minus_L=yes
7805 hardcode_shlibpath_var=no
7808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7809 freebsd* | kfreebsd*-gnu)
7810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7811 hardcode_libdir_flag_spec='-R$libdir'
7812 hardcode_direct=yes
7813 hardcode_shlibpath_var=no
7816 hpux9*)
7817 if test "$GCC" = yes; then
7818 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7819 else
7820 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7823 hardcode_libdir_separator=:
7824 hardcode_direct=yes
7826 # hardcode_minus_L: Not really in the search PATH,
7827 # but as the default location of the library.
7828 hardcode_minus_L=yes
7829 export_dynamic_flag_spec='${wl}-E'
7832 hpux10* | hpux11*)
7833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7834 case "$host_cpu" in
7835 hppa*64*|ia64*)
7836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7841 esac
7842 else
7843 case "$host_cpu" in
7844 hppa*64*|ia64*)
7845 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7848 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7850 esac
7852 if test "$with_gnu_ld" = no; then
7853 case "$host_cpu" in
7854 hppa*64*)
7855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7856 hardcode_libdir_flag_spec_ld='+b $libdir'
7857 hardcode_libdir_separator=:
7858 hardcode_direct=no
7859 hardcode_shlibpath_var=no
7861 ia64*)
7862 hardcode_libdir_flag_spec='-L$libdir'
7863 hardcode_direct=no
7864 hardcode_shlibpath_var=no
7866 # hardcode_minus_L: Not really in the search PATH,
7867 # but as the default location of the library.
7868 hardcode_minus_L=yes
7871 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7872 hardcode_libdir_separator=:
7873 hardcode_direct=yes
7874 export_dynamic_flag_spec='${wl}-E'
7876 # hardcode_minus_L: Not really in the search PATH,
7877 # but as the default location of the library.
7878 hardcode_minus_L=yes
7880 esac
7884 irix5* | irix6* | nonstopux*)
7885 if test "$GCC" = yes; then
7886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7887 else
7888 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7889 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7892 hardcode_libdir_separator=:
7893 link_all_deplibs=yes
7896 netbsd*)
7897 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7899 else
7900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7902 hardcode_libdir_flag_spec='-R$libdir'
7903 hardcode_direct=yes
7904 hardcode_shlibpath_var=no
7907 newsos6)
7908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7909 hardcode_direct=yes
7910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7911 hardcode_libdir_separator=:
7912 hardcode_shlibpath_var=no
7915 openbsd*)
7916 hardcode_direct=yes
7917 hardcode_shlibpath_var=no
7918 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7920 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7921 export_dynamic_flag_spec='${wl}-E'
7922 else
7923 case $host_os in
7924 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7925 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7926 hardcode_libdir_flag_spec='-R$libdir'
7929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7930 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7932 esac
7936 os2*)
7937 hardcode_libdir_flag_spec='-L$libdir'
7938 hardcode_minus_L=yes
7939 allow_undefined_flag=unsupported
7940 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7941 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7944 osf3*)
7945 if test "$GCC" = yes; then
7946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7947 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7948 else
7949 allow_undefined_flag=' -expect_unresolved \*'
7950 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7952 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7953 hardcode_libdir_separator=:
7956 osf4* | osf5*) # as osf3* with the addition of -msym flag
7957 if test "$GCC" = yes; then
7958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7959 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7961 else
7962 allow_undefined_flag=' -expect_unresolved \*'
7963 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7964 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7965 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7967 # Both c and cxx compiler support -rpath directly
7968 hardcode_libdir_flag_spec='-rpath $libdir'
7970 hardcode_libdir_separator=:
7973 sco3.2v5*)
7974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7975 hardcode_shlibpath_var=no
7976 export_dynamic_flag_spec='${wl}-Bexport'
7977 runpath_var=LD_RUN_PATH
7978 hardcode_runpath_var=yes
7981 solaris*)
7982 no_undefined_flag=' -z text'
7983 if test "$GCC" = yes; then
7984 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7985 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7986 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7987 else
7988 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7990 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7992 hardcode_libdir_flag_spec='-R$libdir'
7993 hardcode_shlibpath_var=no
7994 case $host_os in
7995 solaris2.[0-5] | solaris2.[0-5].*) ;;
7996 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7998 esac
7999 link_all_deplibs=yes
8002 sunos4*)
8003 if test "x$host_vendor" = xsequent; then
8004 # Use $CC to link under sequent, because it throws in some extra .o
8005 # files that make .init and .fini sections work.
8006 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8007 else
8008 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8010 hardcode_libdir_flag_spec='-L$libdir'
8011 hardcode_direct=yes
8012 hardcode_minus_L=yes
8013 hardcode_shlibpath_var=no
8016 sysv4)
8017 case $host_vendor in
8018 sni)
8019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8020 hardcode_direct=yes # is this really true???
8022 siemens)
8023 ## LD is ld it makes a PLAMLIB
8024 ## CC just makes a GrossModule.
8025 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8026 reload_cmds='$CC -r -o $output$reload_objs'
8027 hardcode_direct=no
8029 motorola)
8030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8031 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8033 esac
8034 runpath_var='LD_RUN_PATH'
8035 hardcode_shlibpath_var=no
8038 sysv4.3*)
8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_shlibpath_var=no
8041 export_dynamic_flag_spec='-Bexport'
8044 sysv4*MP*)
8045 if test -d /usr/nec; then
8046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8047 hardcode_shlibpath_var=no
8048 runpath_var=LD_RUN_PATH
8049 hardcode_runpath_var=yes
8050 ld_shlibs=yes
8054 sysv4.2uw2*)
8055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8056 hardcode_direct=yes
8057 hardcode_minus_L=no
8058 hardcode_shlibpath_var=no
8059 hardcode_runpath_var=yes
8060 runpath_var=LD_RUN_PATH
8063 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8064 no_undefined_flag='${wl}-z ${wl}text'
8065 if test "$GCC" = yes; then
8066 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8067 else
8068 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070 runpath_var='LD_RUN_PATH'
8071 hardcode_shlibpath_var=no
8074 sysv5*)
8075 no_undefined_flag=' -z text'
8076 # $CC -shared without GNU ld will not create a library from C++
8077 # object files and a static libstdc++, better avoid it by now
8078 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8079 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8080 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8081 hardcode_libdir_flag_spec=
8082 hardcode_shlibpath_var=no
8083 runpath_var='LD_RUN_PATH'
8086 uts4*)
8087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8088 hardcode_libdir_flag_spec='-L$libdir'
8089 hardcode_shlibpath_var=no
8093 ld_shlibs=no
8095 esac
8098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8099 echo "${ECHO_T}$ld_shlibs" >&6; }
8100 test "$ld_shlibs" = no && can_build_shared=no
8102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8103 if test "$GCC" = yes; then
8104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8108 # Do we need to explicitly link libc?
8110 case "x$archive_cmds_need_lc" in
8111 x|xyes)
8112 # Assume -lc should be added
8113 archive_cmds_need_lc=yes
8115 if test "$enable_shared" = yes && test "$GCC" = yes; then
8116 case $archive_cmds in
8117 *'~'*)
8118 # FIXME: we may have to deal with multi-command sequences.
8120 '$CC '*)
8121 # Test whether the compiler implicitly links with -lc since on some
8122 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8123 # to ld, don't add -lc before -lgcc.
8124 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8125 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8126 $rm conftest*
8127 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8130 (eval $ac_compile) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } 2>conftest.err; then
8134 soname=conftest
8135 lib=conftest
8136 libobjs=conftest.$ac_objext
8137 deplibs=
8138 wl=$lt_prog_compiler_wl
8139 compiler_flags=-v
8140 linker_flags=-v
8141 verstring=
8142 output_objdir=.
8143 libname=conftest
8144 lt_save_allow_undefined_flag=$allow_undefined_flag
8145 allow_undefined_flag=
8146 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8147 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }
8151 then
8152 archive_cmds_need_lc=no
8153 else
8154 archive_cmds_need_lc=yes
8156 allow_undefined_flag=$lt_save_allow_undefined_flag
8157 else
8158 cat conftest.err 1>&5
8160 $rm conftest*
8161 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8162 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8164 esac
8167 esac
8169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8171 library_names_spec=
8172 libname_spec='lib$name'
8173 soname_spec=
8174 shrext=".so"
8175 postinstall_cmds=
8176 postuninstall_cmds=
8177 finish_cmds=
8178 finish_eval=
8179 shlibpath_var=
8180 shlibpath_overrides_runpath=unknown
8181 version_type=none
8182 dynamic_linker="$host_os ld.so"
8183 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8184 if test "$GCC" = yes; then
8185 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8186 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8187 # if the path contains ";" then we assume it to be the separator
8188 # otherwise default to the standard path separator (i.e. ":") - it is
8189 # assumed that no part of a normal pathname contains ";" but that should
8190 # okay in the real world where ";" in dirpaths is itself problematic.
8191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8192 else
8193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8195 else
8196 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8198 need_lib_prefix=unknown
8199 hardcode_into_libs=no
8201 # when you set need_version to no, make sure it does not cause -set_version
8202 # flags to be left without arguments
8203 need_version=unknown
8205 case $host_os in
8206 aix3*)
8207 version_type=linux
8208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8209 shlibpath_var=LIBPATH
8211 # AIX 3 has no versioning support, so we append a major version to the name.
8212 soname_spec='${libname}${release}${shared_ext}$major'
8215 aix4* | aix5*)
8216 version_type=linux
8217 need_lib_prefix=no
8218 need_version=no
8219 hardcode_into_libs=yes
8220 if test "$host_cpu" = ia64; then
8221 # AIX 5 supports IA64
8222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 else
8225 # With GCC up to 2.95.x, collect2 would create an import file
8226 # for dependence libraries. The import file would start with
8227 # the line `#! .'. This would cause the generated library to
8228 # depend on `.', always an invalid library. This was fixed in
8229 # development snapshots of GCC prior to 3.0.
8230 case $host_os in
8231 aix4 | aix4.[01] | aix4.[01].*)
8232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8233 echo ' yes '
8234 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8236 else
8237 can_build_shared=no
8240 esac
8241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8242 # soname into executable. Probably we can add versioning support to
8243 # collect2, so additional links can be useful in future.
8244 if test "$aix_use_runtimelinking" = yes; then
8245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8246 # instead of lib<name>.a to let people know that these are not
8247 # typical AIX shared libraries.
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249 else
8250 # We preserve .a as extension for shared libraries through AIX4.2
8251 # and later when we are not doing run time linking.
8252 library_names_spec='${libname}${release}.a $libname.a'
8253 soname_spec='${libname}${release}${shared_ext}$major'
8255 shlibpath_var=LIBPATH
8259 amigaos*)
8260 library_names_spec='$libname.ixlibrary $libname.a'
8261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8262 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8265 beos*)
8266 library_names_spec='${libname}${shared_ext}'
8267 dynamic_linker="$host_os ld.so"
8268 shlibpath_var=LIBRARY_PATH
8271 bsdi4*)
8272 version_type=linux
8273 need_version=no
8274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275 soname_spec='${libname}${release}${shared_ext}$major'
8276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8277 shlibpath_var=LD_LIBRARY_PATH
8278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8280 # the default ld.so.conf also contains /usr/contrib/lib and
8281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8282 # libtool to hard-code these into programs
8285 cygwin* | mingw* | pw32*)
8286 version_type=windows
8287 shrext=".dll"
8288 need_version=no
8289 need_lib_prefix=no
8291 case $GCC,$host_os in
8292 yes,cygwin* | yes,mingw* | yes,pw32*)
8293 library_names_spec='$libname.dll.a'
8294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8295 postinstall_cmds='base_file=`basename \${file}`~
8296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8297 dldir=$destdir/`dirname \$dlpath`~
8298 test -d \$dldir || mkdir -p \$dldir~
8299 $install_prog $dir/$dlname \$dldir/$dlname'
8300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8301 dlpath=$dir/\$dldll~
8302 $rm \$dlpath'
8303 shlibpath_overrides_runpath=yes
8305 case $host_os in
8306 cygwin*)
8307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8309 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8311 mingw*)
8312 # MinGW DLLs use traditional 'lib' prefix
8313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8314 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8315 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8316 # It is most probably a Windows format PATH printed by
8317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8318 # path with ; separators, and with drive letters. We can handle the
8319 # drive letters (cygwin fileutils understands them), so leave them,
8320 # especially as we might pass files found there to a mingw objdump,
8321 # which wouldn't understand a cygwinified path. Ahh.
8322 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8323 else
8324 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8327 pw32*)
8328 # pw32 DLLs use 'pw' prefix rather than 'lib'
8329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8331 esac
8335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8337 esac
8338 dynamic_linker='Win32 ld.exe'
8339 # FIXME: first we should search . and the directory the executable is in
8340 shlibpath_var=PATH
8343 darwin* | rhapsody*)
8344 dynamic_linker="$host_os dyld"
8345 version_type=darwin
8346 need_lib_prefix=no
8347 need_version=no
8348 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8349 soname_spec='${libname}${release}${major}$shared_ext'
8350 shlibpath_overrides_runpath=yes
8351 shlibpath_var=DYLD_LIBRARY_PATH
8352 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8353 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8354 if test "$GCC" = yes; then
8355 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8356 else
8357 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8359 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8362 dgux*)
8363 version_type=linux
8364 need_lib_prefix=no
8365 need_version=no
8366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8367 soname_spec='${libname}${release}${shared_ext}$major'
8368 shlibpath_var=LD_LIBRARY_PATH
8371 freebsd1*)
8372 dynamic_linker=no
8375 kfreebsd*-gnu)
8376 version_type=linux
8377 need_lib_prefix=no
8378 need_version=no
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8380 soname_spec='${libname}${release}${shared_ext}$major'
8381 shlibpath_var=LD_LIBRARY_PATH
8382 shlibpath_overrides_runpath=no
8383 hardcode_into_libs=yes
8384 dynamic_linker='GNU ld.so'
8387 freebsd*)
8388 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8389 version_type=freebsd-$objformat
8390 case $version_type in
8391 freebsd-elf*)
8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8393 need_version=no
8394 need_lib_prefix=no
8396 freebsd-*)
8397 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8398 need_version=yes
8400 esac
8401 shlibpath_var=LD_LIBRARY_PATH
8402 case $host_os in
8403 freebsd2*)
8404 shlibpath_overrides_runpath=yes
8406 freebsd3.01* | freebsdelf3.01*)
8407 shlibpath_overrides_runpath=yes
8408 hardcode_into_libs=yes
8410 *) # from 3.2 on
8411 shlibpath_overrides_runpath=no
8412 hardcode_into_libs=yes
8414 esac
8417 gnu*)
8418 version_type=linux
8419 need_lib_prefix=no
8420 need_version=no
8421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8422 soname_spec='${libname}${release}${shared_ext}$major'
8423 shlibpath_var=LD_LIBRARY_PATH
8424 hardcode_into_libs=yes
8427 hpux9* | hpux10* | hpux11*)
8428 # Give a soname corresponding to the major version so that dld.sl refuses to
8429 # link against other versions.
8430 version_type=sunos
8431 need_lib_prefix=no
8432 need_version=no
8433 case "$host_cpu" in
8434 ia64*)
8435 shrext='.so'
8436 hardcode_into_libs=yes
8437 dynamic_linker="$host_os dld.so"
8438 shlibpath_var=LD_LIBRARY_PATH
8439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8441 soname_spec='${libname}${release}${shared_ext}$major'
8442 if test "X$HPUX_IA64_MODE" = X32; then
8443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8444 else
8445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8449 hppa*64*)
8450 shrext='.sl'
8451 hardcode_into_libs=yes
8452 dynamic_linker="$host_os dld.sl"
8453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8461 shrext='.sl'
8462 dynamic_linker="$host_os dld.sl"
8463 shlibpath_var=SHLIB_PATH
8464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8466 soname_spec='${libname}${release}${shared_ext}$major'
8468 esac
8469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8470 postinstall_cmds='chmod 555 $lib'
8473 irix5* | irix6* | nonstopux*)
8474 case $host_os in
8475 nonstopux*) version_type=nonstopux ;;
8477 if test "$lt_cv_prog_gnu_ld" = yes; then
8478 version_type=linux
8479 else
8480 version_type=irix
8481 fi ;;
8482 esac
8483 need_lib_prefix=no
8484 need_version=no
8485 soname_spec='${libname}${release}${shared_ext}$major'
8486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8487 case $host_os in
8488 irix5* | nonstopux*)
8489 libsuff= shlibsuff=
8492 case $LD in # libtool.m4 will add one of these switches to LD
8493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8494 libsuff= shlibsuff= libmagic=32-bit;;
8495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8496 libsuff=32 shlibsuff=N32 libmagic=N32;;
8497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8499 *) libsuff= shlibsuff= libmagic=never-match;;
8500 esac
8502 esac
8503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8504 shlibpath_overrides_runpath=no
8505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8507 hardcode_into_libs=yes
8510 # No shared lib support for Linux oldld, aout, or coff.
8511 linux*oldld* | linux*aout* | linux*coff*)
8512 dynamic_linker=no
8515 # This must be Linux ELF.
8516 linux*)
8517 version_type=linux
8518 need_lib_prefix=no
8519 need_version=no
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8523 shlibpath_var=LD_LIBRARY_PATH
8524 shlibpath_overrides_runpath=no
8525 # This implies no fast_install, which is unacceptable.
8526 # Some rework will be needed to allow for fast_install
8527 # before this can be enabled.
8528 hardcode_into_libs=yes
8530 # We used to test for /lib/ld.so.1 and disable shared libraries on
8531 # powerpc, because MkLinux only supported shared libraries with the
8532 # GNU dynamic linker. Since this was broken with cross compilers,
8533 # most powerpc-linux boxes support dynamic linking these days and
8534 # people can always --disable-shared, the test was removed, and we
8535 # assume the GNU/Linux dynamic linker is in use.
8536 dynamic_linker='GNU/Linux ld.so'
8539 netbsd*)
8540 version_type=sunos
8541 need_lib_prefix=no
8542 need_version=no
8543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8545 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8546 dynamic_linker='NetBSD (a.out) ld.so'
8547 else
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8550 dynamic_linker='NetBSD ld.elf_so'
8552 shlibpath_var=LD_LIBRARY_PATH
8553 shlibpath_overrides_runpath=yes
8554 hardcode_into_libs=yes
8557 newsos6)
8558 version_type=linux
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 shlibpath_overrides_runpath=yes
8564 nto-qnx*)
8565 version_type=linux
8566 need_lib_prefix=no
8567 need_version=no
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 shlibpath_var=LD_LIBRARY_PATH
8571 shlibpath_overrides_runpath=yes
8574 openbsd*)
8575 version_type=sunos
8576 need_lib_prefix=no
8577 need_version=no
8578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8582 case $host_os in
8583 openbsd2.[89] | openbsd2.[89].*)
8584 shlibpath_overrides_runpath=no
8587 shlibpath_overrides_runpath=yes
8589 esac
8590 else
8591 shlibpath_overrides_runpath=yes
8595 os2*)
8596 libname_spec='$name'
8597 shrext=".dll"
8598 need_lib_prefix=no
8599 library_names_spec='$libname${shared_ext} $libname.a'
8600 dynamic_linker='OS/2 ld.exe'
8601 shlibpath_var=LIBPATH
8604 osf3* | osf4* | osf5*)
8605 version_type=osf
8606 need_lib_prefix=no
8607 need_version=no
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8612 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8615 sco3.2v5*)
8616 version_type=osf
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 shlibpath_var=LD_LIBRARY_PATH
8622 solaris*)
8623 version_type=linux
8624 need_lib_prefix=no
8625 need_version=no
8626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8627 soname_spec='${libname}${release}${shared_ext}$major'
8628 shlibpath_var=LD_LIBRARY_PATH
8629 shlibpath_overrides_runpath=yes
8630 hardcode_into_libs=yes
8631 # ldd complains unless libraries are executable
8632 postinstall_cmds='chmod +x $lib'
8635 sunos4*)
8636 version_type=sunos
8637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8638 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8639 shlibpath_var=LD_LIBRARY_PATH
8640 shlibpath_overrides_runpath=yes
8641 if test "$with_gnu_ld" = yes; then
8642 need_lib_prefix=no
8644 need_version=yes
8647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8648 version_type=linux
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 shlibpath_var=LD_LIBRARY_PATH
8652 case $host_vendor in
8653 sni)
8654 shlibpath_overrides_runpath=no
8655 need_lib_prefix=no
8656 export_dynamic_flag_spec='${wl}-Blargedynsym'
8657 runpath_var=LD_RUN_PATH
8659 siemens)
8660 need_lib_prefix=no
8662 motorola)
8663 need_lib_prefix=no
8664 need_version=no
8665 shlibpath_overrides_runpath=no
8666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8668 esac
8671 sysv4*MP*)
8672 if test -d /usr/nec ;then
8673 version_type=linux
8674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8675 soname_spec='$libname${shared_ext}.$major'
8676 shlibpath_var=LD_LIBRARY_PATH
8680 uts4*)
8681 version_type=linux
8682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683 soname_spec='${libname}${release}${shared_ext}$major'
8684 shlibpath_var=LD_LIBRARY_PATH
8688 dynamic_linker=no
8690 esac
8691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8692 echo "${ECHO_T}$dynamic_linker" >&6; }
8693 test "$dynamic_linker" = no && can_build_shared=no
8695 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8696 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8697 hardcode_action=
8698 if test -n "$hardcode_libdir_flag_spec" || \
8699 test -n "$runpath_var " || \
8700 test "X$hardcode_automatic"="Xyes" ; then
8702 # We can hardcode non-existant directories.
8703 if test "$hardcode_direct" != no &&
8704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8705 # have to relink, otherwise we might link with an installed library
8706 # when we should be linking with a yet-to-be-installed one
8707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8708 test "$hardcode_minus_L" != no; then
8709 # Linking always hardcodes the temporary library directory.
8710 hardcode_action=relink
8711 else
8712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8713 hardcode_action=immediate
8715 else
8716 # We cannot hardcode anything, or else we can only hardcode existing
8717 # directories.
8718 hardcode_action=unsupported
8720 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8721 echo "${ECHO_T}$hardcode_action" >&6; }
8723 if test "$hardcode_action" = relink; then
8724 # Fast installation is not supported
8725 enable_fast_install=no
8726 elif test "$shlibpath_overrides_runpath" = yes ||
8727 test "$enable_shared" = no; then
8728 # Fast installation is not necessary
8729 enable_fast_install=needless
8732 striplib=
8733 old_striplib=
8734 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8735 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8736 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8737 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8738 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8739 { echo "$as_me:$LINENO: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6; }
8741 else
8742 # FIXME - insert some real tests, host_os isn't really good enough
8743 case $host_os in
8744 darwin*)
8745 if test -n "$STRIP" ; then
8746 striplib="$STRIP -x"
8747 { echo "$as_me:$LINENO: result: yes" >&5
8748 echo "${ECHO_T}yes" >&6; }
8749 else
8750 { echo "$as_me:$LINENO: result: no" >&5
8751 echo "${ECHO_T}no" >&6; }
8755 { echo "$as_me:$LINENO: result: no" >&5
8756 echo "${ECHO_T}no" >&6; }
8758 esac
8761 if test "x$enable_dlopen" != xyes; then
8762 enable_dlopen=unknown
8763 enable_dlopen_self=unknown
8764 enable_dlopen_self_static=unknown
8765 else
8766 lt_cv_dlopen=no
8767 lt_cv_dlopen_libs=
8769 case $host_os in
8770 beos*)
8771 lt_cv_dlopen="load_add_on"
8772 lt_cv_dlopen_libs=
8773 lt_cv_dlopen_self=yes
8776 mingw* | pw32*)
8777 lt_cv_dlopen="LoadLibrary"
8778 lt_cv_dlopen_libs=
8781 cygwin*)
8782 lt_cv_dlopen="dlopen"
8783 lt_cv_dlopen_libs=
8786 darwin*)
8787 # if libdl is installed we need to link against it
8788 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8789 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8790 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-ldl $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char dlopen ();
8810 main ()
8812 return dlopen ();
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8832 { (case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_try") 2>&5
8838 ac_status=$?
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; } &&
8841 { ac_try='test -s conftest$ac_exeext'
8842 { (case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_try") 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_lib_dl_dlopen=yes
8852 else
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8856 ac_cv_lib_dl_dlopen=no
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 LIBS=$ac_check_lib_save_LIBS
8863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8865 if test $ac_cv_lib_dl_dlopen = yes; then
8866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8867 else
8869 lt_cv_dlopen="dyld"
8870 lt_cv_dlopen_libs=
8871 lt_cv_dlopen_self=yes
8878 { echo "$as_me:$LINENO: checking for shl_load" >&5
8879 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8880 if test "${ac_cv_func_shl_load+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883 cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h. */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8891 #define shl_load innocuous_shl_load
8893 /* System header to define __stub macros and hopefully few prototypes,
8894 which can conflict with char shl_load (); below.
8895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8896 <limits.h> exists even on freestanding compilers. */
8898 #ifdef __STDC__
8899 # include <limits.h>
8900 #else
8901 # include <assert.h>
8902 #endif
8904 #undef shl_load
8906 /* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
8909 #ifdef __cplusplus
8910 extern "C"
8911 #endif
8912 char shl_load ();
8913 /* The GNU C library defines this for functions which it implements
8914 to always fail with ENOSYS. Some functions are actually named
8915 something starting with __ and the normal name is an alias. */
8916 #if defined __stub_shl_load || defined __stub___shl_load
8917 choke me
8918 #endif
8921 main ()
8923 return shl_load ();
8925 return 0;
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_link") 2>conftest.er1
8936 ac_status=$?
8937 grep -v '^ *+' conftest.er1 >conftest.err
8938 rm -f conftest.er1
8939 cat conftest.err >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); } &&
8942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest$ac_exeext'
8953 { (case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_try") 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_func_shl_load=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 ac_cv_func_shl_load=no
8970 rm -f core conftest.err conftest.$ac_objext \
8971 conftest$ac_exeext conftest.$ac_ext
8973 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8974 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8975 if test $ac_cv_func_shl_load = yes; then
8976 lt_cv_dlopen="shl_load"
8977 else
8978 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8979 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8980 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 ac_check_lib_save_LIBS=$LIBS
8984 LIBS="-ldld $LIBS"
8985 cat >conftest.$ac_ext <<_ACEOF
8986 /* confdefs.h. */
8987 _ACEOF
8988 cat confdefs.h >>conftest.$ac_ext
8989 cat >>conftest.$ac_ext <<_ACEOF
8990 /* end confdefs.h. */
8992 /* Override any GCC internal prototype to avoid an error.
8993 Use char because int might match the return type of a GCC
8994 builtin and then its argument prototype would still apply. */
8995 #ifdef __cplusplus
8996 extern "C"
8997 #endif
8998 char shl_load ();
9000 main ()
9002 return shl_load ();
9004 return 0;
9006 _ACEOF
9007 rm -f conftest.$ac_objext conftest$ac_exeext
9008 if { (ac_try="$ac_link"
9009 case "(($ac_try" in
9010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011 *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014 (eval "$ac_link") 2>conftest.er1
9015 ac_status=$?
9016 grep -v '^ *+' conftest.er1 >conftest.err
9017 rm -f conftest.er1
9018 cat conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } &&
9021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9022 { (case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025 esac
9026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_try") 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; } &&
9031 { ac_try='test -s conftest$ac_exeext'
9032 { (case "(($ac_try" in
9033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9035 esac
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_lib_dld_shl_load=yes
9042 else
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9046 ac_cv_lib_dld_shl_load=no
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9053 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9054 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9055 if test $ac_cv_lib_dld_shl_load = yes; then
9056 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9057 else
9058 { echo "$as_me:$LINENO: checking for dlopen" >&5
9059 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9060 if test "${ac_cv_func_dlopen+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 cat >conftest.$ac_ext <<_ACEOF
9064 /* confdefs.h. */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h. */
9069 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9071 #define dlopen innocuous_dlopen
9073 /* System header to define __stub macros and hopefully few prototypes,
9074 which can conflict with char dlopen (); below.
9075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9076 <limits.h> exists even on freestanding compilers. */
9078 #ifdef __STDC__
9079 # include <limits.h>
9080 #else
9081 # include <assert.h>
9082 #endif
9084 #undef dlopen
9086 /* Override any GCC internal prototype to avoid an error.
9087 Use char because int might match the return type of a GCC
9088 builtin and then its argument prototype would still apply. */
9089 #ifdef __cplusplus
9090 extern "C"
9091 #endif
9092 char dlopen ();
9093 /* The GNU C library defines this for functions which it implements
9094 to always fail with ENOSYS. Some functions are actually named
9095 something starting with __ and the normal name is an alias. */
9096 #if defined __stub_dlopen || defined __stub___dlopen
9097 choke me
9098 #endif
9101 main ()
9103 return dlopen ();
9105 return 0;
9107 _ACEOF
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_link") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9123 { (case "(($ac_try" in
9124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9125 *) ac_try_echo=$ac_try;;
9126 esac
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_try") 2>&5
9129 ac_status=$?
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); }; } &&
9132 { ac_try='test -s conftest$ac_exeext'
9133 { (case "(($ac_try" in
9134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9135 *) ac_try_echo=$ac_try;;
9136 esac
9137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9138 (eval "$ac_try") 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
9142 ac_cv_func_dlopen=yes
9143 else
9144 echo "$as_me: failed program was:" >&5
9145 sed 's/^/| /' conftest.$ac_ext >&5
9147 ac_cv_func_dlopen=no
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext conftest.$ac_ext
9153 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9154 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9155 if test $ac_cv_func_dlopen = yes; then
9156 lt_cv_dlopen="dlopen"
9157 else
9158 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-ldl $LIBS"
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9172 /* Override any GCC internal prototype to avoid an error.
9173 Use char because int might match the return type of a GCC
9174 builtin and then its argument prototype would still apply. */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 char dlopen ();
9180 main ()
9182 return dlopen ();
9184 return 0;
9186 _ACEOF
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (ac_try="$ac_link"
9189 case "(($ac_try" in
9190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191 *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194 (eval "$ac_link") 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9205 esac
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9208 ac_status=$?
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; } &&
9211 { ac_try='test -s conftest$ac_exeext'
9212 { (case "(($ac_try" in
9213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9214 *) ac_try_echo=$ac_try;;
9215 esac
9216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9217 (eval "$ac_try") 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; }; then
9221 ac_cv_lib_dl_dlopen=yes
9222 else
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 ac_cv_lib_dl_dlopen=no
9229 rm -f core conftest.err conftest.$ac_objext \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9235 if test $ac_cv_lib_dl_dlopen = yes; then
9236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9237 else
9238 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9239 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9240 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243 ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lsvld $LIBS"
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char dlopen ();
9260 main ()
9262 return dlopen ();
9264 return 0;
9266 _ACEOF
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (ac_try="$ac_link"
9269 case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272 esac
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9282 { (case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295 esac
9296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_lib_svld_dlopen=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 ac_cv_lib_svld_dlopen=no
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_lib_save_LIBS
9313 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9314 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9315 if test $ac_cv_lib_svld_dlopen = yes; then
9316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9317 else
9318 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9319 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9320 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323 ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-ldld $LIBS"
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char dld_link ();
9340 main ()
9342 return dld_link ();
9344 return 0;
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (ac_try="$ac_link"
9349 case "(($ac_try" in
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354 (eval "$ac_link") 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9362 { (case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365 esac
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_try") 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (case "(($ac_try" in
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9375 esac
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_try") 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_lib_dld_dld_link=yes
9382 else
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_cv_lib_dld_dld_link=no
9389 rm -f core conftest.err conftest.$ac_objext \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9394 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9395 if test $ac_cv_lib_dld_dld_link = yes; then
9396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9415 esac
9417 if test "x$lt_cv_dlopen" != xno; then
9418 enable_dlopen=yes
9419 else
9420 enable_dlopen=no
9423 case $lt_cv_dlopen in
9424 dlopen)
9425 save_CPPFLAGS="$CPPFLAGS"
9426 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9428 save_LDFLAGS="$LDFLAGS"
9429 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9431 save_LIBS="$LIBS"
9432 LIBS="$lt_cv_dlopen_libs $LIBS"
9434 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9435 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9436 if test "${lt_cv_dlopen_self+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439 if test "$cross_compiling" = yes; then :
9440 lt_cv_dlopen_self=cross
9441 else
9442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9443 lt_status=$lt_dlunknown
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9445 "configure"
9446 #include "confdefs.h"
9448 #if HAVE_DLFCN_H
9449 #include <dlfcn.h>
9450 #endif
9452 #include <stdio.h>
9454 #ifdef RTLD_GLOBAL
9455 # define LT_DLGLOBAL RTLD_GLOBAL
9456 #else
9457 # ifdef DL_GLOBAL
9458 # define LT_DLGLOBAL DL_GLOBAL
9459 # else
9460 # define LT_DLGLOBAL 0
9461 # endif
9462 #endif
9464 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9465 find out it does not work in some platform. */
9466 #ifndef LT_DLLAZY_OR_NOW
9467 # ifdef RTLD_LAZY
9468 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9469 # else
9470 # ifdef DL_LAZY
9471 # define LT_DLLAZY_OR_NOW DL_LAZY
9472 # else
9473 # ifdef RTLD_NOW
9474 # define LT_DLLAZY_OR_NOW RTLD_NOW
9475 # else
9476 # ifdef DL_NOW
9477 # define LT_DLLAZY_OR_NOW DL_NOW
9478 # else
9479 # define LT_DLLAZY_OR_NOW 0
9480 # endif
9481 # endif
9482 # endif
9483 # endif
9484 #endif
9486 #ifdef __cplusplus
9487 extern "C" void exit (int);
9488 #endif
9490 void fnord() { int i=42;}
9491 int main ()
9493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9494 int status = $lt_dlunknown;
9496 if (self)
9498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9499 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9500 /* dlclose (self); */
9503 exit (status);
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9511 (./conftest; exit; ) 2>/dev/null
9512 lt_status=$?
9513 case x$lt_status in
9514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9516 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9517 esac
9518 else :
9519 # compilation failed
9520 lt_cv_dlopen_self=no
9523 rm -fr conftest*
9527 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9528 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9530 if test "x$lt_cv_dlopen_self" = xyes; then
9531 LDFLAGS="$LDFLAGS $link_static_flag"
9532 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9533 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9534 if test "${lt_cv_dlopen_self_static+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 if test "$cross_compiling" = yes; then :
9538 lt_cv_dlopen_self_static=cross
9539 else
9540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9541 lt_status=$lt_dlunknown
9542 cat > conftest.$ac_ext <<EOF
9543 #line 9543 "configure"
9544 #include "confdefs.h"
9546 #if HAVE_DLFCN_H
9547 #include <dlfcn.h>
9548 #endif
9550 #include <stdio.h>
9552 #ifdef RTLD_GLOBAL
9553 # define LT_DLGLOBAL RTLD_GLOBAL
9554 #else
9555 # ifdef DL_GLOBAL
9556 # define LT_DLGLOBAL DL_GLOBAL
9557 # else
9558 # define LT_DLGLOBAL 0
9559 # endif
9560 #endif
9562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9563 find out it does not work in some platform. */
9564 #ifndef LT_DLLAZY_OR_NOW
9565 # ifdef RTLD_LAZY
9566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9567 # else
9568 # ifdef DL_LAZY
9569 # define LT_DLLAZY_OR_NOW DL_LAZY
9570 # else
9571 # ifdef RTLD_NOW
9572 # define LT_DLLAZY_OR_NOW RTLD_NOW
9573 # else
9574 # ifdef DL_NOW
9575 # define LT_DLLAZY_OR_NOW DL_NOW
9576 # else
9577 # define LT_DLLAZY_OR_NOW 0
9578 # endif
9579 # endif
9580 # endif
9581 # endif
9582 #endif
9584 #ifdef __cplusplus
9585 extern "C" void exit (int);
9586 #endif
9588 void fnord() { int i=42;}
9589 int main ()
9591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9592 int status = $lt_dlunknown;
9594 if (self)
9596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9597 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9598 /* dlclose (self); */
9601 exit (status);
9604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9605 (eval $ac_link) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9609 (./conftest; exit; ) 2>/dev/null
9610 lt_status=$?
9611 case x$lt_status in
9612 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9613 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9614 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9615 esac
9616 else :
9617 # compilation failed
9618 lt_cv_dlopen_self_static=no
9621 rm -fr conftest*
9625 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9626 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9629 CPPFLAGS="$save_CPPFLAGS"
9630 LDFLAGS="$save_LDFLAGS"
9631 LIBS="$save_LIBS"
9633 esac
9635 case $lt_cv_dlopen_self in
9636 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9637 *) enable_dlopen_self=unknown ;;
9638 esac
9640 case $lt_cv_dlopen_self_static in
9641 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9642 *) enable_dlopen_self_static=unknown ;;
9643 esac
9647 # Report which librarie types wil actually be built
9648 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9649 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9650 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9651 echo "${ECHO_T}$can_build_shared" >&6; }
9653 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9654 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9655 test "$can_build_shared" = "no" && enable_shared=no
9657 # On AIX, shared libraries and static libraries use the same namespace, and
9658 # are all built from PIC.
9659 case "$host_os" in
9660 aix3*)
9661 test "$enable_shared" = yes && enable_static=no
9662 if test -n "$RANLIB"; then
9663 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9664 postinstall_cmds='$RANLIB $lib'
9668 aix4*)
9669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9670 test "$enable_shared" = yes && enable_static=no
9673 darwin* | rhapsody*)
9674 if test "$GCC" = yes; then
9675 archive_cmds_need_lc=no
9676 case "$host_os" in
9677 rhapsody* | darwin1.[012])
9678 allow_undefined_flag='-undefined suppress'
9680 *) # Darwin 1.3 on
9681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9682 allow_undefined_flag='-flat_namespace -undefined suppress'
9683 else
9684 case ${MACOSX_DEPLOYMENT_TARGET} in
9685 10.[012])
9686 allow_undefined_flag='-flat_namespace -undefined suppress'
9688 10.*)
9689 allow_undefined_flag='-undefined dynamic_lookup'
9691 esac
9694 esac
9695 output_verbose_link_cmd='echo'
9696 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9697 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9699 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9700 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9701 hardcode_direct=no
9702 hardcode_automatic=yes
9703 hardcode_shlibpath_var=unsupported
9704 whole_archive_flag_spec='-all_load $convenience'
9705 link_all_deplibs=yes
9706 else
9707 ld_shlibs=no
9710 esac
9711 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9712 echo "${ECHO_T}$enable_shared" >&6; }
9714 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9715 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9716 # Make sure either enable_shared or enable_static is yes.
9717 test "$enable_shared" = yes || enable_static=yes
9718 { echo "$as_me:$LINENO: result: $enable_static" >&5
9719 echo "${ECHO_T}$enable_static" >&6; }
9721 # The else clause should only fire when bootstrapping the
9722 # libtool distribution, otherwise you forgot to ship ltmain.sh
9723 # with your package, and you will get complaints that there are
9724 # no rules to generate ltmain.sh.
9725 if test -f "$ltmain"; then
9726 # See if we are running on zsh, and set the options which allow our commands through
9727 # without removal of \ escapes.
9728 if test -n "${ZSH_VERSION+set}" ; then
9729 setopt NO_GLOB_SUBST
9731 # Now quote all the things that may contain metacharacters while being
9732 # careful not to overquote the AC_SUBSTed values. We take copies of the
9733 # variables and quote the copies for generation of the libtool script.
9734 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9735 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9736 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9737 deplibs_check_method reload_flag reload_cmds need_locks \
9738 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9739 lt_cv_sys_global_symbol_to_c_name_address \
9740 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9741 old_postinstall_cmds old_postuninstall_cmds \
9742 compiler \
9743 CC \
9744 LD \
9745 lt_prog_compiler_wl \
9746 lt_prog_compiler_pic \
9747 lt_prog_compiler_static \
9748 lt_prog_compiler_no_builtin_flag \
9749 export_dynamic_flag_spec \
9750 thread_safe_flag_spec \
9751 whole_archive_flag_spec \
9752 enable_shared_with_static_runtimes \
9753 old_archive_cmds \
9754 old_archive_from_new_cmds \
9755 predep_objects \
9756 postdep_objects \
9757 predeps \
9758 postdeps \
9759 compiler_lib_search_path \
9760 archive_cmds \
9761 archive_expsym_cmds \
9762 postinstall_cmds \
9763 postuninstall_cmds \
9764 old_archive_from_expsyms_cmds \
9765 allow_undefined_flag \
9766 no_undefined_flag \
9767 export_symbols_cmds \
9768 hardcode_libdir_flag_spec \
9769 hardcode_libdir_flag_spec_ld \
9770 hardcode_libdir_separator \
9771 hardcode_automatic \
9772 module_cmds \
9773 module_expsym_cmds \
9774 lt_cv_prog_compiler_c_o \
9775 exclude_expsyms \
9776 include_expsyms; do
9778 case $var in
9779 old_archive_cmds | \
9780 old_archive_from_new_cmds | \
9781 archive_cmds | \
9782 archive_expsym_cmds | \
9783 module_cmds | \
9784 module_expsym_cmds | \
9785 old_archive_from_expsyms_cmds | \
9786 export_symbols_cmds | \
9787 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9788 postinstall_cmds | postuninstall_cmds | \
9789 old_postinstall_cmds | old_postuninstall_cmds | \
9790 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9791 # Double-quote double-evaled strings.
9792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9797 esac
9798 done
9800 case $lt_echo in
9801 *'\$0 --fallback-echo"')
9802 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9804 esac
9806 cfgfile="${ofile}T"
9807 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9808 $rm -f "$cfgfile"
9809 { echo "$as_me:$LINENO: creating $ofile" >&5
9810 echo "$as_me: creating $ofile" >&6;}
9812 cat <<__EOF__ >> "$cfgfile"
9813 #! $SHELL
9815 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9816 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9817 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9819 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9820 # Free Software Foundation, Inc.
9822 # This file is part of GNU Libtool:
9823 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9825 # This program is free software; you can redistribute it and/or modify
9826 # it under the terms of the GNU General Public License as published by
9827 # the Free Software Foundation; either version 2 of the License, or
9828 # (at your option) any later version.
9830 # This program is distributed in the hope that it will be useful, but
9831 # WITHOUT ANY WARRANTY; without even the implied warranty of
9832 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9833 # General Public License for more details.
9835 # You should have received a copy of the GNU General Public License
9836 # along with this program; if not, write to the Free Software
9837 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9839 # As a special exception to the GNU General Public License, if you
9840 # distribute this file as part of a program that contains a
9841 # configuration script generated by Autoconf, you may include it under
9842 # the same distribution terms that you use for the rest of that program.
9844 # A sed program that does not truncate output.
9845 SED=$lt_SED
9847 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9848 Xsed="$SED -e s/^X//"
9850 # The HP-UX ksh and POSIX shell print the target directory to stdout
9851 # if CDPATH is set.
9852 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9854 # The names of the tagged configurations supported by this script.
9855 available_tags=
9857 # ### BEGIN LIBTOOL CONFIG
9859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9861 # Shell to use when invoking shell scripts.
9862 SHELL=$lt_SHELL
9864 # Whether or not to build shared libraries.
9865 build_libtool_libs=$enable_shared
9867 # Whether or not to build static libraries.
9868 build_old_libs=$enable_static
9870 # Whether or not to add -lc for building shared libraries.
9871 build_libtool_need_lc=$archive_cmds_need_lc
9873 # Whether or not to disallow shared libs when runtime libs are static
9874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9876 # Whether or not to optimize for fast installation.
9877 fast_install=$enable_fast_install
9879 # The host system.
9880 host_alias=$host_alias
9881 host=$host
9883 # An echo program that does not interpret backslashes.
9884 echo=$lt_echo
9886 # The archiver.
9887 AR=$lt_AR
9888 AR_FLAGS=$lt_AR_FLAGS
9890 # A C compiler.
9891 LTCC=$lt_LTCC
9893 # A language-specific compiler.
9894 CC=$lt_compiler
9896 # Is the compiler the GNU C compiler?
9897 with_gcc=$GCC
9899 # An ERE matcher.
9900 EGREP=$lt_EGREP
9902 # The linker used to build libraries.
9903 LD=$lt_LD
9905 # Whether we need hard or soft links.
9906 LN_S=$lt_LN_S
9908 # A BSD-compatible nm program.
9909 NM=$lt_NM
9911 # A symbol stripping program
9912 STRIP="$STRIP"
9914 # Used to examine libraries when file_magic_cmd begins "file"
9915 MAGIC_CMD=$MAGIC_CMD
9917 # Used on cygwin: DLL creation program.
9918 DLLTOOL="$DLLTOOL"
9920 # Used on cygwin: object dumper.
9921 OBJDUMP="$OBJDUMP"
9923 # Used on cygwin: assembler.
9924 AS="$AS"
9926 # The name of the directory that contains temporary libtool files.
9927 objdir=$objdir
9929 # How to create reloadable object files.
9930 reload_flag=$lt_reload_flag
9931 reload_cmds=$lt_reload_cmds
9933 # How to pass a linker flag through the compiler.
9934 wl=$lt_lt_prog_compiler_wl
9936 # Object file suffix (normally "o").
9937 objext="$ac_objext"
9939 # Old archive suffix (normally "a").
9940 libext="$libext"
9942 # Shared library suffix (normally ".so").
9943 shrext='$shrext'
9945 # Executable file suffix (normally "").
9946 exeext="$exeext"
9948 # Additional compiler flags for building library objects.
9949 pic_flag=$lt_lt_prog_compiler_pic
9950 pic_mode=$pic_mode
9952 # What is the maximum length of a command?
9953 max_cmd_len=$lt_cv_sys_max_cmd_len
9955 # Does compiler simultaneously support -c and -o options?
9956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9958 # Must we lock files when doing compilation ?
9959 need_locks=$lt_need_locks
9961 # Do we need the lib prefix for modules?
9962 need_lib_prefix=$need_lib_prefix
9964 # Do we need a version for libraries?
9965 need_version=$need_version
9967 # Whether dlopen is supported.
9968 dlopen_support=$enable_dlopen
9970 # Whether dlopen of programs is supported.
9971 dlopen_self=$enable_dlopen_self
9973 # Whether dlopen of statically linked programs is supported.
9974 dlopen_self_static=$enable_dlopen_self_static
9976 # Compiler flag to prevent dynamic linking.
9977 link_static_flag=$lt_lt_prog_compiler_static
9979 # Compiler flag to turn off builtin functions.
9980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9982 # Compiler flag to allow reflexive dlopens.
9983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9985 # Compiler flag to generate shared objects directly from archives.
9986 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9988 # Compiler flag to generate thread-safe objects.
9989 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9991 # Library versioning type.
9992 version_type=$version_type
9994 # Format of library name prefix.
9995 libname_spec=$lt_libname_spec
9997 # List of archive names. First name is the real one, the rest are links.
9998 # The last name is the one that the linker finds with -lNAME.
9999 library_names_spec=$lt_library_names_spec
10001 # The coded name of the library, if different from the real name.
10002 soname_spec=$lt_soname_spec
10004 # Commands used to build and install an old-style archive.
10005 RANLIB=$lt_RANLIB
10006 old_archive_cmds=$lt_old_archive_cmds
10007 old_postinstall_cmds=$lt_old_postinstall_cmds
10008 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10010 # Create an old-style archive from a shared archive.
10011 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10013 # Create a temporary old-style archive to link instead of a shared archive.
10014 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10016 # Commands used to build and install a shared archive.
10017 archive_cmds=$lt_archive_cmds
10018 archive_expsym_cmds=$lt_archive_expsym_cmds
10019 postinstall_cmds=$lt_postinstall_cmds
10020 postuninstall_cmds=$lt_postuninstall_cmds
10022 # Commands used to build a loadable module (assumed same as above if empty)
10023 module_cmds=$lt_module_cmds
10024 module_expsym_cmds=$lt_module_expsym_cmds
10026 # Commands to strip libraries.
10027 old_striplib=$lt_old_striplib
10028 striplib=$lt_striplib
10030 # Dependencies to place before the objects being linked to create a
10031 # shared library.
10032 predep_objects=$lt_predep_objects
10034 # Dependencies to place after the objects being linked to create a
10035 # shared library.
10036 postdep_objects=$lt_postdep_objects
10038 # Dependencies to place before the objects being linked to create a
10039 # shared library.
10040 predeps=$lt_predeps
10042 # Dependencies to place after the objects being linked to create a
10043 # shared library.
10044 postdeps=$lt_postdeps
10046 # The library search path used internally by the compiler when linking
10047 # a shared library.
10048 compiler_lib_search_path=$lt_compiler_lib_search_path
10050 # Method to check whether dependent libraries are shared objects.
10051 deplibs_check_method=$lt_deplibs_check_method
10053 # Command to use when deplibs_check_method == file_magic.
10054 file_magic_cmd=$lt_file_magic_cmd
10056 # Flag that allows shared libraries with undefined symbols to be built.
10057 allow_undefined_flag=$lt_allow_undefined_flag
10059 # Flag that forces no undefined symbols.
10060 no_undefined_flag=$lt_no_undefined_flag
10062 # Commands used to finish a libtool library installation in a directory.
10063 finish_cmds=$lt_finish_cmds
10065 # Same as above, but a single script fragment to be evaled but not shown.
10066 finish_eval=$lt_finish_eval
10068 # Take the output of nm and produce a listing of raw symbols and C names.
10069 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10071 # Transform the output of nm in a proper C declaration
10072 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10074 # Transform the output of nm in a C name address pair
10075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10077 # This is the shared library runtime path variable.
10078 runpath_var=$runpath_var
10080 # This is the shared library path variable.
10081 shlibpath_var=$shlibpath_var
10083 # Is shlibpath searched before the hard-coded library search path?
10084 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10086 # How to hardcode a shared library path into an executable.
10087 hardcode_action=$hardcode_action
10089 # Whether we should hardcode library paths into libraries.
10090 hardcode_into_libs=$hardcode_into_libs
10092 # Flag to hardcode \$libdir into a binary during linking.
10093 # This must work even if \$libdir does not exist.
10094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10096 # If ld is used when linking, flag to hardcode \$libdir into
10097 # a binary during linking. This must work even if \$libdir does
10098 # not exist.
10099 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10101 # Whether we need a single -rpath flag with a separated argument.
10102 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10104 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10105 # resulting binary.
10106 hardcode_direct=$hardcode_direct
10108 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10109 # resulting binary.
10110 hardcode_minus_L=$hardcode_minus_L
10112 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10113 # the resulting binary.
10114 hardcode_shlibpath_var=$hardcode_shlibpath_var
10116 # Set to yes if building a shared library automatically hardcodes DIR into the library
10117 # and all subsequent libraries and executables linked against it.
10118 hardcode_automatic=$hardcode_automatic
10120 # Variables whose values should be saved in libtool wrapper scripts and
10121 # restored at relink time.
10122 variables_saved_for_relink="$variables_saved_for_relink"
10124 # Whether libtool must link a program against all its dependency libraries.
10125 link_all_deplibs=$link_all_deplibs
10127 # Compile-time system search path for libraries
10128 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10130 # Run-time system search path for libraries
10131 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10133 # Fix the shell variable \$srcfile for the compiler.
10134 fix_srcfile_path="$fix_srcfile_path"
10136 # Set to yes if exported symbols are required.
10137 always_export_symbols=$always_export_symbols
10139 # The commands to list exported symbols.
10140 export_symbols_cmds=$lt_export_symbols_cmds
10142 # The commands to extract the exported symbol list from a shared archive.
10143 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10145 # Symbols that should not be listed in the preloaded symbols.
10146 exclude_expsyms=$lt_exclude_expsyms
10148 # Symbols that must always be exported.
10149 include_expsyms=$lt_include_expsyms
10151 # ### END LIBTOOL CONFIG
10153 __EOF__
10156 case $host_os in
10157 aix3*)
10158 cat <<\EOF >> "$cfgfile"
10160 # AIX sometimes has problems with the GCC collect2 program. For some
10161 # reason, if we set the COLLECT_NAMES environment variable, the problems
10162 # vanish in a puff of smoke.
10163 if test "X${COLLECT_NAMES+set}" != Xset; then
10164 COLLECT_NAMES=
10165 export COLLECT_NAMES
10169 esac
10171 # We use sed instead of cat because bash on DJGPP gets confused if
10172 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10173 # text mode, it properly converts lines to CR/LF. This bash problem
10174 # is reportedly fixed, but why not run on old versions too?
10175 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10177 mv -f "$cfgfile" "$ofile" || \
10178 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10179 chmod +x "$ofile"
10181 else
10182 # If there is no Makefile yet, we rely on a make rule to execute
10183 # `config.status --recheck' to rerun these tests and create the
10184 # libtool script then.
10185 test -f Makefile && make "$ltmain"
10189 ac_ext=c
10190 ac_cpp='$CPP $CPPFLAGS'
10191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10195 CC="$lt_save_CC"
10198 # Check whether --with-tags was given.
10199 if test "${with_tags+set}" = set; then
10200 withval=$with_tags; tagnames="$withval"
10204 if test -f "$ltmain" && test -n "$tagnames"; then
10205 if test ! -f "${ofile}"; then
10206 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10207 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10210 if test -z "$LTCC"; then
10211 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10212 if test -z "$LTCC"; then
10213 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10214 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10215 else
10216 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10217 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10221 # Extract list of available tagged configurations in $ofile.
10222 # Note that this assumes the entire list is on one line.
10223 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10225 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10226 for tagname in $tagnames; do
10227 IFS="$lt_save_ifs"
10228 # Check whether tagname contains only valid characters
10229 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10230 "") ;;
10231 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10232 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10233 { (exit 1); exit 1; }; }
10235 esac
10237 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10238 then
10239 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10240 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10241 { (exit 1); exit 1; }; }
10244 # Update the list of available tags.
10245 if test -n "$tagname"; then
10246 echo appending configuration tag \"$tagname\" to $ofile
10248 case $tagname in
10249 CXX)
10250 if test -n "$CXX" && test "X$CXX" != "Xno"; then
10251 ac_ext=cpp
10252 ac_cpp='$CXXCPP $CPPFLAGS'
10253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10260 archive_cmds_need_lc_CXX=no
10261 allow_undefined_flag_CXX=
10262 always_export_symbols_CXX=no
10263 archive_expsym_cmds_CXX=
10264 export_dynamic_flag_spec_CXX=
10265 hardcode_direct_CXX=no
10266 hardcode_libdir_flag_spec_CXX=
10267 hardcode_libdir_flag_spec_ld_CXX=
10268 hardcode_libdir_separator_CXX=
10269 hardcode_minus_L_CXX=no
10270 hardcode_automatic_CXX=no
10271 module_cmds_CXX=
10272 module_expsym_cmds_CXX=
10273 link_all_deplibs_CXX=unknown
10274 old_archive_cmds_CXX=$old_archive_cmds
10275 no_undefined_flag_CXX=
10276 whole_archive_flag_spec_CXX=
10277 enable_shared_with_static_runtimes_CXX=no
10279 # Dependencies to place before and after the object being linked:
10280 predep_objects_CXX=
10281 postdep_objects_CXX=
10282 predeps_CXX=
10283 postdeps_CXX=
10284 compiler_lib_search_path_CXX=
10286 # Source file extension for C++ test sources.
10287 ac_ext=cc
10289 # Object file extension for compiled C++ test sources.
10290 objext=o
10291 objext_CXX=$objext
10293 # Code to be used in simple compile tests
10294 lt_simple_compile_test_code="int some_variable = 0;\n"
10296 # Code to be used in simple link tests
10297 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10299 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10301 # If no C compiler was specified, use CC.
10302 LTCC=${LTCC-"$CC"}
10304 # Allow CC to be a program name with arguments.
10305 compiler=$CC
10308 # Allow CC to be a program name with arguments.
10309 lt_save_CC=$CC
10310 lt_save_LD=$LD
10311 lt_save_GCC=$GCC
10312 GCC=$GXX
10313 lt_save_with_gnu_ld=$with_gnu_ld
10314 lt_save_path_LD=$lt_cv_path_LD
10315 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10316 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10317 else
10318 unset lt_cv_prog_gnu_ld
10320 if test -n "${lt_cv_path_LDCXX+set}"; then
10321 lt_cv_path_LD=$lt_cv_path_LDCXX
10322 else
10323 unset lt_cv_path_LD
10325 test -z "${LDCXX+set}" || LD=$LDCXX
10326 CC=${CXX-"c++"}
10327 compiler=$CC
10328 compiler_CXX=$CC
10329 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10331 # We don't want -fno-exception wen compiling C++ code, so set the
10332 # no_builtin_flag separately
10333 if test "$GXX" = yes; then
10334 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10335 else
10336 lt_prog_compiler_no_builtin_flag_CXX=
10339 if test "$GXX" = yes; then
10340 # Set up default GNU C++ configuration
10343 # Check whether --with-gnu-ld was given.
10344 if test "${with_gnu_ld+set}" = set; then
10345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10346 else
10347 with_gnu_ld=no
10350 ac_prog=ld
10351 if test "$GCC" = yes; then
10352 # Check if gcc -print-prog-name=ld gives a path.
10353 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10354 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10355 case $host in
10356 *-*-mingw*)
10357 # gcc leaves a trailing carriage return which upsets mingw
10358 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10360 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10361 esac
10362 case $ac_prog in
10363 # Accept absolute paths.
10364 [\\/]* | ?:[\\/]*)
10365 re_direlt='/[^/][^/]*/\.\./'
10366 # Canonicalize the pathname of ld
10367 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10368 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10369 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10370 done
10371 test -z "$LD" && LD="$ac_prog"
10374 # If it fails, then pretend we aren't using GCC.
10375 ac_prog=ld
10378 # If it is relative, then search for the first ld in PATH.
10379 with_gnu_ld=unknown
10381 esac
10382 elif test "$with_gnu_ld" = yes; then
10383 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10384 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10385 else
10386 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10387 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10389 if test "${lt_cv_path_LD+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 else
10392 if test -z "$LD"; then
10393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10394 for ac_dir in $PATH; do
10395 IFS="$lt_save_ifs"
10396 test -z "$ac_dir" && ac_dir=.
10397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10398 lt_cv_path_LD="$ac_dir/$ac_prog"
10399 # Check to see if the program is GNU ld. I'd rather use --version,
10400 # but apparently some GNU ld's only accept -v.
10401 # Break only if it was the GNU/non-GNU ld that we prefer.
10402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10403 *GNU* | *'with BFD'*)
10404 test "$with_gnu_ld" != no && break
10407 test "$with_gnu_ld" != yes && break
10409 esac
10411 done
10412 IFS="$lt_save_ifs"
10413 else
10414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10418 LD="$lt_cv_path_LD"
10419 if test -n "$LD"; then
10420 { echo "$as_me:$LINENO: result: $LD" >&5
10421 echo "${ECHO_T}$LD" >&6; }
10422 else
10423 { echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6; }
10426 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10427 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10428 { (exit 1); exit 1; }; }
10429 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10430 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10431 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10435 case `$LD -v 2>&1 </dev/null` in
10436 *GNU* | *'with BFD'*)
10437 lt_cv_prog_gnu_ld=yes
10440 lt_cv_prog_gnu_ld=no
10442 esac
10444 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10445 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10446 with_gnu_ld=$lt_cv_prog_gnu_ld
10450 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10451 # archiving commands below assume that GNU ld is being used.
10452 if test "$with_gnu_ld" = yes; then
10453 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10456 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10457 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10459 # If archive_cmds runs LD, not CC, wlarc should be empty
10460 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10461 # investigate it a little bit more. (MM)
10462 wlarc='${wl}'
10464 # ancient GNU ld didn't support --whole-archive et. al.
10465 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10466 grep 'no-whole-archive' > /dev/null; then
10467 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10468 else
10469 whole_archive_flag_spec_CXX=
10471 else
10472 with_gnu_ld=no
10473 wlarc=
10475 # A generic and very simple default shared library creation
10476 # command for GNU C++ for the case where it uses the native
10477 # linker, instead of GNU ld. If possible, this setting should
10478 # overridden to take advantage of the native linker features on
10479 # the platform it is being used on.
10480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10483 # Commands to make compiler produce verbose output that lists
10484 # what "hidden" libraries, object files and flags are used when
10485 # linking a shared library.
10486 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10488 else
10489 GXX=no
10490 with_gnu_ld=no
10491 wlarc=
10494 # PORTME: fill in a description of your system's C++ link characteristics
10495 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10496 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10497 ld_shlibs_CXX=yes
10498 case $host_os in
10499 aix3*)
10500 # FIXME: insert proper C++ library support
10501 ld_shlibs_CXX=no
10503 aix4* | aix5*)
10504 if test "$host_cpu" = ia64; then
10505 # On IA64, the linker does run time linking by default, so we don't
10506 # have to do anything special.
10507 aix_use_runtimelinking=no
10508 exp_sym_flag='-Bexport'
10509 no_entry_flag=""
10510 else
10511 aix_use_runtimelinking=no
10513 # Test if we are trying to use run time linking or normal
10514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10515 # need to do runtime linking.
10516 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10517 for ld_flag in $LDFLAGS; do
10518 case $ld_flag in
10519 *-brtl*)
10520 aix_use_runtimelinking=yes
10521 break
10523 esac
10524 done
10525 esac
10527 exp_sym_flag='-bexport'
10528 no_entry_flag='-bnoentry'
10531 # When large executables or shared objects are built, AIX ld can
10532 # have problems creating the table of contents. If linking a library
10533 # or program results in "error TOC overflow" add -mminimal-toc to
10534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10537 archive_cmds_CXX=''
10538 hardcode_direct_CXX=yes
10539 hardcode_libdir_separator_CXX=':'
10540 link_all_deplibs_CXX=yes
10542 if test "$GXX" = yes; then
10543 case $host_os in aix4.012|aix4.012.*)
10544 # We only want to do this on AIX 4.2 and lower, the check
10545 # below for broken collect2 doesn't work under 4.3+
10546 collect2name=`${CC} -print-prog-name=collect2`
10547 if test -f "$collect2name" && \
10548 strings "$collect2name" | grep resolve_lib_name >/dev/null
10549 then
10550 # We have reworked collect2
10551 hardcode_direct_CXX=yes
10552 else
10553 # We have old collect2
10554 hardcode_direct_CXX=unsupported
10555 # It fails to find uninstalled libraries when the uninstalled
10556 # path is not listed in the libpath. Setting hardcode_minus_L
10557 # to unsupported forces relinking
10558 hardcode_minus_L_CXX=yes
10559 hardcode_libdir_flag_spec_CXX='-L$libdir'
10560 hardcode_libdir_separator_CXX=
10562 esac
10563 shared_flag='-shared'
10564 else
10565 # not using gcc
10566 if test "$host_cpu" = ia64; then
10567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10568 # chokes on -Wl,-G. The following line is correct:
10569 shared_flag='-G'
10570 else
10571 if test "$aix_use_runtimelinking" = yes; then
10572 shared_flag='${wl}-G'
10573 else
10574 shared_flag='${wl}-bM:SRE'
10579 # It seems that -bexpall does not export symbols beginning with
10580 # underscore (_), so it is better to generate a list of symbols to export.
10581 always_export_symbols_CXX=yes
10582 if test "$aix_use_runtimelinking" = yes; then
10583 # Warning - without using the other runtime loading flags (-brtl),
10584 # -berok will link without error, but may produce a broken library.
10585 allow_undefined_flag_CXX='-berok'
10586 # Determine the default libpath from the value encoded in an empty executable.
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10595 main ()
10599 return 0;
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630 esac
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10639 # Check for a 64-bit object if we didn't find anything.
10640 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10641 }'`; fi
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10656 else
10657 if test "$host_cpu" = ia64; then
10658 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10659 allow_undefined_flag_CXX="-z nodefs"
10660 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10661 else
10662 # Determine the default libpath from the value encoded in an empty executable.
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10671 main ()
10675 return 0;
10677 _ACEOF
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683 esac
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_link") 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } &&
10692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10693 { (case "(($ac_try" in
10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_try") 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10713 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10715 # Check for a 64-bit object if we didn't find anything.
10716 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10717 }'`; fi
10718 else
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10725 rm -f core conftest.err conftest.$ac_objext \
10726 conftest$ac_exeext conftest.$ac_ext
10727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10730 # Warning - without using the other run time loading flags,
10731 # -berok will link without error, but may produce a broken library.
10732 no_undefined_flag_CXX=' ${wl}-bernotok'
10733 allow_undefined_flag_CXX=' ${wl}-berok'
10734 # -bexpall does not export symbols beginning with underscore (_)
10735 always_export_symbols_CXX=yes
10736 # Exported symbols can be pulled into shared objects from archives
10737 whole_archive_flag_spec_CXX=' '
10738 archive_cmds_need_lc_CXX=yes
10739 # This is similar to how AIX traditionally builds it's shared libraries.
10740 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10744 chorus*)
10745 case $cc_basename in
10747 # FIXME: insert proper C++ library support
10748 ld_shlibs_CXX=no
10750 esac
10753 cygwin* | mingw* | pw32*)
10754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10755 # as there is no search path for DLLs.
10756 hardcode_libdir_flag_spec_CXX='-L$libdir'
10757 allow_undefined_flag_CXX=unsupported
10758 always_export_symbols_CXX=no
10759 enable_shared_with_static_runtimes_CXX=yes
10761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10763 # If the export-symbols file already is a .def file (1st line
10764 # is EXPORTS), use it as is; otherwise, prepend...
10765 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10766 cp $export_symbols $output_objdir/$soname.def;
10767 else
10768 echo EXPORTS > $output_objdir/$soname.def;
10769 cat $export_symbols >> $output_objdir/$soname.def;
10771 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10772 else
10773 ld_shlibs_CXX=no
10777 darwin* | rhapsody*)
10778 if test "$GXX" = yes; then
10779 archive_cmds_need_lc_CXX=no
10780 case "$host_os" in
10781 rhapsody* | darwin1.[012])
10782 allow_undefined_flag_CXX='-undefined suppress'
10784 *) # Darwin 1.3 on
10785 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10786 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10787 else
10788 case ${MACOSX_DEPLOYMENT_TARGET} in
10789 10.[012])
10790 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10792 10.*)
10793 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10795 esac
10798 esac
10799 lt_int_apple_cc_single_mod=no
10800 output_verbose_link_cmd='echo'
10801 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10802 lt_int_apple_cc_single_mod=yes
10804 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10805 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10806 else
10807 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10809 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10811 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10812 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10813 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10814 else
10815 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10817 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10818 hardcode_direct_CXX=no
10819 hardcode_automatic_CXX=yes
10820 hardcode_shlibpath_var_CXX=unsupported
10821 whole_archive_flag_spec_CXX='-all_load $convenience'
10822 link_all_deplibs_CXX=yes
10823 else
10824 ld_shlibs_CXX=no
10828 dgux*)
10829 case $cc_basename in
10830 ec++)
10831 # FIXME: insert proper C++ library support
10832 ld_shlibs_CXX=no
10834 ghcx)
10835 # Green Hills C++ Compiler
10836 # FIXME: insert proper C++ library support
10837 ld_shlibs_CXX=no
10840 # FIXME: insert proper C++ library support
10841 ld_shlibs_CXX=no
10843 esac
10845 freebsd12*)
10846 # C++ shared libraries reported to be fairly broken before switch to ELF
10847 ld_shlibs_CXX=no
10849 freebsd-elf*)
10850 archive_cmds_need_lc_CXX=no
10852 freebsd* | kfreebsd*-gnu)
10853 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10854 # conventions
10855 ld_shlibs_CXX=yes
10857 gnu*)
10859 hpux9*)
10860 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10861 hardcode_libdir_separator_CXX=:
10862 export_dynamic_flag_spec_CXX='${wl}-E'
10863 hardcode_direct_CXX=yes
10864 hardcode_minus_L_CXX=yes # Not in the search PATH,
10865 # but as the default
10866 # location of the library.
10868 case $cc_basename in
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10873 aCC)
10874 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10875 # Commands to make compiler produce verbose output that lists
10876 # what "hidden" libraries, object files and flags are used when
10877 # linking a shared library.
10879 # There doesn't appear to be a way to prevent this compiler from
10880 # explicitly linking system object files so we need to strip them
10881 # from the output so that they don't get included in the library
10882 # dependencies.
10883 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10886 if test "$GXX" = yes; then
10887 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10888 else
10889 # FIXME: insert proper C++ library support
10890 ld_shlibs_CXX=no
10893 esac
10895 hpux10*|hpux11*)
10896 if test $with_gnu_ld = no; then
10897 case "$host_cpu" in
10898 hppa*64*)
10899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10900 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10901 hardcode_libdir_separator_CXX=:
10903 ia64*)
10904 hardcode_libdir_flag_spec_CXX='-L$libdir'
10907 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10908 hardcode_libdir_separator_CXX=:
10909 export_dynamic_flag_spec_CXX='${wl}-E'
10911 esac
10913 case "$host_cpu" in
10914 hppa*64*)
10915 hardcode_direct_CXX=no
10916 hardcode_shlibpath_var_CXX=no
10918 ia64*)
10919 hardcode_direct_CXX=no
10920 hardcode_shlibpath_var_CXX=no
10921 hardcode_minus_L_CXX=yes # Not in the search PATH,
10922 # but as the default
10923 # location of the library.
10926 hardcode_direct_CXX=yes
10927 hardcode_minus_L_CXX=yes # Not in the search PATH,
10928 # but as the default
10929 # location of the library.
10931 esac
10933 case $cc_basename in
10935 # FIXME: insert proper C++ library support
10936 ld_shlibs_CXX=no
10938 aCC)
10939 case "$host_cpu" in
10940 hppa*64*|ia64*)
10941 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10944 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10946 esac
10947 # Commands to make compiler produce verbose output that lists
10948 # what "hidden" libraries, object files and flags are used when
10949 # linking a shared library.
10951 # There doesn't appear to be a way to prevent this compiler from
10952 # explicitly linking system object files so we need to strip them
10953 # from the output so that they don't get included in the library
10954 # dependencies.
10955 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10958 if test "$GXX" = yes; then
10959 if test $with_gnu_ld = no; then
10960 case "$host_cpu" in
10961 ia64*|hppa*64*)
10962 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10967 esac
10969 else
10970 # FIXME: insert proper C++ library support
10971 ld_shlibs_CXX=no
10974 esac
10976 irix5* | irix6*)
10977 case $cc_basename in
10979 # SGI C++
10980 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10982 # Archives containing C++ object files must be created using
10983 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10984 # necessary to make sure instantiated templates are included
10985 # in the archive.
10986 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10989 if test "$GXX" = yes; then
10990 if test "$with_gnu_ld" = no; then
10991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10992 else
10993 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10996 link_all_deplibs_CXX=yes
10998 esac
10999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11000 hardcode_libdir_separator_CXX=:
11002 linux*)
11003 case $cc_basename in
11004 KCC)
11005 # Kuck and Associates, Inc. (KAI) C++ Compiler
11007 # KCC will only create a shared library if the output file
11008 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11009 # to its proper name (with version) after linking.
11010 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11011 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11016 # There doesn't appear to be a way to prevent this compiler from
11017 # explicitly linking system object files so we need to strip them
11018 # from the output so that they don't get included in the library
11019 # dependencies.
11020 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11022 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11023 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11025 # Archives containing C++ object files must be created using
11026 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11027 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11029 icpc)
11030 # Intel C++
11031 with_gnu_ld=yes
11032 archive_cmds_need_lc_CXX=no
11033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11036 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11037 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11039 cxx)
11040 # Compaq C++
11041 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11042 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11044 runpath_var=LD_RUN_PATH
11045 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11046 hardcode_libdir_separator_CXX=:
11048 # Commands to make compiler produce verbose output that lists
11049 # what "hidden" libraries, object files and flags are used when
11050 # linking a shared library.
11052 # There doesn't appear to be a way to prevent this compiler from
11053 # explicitly linking system object files so we need to strip them
11054 # from the output so that they don't get included in the library
11055 # dependencies.
11056 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11058 esac
11060 lynxos*)
11061 # FIXME: insert proper C++ library support
11062 ld_shlibs_CXX=no
11064 m88k*)
11065 # FIXME: insert proper C++ library support
11066 ld_shlibs_CXX=no
11068 mvs*)
11069 case $cc_basename in
11070 cxx)
11071 # FIXME: insert proper C++ library support
11072 ld_shlibs_CXX=no
11075 # FIXME: insert proper C++ library support
11076 ld_shlibs_CXX=no
11078 esac
11080 netbsd*)
11081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11082 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11083 wlarc=
11084 hardcode_libdir_flag_spec_CXX='-R$libdir'
11085 hardcode_direct_CXX=yes
11086 hardcode_shlibpath_var_CXX=no
11088 # Workaround some broken pre-1.5 toolchains
11089 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11091 osf3*)
11092 case $cc_basename in
11093 KCC)
11094 # Kuck and Associates, Inc. (KAI) C++ Compiler
11096 # KCC will only create a shared library if the output file
11097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11098 # to its proper name (with version) after linking.
11099 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11102 hardcode_libdir_separator_CXX=:
11104 # Archives containing C++ object files must be created using
11105 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11106 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11109 RCC)
11110 # Rational C++ 2.4.1
11111 # FIXME: insert proper C++ library support
11112 ld_shlibs_CXX=no
11114 cxx)
11115 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11116 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11118 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11119 hardcode_libdir_separator_CXX=:
11121 # Commands to make compiler produce verbose output that lists
11122 # what "hidden" libraries, object files and flags are used when
11123 # linking a shared library.
11125 # There doesn't appear to be a way to prevent this compiler from
11126 # explicitly linking system object files so we need to strip them
11127 # from the output so that they don't get included in the library
11128 # dependencies.
11129 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11132 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11134 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11136 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11137 hardcode_libdir_separator_CXX=:
11139 # Commands to make compiler produce verbose output that lists
11140 # what "hidden" libraries, object files and flags are used when
11141 # linking a shared library.
11142 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11144 else
11145 # FIXME: insert proper C++ library support
11146 ld_shlibs_CXX=no
11149 esac
11151 osf4* | osf5*)
11152 case $cc_basename in
11153 KCC)
11154 # Kuck and Associates, Inc. (KAI) C++ Compiler
11156 # KCC will only create a shared library if the output file
11157 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11158 # to its proper name (with version) after linking.
11159 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11161 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11162 hardcode_libdir_separator_CXX=:
11164 # Archives containing C++ object files must be created using
11165 # the KAI C++ compiler.
11166 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11168 RCC)
11169 # Rational C++ 2.4.1
11170 # FIXME: insert proper C++ library support
11171 ld_shlibs_CXX=no
11173 cxx)
11174 allow_undefined_flag_CXX=' -expect_unresolved \*'
11175 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11176 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11177 echo "-hidden">> $lib.exp~
11178 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
11179 $rm $lib.exp'
11181 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11182 hardcode_libdir_separator_CXX=:
11184 # Commands to make compiler produce verbose output that lists
11185 # what "hidden" libraries, object files and flags are used when
11186 # linking a shared library.
11188 # There doesn't appear to be a way to prevent this compiler from
11189 # explicitly linking system object files so we need to strip them
11190 # from the output so that they don't get included in the library
11191 # dependencies.
11192 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11197 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11200 hardcode_libdir_separator_CXX=:
11202 # Commands to make compiler produce verbose output that lists
11203 # what "hidden" libraries, object files and flags are used when
11204 # linking a shared library.
11205 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207 else
11208 # FIXME: insert proper C++ library support
11209 ld_shlibs_CXX=no
11212 esac
11214 psos*)
11215 # FIXME: insert proper C++ library support
11216 ld_shlibs_CXX=no
11218 sco*)
11219 archive_cmds_need_lc_CXX=no
11220 case $cc_basename in
11222 # FIXME: insert proper C++ library support
11223 ld_shlibs_CXX=no
11226 # FIXME: insert proper C++ library support
11227 ld_shlibs_CXX=no
11229 esac
11231 sunos4*)
11232 case $cc_basename in
11234 # Sun C++ 4.x
11235 # FIXME: insert proper C++ library support
11236 ld_shlibs_CXX=no
11238 lcc)
11239 # Lucid
11240 # FIXME: insert proper C++ library support
11241 ld_shlibs_CXX=no
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11247 esac
11249 solaris*)
11250 case $cc_basename in
11252 # Sun C++ 4.2, 5.x and Centerline C++
11253 no_undefined_flag_CXX=' -zdefs'
11254 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11256 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11258 hardcode_libdir_flag_spec_CXX='-R$libdir'
11259 hardcode_shlibpath_var_CXX=no
11260 case $host_os in
11261 solaris2.0-5 | solaris2.0-5.*) ;;
11263 # The C++ compiler is used as linker so we must use $wl
11264 # flag to pass the commands to the underlying system
11265 # linker.
11266 # Supported since Solaris 2.6 (maybe 2.5.1?)
11267 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11269 esac
11270 link_all_deplibs_CXX=yes
11272 # Commands to make compiler produce verbose output that lists
11273 # what "hidden" libraries, object files and flags are used when
11274 # linking a shared library.
11276 # There doesn't appear to be a way to prevent this compiler from
11277 # explicitly linking system object files so we need to strip them
11278 # from the output so that they don't get included in the library
11279 # dependencies.
11280 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11282 # Archives containing C++ object files must be created using
11283 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11284 # necessary to make sure instantiated templates are included
11285 # in the archive.
11286 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11288 gcx)
11289 # Green Hills C++ Compiler
11290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11292 # The C++ compiler must be used to create the archive.
11293 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11296 # GNU C++ compiler with Solaris linker
11297 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11298 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11299 if $CC --version | grep -v '^2\.7' > /dev/null; then
11300 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11301 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11302 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304 # Commands to make compiler produce verbose output that lists
11305 # what "hidden" libraries, object files and flags are used when
11306 # linking a shared library.
11307 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11308 else
11309 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11310 # platform.
11311 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11312 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11313 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11315 # Commands to make compiler produce verbose output that lists
11316 # what "hidden" libraries, object files and flags are used when
11317 # linking a shared library.
11318 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11321 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11324 esac
11326 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11327 archive_cmds_need_lc_CXX=no
11329 tandem*)
11330 case $cc_basename in
11331 NCC)
11332 # NonStop-UX NCC 3.20
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11340 esac
11342 vxworks*)
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11347 # FIXME: insert proper C++ library support
11348 ld_shlibs_CXX=no
11350 esac
11351 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11352 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11353 test "$ld_shlibs_CXX" = no && can_build_shared=no
11355 GCC_CXX="$GXX"
11356 LD_CXX="$LD"
11358 ## CAVEAT EMPTOR:
11359 ## There is no encapsulation within the following macros, do not change
11360 ## the running order or otherwise move them around unless you know exactly
11361 ## what you are doing...
11363 cat > conftest.$ac_ext <<EOF
11364 class Foo
11366 public:
11367 Foo (void) { a = 0; }
11368 private:
11369 int a;
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; then
11378 # Parse the compiler output and extract the necessary
11379 # objects, libraries and library flags.
11381 # Sentinel used to keep track of whether or not we are before
11382 # the conftest object file.
11383 pre_test_object_deps_done=no
11385 # The `*' in the case matches for architectures that use `case' in
11386 # $output_verbose_cmd can trigger glob expansion during the loop
11387 # eval without this substitution.
11388 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11390 for p in `eval $output_verbose_link_cmd`; do
11391 case $p in
11393 -L* | -R* | -l*)
11394 # Some compilers place space between "-{L,R}" and the path.
11395 # Remove the space.
11396 if test $p = "-L" \
11397 || test $p = "-R"; then
11398 prev=$p
11399 continue
11400 else
11401 prev=
11404 if test "$pre_test_object_deps_done" = no; then
11405 case $p in
11406 -L* | -R*)
11407 # Internal compiler library paths should come after those
11408 # provided the user. The postdeps already come after the
11409 # user supplied libs so there is no need to process them.
11410 if test -z "$compiler_lib_search_path_CXX"; then
11411 compiler_lib_search_path_CXX="${prev}${p}"
11412 else
11413 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11416 # The "-l" case would never come before the object being
11417 # linked, so don't bother handling this case.
11418 esac
11419 else
11420 if test -z "$postdeps_CXX"; then
11421 postdeps_CXX="${prev}${p}"
11422 else
11423 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11428 *.$objext)
11429 # This assumes that the test object file only shows up
11430 # once in the compiler output.
11431 if test "$p" = "conftest.$objext"; then
11432 pre_test_object_deps_done=yes
11433 continue
11436 if test "$pre_test_object_deps_done" = no; then
11437 if test -z "$predep_objects_CXX"; then
11438 predep_objects_CXX="$p"
11439 else
11440 predep_objects_CXX="$predep_objects_CXX $p"
11442 else
11443 if test -z "$postdep_objects_CXX"; then
11444 postdep_objects_CXX="$p"
11445 else
11446 postdep_objects_CXX="$postdep_objects_CXX $p"
11451 *) ;; # Ignore the rest.
11453 esac
11454 done
11456 # Clean up.
11457 rm -f a.out a.exe
11458 else
11459 echo "libtool.m4: error: problem compiling CXX test program"
11462 $rm -f confest.$objext
11464 case " $postdeps_CXX " in
11465 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11466 esac
11468 lt_prog_compiler_wl_CXX=
11469 lt_prog_compiler_pic_CXX=
11470 lt_prog_compiler_static_CXX=
11472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11475 # C++ specific cases for pic, static, wl, etc.
11476 if test "$GXX" = yes; then
11477 lt_prog_compiler_wl_CXX='-Wl,'
11478 lt_prog_compiler_static_CXX='-static'
11480 case $host_os in
11481 aix*)
11482 # All AIX code is PIC.
11483 if test "$host_cpu" = ia64; then
11484 # AIX 5 now supports IA64 processor
11485 lt_prog_compiler_static_CXX='-Bstatic'
11488 amigaos*)
11489 # FIXME: we need at least 68020 code to build shared libraries, but
11490 # adding the `-m68020' flag to GCC prevents building anything better,
11491 # like `-m68040'.
11492 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11494 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11495 # PIC is the default for these OSes.
11497 mingw* | os2* | pw32*)
11498 # This hack is so that the source file can tell whether it is being
11499 # built for inclusion in a dll (and should export symbols for example).
11500 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11502 darwin* | rhapsody*)
11503 # PIC is the default on this platform
11504 # Common symbols not allowed in MH_DYLIB files
11505 lt_prog_compiler_pic_CXX='-fno-common'
11507 *djgpp*)
11508 # DJGPP does not support shared libraries at all
11509 lt_prog_compiler_pic_CXX=
11511 sysv4*MP*)
11512 if test -d /usr/nec; then
11513 lt_prog_compiler_pic_CXX=-Kconform_pic
11516 hpux*)
11517 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11518 # not for PA HP-UX.
11519 case "$host_cpu" in
11520 hppa*64*|ia64*)
11523 lt_prog_compiler_pic_CXX='-fPIC'
11525 esac
11528 lt_prog_compiler_pic_CXX='-fPIC'
11530 esac
11531 else
11532 case $host_os in
11533 aix4* | aix5*)
11534 # All AIX code is PIC.
11535 if test "$host_cpu" = ia64; then
11536 # AIX 5 now supports IA64 processor
11537 lt_prog_compiler_static_CXX='-Bstatic'
11538 else
11539 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11542 chorus*)
11543 case $cc_basename in
11544 cxch68)
11545 # Green Hills C++ Compiler
11546 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11548 esac
11550 dgux*)
11551 case $cc_basename in
11552 ec++)
11553 lt_prog_compiler_pic_CXX='-KPIC'
11555 ghcx)
11556 # Green Hills C++ Compiler
11557 lt_prog_compiler_pic_CXX='-pic'
11561 esac
11563 freebsd* | kfreebsd*-gnu)
11564 # FreeBSD uses GNU C++
11566 hpux9* | hpux10* | hpux11*)
11567 case $cc_basename in
11569 lt_prog_compiler_wl_CXX='-Wl,'
11570 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11571 if test "$host_cpu" != ia64; then
11572 lt_prog_compiler_pic_CXX='+Z'
11575 aCC)
11576 lt_prog_compiler_wl_CXX='-Wl,'
11577 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11578 case "$host_cpu" in
11579 hppa*64*|ia64*)
11580 # +Z the default
11583 lt_prog_compiler_pic_CXX='+Z'
11585 esac
11589 esac
11591 irix5* | irix6* | nonstopux*)
11592 case $cc_basename in
11594 lt_prog_compiler_wl_CXX='-Wl,'
11595 lt_prog_compiler_static_CXX='-non_shared'
11596 # CC pic flag -KPIC is the default.
11600 esac
11602 linux*)
11603 case $cc_basename in
11604 KCC)
11605 # KAI C++ Compiler
11606 lt_prog_compiler_wl_CXX='--backend -Wl,'
11607 lt_prog_compiler_pic_CXX='-fPIC'
11609 icpc)
11610 # Intel C++
11611 lt_prog_compiler_wl_CXX='-Wl,'
11612 lt_prog_compiler_pic_CXX='-KPIC'
11613 lt_prog_compiler_static_CXX='-static'
11615 cxx)
11616 # Compaq C++
11617 # Make sure the PIC flag is empty. It appears that all Alpha
11618 # Linux and Compaq Tru64 Unix objects are PIC.
11619 lt_prog_compiler_pic_CXX=
11620 lt_prog_compiler_static_CXX='-non_shared'
11624 esac
11626 lynxos*)
11628 m88k*)
11630 mvs*)
11631 case $cc_basename in
11632 cxx)
11633 lt_prog_compiler_pic_CXX='-W c,exportall'
11637 esac
11639 netbsd*)
11641 osf3* | osf4* | osf5*)
11642 case $cc_basename in
11643 KCC)
11644 lt_prog_compiler_wl_CXX='--backend -Wl,'
11646 RCC)
11647 # Rational C++ 2.4.1
11648 lt_prog_compiler_pic_CXX='-pic'
11650 cxx)
11651 # Digital/Compaq C++
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 # Make sure the PIC flag is empty. It appears that all Alpha
11654 # Linux and Compaq Tru64 Unix objects are PIC.
11655 lt_prog_compiler_pic_CXX=
11656 lt_prog_compiler_static_CXX='-non_shared'
11660 esac
11662 psos*)
11664 sco*)
11665 case $cc_basename in
11667 lt_prog_compiler_pic_CXX='-fPIC'
11671 esac
11673 solaris*)
11674 case $cc_basename in
11676 # Sun C++ 4.2, 5.x and Centerline C++
11677 lt_prog_compiler_pic_CXX='-KPIC'
11678 lt_prog_compiler_static_CXX='-Bstatic'
11679 lt_prog_compiler_wl_CXX='-Qoption ld '
11681 gcx)
11682 # Green Hills C++ Compiler
11683 lt_prog_compiler_pic_CXX='-PIC'
11687 esac
11689 sunos4*)
11690 case $cc_basename in
11692 # Sun C++ 4.x
11693 lt_prog_compiler_pic_CXX='-pic'
11694 lt_prog_compiler_static_CXX='-Bstatic'
11696 lcc)
11697 # Lucid
11698 lt_prog_compiler_pic_CXX='-pic'
11702 esac
11704 tandem*)
11705 case $cc_basename in
11706 NCC)
11707 # NonStop-UX NCC 3.20
11708 lt_prog_compiler_pic_CXX='-KPIC'
11712 esac
11714 unixware*)
11716 vxworks*)
11719 lt_prog_compiler_can_build_shared_CXX=no
11721 esac
11724 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11725 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11728 # Check to make sure the PIC flag actually works.
11730 if test -n "$lt_prog_compiler_pic_CXX"; then
11732 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11733 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11734 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 lt_prog_compiler_pic_works_CXX=no
11738 ac_outfile=conftest.$ac_objext
11739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11740 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11741 # Insert the option either (1) after the last *FLAGS variable, or
11742 # (2) before a word containing "conftest.", or (3) at the end.
11743 # Note that $ac_compile itself does not contain backslashes and begins
11744 # with a dollar sign (not a hyphen), so the echo should work correctly.
11745 # The option is referenced via a variable to avoid confusing sed.
11746 lt_compile=`echo "$ac_compile" | $SED \
11747 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11749 -e 's:$: $lt_compiler_flag:'`
11750 (eval echo "\"\$as_me:11750: $lt_compile\"" >&5)
11751 (eval "$lt_compile" 2>conftest.err)
11752 ac_status=$?
11753 cat conftest.err >&5
11754 echo "$as_me:11754: \$? = $ac_status" >&5
11755 if (exit $ac_status) && test -s "$ac_outfile"; then
11756 # The compiler can only warn and ignore the option if not recognized
11757 # So say no if there are warnings
11758 if test ! -s conftest.err; then
11759 lt_prog_compiler_pic_works_CXX=yes
11762 $rm conftest*
11765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11766 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11768 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11769 case $lt_prog_compiler_pic_CXX in
11770 "" | " "*) ;;
11771 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11772 esac
11773 else
11774 lt_prog_compiler_pic_CXX=
11775 lt_prog_compiler_can_build_shared_CXX=no
11779 case "$host_os" in
11780 # For platforms which do not support PIC, -DPIC is meaningless:
11781 *djgpp*)
11782 lt_prog_compiler_pic_CXX=
11785 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11787 esac
11789 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11790 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11791 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 else
11794 lt_cv_prog_compiler_c_o_CXX=no
11795 $rm -r conftest 2>/dev/null
11796 mkdir conftest
11797 cd conftest
11798 mkdir out
11799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11801 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11802 # that will create temporary files in the current directory regardless of
11803 # the output directory. Thus, making CWD read-only will cause this test
11804 # to fail, enabling locking or at least warning the user not to do parallel
11805 # builds.
11806 chmod -w .
11808 lt_compiler_flag="-o out/conftest2.$ac_objext"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 lt_compile=`echo "$ac_compile" | $SED \
11814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11816 -e 's:$: $lt_compiler_flag:'`
11817 (eval echo "\"\$as_me:11817: $lt_compile\"" >&5)
11818 (eval "$lt_compile" 2>out/conftest.err)
11819 ac_status=$?
11820 cat out/conftest.err >&5
11821 echo "$as_me:11821: \$? = $ac_status" >&5
11822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11823 then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings
11826 if test ! -s out/conftest.err; then
11827 lt_cv_prog_compiler_c_o_CXX=yes
11830 chmod u+w .
11831 $rm conftest*
11832 # SGI C++ compiler will create directory out/ii_files/ for
11833 # template instantiation
11834 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11835 $rm out/* && rmdir out
11836 cd ..
11837 rmdir conftest
11838 $rm conftest*
11841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11845 hard_links="nottested"
11846 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11847 # do not overwrite the value of need_locks provided by the user
11848 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11850 hard_links=yes
11851 $rm conftest*
11852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11853 touch conftest.a
11854 ln conftest.a conftest.b 2>&5 || hard_links=no
11855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11856 { echo "$as_me:$LINENO: result: $hard_links" >&5
11857 echo "${ECHO_T}$hard_links" >&6; }
11858 if test "$hard_links" = no; then
11859 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11861 need_locks=warn
11863 else
11864 need_locks=no
11867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11870 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11871 case $host_os in
11872 aix4* | aix5*)
11873 # If we're using GNU nm, then we don't want the "-C" option.
11874 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11875 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11876 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11877 else
11878 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11881 pw32*)
11882 export_symbols_cmds_CXX="$ltdll_cmds"
11884 cygwin* | mingw*)
11885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11888 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11890 esac
11892 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11893 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11894 test "$ld_shlibs_CXX" = no && can_build_shared=no
11896 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11897 if test "$GCC" = yes; then
11898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11902 # Do we need to explicitly link libc?
11904 case "x$archive_cmds_need_lc_CXX" in
11905 x|xyes)
11906 # Assume -lc should be added
11907 archive_cmds_need_lc_CXX=yes
11909 if test "$enable_shared" = yes && test "$GCC" = yes; then
11910 case $archive_cmds_CXX in
11911 *'~'*)
11912 # FIXME: we may have to deal with multi-command sequences.
11914 '$CC '*)
11915 # Test whether the compiler implicitly links with -lc since on some
11916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11917 # to ld, don't add -lc before -lgcc.
11918 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11919 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11920 $rm conftest*
11921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11924 (eval $ac_compile) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } 2>conftest.err; then
11928 soname=conftest
11929 lib=conftest
11930 libobjs=conftest.$ac_objext
11931 deplibs=
11932 wl=$lt_prog_compiler_wl_CXX
11933 compiler_flags=-v
11934 linker_flags=-v
11935 verstring=
11936 output_objdir=.
11937 libname=conftest
11938 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11939 allow_undefined_flag_CXX=
11940 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11941 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }
11945 then
11946 archive_cmds_need_lc_CXX=no
11947 else
11948 archive_cmds_need_lc_CXX=yes
11950 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11951 else
11952 cat conftest.err 1>&5
11954 $rm conftest*
11955 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11956 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11958 esac
11961 esac
11963 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11964 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11965 library_names_spec=
11966 libname_spec='lib$name'
11967 soname_spec=
11968 shrext=".so"
11969 postinstall_cmds=
11970 postuninstall_cmds=
11971 finish_cmds=
11972 finish_eval=
11973 shlibpath_var=
11974 shlibpath_overrides_runpath=unknown
11975 version_type=none
11976 dynamic_linker="$host_os ld.so"
11977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11978 if test "$GCC" = yes; then
11979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11980 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11981 # if the path contains ";" then we assume it to be the separator
11982 # otherwise default to the standard path separator (i.e. ":") - it is
11983 # assumed that no part of a normal pathname contains ";" but that should
11984 # okay in the real world where ";" in dirpaths is itself problematic.
11985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11986 else
11987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11989 else
11990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11992 need_lib_prefix=unknown
11993 hardcode_into_libs=no
11995 # when you set need_version to no, make sure it does not cause -set_version
11996 # flags to be left without arguments
11997 need_version=unknown
11999 case $host_os in
12000 aix3*)
12001 version_type=linux
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12003 shlibpath_var=LIBPATH
12005 # AIX 3 has no versioning support, so we append a major version to the name.
12006 soname_spec='${libname}${release}${shared_ext}$major'
12009 aix4* | aix5*)
12010 version_type=linux
12011 need_lib_prefix=no
12012 need_version=no
12013 hardcode_into_libs=yes
12014 if test "$host_cpu" = ia64; then
12015 # AIX 5 supports IA64
12016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12017 shlibpath_var=LD_LIBRARY_PATH
12018 else
12019 # With GCC up to 2.95.x, collect2 would create an import file
12020 # for dependence libraries. The import file would start with
12021 # the line `#! .'. This would cause the generated library to
12022 # depend on `.', always an invalid library. This was fixed in
12023 # development snapshots of GCC prior to 3.0.
12024 case $host_os in
12025 aix4 | aix4.[01] | aix4.[01].*)
12026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12027 echo ' yes '
12028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12030 else
12031 can_build_shared=no
12034 esac
12035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12036 # soname into executable. Probably we can add versioning support to
12037 # collect2, so additional links can be useful in future.
12038 if test "$aix_use_runtimelinking" = yes; then
12039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12040 # instead of lib<name>.a to let people know that these are not
12041 # typical AIX shared libraries.
12042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12043 else
12044 # We preserve .a as extension for shared libraries through AIX4.2
12045 # and later when we are not doing run time linking.
12046 library_names_spec='${libname}${release}.a $libname.a'
12047 soname_spec='${libname}${release}${shared_ext}$major'
12049 shlibpath_var=LIBPATH
12053 amigaos*)
12054 library_names_spec='$libname.ixlibrary $libname.a'
12055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12056 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12059 beos*)
12060 library_names_spec='${libname}${shared_ext}'
12061 dynamic_linker="$host_os ld.so"
12062 shlibpath_var=LIBRARY_PATH
12065 bsdi4*)
12066 version_type=linux
12067 need_version=no
12068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12069 soname_spec='${libname}${release}${shared_ext}$major'
12070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12074 # the default ld.so.conf also contains /usr/contrib/lib and
12075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12076 # libtool to hard-code these into programs
12079 cygwin* | mingw* | pw32*)
12080 version_type=windows
12081 shrext=".dll"
12082 need_version=no
12083 need_lib_prefix=no
12085 case $GCC,$host_os in
12086 yes,cygwin* | yes,mingw* | yes,pw32*)
12087 library_names_spec='$libname.dll.a'
12088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12089 postinstall_cmds='base_file=`basename \${file}`~
12090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12091 dldir=$destdir/`dirname \$dlpath`~
12092 test -d \$dldir || mkdir -p \$dldir~
12093 $install_prog $dir/$dlname \$dldir/$dlname'
12094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12095 dlpath=$dir/\$dldll~
12096 $rm \$dlpath'
12097 shlibpath_overrides_runpath=yes
12099 case $host_os in
12100 cygwin*)
12101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12102 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12105 mingw*)
12106 # MinGW DLLs use traditional 'lib' prefix
12107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12110 # It is most probably a Windows format PATH printed by
12111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12112 # path with ; separators, and with drive letters. We can handle the
12113 # drive letters (cygwin fileutils understands them), so leave them,
12114 # especially as we might pass files found there to a mingw objdump,
12115 # which wouldn't understand a cygwinified path. Ahh.
12116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12117 else
12118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12121 pw32*)
12122 # pw32 DLLs use 'pw' prefix rather than 'lib'
12123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12125 esac
12129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12131 esac
12132 dynamic_linker='Win32 ld.exe'
12133 # FIXME: first we should search . and the directory the executable is in
12134 shlibpath_var=PATH
12137 darwin* | rhapsody*)
12138 dynamic_linker="$host_os dyld"
12139 version_type=darwin
12140 need_lib_prefix=no
12141 need_version=no
12142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12143 soname_spec='${libname}${release}${major}$shared_ext'
12144 shlibpath_overrides_runpath=yes
12145 shlibpath_var=DYLD_LIBRARY_PATH
12146 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12148 if test "$GCC" = yes; then
12149 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12150 else
12151 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12156 dgux*)
12157 version_type=linux
12158 need_lib_prefix=no
12159 need_version=no
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12165 freebsd1*)
12166 dynamic_linker=no
12169 kfreebsd*-gnu)
12170 version_type=linux
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=no
12177 hardcode_into_libs=yes
12178 dynamic_linker='GNU ld.so'
12181 freebsd*)
12182 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12183 version_type=freebsd-$objformat
12184 case $version_type in
12185 freebsd-elf*)
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12187 need_version=no
12188 need_lib_prefix=no
12190 freebsd-*)
12191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12192 need_version=yes
12194 esac
12195 shlibpath_var=LD_LIBRARY_PATH
12196 case $host_os in
12197 freebsd2*)
12198 shlibpath_overrides_runpath=yes
12200 freebsd3.01* | freebsdelf3.01*)
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12204 *) # from 3.2 on
12205 shlibpath_overrides_runpath=no
12206 hardcode_into_libs=yes
12208 esac
12211 gnu*)
12212 version_type=linux
12213 need_lib_prefix=no
12214 need_version=no
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12216 soname_spec='${libname}${release}${shared_ext}$major'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 hardcode_into_libs=yes
12221 hpux9* | hpux10* | hpux11*)
12222 # Give a soname corresponding to the major version so that dld.sl refuses to
12223 # link against other versions.
12224 version_type=sunos
12225 need_lib_prefix=no
12226 need_version=no
12227 case "$host_cpu" in
12228 ia64*)
12229 shrext='.so'
12230 hardcode_into_libs=yes
12231 dynamic_linker="$host_os dld.so"
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12235 soname_spec='${libname}${release}${shared_ext}$major'
12236 if test "X$HPUX_IA64_MODE" = X32; then
12237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12238 else
12239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12243 hppa*64*)
12244 shrext='.sl'
12245 hardcode_into_libs=yes
12246 dynamic_linker="$host_os dld.sl"
12247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12250 soname_spec='${libname}${release}${shared_ext}$major'
12251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12255 shrext='.sl'
12256 dynamic_linker="$host_os dld.sl"
12257 shlibpath_var=SHLIB_PATH
12258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12260 soname_spec='${libname}${release}${shared_ext}$major'
12262 esac
12263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12264 postinstall_cmds='chmod 555 $lib'
12267 irix5* | irix6* | nonstopux*)
12268 case $host_os in
12269 nonstopux*) version_type=nonstopux ;;
12271 if test "$lt_cv_prog_gnu_ld" = yes; then
12272 version_type=linux
12273 else
12274 version_type=irix
12275 fi ;;
12276 esac
12277 need_lib_prefix=no
12278 need_version=no
12279 soname_spec='${libname}${release}${shared_ext}$major'
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12281 case $host_os in
12282 irix5* | nonstopux*)
12283 libsuff= shlibsuff=
12286 case $LD in # libtool.m4 will add one of these switches to LD
12287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12288 libsuff= shlibsuff= libmagic=32-bit;;
12289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12290 libsuff=32 shlibsuff=N32 libmagic=N32;;
12291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12293 *) libsuff= shlibsuff= libmagic=never-match;;
12294 esac
12296 esac
12297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12298 shlibpath_overrides_runpath=no
12299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12301 hardcode_into_libs=yes
12304 # No shared lib support for Linux oldld, aout, or coff.
12305 linux*oldld* | linux*aout* | linux*coff*)
12306 dynamic_linker=no
12309 # This must be Linux ELF.
12310 linux*)
12311 version_type=linux
12312 need_lib_prefix=no
12313 need_version=no
12314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315 soname_spec='${libname}${release}${shared_ext}$major'
12316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12317 shlibpath_var=LD_LIBRARY_PATH
12318 shlibpath_overrides_runpath=no
12319 # This implies no fast_install, which is unacceptable.
12320 # Some rework will be needed to allow for fast_install
12321 # before this can be enabled.
12322 hardcode_into_libs=yes
12324 # We used to test for /lib/ld.so.1 and disable shared libraries on
12325 # powerpc, because MkLinux only supported shared libraries with the
12326 # GNU dynamic linker. Since this was broken with cross compilers,
12327 # most powerpc-linux boxes support dynamic linking these days and
12328 # people can always --disable-shared, the test was removed, and we
12329 # assume the GNU/Linux dynamic linker is in use.
12330 dynamic_linker='GNU/Linux ld.so'
12333 netbsd*)
12334 version_type=sunos
12335 need_lib_prefix=no
12336 need_version=no
12337 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12340 dynamic_linker='NetBSD (a.out) ld.so'
12341 else
12342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12344 dynamic_linker='NetBSD ld.elf_so'
12346 shlibpath_var=LD_LIBRARY_PATH
12347 shlibpath_overrides_runpath=yes
12348 hardcode_into_libs=yes
12351 newsos6)
12352 version_type=linux
12353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 shlibpath_overrides_runpath=yes
12358 nto-qnx*)
12359 version_type=linux
12360 need_lib_prefix=no
12361 need_version=no
12362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363 soname_spec='${libname}${release}${shared_ext}$major'
12364 shlibpath_var=LD_LIBRARY_PATH
12365 shlibpath_overrides_runpath=yes
12368 openbsd*)
12369 version_type=sunos
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12374 shlibpath_var=LD_LIBRARY_PATH
12375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12376 case $host_os in
12377 openbsd2.[89] | openbsd2.[89].*)
12378 shlibpath_overrides_runpath=no
12381 shlibpath_overrides_runpath=yes
12383 esac
12384 else
12385 shlibpath_overrides_runpath=yes
12389 os2*)
12390 libname_spec='$name'
12391 shrext=".dll"
12392 need_lib_prefix=no
12393 library_names_spec='$libname${shared_ext} $libname.a'
12394 dynamic_linker='OS/2 ld.exe'
12395 shlibpath_var=LIBPATH
12398 osf3* | osf4* | osf5*)
12399 version_type=osf
12400 need_lib_prefix=no
12401 need_version=no
12402 soname_spec='${libname}${release}${shared_ext}$major'
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12406 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12409 sco3.2v5*)
12410 version_type=osf
12411 soname_spec='${libname}${release}${shared_ext}$major'
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 shlibpath_var=LD_LIBRARY_PATH
12416 solaris*)
12417 version_type=linux
12418 need_lib_prefix=no
12419 need_version=no
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12421 soname_spec='${libname}${release}${shared_ext}$major'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 shlibpath_overrides_runpath=yes
12424 hardcode_into_libs=yes
12425 # ldd complains unless libraries are executable
12426 postinstall_cmds='chmod +x $lib'
12429 sunos4*)
12430 version_type=sunos
12431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=yes
12435 if test "$with_gnu_ld" = yes; then
12436 need_lib_prefix=no
12438 need_version=yes
12441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12442 version_type=linux
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444 soname_spec='${libname}${release}${shared_ext}$major'
12445 shlibpath_var=LD_LIBRARY_PATH
12446 case $host_vendor in
12447 sni)
12448 shlibpath_overrides_runpath=no
12449 need_lib_prefix=no
12450 export_dynamic_flag_spec='${wl}-Blargedynsym'
12451 runpath_var=LD_RUN_PATH
12453 siemens)
12454 need_lib_prefix=no
12456 motorola)
12457 need_lib_prefix=no
12458 need_version=no
12459 shlibpath_overrides_runpath=no
12460 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12462 esac
12465 sysv4*MP*)
12466 if test -d /usr/nec ;then
12467 version_type=linux
12468 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12469 soname_spec='$libname${shared_ext}.$major'
12470 shlibpath_var=LD_LIBRARY_PATH
12474 uts4*)
12475 version_type=linux
12476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12477 soname_spec='${libname}${release}${shared_ext}$major'
12478 shlibpath_var=LD_LIBRARY_PATH
12482 dynamic_linker=no
12484 esac
12485 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12486 echo "${ECHO_T}$dynamic_linker" >&6; }
12487 test "$dynamic_linker" = no && can_build_shared=no
12489 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12490 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12491 hardcode_action_CXX=
12492 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12493 test -n "$runpath_var CXX" || \
12494 test "X$hardcode_automatic_CXX"="Xyes" ; then
12496 # We can hardcode non-existant directories.
12497 if test "$hardcode_direct_CXX" != no &&
12498 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12499 # have to relink, otherwise we might link with an installed library
12500 # when we should be linking with a yet-to-be-installed one
12501 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12502 test "$hardcode_minus_L_CXX" != no; then
12503 # Linking always hardcodes the temporary library directory.
12504 hardcode_action_CXX=relink
12505 else
12506 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12507 hardcode_action_CXX=immediate
12509 else
12510 # We cannot hardcode anything, or else we can only hardcode existing
12511 # directories.
12512 hardcode_action_CXX=unsupported
12514 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12515 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12517 if test "$hardcode_action_CXX" = relink; then
12518 # Fast installation is not supported
12519 enable_fast_install=no
12520 elif test "$shlibpath_overrides_runpath" = yes ||
12521 test "$enable_shared" = no; then
12522 # Fast installation is not necessary
12523 enable_fast_install=needless
12526 striplib=
12527 old_striplib=
12528 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12529 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12530 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12533 { echo "$as_me:$LINENO: result: yes" >&5
12534 echo "${ECHO_T}yes" >&6; }
12535 else
12536 # FIXME - insert some real tests, host_os isn't really good enough
12537 case $host_os in
12538 darwin*)
12539 if test -n "$STRIP" ; then
12540 striplib="$STRIP -x"
12541 { echo "$as_me:$LINENO: result: yes" >&5
12542 echo "${ECHO_T}yes" >&6; }
12543 else
12544 { echo "$as_me:$LINENO: result: no" >&5
12545 echo "${ECHO_T}no" >&6; }
12549 { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12552 esac
12555 if test "x$enable_dlopen" != xyes; then
12556 enable_dlopen=unknown
12557 enable_dlopen_self=unknown
12558 enable_dlopen_self_static=unknown
12559 else
12560 lt_cv_dlopen=no
12561 lt_cv_dlopen_libs=
12563 case $host_os in
12564 beos*)
12565 lt_cv_dlopen="load_add_on"
12566 lt_cv_dlopen_libs=
12567 lt_cv_dlopen_self=yes
12570 mingw* | pw32*)
12571 lt_cv_dlopen="LoadLibrary"
12572 lt_cv_dlopen_libs=
12575 cygwin*)
12576 lt_cv_dlopen="dlopen"
12577 lt_cv_dlopen_libs=
12580 darwin*)
12581 # if libdl is installed we need to link against it
12582 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12583 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12584 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-ldl $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12599 #ifdef __cplusplus
12600 extern "C"
12601 #endif
12602 char dlopen ();
12604 main ()
12606 return dlopen ();
12608 return 0;
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12626 { (case "(($ac_try" in
12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_try") 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_try") 2>&5
12642 ac_status=$?
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 ac_cv_lib_dl_dlopen=yes
12646 else
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12650 ac_cv_lib_dl_dlopen=no
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12658 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12659 if test $ac_cv_lib_dl_dlopen = yes; then
12660 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12661 else
12663 lt_cv_dlopen="dyld"
12664 lt_cv_dlopen_libs=
12665 lt_cv_dlopen_self=yes
12672 { echo "$as_me:$LINENO: checking for shl_load" >&5
12673 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12674 if test "${ac_cv_func_shl_load+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h. */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685 #define shl_load innocuous_shl_load
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char shl_load (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12692 #ifdef __STDC__
12693 # include <limits.h>
12694 #else
12695 # include <assert.h>
12696 #endif
12698 #undef shl_load
12700 /* Override any GCC internal prototype to avoid an error.
12701 Use char because int might match the return type of a GCC
12702 builtin and then its argument prototype would still apply. */
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 char shl_load ();
12707 /* The GNU C library defines this for functions which it implements
12708 to always fail with ENOSYS. Some functions are actually named
12709 something starting with __ and the normal name is an alias. */
12710 #if defined __stub_shl_load || defined __stub___shl_load
12711 choke me
12712 #endif
12715 main ()
12717 return shl_load ();
12719 return 0;
12721 _ACEOF
12722 rm -f conftest.$ac_objext conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727 esac
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12737 { (case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740 esac
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_try") 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest$ac_exeext'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752 (eval "$ac_try") 2>&5
12753 ac_status=$?
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_func_shl_load=yes
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_cv_func_shl_load=no
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12767 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12768 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12769 if test $ac_cv_func_shl_load = yes; then
12770 lt_cv_dlopen="shl_load"
12771 else
12772 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12773 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12774 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777 ac_check_lib_save_LIBS=$LIBS
12778 LIBS="-ldld $LIBS"
12779 cat >conftest.$ac_ext <<_ACEOF
12780 /* confdefs.h. */
12781 _ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12786 /* Override any GCC internal prototype to avoid an error.
12787 Use char because int might match the return type of a GCC
12788 builtin and then its argument prototype would still apply. */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 char shl_load ();
12794 main ()
12796 return shl_load ();
12798 return 0;
12800 _ACEOF
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (ac_try="$ac_link"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_link") 2>conftest.er1
12809 ac_status=$?
12810 grep -v '^ *+' conftest.er1 >conftest.err
12811 rm -f conftest.er1
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_cv_lib_dld_shl_load=yes
12836 else
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12840 ac_cv_lib_dld_shl_load=no
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 LIBS=$ac_check_lib_save_LIBS
12847 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12848 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12849 if test $ac_cv_lib_dld_shl_load = yes; then
12850 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12851 else
12852 { echo "$as_me:$LINENO: checking for dlopen" >&5
12853 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12854 if test "${ac_cv_func_dlopen+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857 cat >conftest.$ac_ext <<_ACEOF
12858 /* confdefs.h. */
12859 _ACEOF
12860 cat confdefs.h >>conftest.$ac_ext
12861 cat >>conftest.$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12865 #define dlopen innocuous_dlopen
12867 /* System header to define __stub macros and hopefully few prototypes,
12868 which can conflict with char dlopen (); below.
12869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12870 <limits.h> exists even on freestanding compilers. */
12872 #ifdef __STDC__
12873 # include <limits.h>
12874 #else
12875 # include <assert.h>
12876 #endif
12878 #undef dlopen
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12883 #ifdef __cplusplus
12884 extern "C"
12885 #endif
12886 char dlopen ();
12887 /* The GNU C library defines this for functions which it implements
12888 to always fail with ENOSYS. Some functions are actually named
12889 something starting with __ and the normal name is an alias. */
12890 #if defined __stub_dlopen || defined __stub___dlopen
12891 choke me
12892 #endif
12895 main ()
12897 return dlopen ();
12899 return 0;
12901 _ACEOF
12902 rm -f conftest.$ac_objext conftest$ac_exeext
12903 if { (ac_try="$ac_link"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12907 esac
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_link") 2>conftest.er1
12910 ac_status=$?
12911 grep -v '^ *+' conftest.er1 >conftest.err
12912 rm -f conftest.er1
12913 cat conftest.err >&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } &&
12916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12917 { (case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920 esac
12921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12922 (eval "$ac_try") 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12930 esac
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_try") 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_dlopen=yes
12937 else
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12941 ac_cv_func_dlopen=no
12944 rm -f core conftest.err conftest.$ac_objext \
12945 conftest$ac_exeext conftest.$ac_ext
12947 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12948 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12949 if test $ac_cv_func_dlopen = yes; then
12950 lt_cv_dlopen="dlopen"
12951 else
12952 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 ac_check_lib_save_LIBS=$LIBS
12958 LIBS="-ldl $LIBS"
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12969 #ifdef __cplusplus
12970 extern "C"
12971 #endif
12972 char dlopen ();
12974 main ()
12976 return dlopen ();
12978 return 0;
12980 _ACEOF
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (ac_try="$ac_link"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12986 esac
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_link") 2>conftest.er1
12989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12996 { (case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_try") 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; } &&
13005 { ac_try='test -s conftest$ac_exeext'
13006 { (case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009 esac
13010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13011 (eval "$ac_try") 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; }; then
13015 ac_cv_lib_dl_dlopen=yes
13016 else
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ac_cv_lib_dl_dlopen=no
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_lib_save_LIBS
13027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13029 if test $ac_cv_lib_dl_dlopen = yes; then
13030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13031 else
13032 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13033 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13034 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 else
13037 ac_check_lib_save_LIBS=$LIBS
13038 LIBS="-lsvld $LIBS"
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13046 /* Override any GCC internal prototype to avoid an error.
13047 Use char because int might match the return type of a GCC
13048 builtin and then its argument prototype would still apply. */
13049 #ifdef __cplusplus
13050 extern "C"
13051 #endif
13052 char dlopen ();
13054 main ()
13056 return dlopen ();
13058 return 0;
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_link") 2>conftest.er1
13069 ac_status=$?
13070 grep -v '^ *+' conftest.er1 >conftest.err
13071 rm -f conftest.er1
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13076 { (case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13079 esac
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_try") 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest$ac_exeext'
13086 { (case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 ac_cv_lib_svld_dlopen=yes
13096 else
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_svld_dlopen=no
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13105 LIBS=$ac_check_lib_save_LIBS
13107 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13108 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13109 if test $ac_cv_lib_svld_dlopen = yes; then
13110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13111 else
13112 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13113 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13114 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117 ac_check_lib_save_LIBS=$LIBS
13118 LIBS="-ldld $LIBS"
13119 cat >conftest.$ac_ext <<_ACEOF
13120 /* confdefs.h. */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 char dld_link ();
13134 main ()
13136 return dld_link ();
13138 return 0;
13140 _ACEOF
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (ac_try="$ac_link"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13146 esac
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_link") 2>conftest.er1
13149 ac_status=$?
13150 grep -v '^ *+' conftest.er1 >conftest.err
13151 rm -f conftest.er1
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159 esac
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169 esac
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_lib_dld_dld_link=yes
13176 else
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13180 ac_cv_lib_dld_dld_link=no
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185 LIBS=$ac_check_lib_save_LIBS
13187 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13188 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13189 if test $ac_cv_lib_dld_dld_link = yes; then
13190 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13209 esac
13211 if test "x$lt_cv_dlopen" != xno; then
13212 enable_dlopen=yes
13213 else
13214 enable_dlopen=no
13217 case $lt_cv_dlopen in
13218 dlopen)
13219 save_CPPFLAGS="$CPPFLAGS"
13220 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13222 save_LDFLAGS="$LDFLAGS"
13223 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13225 save_LIBS="$LIBS"
13226 LIBS="$lt_cv_dlopen_libs $LIBS"
13228 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13229 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13230 if test "${lt_cv_dlopen_self+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 else
13233 if test "$cross_compiling" = yes; then :
13234 lt_cv_dlopen_self=cross
13235 else
13236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13237 lt_status=$lt_dlunknown
13238 cat > conftest.$ac_ext <<EOF
13239 #line 13239 "configure"
13240 #include "confdefs.h"
13242 #if HAVE_DLFCN_H
13243 #include <dlfcn.h>
13244 #endif
13246 #include <stdio.h>
13248 #ifdef RTLD_GLOBAL
13249 # define LT_DLGLOBAL RTLD_GLOBAL
13250 #else
13251 # ifdef DL_GLOBAL
13252 # define LT_DLGLOBAL DL_GLOBAL
13253 # else
13254 # define LT_DLGLOBAL 0
13255 # endif
13256 #endif
13258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13259 find out it does not work in some platform. */
13260 #ifndef LT_DLLAZY_OR_NOW
13261 # ifdef RTLD_LAZY
13262 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13263 # else
13264 # ifdef DL_LAZY
13265 # define LT_DLLAZY_OR_NOW DL_LAZY
13266 # else
13267 # ifdef RTLD_NOW
13268 # define LT_DLLAZY_OR_NOW RTLD_NOW
13269 # else
13270 # ifdef DL_NOW
13271 # define LT_DLLAZY_OR_NOW DL_NOW
13272 # else
13273 # define LT_DLLAZY_OR_NOW 0
13274 # endif
13275 # endif
13276 # endif
13277 # endif
13278 #endif
13280 #ifdef __cplusplus
13281 extern "C" void exit (int);
13282 #endif
13284 void fnord() { int i=42;}
13285 int main ()
13287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13288 int status = $lt_dlunknown;
13290 if (self)
13292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13294 /* dlclose (self); */
13297 exit (status);
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301 (eval $ac_link) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13305 (./conftest; exit; ) 2>/dev/null
13306 lt_status=$?
13307 case x$lt_status in
13308 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13309 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13310 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13311 esac
13312 else :
13313 # compilation failed
13314 lt_cv_dlopen_self=no
13317 rm -fr conftest*
13321 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13322 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13324 if test "x$lt_cv_dlopen_self" = xyes; then
13325 LDFLAGS="$LDFLAGS $link_static_flag"
13326 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13327 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13328 if test "${lt_cv_dlopen_self_static+set}" = set; then
13329 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331 if test "$cross_compiling" = yes; then :
13332 lt_cv_dlopen_self_static=cross
13333 else
13334 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13335 lt_status=$lt_dlunknown
13336 cat > conftest.$ac_ext <<EOF
13337 #line 13337 "configure"
13338 #include "confdefs.h"
13340 #if HAVE_DLFCN_H
13341 #include <dlfcn.h>
13342 #endif
13344 #include <stdio.h>
13346 #ifdef RTLD_GLOBAL
13347 # define LT_DLGLOBAL RTLD_GLOBAL
13348 #else
13349 # ifdef DL_GLOBAL
13350 # define LT_DLGLOBAL DL_GLOBAL
13351 # else
13352 # define LT_DLGLOBAL 0
13353 # endif
13354 #endif
13356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13357 find out it does not work in some platform. */
13358 #ifndef LT_DLLAZY_OR_NOW
13359 # ifdef RTLD_LAZY
13360 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13361 # else
13362 # ifdef DL_LAZY
13363 # define LT_DLLAZY_OR_NOW DL_LAZY
13364 # else
13365 # ifdef RTLD_NOW
13366 # define LT_DLLAZY_OR_NOW RTLD_NOW
13367 # else
13368 # ifdef DL_NOW
13369 # define LT_DLLAZY_OR_NOW DL_NOW
13370 # else
13371 # define LT_DLLAZY_OR_NOW 0
13372 # endif
13373 # endif
13374 # endif
13375 # endif
13376 #endif
13378 #ifdef __cplusplus
13379 extern "C" void exit (int);
13380 #endif
13382 void fnord() { int i=42;}
13383 int main ()
13385 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13386 int status = $lt_dlunknown;
13388 if (self)
13390 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13391 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13392 /* dlclose (self); */
13395 exit (status);
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13403 (./conftest; exit; ) 2>/dev/null
13404 lt_status=$?
13405 case x$lt_status in
13406 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13407 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13408 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13409 esac
13410 else :
13411 # compilation failed
13412 lt_cv_dlopen_self_static=no
13415 rm -fr conftest*
13419 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13420 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13423 CPPFLAGS="$save_CPPFLAGS"
13424 LDFLAGS="$save_LDFLAGS"
13425 LIBS="$save_LIBS"
13427 esac
13429 case $lt_cv_dlopen_self in
13430 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13431 *) enable_dlopen_self=unknown ;;
13432 esac
13434 case $lt_cv_dlopen_self_static in
13435 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13436 *) enable_dlopen_self_static=unknown ;;
13437 esac
13441 # The else clause should only fire when bootstrapping the
13442 # libtool distribution, otherwise you forgot to ship ltmain.sh
13443 # with your package, and you will get complaints that there are
13444 # no rules to generate ltmain.sh.
13445 if test -f "$ltmain"; then
13446 # See if we are running on zsh, and set the options which allow our commands through
13447 # without removal of \ escapes.
13448 if test -n "${ZSH_VERSION+set}" ; then
13449 setopt NO_GLOB_SUBST
13451 # Now quote all the things that may contain metacharacters while being
13452 # careful not to overquote the AC_SUBSTed values. We take copies of the
13453 # variables and quote the copies for generation of the libtool script.
13454 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13455 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13456 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13457 deplibs_check_method reload_flag reload_cmds need_locks \
13458 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13459 lt_cv_sys_global_symbol_to_c_name_address \
13460 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13461 old_postinstall_cmds old_postuninstall_cmds \
13462 compiler_CXX \
13463 CC_CXX \
13464 LD_CXX \
13465 lt_prog_compiler_wl_CXX \
13466 lt_prog_compiler_pic_CXX \
13467 lt_prog_compiler_static_CXX \
13468 lt_prog_compiler_no_builtin_flag_CXX \
13469 export_dynamic_flag_spec_CXX \
13470 thread_safe_flag_spec_CXX \
13471 whole_archive_flag_spec_CXX \
13472 enable_shared_with_static_runtimes_CXX \
13473 old_archive_cmds_CXX \
13474 old_archive_from_new_cmds_CXX \
13475 predep_objects_CXX \
13476 postdep_objects_CXX \
13477 predeps_CXX \
13478 postdeps_CXX \
13479 compiler_lib_search_path_CXX \
13480 archive_cmds_CXX \
13481 archive_expsym_cmds_CXX \
13482 postinstall_cmds_CXX \
13483 postuninstall_cmds_CXX \
13484 old_archive_from_expsyms_cmds_CXX \
13485 allow_undefined_flag_CXX \
13486 no_undefined_flag_CXX \
13487 export_symbols_cmds_CXX \
13488 hardcode_libdir_flag_spec_CXX \
13489 hardcode_libdir_flag_spec_ld_CXX \
13490 hardcode_libdir_separator_CXX \
13491 hardcode_automatic_CXX \
13492 module_cmds_CXX \
13493 module_expsym_cmds_CXX \
13494 lt_cv_prog_compiler_c_o_CXX \
13495 exclude_expsyms_CXX \
13496 include_expsyms_CXX; do
13498 case $var in
13499 old_archive_cmds_CXX | \
13500 old_archive_from_new_cmds_CXX | \
13501 archive_cmds_CXX | \
13502 archive_expsym_cmds_CXX | \
13503 module_cmds_CXX | \
13504 module_expsym_cmds_CXX | \
13505 old_archive_from_expsyms_cmds_CXX | \
13506 export_symbols_cmds_CXX | \
13507 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13508 postinstall_cmds | postuninstall_cmds | \
13509 old_postinstall_cmds | old_postuninstall_cmds | \
13510 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13511 # Double-quote double-evaled strings.
13512 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13517 esac
13518 done
13520 case $lt_echo in
13521 *'\$0 --fallback-echo"')
13522 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13524 esac
13526 cfgfile="$ofile"
13528 cat <<__EOF__ >> "$cfgfile"
13529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13533 # Shell to use when invoking shell scripts.
13534 SHELL=$lt_SHELL
13536 # Whether or not to build shared libraries.
13537 build_libtool_libs=$enable_shared
13539 # Whether or not to build static libraries.
13540 build_old_libs=$enable_static
13542 # Whether or not to add -lc for building shared libraries.
13543 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13545 # Whether or not to disallow shared libs when runtime libs are static
13546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13548 # Whether or not to optimize for fast installation.
13549 fast_install=$enable_fast_install
13551 # The host system.
13552 host_alias=$host_alias
13553 host=$host
13555 # An echo program that does not interpret backslashes.
13556 echo=$lt_echo
13558 # The archiver.
13559 AR=$lt_AR
13560 AR_FLAGS=$lt_AR_FLAGS
13562 # A C compiler.
13563 LTCC=$lt_LTCC
13565 # A language-specific compiler.
13566 CC=$lt_compiler_CXX
13568 # Is the compiler the GNU C compiler?
13569 with_gcc=$GCC_CXX
13571 # An ERE matcher.
13572 EGREP=$lt_EGREP
13574 # The linker used to build libraries.
13575 LD=$lt_LD_CXX
13577 # Whether we need hard or soft links.
13578 LN_S=$lt_LN_S
13580 # A BSD-compatible nm program.
13581 NM=$lt_NM
13583 # A symbol stripping program
13584 STRIP="$STRIP"
13586 # Used to examine libraries when file_magic_cmd begins "file"
13587 MAGIC_CMD=$MAGIC_CMD
13589 # Used on cygwin: DLL creation program.
13590 DLLTOOL="$DLLTOOL"
13592 # Used on cygwin: object dumper.
13593 OBJDUMP="$OBJDUMP"
13595 # Used on cygwin: assembler.
13596 AS="$AS"
13598 # The name of the directory that contains temporary libtool files.
13599 objdir=$objdir
13601 # How to create reloadable object files.
13602 reload_flag=$lt_reload_flag
13603 reload_cmds=$lt_reload_cmds
13605 # How to pass a linker flag through the compiler.
13606 wl=$lt_lt_prog_compiler_wl_CXX
13608 # Object file suffix (normally "o").
13609 objext="$ac_objext"
13611 # Old archive suffix (normally "a").
13612 libext="$libext"
13614 # Shared library suffix (normally ".so").
13615 shrext='$shrext'
13617 # Executable file suffix (normally "").
13618 exeext="$exeext"
13620 # Additional compiler flags for building library objects.
13621 pic_flag=$lt_lt_prog_compiler_pic_CXX
13622 pic_mode=$pic_mode
13624 # What is the maximum length of a command?
13625 max_cmd_len=$lt_cv_sys_max_cmd_len
13627 # Does compiler simultaneously support -c and -o options?
13628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13630 # Must we lock files when doing compilation ?
13631 need_locks=$lt_need_locks
13633 # Do we need the lib prefix for modules?
13634 need_lib_prefix=$need_lib_prefix
13636 # Do we need a version for libraries?
13637 need_version=$need_version
13639 # Whether dlopen is supported.
13640 dlopen_support=$enable_dlopen
13642 # Whether dlopen of programs is supported.
13643 dlopen_self=$enable_dlopen_self
13645 # Whether dlopen of statically linked programs is supported.
13646 dlopen_self_static=$enable_dlopen_self_static
13648 # Compiler flag to prevent dynamic linking.
13649 link_static_flag=$lt_lt_prog_compiler_static_CXX
13651 # Compiler flag to turn off builtin functions.
13652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13654 # Compiler flag to allow reflexive dlopens.
13655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13657 # Compiler flag to generate shared objects directly from archives.
13658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13660 # Compiler flag to generate thread-safe objects.
13661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13663 # Library versioning type.
13664 version_type=$version_type
13666 # Format of library name prefix.
13667 libname_spec=$lt_libname_spec
13669 # List of archive names. First name is the real one, the rest are links.
13670 # The last name is the one that the linker finds with -lNAME.
13671 library_names_spec=$lt_library_names_spec
13673 # The coded name of the library, if different from the real name.
13674 soname_spec=$lt_soname_spec
13676 # Commands used to build and install an old-style archive.
13677 RANLIB=$lt_RANLIB
13678 old_archive_cmds=$lt_old_archive_cmds_CXX
13679 old_postinstall_cmds=$lt_old_postinstall_cmds
13680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13682 # Create an old-style archive from a shared archive.
13683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13685 # Create a temporary old-style archive to link instead of a shared archive.
13686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13688 # Commands used to build and install a shared archive.
13689 archive_cmds=$lt_archive_cmds_CXX
13690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13691 postinstall_cmds=$lt_postinstall_cmds
13692 postuninstall_cmds=$lt_postuninstall_cmds
13694 # Commands used to build a loadable module (assumed same as above if empty)
13695 module_cmds=$lt_module_cmds_CXX
13696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13698 # Commands to strip libraries.
13699 old_striplib=$lt_old_striplib
13700 striplib=$lt_striplib
13702 # Dependencies to place before the objects being linked to create a
13703 # shared library.
13704 predep_objects=$lt_predep_objects_CXX
13706 # Dependencies to place after the objects being linked to create a
13707 # shared library.
13708 postdep_objects=$lt_postdep_objects_CXX
13710 # Dependencies to place before the objects being linked to create a
13711 # shared library.
13712 predeps=$lt_predeps_CXX
13714 # Dependencies to place after the objects being linked to create a
13715 # shared library.
13716 postdeps=$lt_postdeps_CXX
13718 # The library search path used internally by the compiler when linking
13719 # a shared library.
13720 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13722 # Method to check whether dependent libraries are shared objects.
13723 deplibs_check_method=$lt_deplibs_check_method
13725 # Command to use when deplibs_check_method == file_magic.
13726 file_magic_cmd=$lt_file_magic_cmd
13728 # Flag that allows shared libraries with undefined symbols to be built.
13729 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13731 # Flag that forces no undefined symbols.
13732 no_undefined_flag=$lt_no_undefined_flag_CXX
13734 # Commands used to finish a libtool library installation in a directory.
13735 finish_cmds=$lt_finish_cmds
13737 # Same as above, but a single script fragment to be evaled but not shown.
13738 finish_eval=$lt_finish_eval
13740 # Take the output of nm and produce a listing of raw symbols and C names.
13741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13743 # Transform the output of nm in a proper C declaration
13744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13746 # Transform the output of nm in a C name address pair
13747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13749 # This is the shared library runtime path variable.
13750 runpath_var=$runpath_var
13752 # This is the shared library path variable.
13753 shlibpath_var=$shlibpath_var
13755 # Is shlibpath searched before the hard-coded library search path?
13756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13758 # How to hardcode a shared library path into an executable.
13759 hardcode_action=$hardcode_action_CXX
13761 # Whether we should hardcode library paths into libraries.
13762 hardcode_into_libs=$hardcode_into_libs
13764 # Flag to hardcode \$libdir into a binary during linking.
13765 # This must work even if \$libdir does not exist.
13766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13768 # If ld is used when linking, flag to hardcode \$libdir into
13769 # a binary during linking. This must work even if \$libdir does
13770 # not exist.
13771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13773 # Whether we need a single -rpath flag with a separated argument.
13774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13777 # resulting binary.
13778 hardcode_direct=$hardcode_direct_CXX
13780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13781 # resulting binary.
13782 hardcode_minus_L=$hardcode_minus_L_CXX
13784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13785 # the resulting binary.
13786 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13788 # Set to yes if building a shared library automatically hardcodes DIR into the library
13789 # and all subsequent libraries and executables linked against it.
13790 hardcode_automatic=$hardcode_automatic_CXX
13792 # Variables whose values should be saved in libtool wrapper scripts and
13793 # restored at relink time.
13794 variables_saved_for_relink="$variables_saved_for_relink"
13796 # Whether libtool must link a program against all its dependency libraries.
13797 link_all_deplibs=$link_all_deplibs_CXX
13799 # Compile-time system search path for libraries
13800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13802 # Run-time system search path for libraries
13803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13805 # Fix the shell variable \$srcfile for the compiler.
13806 fix_srcfile_path="$fix_srcfile_path_CXX"
13808 # Set to yes if exported symbols are required.
13809 always_export_symbols=$always_export_symbols_CXX
13811 # The commands to list exported symbols.
13812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13814 # The commands to extract the exported symbol list from a shared archive.
13815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13817 # Symbols that should not be listed in the preloaded symbols.
13818 exclude_expsyms=$lt_exclude_expsyms_CXX
13820 # Symbols that must always be exported.
13821 include_expsyms=$lt_include_expsyms_CXX
13823 # ### END LIBTOOL TAG CONFIG: $tagname
13825 __EOF__
13828 else
13829 # If there is no Makefile yet, we rely on a make rule to execute
13830 # `config.status --recheck' to rerun these tests and create the
13831 # libtool script then.
13832 test -f Makefile && make "$ltmain"
13836 ac_ext=c
13837 ac_cpp='$CPP $CPPFLAGS'
13838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13842 CC=$lt_save_CC
13843 LDCXX=$LD
13844 LD=$lt_save_LD
13845 GCC=$lt_save_GCC
13846 with_gnu_ldcxx=$with_gnu_ld
13847 with_gnu_ld=$lt_save_with_gnu_ld
13848 lt_cv_path_LDCXX=$lt_cv_path_LD
13849 lt_cv_path_LD=$lt_save_path_LD
13850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13853 else
13854 tagname=""
13858 F77)
13859 if test -n "$F77" && test "X$F77" != "Xno"; then
13861 ac_ext=f
13862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13867 archive_cmds_need_lc_F77=no
13868 allow_undefined_flag_F77=
13869 always_export_symbols_F77=no
13870 archive_expsym_cmds_F77=
13871 export_dynamic_flag_spec_F77=
13872 hardcode_direct_F77=no
13873 hardcode_libdir_flag_spec_F77=
13874 hardcode_libdir_flag_spec_ld_F77=
13875 hardcode_libdir_separator_F77=
13876 hardcode_minus_L_F77=no
13877 hardcode_automatic_F77=no
13878 module_cmds_F77=
13879 module_expsym_cmds_F77=
13880 link_all_deplibs_F77=unknown
13881 old_archive_cmds_F77=$old_archive_cmds
13882 no_undefined_flag_F77=
13883 whole_archive_flag_spec_F77=
13884 enable_shared_with_static_runtimes_F77=no
13886 # Source file extension for f77 test sources.
13887 ac_ext=f
13889 # Object file extension for compiled f77 test sources.
13890 objext=o
13891 objext_F77=$objext
13893 # Code to be used in simple compile tests
13894 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13896 # Code to be used in simple link tests
13897 lt_simple_link_test_code=" program t\n end\n"
13899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13901 # If no C compiler was specified, use CC.
13902 LTCC=${LTCC-"$CC"}
13904 # Allow CC to be a program name with arguments.
13905 compiler=$CC
13908 # Allow CC to be a program name with arguments.
13909 lt_save_CC="$CC"
13910 CC=${F77-"f77"}
13911 compiler=$CC
13912 compiler_F77=$CC
13913 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13915 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13916 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13917 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13918 echo "${ECHO_T}$can_build_shared" >&6; }
13920 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13921 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13922 test "$can_build_shared" = "no" && enable_shared=no
13924 # On AIX, shared libraries and static libraries use the same namespace, and
13925 # are all built from PIC.
13926 case "$host_os" in
13927 aix3*)
13928 test "$enable_shared" = yes && enable_static=no
13929 if test -n "$RANLIB"; then
13930 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13931 postinstall_cmds='$RANLIB $lib'
13934 aix4*)
13935 test "$enable_shared" = yes && enable_static=no
13937 esac
13938 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13939 echo "${ECHO_T}$enable_shared" >&6; }
13941 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13942 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13943 # Make sure either enable_shared or enable_static is yes.
13944 test "$enable_shared" = yes || enable_static=yes
13945 { echo "$as_me:$LINENO: result: $enable_static" >&5
13946 echo "${ECHO_T}$enable_static" >&6; }
13948 test "$ld_shlibs_F77" = no && can_build_shared=no
13950 GCC_F77="$G77"
13951 LD_F77="$LD"
13953 lt_prog_compiler_wl_F77=
13954 lt_prog_compiler_pic_F77=
13955 lt_prog_compiler_static_F77=
13957 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13960 if test "$GCC" = yes; then
13961 lt_prog_compiler_wl_F77='-Wl,'
13962 lt_prog_compiler_static_F77='-static'
13964 case $host_os in
13965 aix*)
13966 # All AIX code is PIC.
13967 if test "$host_cpu" = ia64; then
13968 # AIX 5 now supports IA64 processor
13969 lt_prog_compiler_static_F77='-Bstatic'
13973 amigaos*)
13974 # FIXME: we need at least 68020 code to build shared libraries, but
13975 # adding the `-m68020' flag to GCC prevents building anything better,
13976 # like `-m68040'.
13977 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13980 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13981 # PIC is the default for these OSes.
13984 mingw* | pw32* | os2*)
13985 # This hack is so that the source file can tell whether it is being
13986 # built for inclusion in a dll (and should export symbols for example).
13987 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13990 darwin* | rhapsody*)
13991 # PIC is the default on this platform
13992 # Common symbols not allowed in MH_DYLIB files
13993 lt_prog_compiler_pic_F77='-fno-common'
13996 msdosdjgpp*)
13997 # Just because we use GCC doesn't mean we suddenly get shared libraries
13998 # on systems that don't support them.
13999 lt_prog_compiler_can_build_shared_F77=no
14000 enable_shared=no
14003 sysv4*MP*)
14004 if test -d /usr/nec; then
14005 lt_prog_compiler_pic_F77=-Kconform_pic
14009 hpux*)
14010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14011 # not for PA HP-UX.
14012 case "$host_cpu" in
14013 hppa*64*|ia64*)
14014 # +Z the default
14017 lt_prog_compiler_pic_F77='-fPIC'
14019 esac
14023 lt_prog_compiler_pic_F77='-fPIC'
14025 esac
14026 else
14027 # PORTME Check for flag to pass linker flags through the system compiler.
14028 case $host_os in
14029 aix*)
14030 lt_prog_compiler_wl_F77='-Wl,'
14031 if test "$host_cpu" = ia64; then
14032 # AIX 5 now supports IA64 processor
14033 lt_prog_compiler_static_F77='-Bstatic'
14034 else
14035 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14039 mingw* | pw32* | os2*)
14040 # This hack is so that the source file can tell whether it is being
14041 # built for inclusion in a dll (and should export symbols for example).
14042 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14045 hpux9* | hpux10* | hpux11*)
14046 lt_prog_compiler_wl_F77='-Wl,'
14047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14048 # not for PA HP-UX.
14049 case "$host_cpu" in
14050 hppa*64*|ia64*)
14051 # +Z the default
14054 lt_prog_compiler_pic_F77='+Z'
14056 esac
14057 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14058 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14061 irix5* | irix6* | nonstopux*)
14062 lt_prog_compiler_wl_F77='-Wl,'
14063 # PIC (with -KPIC) is the default.
14064 lt_prog_compiler_static_F77='-non_shared'
14067 newsos6)
14068 lt_prog_compiler_pic_F77='-KPIC'
14069 lt_prog_compiler_static_F77='-Bstatic'
14072 linux*)
14073 case $CC in
14074 icc* | ecc*)
14075 lt_prog_compiler_wl_F77='-Wl,'
14076 lt_prog_compiler_pic_F77='-KPIC'
14077 lt_prog_compiler_static_F77='-static'
14079 ccc*)
14080 lt_prog_compiler_wl_F77='-Wl,'
14081 # All Alpha code is PIC.
14082 lt_prog_compiler_static_F77='-non_shared'
14084 esac
14087 osf3* | osf4* | osf5*)
14088 lt_prog_compiler_wl_F77='-Wl,'
14089 # All OSF/1 code is PIC.
14090 lt_prog_compiler_static_F77='-non_shared'
14093 sco3.2v5*)
14094 lt_prog_compiler_pic_F77='-Kpic'
14095 lt_prog_compiler_static_F77='-dn'
14098 solaris*)
14099 lt_prog_compiler_wl_F77='-Wl,'
14100 lt_prog_compiler_pic_F77='-KPIC'
14101 lt_prog_compiler_static_F77='-Bstatic'
14104 sunos4*)
14105 lt_prog_compiler_wl_F77='-Qoption ld '
14106 lt_prog_compiler_pic_F77='-PIC'
14107 lt_prog_compiler_static_F77='-Bstatic'
14110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14111 lt_prog_compiler_wl_F77='-Wl,'
14112 lt_prog_compiler_pic_F77='-KPIC'
14113 lt_prog_compiler_static_F77='-Bstatic'
14116 sysv4*MP*)
14117 if test -d /usr/nec ;then
14118 lt_prog_compiler_pic_F77='-Kconform_pic'
14119 lt_prog_compiler_static_F77='-Bstatic'
14123 uts4*)
14124 lt_prog_compiler_pic_F77='-pic'
14125 lt_prog_compiler_static_F77='-Bstatic'
14129 lt_prog_compiler_can_build_shared_F77=no
14131 esac
14134 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14135 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14138 # Check to make sure the PIC flag actually works.
14140 if test -n "$lt_prog_compiler_pic_F77"; then
14142 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14143 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14144 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 lt_prog_compiler_pic_works_F77=no
14148 ac_outfile=conftest.$ac_objext
14149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14150 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14151 # Insert the option either (1) after the last *FLAGS variable, or
14152 # (2) before a word containing "conftest.", or (3) at the end.
14153 # Note that $ac_compile itself does not contain backslashes and begins
14154 # with a dollar sign (not a hyphen), so the echo should work correctly.
14155 # The option is referenced via a variable to avoid confusing sed.
14156 lt_compile=`echo "$ac_compile" | $SED \
14157 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159 -e 's:$: $lt_compiler_flag:'`
14160 (eval echo "\"\$as_me:14160: $lt_compile\"" >&5)
14161 (eval "$lt_compile" 2>conftest.err)
14162 ac_status=$?
14163 cat conftest.err >&5
14164 echo "$as_me:14164: \$? = $ac_status" >&5
14165 if (exit $ac_status) && test -s "$ac_outfile"; then
14166 # The compiler can only warn and ignore the option if not recognized
14167 # So say no if there are warnings
14168 if test ! -s conftest.err; then
14169 lt_prog_compiler_pic_works_F77=yes
14172 $rm conftest*
14175 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14176 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14178 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14179 case $lt_prog_compiler_pic_F77 in
14180 "" | " "*) ;;
14181 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14182 esac
14183 else
14184 lt_prog_compiler_pic_F77=
14185 lt_prog_compiler_can_build_shared_F77=no
14189 case "$host_os" in
14190 # For platforms which do not support PIC, -DPIC is meaningless:
14191 *djgpp*)
14192 lt_prog_compiler_pic_F77=
14195 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14197 esac
14199 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14200 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14201 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 lt_cv_prog_compiler_c_o_F77=no
14205 $rm -r conftest 2>/dev/null
14206 mkdir conftest
14207 cd conftest
14208 mkdir out
14209 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14211 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14212 # that will create temporary files in the current directory regardless of
14213 # the output directory. Thus, making CWD read-only will cause this test
14214 # to fail, enabling locking or at least warning the user not to do parallel
14215 # builds.
14216 chmod -w .
14218 lt_compiler_flag="-o out/conftest2.$ac_objext"
14219 # Insert the option either (1) after the last *FLAGS variable, or
14220 # (2) before a word containing "conftest.", or (3) at the end.
14221 # Note that $ac_compile itself does not contain backslashes and begins
14222 # with a dollar sign (not a hyphen), so the echo should work correctly.
14223 lt_compile=`echo "$ac_compile" | $SED \
14224 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226 -e 's:$: $lt_compiler_flag:'`
14227 (eval echo "\"\$as_me:14227: $lt_compile\"" >&5)
14228 (eval "$lt_compile" 2>out/conftest.err)
14229 ac_status=$?
14230 cat out/conftest.err >&5
14231 echo "$as_me:14231: \$? = $ac_status" >&5
14232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14233 then
14234 # The compiler can only warn and ignore the option if not recognized
14235 # So say no if there are warnings
14236 if test ! -s out/conftest.err; then
14237 lt_cv_prog_compiler_c_o_F77=yes
14240 chmod u+w .
14241 $rm conftest*
14242 # SGI C++ compiler will create directory out/ii_files/ for
14243 # template instantiation
14244 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14245 $rm out/* && rmdir out
14246 cd ..
14247 rmdir conftest
14248 $rm conftest*
14251 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14252 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14255 hard_links="nottested"
14256 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14257 # do not overwrite the value of need_locks provided by the user
14258 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14259 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14260 hard_links=yes
14261 $rm conftest*
14262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263 touch conftest.a
14264 ln conftest.a conftest.b 2>&5 || hard_links=no
14265 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266 { echo "$as_me:$LINENO: result: $hard_links" >&5
14267 echo "${ECHO_T}$hard_links" >&6; }
14268 if test "$hard_links" = no; then
14269 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14270 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14271 need_locks=warn
14273 else
14274 need_locks=no
14277 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14278 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14280 runpath_var=
14281 allow_undefined_flag_F77=
14282 enable_shared_with_static_runtimes_F77=no
14283 archive_cmds_F77=
14284 archive_expsym_cmds_F77=
14285 old_archive_From_new_cmds_F77=
14286 old_archive_from_expsyms_cmds_F77=
14287 export_dynamic_flag_spec_F77=
14288 whole_archive_flag_spec_F77=
14289 thread_safe_flag_spec_F77=
14290 hardcode_libdir_flag_spec_F77=
14291 hardcode_libdir_flag_spec_ld_F77=
14292 hardcode_libdir_separator_F77=
14293 hardcode_direct_F77=no
14294 hardcode_minus_L_F77=no
14295 hardcode_shlibpath_var_F77=unsupported
14296 link_all_deplibs_F77=unknown
14297 hardcode_automatic_F77=no
14298 module_cmds_F77=
14299 module_expsym_cmds_F77=
14300 always_export_symbols_F77=no
14301 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14302 # include_expsyms should be a list of space-separated symbols to be *always*
14303 # included in the symbol list
14304 include_expsyms_F77=
14305 # exclude_expsyms can be an extended regexp of symbols to exclude
14306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14308 # as well as any symbol that contains `d'.
14309 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14311 # platforms (ab)use it in PIC code, but their linkers get confused if
14312 # the symbol is explicitly referenced. Since portable code cannot
14313 # rely on this symbol name, it's probably fine to never include it in
14314 # preloaded symbol tables.
14315 extract_expsyms_cmds=
14317 case $host_os in
14318 cygwin* | mingw* | pw32*)
14319 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320 # When not using gcc, we currently assume that we are using
14321 # Microsoft Visual C++.
14322 if test "$GCC" != yes; then
14323 with_gnu_ld=no
14326 openbsd*)
14327 with_gnu_ld=no
14329 esac
14331 ld_shlibs_F77=yes
14332 if test "$with_gnu_ld" = yes; then
14333 # If archive_cmds runs LD, not CC, wlarc should be empty
14334 wlarc='${wl}'
14336 # See if GNU ld supports shared libraries.
14337 case $host_os in
14338 aix3* | aix4* | aix5*)
14339 # On AIX/PPC, the GNU linker is very broken
14340 if test "$host_cpu" != ia64; then
14341 ld_shlibs_F77=no
14342 cat <<EOF 1>&2
14344 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14345 *** to be unable to reliably create shared libraries on AIX.
14346 *** Therefore, libtool is disabling shared libraries support. If you
14347 *** really care for shared libraries, you may want to modify your PATH
14348 *** so that a non-GNU linker is found, and then restart.
14354 amigaos*)
14355 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14356 hardcode_libdir_flag_spec_F77='-L$libdir'
14357 hardcode_minus_L_F77=yes
14359 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14360 # that the semantics of dynamic libraries on AmigaOS, at least up
14361 # to version 4, is to share data among multiple programs linked
14362 # with the same dynamic library. Since this doesn't match the
14363 # behavior of shared libraries on other platforms, we can't use
14364 # them.
14365 ld_shlibs_F77=no
14368 beos*)
14369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14370 allow_undefined_flag_F77=unsupported
14371 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14372 # support --undefined. This deserves some investigation. FIXME
14373 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374 else
14375 ld_shlibs_F77=no
14379 cygwin* | mingw* | pw32*)
14380 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14381 # as there is no search path for DLLs.
14382 hardcode_libdir_flag_spec_F77='-L$libdir'
14383 allow_undefined_flag_F77=unsupported
14384 always_export_symbols_F77=no
14385 enable_shared_with_static_runtimes_F77=yes
14386 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14388 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14389 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14390 # If the export-symbols file already is a .def file (1st line
14391 # is EXPORTS), use it as is; otherwise, prepend...
14392 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14393 cp $export_symbols $output_objdir/$soname.def;
14394 else
14395 echo EXPORTS > $output_objdir/$soname.def;
14396 cat $export_symbols >> $output_objdir/$soname.def;
14398 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14399 else
14400 ld_shlibs=no
14404 netbsd*)
14405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14406 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14407 wlarc=
14408 else
14409 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14410 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14414 solaris* | sysv5*)
14415 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14416 ld_shlibs_F77=no
14417 cat <<EOF 1>&2
14419 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14420 *** create shared libraries on Solaris systems. Therefore, libtool
14421 *** is disabling shared libraries support. We urge you to upgrade GNU
14422 *** binutils to release 2.9.1 or newer. Another option is to modify
14423 *** your PATH or compiler configuration so that the native linker is
14424 *** used, and then restart.
14427 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14428 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14429 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14430 else
14431 ld_shlibs_F77=no
14435 sunos4*)
14436 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14437 wlarc=
14438 hardcode_direct_F77=yes
14439 hardcode_shlibpath_var_F77=no
14442 linux*)
14443 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14444 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 archive_cmds_F77="$tmp_archive_cmds"
14446 supports_anon_versioning=no
14447 case `$LD -v 2>/dev/null` in
14448 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14449 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14450 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14451 *\ 2.11.*) ;; # other 2.11 versions
14452 *) supports_anon_versioning=yes ;;
14453 esac
14454 if test $supports_anon_versioning = yes; then
14455 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14457 $echo "local: *; };" >> $output_objdir/$libname.ver~
14458 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14459 else
14460 archive_expsym_cmds_F77="$tmp_archive_cmds"
14462 else
14463 ld_shlibs_F77=no
14468 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14469 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14471 else
14472 ld_shlibs_F77=no
14475 esac
14477 if test "$ld_shlibs_F77" = yes; then
14478 runpath_var=LD_RUN_PATH
14479 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14480 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14481 # ancient GNU ld didn't support --whole-archive et. al.
14482 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14483 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14484 else
14485 whole_archive_flag_spec_F77=
14488 else
14489 # PORTME fill in a description of your system's linker (not GNU ld)
14490 case $host_os in
14491 aix3*)
14492 allow_undefined_flag_F77=unsupported
14493 always_export_symbols_F77=yes
14494 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14495 # Note: this linker hardcodes the directories in LIBPATH if there
14496 # are no directories specified by -L.
14497 hardcode_minus_L_F77=yes
14498 if test "$GCC" = yes && test -z "$link_static_flag"; then
14499 # Neither direct hardcoding nor static linking is supported with a
14500 # broken collect2.
14501 hardcode_direct_F77=unsupported
14505 aix4* | aix5*)
14506 if test "$host_cpu" = ia64; then
14507 # On IA64, the linker does run time linking by default, so we don't
14508 # have to do anything special.
14509 aix_use_runtimelinking=no
14510 exp_sym_flag='-Bexport'
14511 no_entry_flag=""
14512 else
14513 # If we're using GNU nm, then we don't want the "-C" option.
14514 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14515 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14516 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14517 else
14518 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14520 aix_use_runtimelinking=no
14522 # Test if we are trying to use run time linking or normal
14523 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14524 # need to do runtime linking.
14525 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14526 for ld_flag in $LDFLAGS; do
14527 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14528 aix_use_runtimelinking=yes
14529 break
14531 done
14532 esac
14534 exp_sym_flag='-bexport'
14535 no_entry_flag='-bnoentry'
14538 # When large executables or shared objects are built, AIX ld can
14539 # have problems creating the table of contents. If linking a library
14540 # or program results in "error TOC overflow" add -mminimal-toc to
14541 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14542 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14544 archive_cmds_F77=''
14545 hardcode_direct_F77=yes
14546 hardcode_libdir_separator_F77=':'
14547 link_all_deplibs_F77=yes
14549 if test "$GCC" = yes; then
14550 case $host_os in aix4.012|aix4.012.*)
14551 # We only want to do this on AIX 4.2 and lower, the check
14552 # below for broken collect2 doesn't work under 4.3+
14553 collect2name=`${CC} -print-prog-name=collect2`
14554 if test -f "$collect2name" && \
14555 strings "$collect2name" | grep resolve_lib_name >/dev/null
14556 then
14557 # We have reworked collect2
14558 hardcode_direct_F77=yes
14559 else
14560 # We have old collect2
14561 hardcode_direct_F77=unsupported
14562 # It fails to find uninstalled libraries when the uninstalled
14563 # path is not listed in the libpath. Setting hardcode_minus_L
14564 # to unsupported forces relinking
14565 hardcode_minus_L_F77=yes
14566 hardcode_libdir_flag_spec_F77='-L$libdir'
14567 hardcode_libdir_separator_F77=
14569 esac
14570 shared_flag='-shared'
14571 else
14572 # not using gcc
14573 if test "$host_cpu" = ia64; then
14574 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14575 # chokes on -Wl,-G. The following line is correct:
14576 shared_flag='-G'
14577 else
14578 if test "$aix_use_runtimelinking" = yes; then
14579 shared_flag='${wl}-G'
14580 else
14581 shared_flag='${wl}-bM:SRE'
14586 # It seems that -bexpall does not export symbols beginning with
14587 # underscore (_), so it is better to generate a list of symbols to export.
14588 always_export_symbols_F77=yes
14589 if test "$aix_use_runtimelinking" = yes; then
14590 # Warning - without using the other runtime loading flags (-brtl),
14591 # -berok will link without error, but may produce a broken library.
14592 allow_undefined_flag_F77='-berok'
14593 # Determine the default libpath from the value encoded in an empty executable.
14594 cat >conftest.$ac_ext <<_ACEOF
14595 program main
14598 _ACEOF
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14607 ac_status=$?
14608 grep -v '^ *+' conftest.er1 >conftest.err
14609 rm -f conftest.er1
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14614 { (case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_try") 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; } &&
14623 { ac_try='test -s conftest$ac_exeext'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627 esac
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14636 # Check for a 64-bit object if we didn't find anything.
14637 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14638 }'`; fi
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14651 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14652 else
14653 if test "$host_cpu" = ia64; then
14654 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14655 allow_undefined_flag_F77="-z nodefs"
14656 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14657 else
14658 # Determine the default libpath from the value encoded in an empty executable.
14659 cat >conftest.$ac_ext <<_ACEOF
14660 program main
14663 _ACEOF
14664 rm -f conftest.$ac_objext conftest$ac_exeext
14665 if { (ac_try="$ac_link"
14666 case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669 esac
14670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_link") 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } &&
14678 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14679 { (case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_try") 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); }; } &&
14688 { ac_try='test -s conftest$ac_exeext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14701 # Check for a 64-bit object if we didn't find anything.
14702 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14703 }'`; fi
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14711 rm -f core conftest.err conftest.$ac_objext \
14712 conftest$ac_exeext conftest.$ac_ext
14713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14715 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14716 # Warning - without using the other run time loading flags,
14717 # -berok will link without error, but may produce a broken library.
14718 no_undefined_flag_F77=' ${wl}-bernotok'
14719 allow_undefined_flag_F77=' ${wl}-berok'
14720 # -bexpall does not export symbols beginning with underscore (_)
14721 always_export_symbols_F77=yes
14722 # Exported symbols can be pulled into shared objects from archives
14723 whole_archive_flag_spec_F77=' '
14724 archive_cmds_need_lc_F77=yes
14725 # This is similar to how AIX traditionally builds it's shared libraries.
14726 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14731 amigaos*)
14732 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14733 hardcode_libdir_flag_spec_F77='-L$libdir'
14734 hardcode_minus_L_F77=yes
14735 # see comment about different semantics on the GNU ld section
14736 ld_shlibs_F77=no
14739 bsdi4*)
14740 export_dynamic_flag_spec_F77=-rdynamic
14743 cygwin* | mingw* | pw32*)
14744 # When not using gcc, we currently assume that we are using
14745 # Microsoft Visual C++.
14746 # hardcode_libdir_flag_spec is actually meaningless, as there is
14747 # no search path for DLLs.
14748 hardcode_libdir_flag_spec_F77=' '
14749 allow_undefined_flag_F77=unsupported
14750 # Tell ltmain to make .lib files, not .a files.
14751 libext=lib
14752 # Tell ltmain to make .dll files, not .so files.
14753 shrext=".dll"
14754 # FIXME: Setting linknames here is a bad hack.
14755 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14756 # The linker will automatically build a .lib file if we build a DLL.
14757 old_archive_From_new_cmds_F77='true'
14758 # FIXME: Should let the user specify the lib program.
14759 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14760 fix_srcfile_path='`cygpath -w "$srcfile"`'
14761 enable_shared_with_static_runtimes_F77=yes
14764 darwin* | rhapsody*)
14765 if test "$GXX" = yes ; then
14766 archive_cmds_need_lc_F77=no
14767 case "$host_os" in
14768 rhapsody* | darwin1.[012])
14769 allow_undefined_flag_F77='-undefined suppress'
14771 *) # Darwin 1.3 on
14772 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14773 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14774 else
14775 case ${MACOSX_DEPLOYMENT_TARGET} in
14776 10.[012])
14777 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14779 10.*)
14780 allow_undefined_flag_F77='-undefined dynamic_lookup'
14782 esac
14785 esac
14786 lt_int_apple_cc_single_mod=no
14787 output_verbose_link_cmd='echo'
14788 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14789 lt_int_apple_cc_single_mod=yes
14791 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14792 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14793 else
14794 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14796 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14797 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14798 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14799 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14800 else
14801 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14803 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14804 hardcode_direct_F77=no
14805 hardcode_automatic_F77=yes
14806 hardcode_shlibpath_var_F77=unsupported
14807 whole_archive_flag_spec_F77='-all_load $convenience'
14808 link_all_deplibs_F77=yes
14809 else
14810 ld_shlibs_F77=no
14814 dgux*)
14815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14816 hardcode_libdir_flag_spec_F77='-L$libdir'
14817 hardcode_shlibpath_var_F77=no
14820 freebsd1*)
14821 ld_shlibs_F77=no
14824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14825 # support. Future versions do this automatically, but an explicit c++rt0.o
14826 # does not break anything, and helps significantly (at the cost of a little
14827 # extra space).
14828 freebsd2.2*)
14829 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14830 hardcode_libdir_flag_spec_F77='-R$libdir'
14831 hardcode_direct_F77=yes
14832 hardcode_shlibpath_var_F77=no
14835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14836 freebsd2*)
14837 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838 hardcode_direct_F77=yes
14839 hardcode_minus_L_F77=yes
14840 hardcode_shlibpath_var_F77=no
14843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14844 freebsd* | kfreebsd*-gnu)
14845 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14846 hardcode_libdir_flag_spec_F77='-R$libdir'
14847 hardcode_direct_F77=yes
14848 hardcode_shlibpath_var_F77=no
14851 hpux9*)
14852 if test "$GCC" = yes; then
14853 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14854 else
14855 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14857 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14858 hardcode_libdir_separator_F77=:
14859 hardcode_direct_F77=yes
14861 # hardcode_minus_L: Not really in the search PATH,
14862 # but as the default location of the library.
14863 hardcode_minus_L_F77=yes
14864 export_dynamic_flag_spec_F77='${wl}-E'
14867 hpux10* | hpux11*)
14868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14869 case "$host_cpu" in
14870 hppa*64*|ia64*)
14871 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14876 esac
14877 else
14878 case "$host_cpu" in
14879 hppa*64*|ia64*)
14880 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14883 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14885 esac
14887 if test "$with_gnu_ld" = no; then
14888 case "$host_cpu" in
14889 hppa*64*)
14890 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14891 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14892 hardcode_libdir_separator_F77=:
14893 hardcode_direct_F77=no
14894 hardcode_shlibpath_var_F77=no
14896 ia64*)
14897 hardcode_libdir_flag_spec_F77='-L$libdir'
14898 hardcode_direct_F77=no
14899 hardcode_shlibpath_var_F77=no
14901 # hardcode_minus_L: Not really in the search PATH,
14902 # but as the default location of the library.
14903 hardcode_minus_L_F77=yes
14906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907 hardcode_libdir_separator_F77=:
14908 hardcode_direct_F77=yes
14909 export_dynamic_flag_spec_F77='${wl}-E'
14911 # hardcode_minus_L: Not really in the search PATH,
14912 # but as the default location of the library.
14913 hardcode_minus_L_F77=yes
14915 esac
14919 irix5* | irix6* | nonstopux*)
14920 if test "$GCC" = yes; then
14921 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14922 else
14923 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14924 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14926 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14927 hardcode_libdir_separator_F77=:
14928 link_all_deplibs_F77=yes
14931 netbsd*)
14932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14933 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14934 else
14935 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14937 hardcode_libdir_flag_spec_F77='-R$libdir'
14938 hardcode_direct_F77=yes
14939 hardcode_shlibpath_var_F77=no
14942 newsos6)
14943 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944 hardcode_direct_F77=yes
14945 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14946 hardcode_libdir_separator_F77=:
14947 hardcode_shlibpath_var_F77=no
14950 openbsd*)
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14954 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14955 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14956 export_dynamic_flag_spec_F77='${wl}-E'
14957 else
14958 case $host_os in
14959 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14960 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_libdir_flag_spec_F77='-R$libdir'
14964 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14965 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14967 esac
14971 os2*)
14972 hardcode_libdir_flag_spec_F77='-L$libdir'
14973 hardcode_minus_L_F77=yes
14974 allow_undefined_flag_F77=unsupported
14975 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14976 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14979 osf3*)
14980 if test "$GCC" = yes; then
14981 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14982 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14983 else
14984 allow_undefined_flag_F77=' -expect_unresolved \*'
14985 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14987 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14988 hardcode_libdir_separator_F77=:
14991 osf4* | osf5*) # as osf3* with the addition of -msym flag
14992 if test "$GCC" = yes; then
14993 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14994 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14995 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14996 else
14997 allow_undefined_flag_F77=' -expect_unresolved \*'
14998 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14999 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15000 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15002 # Both c and cxx compiler support -rpath directly
15003 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15005 hardcode_libdir_separator_F77=:
15008 sco3.2v5*)
15009 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_shlibpath_var_F77=no
15011 export_dynamic_flag_spec_F77='${wl}-Bexport'
15012 runpath_var=LD_RUN_PATH
15013 hardcode_runpath_var=yes
15016 solaris*)
15017 no_undefined_flag_F77=' -z text'
15018 if test "$GCC" = yes; then
15019 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15021 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15022 else
15023 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15024 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15027 hardcode_libdir_flag_spec_F77='-R$libdir'
15028 hardcode_shlibpath_var_F77=no
15029 case $host_os in
15030 solaris2.[0-5] | solaris2.[0-5].*) ;;
15031 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15032 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15033 esac
15034 link_all_deplibs_F77=yes
15037 sunos4*)
15038 if test "x$host_vendor" = xsequent; then
15039 # Use $CC to link under sequent, because it throws in some extra .o
15040 # files that make .init and .fini sections work.
15041 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15042 else
15043 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_libdir_flag_spec_F77='-L$libdir'
15046 hardcode_direct_F77=yes
15047 hardcode_minus_L_F77=yes
15048 hardcode_shlibpath_var_F77=no
15051 sysv4)
15052 case $host_vendor in
15053 sni)
15054 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15055 hardcode_direct_F77=yes # is this really true???
15057 siemens)
15058 ## LD is ld it makes a PLAMLIB
15059 ## CC just makes a GrossModule.
15060 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15061 reload_cmds_F77='$CC -r -o $output$reload_objs'
15062 hardcode_direct_F77=no
15064 motorola)
15065 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15066 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15068 esac
15069 runpath_var='LD_RUN_PATH'
15070 hardcode_shlibpath_var_F77=no
15073 sysv4.3*)
15074 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075 hardcode_shlibpath_var_F77=no
15076 export_dynamic_flag_spec_F77='-Bexport'
15079 sysv4*MP*)
15080 if test -d /usr/nec; then
15081 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15082 hardcode_shlibpath_var_F77=no
15083 runpath_var=LD_RUN_PATH
15084 hardcode_runpath_var=yes
15085 ld_shlibs_F77=yes
15089 sysv4.2uw2*)
15090 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15091 hardcode_direct_F77=yes
15092 hardcode_minus_L_F77=no
15093 hardcode_shlibpath_var_F77=no
15094 hardcode_runpath_var=yes
15095 runpath_var=LD_RUN_PATH
15098 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15099 no_undefined_flag_F77='${wl}-z ${wl}text'
15100 if test "$GCC" = yes; then
15101 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 else
15103 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15105 runpath_var='LD_RUN_PATH'
15106 hardcode_shlibpath_var_F77=no
15109 sysv5*)
15110 no_undefined_flag_F77=' -z text'
15111 # $CC -shared without GNU ld will not create a library from C++
15112 # object files and a static libstdc++, better avoid it by now
15113 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15114 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15116 hardcode_libdir_flag_spec_F77=
15117 hardcode_shlibpath_var_F77=no
15118 runpath_var='LD_RUN_PATH'
15121 uts4*)
15122 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15123 hardcode_libdir_flag_spec_F77='-L$libdir'
15124 hardcode_shlibpath_var_F77=no
15128 ld_shlibs_F77=no
15130 esac
15133 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15134 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15135 test "$ld_shlibs_F77" = no && can_build_shared=no
15137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15138 if test "$GCC" = yes; then
15139 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15143 # Do we need to explicitly link libc?
15145 case "x$archive_cmds_need_lc_F77" in
15146 x|xyes)
15147 # Assume -lc should be added
15148 archive_cmds_need_lc_F77=yes
15150 if test "$enable_shared" = yes && test "$GCC" = yes; then
15151 case $archive_cmds_F77 in
15152 *'~'*)
15153 # FIXME: we may have to deal with multi-command sequences.
15155 '$CC '*)
15156 # Test whether the compiler implicitly links with -lc since on some
15157 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15158 # to ld, don't add -lc before -lgcc.
15159 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15160 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15161 $rm conftest*
15162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } 2>conftest.err; then
15169 soname=conftest
15170 lib=conftest
15171 libobjs=conftest.$ac_objext
15172 deplibs=
15173 wl=$lt_prog_compiler_wl_F77
15174 compiler_flags=-v
15175 linker_flags=-v
15176 verstring=
15177 output_objdir=.
15178 libname=conftest
15179 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15180 allow_undefined_flag_F77=
15181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15182 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }
15186 then
15187 archive_cmds_need_lc_F77=no
15188 else
15189 archive_cmds_need_lc_F77=yes
15191 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15192 else
15193 cat conftest.err 1>&5
15195 $rm conftest*
15196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15197 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15199 esac
15202 esac
15204 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15205 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15206 library_names_spec=
15207 libname_spec='lib$name'
15208 soname_spec=
15209 shrext=".so"
15210 postinstall_cmds=
15211 postuninstall_cmds=
15212 finish_cmds=
15213 finish_eval=
15214 shlibpath_var=
15215 shlibpath_overrides_runpath=unknown
15216 version_type=none
15217 dynamic_linker="$host_os ld.so"
15218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15219 if test "$GCC" = yes; then
15220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15222 # if the path contains ";" then we assume it to be the separator
15223 # otherwise default to the standard path separator (i.e. ":") - it is
15224 # assumed that no part of a normal pathname contains ";" but that should
15225 # okay in the real world where ";" in dirpaths is itself problematic.
15226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15227 else
15228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15230 else
15231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15233 need_lib_prefix=unknown
15234 hardcode_into_libs=no
15236 # when you set need_version to no, make sure it does not cause -set_version
15237 # flags to be left without arguments
15238 need_version=unknown
15240 case $host_os in
15241 aix3*)
15242 version_type=linux
15243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15244 shlibpath_var=LIBPATH
15246 # AIX 3 has no versioning support, so we append a major version to the name.
15247 soname_spec='${libname}${release}${shared_ext}$major'
15250 aix4* | aix5*)
15251 version_type=linux
15252 need_lib_prefix=no
15253 need_version=no
15254 hardcode_into_libs=yes
15255 if test "$host_cpu" = ia64; then
15256 # AIX 5 supports IA64
15257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15258 shlibpath_var=LD_LIBRARY_PATH
15259 else
15260 # With GCC up to 2.95.x, collect2 would create an import file
15261 # for dependence libraries. The import file would start with
15262 # the line `#! .'. This would cause the generated library to
15263 # depend on `.', always an invalid library. This was fixed in
15264 # development snapshots of GCC prior to 3.0.
15265 case $host_os in
15266 aix4 | aix4.[01] | aix4.[01].*)
15267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15268 echo ' yes '
15269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15271 else
15272 can_build_shared=no
15275 esac
15276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15277 # soname into executable. Probably we can add versioning support to
15278 # collect2, so additional links can be useful in future.
15279 if test "$aix_use_runtimelinking" = yes; then
15280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15281 # instead of lib<name>.a to let people know that these are not
15282 # typical AIX shared libraries.
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 else
15285 # We preserve .a as extension for shared libraries through AIX4.2
15286 # and later when we are not doing run time linking.
15287 library_names_spec='${libname}${release}.a $libname.a'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15290 shlibpath_var=LIBPATH
15294 amigaos*)
15295 library_names_spec='$libname.ixlibrary $libname.a'
15296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15297 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15300 beos*)
15301 library_names_spec='${libname}${shared_ext}'
15302 dynamic_linker="$host_os ld.so"
15303 shlibpath_var=LIBRARY_PATH
15306 bsdi4*)
15307 version_type=linux
15308 need_version=no
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15315 # the default ld.so.conf also contains /usr/contrib/lib and
15316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15317 # libtool to hard-code these into programs
15320 cygwin* | mingw* | pw32*)
15321 version_type=windows
15322 shrext=".dll"
15323 need_version=no
15324 need_lib_prefix=no
15326 case $GCC,$host_os in
15327 yes,cygwin* | yes,mingw* | yes,pw32*)
15328 library_names_spec='$libname.dll.a'
15329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15330 postinstall_cmds='base_file=`basename \${file}`~
15331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15332 dldir=$destdir/`dirname \$dlpath`~
15333 test -d \$dldir || mkdir -p \$dldir~
15334 $install_prog $dir/$dlname \$dldir/$dlname'
15335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15336 dlpath=$dir/\$dldll~
15337 $rm \$dlpath'
15338 shlibpath_overrides_runpath=yes
15340 case $host_os in
15341 cygwin*)
15342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15343 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15346 mingw*)
15347 # MinGW DLLs use traditional 'lib' prefix
15348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15351 # It is most probably a Windows format PATH printed by
15352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15353 # path with ; separators, and with drive letters. We can handle the
15354 # drive letters (cygwin fileutils understands them), so leave them,
15355 # especially as we might pass files found there to a mingw objdump,
15356 # which wouldn't understand a cygwinified path. Ahh.
15357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15358 else
15359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15362 pw32*)
15363 # pw32 DLLs use 'pw' prefix rather than 'lib'
15364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15366 esac
15370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15372 esac
15373 dynamic_linker='Win32 ld.exe'
15374 # FIXME: first we should search . and the directory the executable is in
15375 shlibpath_var=PATH
15378 darwin* | rhapsody*)
15379 dynamic_linker="$host_os dyld"
15380 version_type=darwin
15381 need_lib_prefix=no
15382 need_version=no
15383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15384 soname_spec='${libname}${release}${major}$shared_ext'
15385 shlibpath_overrides_runpath=yes
15386 shlibpath_var=DYLD_LIBRARY_PATH
15387 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15389 if test "$GCC" = yes; then
15390 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15391 else
15392 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15397 dgux*)
15398 version_type=linux
15399 need_lib_prefix=no
15400 need_version=no
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15406 freebsd1*)
15407 dynamic_linker=no
15410 kfreebsd*-gnu)
15411 version_type=linux
15412 need_lib_prefix=no
15413 need_version=no
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=no
15418 hardcode_into_libs=yes
15419 dynamic_linker='GNU ld.so'
15422 freebsd*)
15423 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15424 version_type=freebsd-$objformat
15425 case $version_type in
15426 freebsd-elf*)
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15428 need_version=no
15429 need_lib_prefix=no
15431 freebsd-*)
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15433 need_version=yes
15435 esac
15436 shlibpath_var=LD_LIBRARY_PATH
15437 case $host_os in
15438 freebsd2*)
15439 shlibpath_overrides_runpath=yes
15441 freebsd3.01* | freebsdelf3.01*)
15442 shlibpath_overrides_runpath=yes
15443 hardcode_into_libs=yes
15445 *) # from 3.2 on
15446 shlibpath_overrides_runpath=no
15447 hardcode_into_libs=yes
15449 esac
15452 gnu*)
15453 version_type=linux
15454 need_lib_prefix=no
15455 need_version=no
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 shlibpath_var=LD_LIBRARY_PATH
15459 hardcode_into_libs=yes
15462 hpux9* | hpux10* | hpux11*)
15463 # Give a soname corresponding to the major version so that dld.sl refuses to
15464 # link against other versions.
15465 version_type=sunos
15466 need_lib_prefix=no
15467 need_version=no
15468 case "$host_cpu" in
15469 ia64*)
15470 shrext='.so'
15471 hardcode_into_libs=yes
15472 dynamic_linker="$host_os dld.so"
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 if test "X$HPUX_IA64_MODE" = X32; then
15478 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15479 else
15480 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15482 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484 hppa*64*)
15485 shrext='.sl'
15486 hardcode_into_libs=yes
15487 dynamic_linker="$host_os dld.sl"
15488 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15496 shrext='.sl'
15497 dynamic_linker="$host_os dld.sl"
15498 shlibpath_var=SHLIB_PATH
15499 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15503 esac
15504 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15505 postinstall_cmds='chmod 555 $lib'
15508 irix5* | irix6* | nonstopux*)
15509 case $host_os in
15510 nonstopux*) version_type=nonstopux ;;
15512 if test "$lt_cv_prog_gnu_ld" = yes; then
15513 version_type=linux
15514 else
15515 version_type=irix
15516 fi ;;
15517 esac
15518 need_lib_prefix=no
15519 need_version=no
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15522 case $host_os in
15523 irix5* | nonstopux*)
15524 libsuff= shlibsuff=
15527 case $LD in # libtool.m4 will add one of these switches to LD
15528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15529 libsuff= shlibsuff= libmagic=32-bit;;
15530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15531 libsuff=32 shlibsuff=N32 libmagic=N32;;
15532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15533 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15534 *) libsuff= shlibsuff= libmagic=never-match;;
15535 esac
15537 esac
15538 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15539 shlibpath_overrides_runpath=no
15540 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15541 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15542 hardcode_into_libs=yes
15545 # No shared lib support for Linux oldld, aout, or coff.
15546 linux*oldld* | linux*aout* | linux*coff*)
15547 dynamic_linker=no
15550 # This must be Linux ELF.
15551 linux*)
15552 version_type=linux
15553 need_lib_prefix=no
15554 need_version=no
15555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15556 soname_spec='${libname}${release}${shared_ext}$major'
15557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=no
15560 # This implies no fast_install, which is unacceptable.
15561 # Some rework will be needed to allow for fast_install
15562 # before this can be enabled.
15563 hardcode_into_libs=yes
15565 # We used to test for /lib/ld.so.1 and disable shared libraries on
15566 # powerpc, because MkLinux only supported shared libraries with the
15567 # GNU dynamic linker. Since this was broken with cross compilers,
15568 # most powerpc-linux boxes support dynamic linking these days and
15569 # people can always --disable-shared, the test was removed, and we
15570 # assume the GNU/Linux dynamic linker is in use.
15571 dynamic_linker='GNU/Linux ld.so'
15574 netbsd*)
15575 version_type=sunos
15576 need_lib_prefix=no
15577 need_version=no
15578 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15581 dynamic_linker='NetBSD (a.out) ld.so'
15582 else
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 dynamic_linker='NetBSD ld.elf_so'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15589 hardcode_into_libs=yes
15592 newsos6)
15593 version_type=linux
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15595 shlibpath_var=LD_LIBRARY_PATH
15596 shlibpath_overrides_runpath=yes
15599 nto-qnx*)
15600 version_type=linux
15601 need_lib_prefix=no
15602 need_version=no
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15609 openbsd*)
15610 version_type=sunos
15611 need_lib_prefix=no
15612 need_version=no
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15617 case $host_os in
15618 openbsd2.[89] | openbsd2.[89].*)
15619 shlibpath_overrides_runpath=no
15622 shlibpath_overrides_runpath=yes
15624 esac
15625 else
15626 shlibpath_overrides_runpath=yes
15630 os2*)
15631 libname_spec='$name'
15632 shrext=".dll"
15633 need_lib_prefix=no
15634 library_names_spec='$libname${shared_ext} $libname.a'
15635 dynamic_linker='OS/2 ld.exe'
15636 shlibpath_var=LIBPATH
15639 osf3* | osf4* | osf5*)
15640 version_type=osf
15641 need_lib_prefix=no
15642 need_version=no
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 shlibpath_var=LD_LIBRARY_PATH
15646 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15647 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15650 sco3.2v5*)
15651 version_type=osf
15652 soname_spec='${libname}${release}${shared_ext}$major'
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 shlibpath_var=LD_LIBRARY_PATH
15657 solaris*)
15658 version_type=linux
15659 need_lib_prefix=no
15660 need_version=no
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 shlibpath_overrides_runpath=yes
15665 hardcode_into_libs=yes
15666 # ldd complains unless libraries are executable
15667 postinstall_cmds='chmod +x $lib'
15670 sunos4*)
15671 version_type=sunos
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 shlibpath_overrides_runpath=yes
15676 if test "$with_gnu_ld" = yes; then
15677 need_lib_prefix=no
15679 need_version=yes
15682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15683 version_type=linux
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 case $host_vendor in
15688 sni)
15689 shlibpath_overrides_runpath=no
15690 need_lib_prefix=no
15691 export_dynamic_flag_spec='${wl}-Blargedynsym'
15692 runpath_var=LD_RUN_PATH
15694 siemens)
15695 need_lib_prefix=no
15697 motorola)
15698 need_lib_prefix=no
15699 need_version=no
15700 shlibpath_overrides_runpath=no
15701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15703 esac
15706 sysv4*MP*)
15707 if test -d /usr/nec ;then
15708 version_type=linux
15709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15710 soname_spec='$libname${shared_ext}.$major'
15711 shlibpath_var=LD_LIBRARY_PATH
15715 uts4*)
15716 version_type=linux
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15723 dynamic_linker=no
15725 esac
15726 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15727 echo "${ECHO_T}$dynamic_linker" >&6; }
15728 test "$dynamic_linker" = no && can_build_shared=no
15730 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15731 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15732 hardcode_action_F77=
15733 if test -n "$hardcode_libdir_flag_spec_F77" || \
15734 test -n "$runpath_var F77" || \
15735 test "X$hardcode_automatic_F77"="Xyes" ; then
15737 # We can hardcode non-existant directories.
15738 if test "$hardcode_direct_F77" != no &&
15739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15740 # have to relink, otherwise we might link with an installed library
15741 # when we should be linking with a yet-to-be-installed one
15742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15743 test "$hardcode_minus_L_F77" != no; then
15744 # Linking always hardcodes the temporary library directory.
15745 hardcode_action_F77=relink
15746 else
15747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15748 hardcode_action_F77=immediate
15750 else
15751 # We cannot hardcode anything, or else we can only hardcode existing
15752 # directories.
15753 hardcode_action_F77=unsupported
15755 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15756 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15758 if test "$hardcode_action_F77" = relink; then
15759 # Fast installation is not supported
15760 enable_fast_install=no
15761 elif test "$shlibpath_overrides_runpath" = yes ||
15762 test "$enable_shared" = no; then
15763 # Fast installation is not necessary
15764 enable_fast_install=needless
15767 striplib=
15768 old_striplib=
15769 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15770 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15771 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15774 { echo "$as_me:$LINENO: result: yes" >&5
15775 echo "${ECHO_T}yes" >&6; }
15776 else
15777 # FIXME - insert some real tests, host_os isn't really good enough
15778 case $host_os in
15779 darwin*)
15780 if test -n "$STRIP" ; then
15781 striplib="$STRIP -x"
15782 { echo "$as_me:$LINENO: result: yes" >&5
15783 echo "${ECHO_T}yes" >&6; }
15784 else
15785 { echo "$as_me:$LINENO: result: no" >&5
15786 echo "${ECHO_T}no" >&6; }
15790 { echo "$as_me:$LINENO: result: no" >&5
15791 echo "${ECHO_T}no" >&6; }
15793 esac
15798 # The else clause should only fire when bootstrapping the
15799 # libtool distribution, otherwise you forgot to ship ltmain.sh
15800 # with your package, and you will get complaints that there are
15801 # no rules to generate ltmain.sh.
15802 if test -f "$ltmain"; then
15803 # See if we are running on zsh, and set the options which allow our commands through
15804 # without removal of \ escapes.
15805 if test -n "${ZSH_VERSION+set}" ; then
15806 setopt NO_GLOB_SUBST
15808 # Now quote all the things that may contain metacharacters while being
15809 # careful not to overquote the AC_SUBSTed values. We take copies of the
15810 # variables and quote the copies for generation of the libtool script.
15811 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15814 deplibs_check_method reload_flag reload_cmds need_locks \
15815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15816 lt_cv_sys_global_symbol_to_c_name_address \
15817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15818 old_postinstall_cmds old_postuninstall_cmds \
15819 compiler_F77 \
15820 CC_F77 \
15821 LD_F77 \
15822 lt_prog_compiler_wl_F77 \
15823 lt_prog_compiler_pic_F77 \
15824 lt_prog_compiler_static_F77 \
15825 lt_prog_compiler_no_builtin_flag_F77 \
15826 export_dynamic_flag_spec_F77 \
15827 thread_safe_flag_spec_F77 \
15828 whole_archive_flag_spec_F77 \
15829 enable_shared_with_static_runtimes_F77 \
15830 old_archive_cmds_F77 \
15831 old_archive_from_new_cmds_F77 \
15832 predep_objects_F77 \
15833 postdep_objects_F77 \
15834 predeps_F77 \
15835 postdeps_F77 \
15836 compiler_lib_search_path_F77 \
15837 archive_cmds_F77 \
15838 archive_expsym_cmds_F77 \
15839 postinstall_cmds_F77 \
15840 postuninstall_cmds_F77 \
15841 old_archive_from_expsyms_cmds_F77 \
15842 allow_undefined_flag_F77 \
15843 no_undefined_flag_F77 \
15844 export_symbols_cmds_F77 \
15845 hardcode_libdir_flag_spec_F77 \
15846 hardcode_libdir_flag_spec_ld_F77 \
15847 hardcode_libdir_separator_F77 \
15848 hardcode_automatic_F77 \
15849 module_cmds_F77 \
15850 module_expsym_cmds_F77 \
15851 lt_cv_prog_compiler_c_o_F77 \
15852 exclude_expsyms_F77 \
15853 include_expsyms_F77; do
15855 case $var in
15856 old_archive_cmds_F77 | \
15857 old_archive_from_new_cmds_F77 | \
15858 archive_cmds_F77 | \
15859 archive_expsym_cmds_F77 | \
15860 module_cmds_F77 | \
15861 module_expsym_cmds_F77 | \
15862 old_archive_from_expsyms_cmds_F77 | \
15863 export_symbols_cmds_F77 | \
15864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15865 postinstall_cmds | postuninstall_cmds | \
15866 old_postinstall_cmds | old_postuninstall_cmds | \
15867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15868 # Double-quote double-evaled strings.
15869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15874 esac
15875 done
15877 case $lt_echo in
15878 *'\$0 --fallback-echo"')
15879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15881 esac
15883 cfgfile="$ofile"
15885 cat <<__EOF__ >> "$cfgfile"
15886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15890 # Shell to use when invoking shell scripts.
15891 SHELL=$lt_SHELL
15893 # Whether or not to build shared libraries.
15894 build_libtool_libs=$enable_shared
15896 # Whether or not to build static libraries.
15897 build_old_libs=$enable_static
15899 # Whether or not to add -lc for building shared libraries.
15900 build_libtool_need_lc=$archive_cmds_need_lc_F77
15902 # Whether or not to disallow shared libs when runtime libs are static
15903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15905 # Whether or not to optimize for fast installation.
15906 fast_install=$enable_fast_install
15908 # The host system.
15909 host_alias=$host_alias
15910 host=$host
15912 # An echo program that does not interpret backslashes.
15913 echo=$lt_echo
15915 # The archiver.
15916 AR=$lt_AR
15917 AR_FLAGS=$lt_AR_FLAGS
15919 # A C compiler.
15920 LTCC=$lt_LTCC
15922 # A language-specific compiler.
15923 CC=$lt_compiler_F77
15925 # Is the compiler the GNU C compiler?
15926 with_gcc=$GCC_F77
15928 # An ERE matcher.
15929 EGREP=$lt_EGREP
15931 # The linker used to build libraries.
15932 LD=$lt_LD_F77
15934 # Whether we need hard or soft links.
15935 LN_S=$lt_LN_S
15937 # A BSD-compatible nm program.
15938 NM=$lt_NM
15940 # A symbol stripping program
15941 STRIP="$STRIP"
15943 # Used to examine libraries when file_magic_cmd begins "file"
15944 MAGIC_CMD=$MAGIC_CMD
15946 # Used on cygwin: DLL creation program.
15947 DLLTOOL="$DLLTOOL"
15949 # Used on cygwin: object dumper.
15950 OBJDUMP="$OBJDUMP"
15952 # Used on cygwin: assembler.
15953 AS="$AS"
15955 # The name of the directory that contains temporary libtool files.
15956 objdir=$objdir
15958 # How to create reloadable object files.
15959 reload_flag=$lt_reload_flag
15960 reload_cmds=$lt_reload_cmds
15962 # How to pass a linker flag through the compiler.
15963 wl=$lt_lt_prog_compiler_wl_F77
15965 # Object file suffix (normally "o").
15966 objext="$ac_objext"
15968 # Old archive suffix (normally "a").
15969 libext="$libext"
15971 # Shared library suffix (normally ".so").
15972 shrext='$shrext'
15974 # Executable file suffix (normally "").
15975 exeext="$exeext"
15977 # Additional compiler flags for building library objects.
15978 pic_flag=$lt_lt_prog_compiler_pic_F77
15979 pic_mode=$pic_mode
15981 # What is the maximum length of a command?
15982 max_cmd_len=$lt_cv_sys_max_cmd_len
15984 # Does compiler simultaneously support -c and -o options?
15985 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15987 # Must we lock files when doing compilation ?
15988 need_locks=$lt_need_locks
15990 # Do we need the lib prefix for modules?
15991 need_lib_prefix=$need_lib_prefix
15993 # Do we need a version for libraries?
15994 need_version=$need_version
15996 # Whether dlopen is supported.
15997 dlopen_support=$enable_dlopen
15999 # Whether dlopen of programs is supported.
16000 dlopen_self=$enable_dlopen_self
16002 # Whether dlopen of statically linked programs is supported.
16003 dlopen_self_static=$enable_dlopen_self_static
16005 # Compiler flag to prevent dynamic linking.
16006 link_static_flag=$lt_lt_prog_compiler_static_F77
16008 # Compiler flag to turn off builtin functions.
16009 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16011 # Compiler flag to allow reflexive dlopens.
16012 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16014 # Compiler flag to generate shared objects directly from archives.
16015 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16017 # Compiler flag to generate thread-safe objects.
16018 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16020 # Library versioning type.
16021 version_type=$version_type
16023 # Format of library name prefix.
16024 libname_spec=$lt_libname_spec
16026 # List of archive names. First name is the real one, the rest are links.
16027 # The last name is the one that the linker finds with -lNAME.
16028 library_names_spec=$lt_library_names_spec
16030 # The coded name of the library, if different from the real name.
16031 soname_spec=$lt_soname_spec
16033 # Commands used to build and install an old-style archive.
16034 RANLIB=$lt_RANLIB
16035 old_archive_cmds=$lt_old_archive_cmds_F77
16036 old_postinstall_cmds=$lt_old_postinstall_cmds
16037 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16039 # Create an old-style archive from a shared archive.
16040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16042 # Create a temporary old-style archive to link instead of a shared archive.
16043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16045 # Commands used to build and install a shared archive.
16046 archive_cmds=$lt_archive_cmds_F77
16047 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16048 postinstall_cmds=$lt_postinstall_cmds
16049 postuninstall_cmds=$lt_postuninstall_cmds
16051 # Commands used to build a loadable module (assumed same as above if empty)
16052 module_cmds=$lt_module_cmds_F77
16053 module_expsym_cmds=$lt_module_expsym_cmds_F77
16055 # Commands to strip libraries.
16056 old_striplib=$lt_old_striplib
16057 striplib=$lt_striplib
16059 # Dependencies to place before the objects being linked to create a
16060 # shared library.
16061 predep_objects=$lt_predep_objects_F77
16063 # Dependencies to place after the objects being linked to create a
16064 # shared library.
16065 postdep_objects=$lt_postdep_objects_F77
16067 # Dependencies to place before the objects being linked to create a
16068 # shared library.
16069 predeps=$lt_predeps_F77
16071 # Dependencies to place after the objects being linked to create a
16072 # shared library.
16073 postdeps=$lt_postdeps_F77
16075 # The library search path used internally by the compiler when linking
16076 # a shared library.
16077 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16079 # Method to check whether dependent libraries are shared objects.
16080 deplibs_check_method=$lt_deplibs_check_method
16082 # Command to use when deplibs_check_method == file_magic.
16083 file_magic_cmd=$lt_file_magic_cmd
16085 # Flag that allows shared libraries with undefined symbols to be built.
16086 allow_undefined_flag=$lt_allow_undefined_flag_F77
16088 # Flag that forces no undefined symbols.
16089 no_undefined_flag=$lt_no_undefined_flag_F77
16091 # Commands used to finish a libtool library installation in a directory.
16092 finish_cmds=$lt_finish_cmds
16094 # Same as above, but a single script fragment to be evaled but not shown.
16095 finish_eval=$lt_finish_eval
16097 # Take the output of nm and produce a listing of raw symbols and C names.
16098 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16100 # Transform the output of nm in a proper C declaration
16101 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16103 # Transform the output of nm in a C name address pair
16104 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16106 # This is the shared library runtime path variable.
16107 runpath_var=$runpath_var
16109 # This is the shared library path variable.
16110 shlibpath_var=$shlibpath_var
16112 # Is shlibpath searched before the hard-coded library search path?
16113 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16115 # How to hardcode a shared library path into an executable.
16116 hardcode_action=$hardcode_action_F77
16118 # Whether we should hardcode library paths into libraries.
16119 hardcode_into_libs=$hardcode_into_libs
16121 # Flag to hardcode \$libdir into a binary during linking.
16122 # This must work even if \$libdir does not exist.
16123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16125 # If ld is used when linking, flag to hardcode \$libdir into
16126 # a binary during linking. This must work even if \$libdir does
16127 # not exist.
16128 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16130 # Whether we need a single -rpath flag with a separated argument.
16131 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16133 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16134 # resulting binary.
16135 hardcode_direct=$hardcode_direct_F77
16137 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_minus_L=$hardcode_minus_L_F77
16141 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16142 # the resulting binary.
16143 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16145 # Set to yes if building a shared library automatically hardcodes DIR into the library
16146 # and all subsequent libraries and executables linked against it.
16147 hardcode_automatic=$hardcode_automatic_F77
16149 # Variables whose values should be saved in libtool wrapper scripts and
16150 # restored at relink time.
16151 variables_saved_for_relink="$variables_saved_for_relink"
16153 # Whether libtool must link a program against all its dependency libraries.
16154 link_all_deplibs=$link_all_deplibs_F77
16156 # Compile-time system search path for libraries
16157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16159 # Run-time system search path for libraries
16160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16162 # Fix the shell variable \$srcfile for the compiler.
16163 fix_srcfile_path="$fix_srcfile_path_F77"
16165 # Set to yes if exported symbols are required.
16166 always_export_symbols=$always_export_symbols_F77
16168 # The commands to list exported symbols.
16169 export_symbols_cmds=$lt_export_symbols_cmds_F77
16171 # The commands to extract the exported symbol list from a shared archive.
16172 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16174 # Symbols that should not be listed in the preloaded symbols.
16175 exclude_expsyms=$lt_exclude_expsyms_F77
16177 # Symbols that must always be exported.
16178 include_expsyms=$lt_include_expsyms_F77
16180 # ### END LIBTOOL TAG CONFIG: $tagname
16182 __EOF__
16185 else
16186 # If there is no Makefile yet, we rely on a make rule to execute
16187 # `config.status --recheck' to rerun these tests and create the
16188 # libtool script then.
16189 test -f Makefile && make "$ltmain"
16193 ac_ext=c
16194 ac_cpp='$CPP $CPPFLAGS'
16195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16199 CC="$lt_save_CC"
16201 else
16202 tagname=""
16206 GCJ)
16207 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16210 # Source file extension for Java test sources.
16211 ac_ext=java
16213 # Object file extension for compiled Java test sources.
16214 objext=o
16215 objext_GCJ=$objext
16217 # Code to be used in simple compile tests
16218 lt_simple_compile_test_code="class foo {}\n"
16220 # Code to be used in simple link tests
16221 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16223 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16225 # If no C compiler was specified, use CC.
16226 LTCC=${LTCC-"$CC"}
16228 # Allow CC to be a program name with arguments.
16229 compiler=$CC
16232 # Allow CC to be a program name with arguments.
16233 lt_save_CC="$CC"
16234 CC=${GCJ-"gcj"}
16235 compiler=$CC
16236 compiler_GCJ=$CC
16238 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16239 archive_cmds_need_lc_GCJ=no
16241 ## CAVEAT EMPTOR:
16242 ## There is no encapsulation within the following macros, do not change
16243 ## the running order or otherwise move them around unless you know exactly
16244 ## what you are doing...
16246 lt_prog_compiler_no_builtin_flag_GCJ=
16248 if test "$GCC" = yes; then
16249 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16252 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16253 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16254 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257 lt_cv_prog_compiler_rtti_exceptions=no
16258 ac_outfile=conftest.$ac_objext
16259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16260 lt_compiler_flag="-fno-rtti -fno-exceptions"
16261 # Insert the option either (1) after the last *FLAGS variable, or
16262 # (2) before a word containing "conftest.", or (3) at the end.
16263 # Note that $ac_compile itself does not contain backslashes and begins
16264 # with a dollar sign (not a hyphen), so the echo should work correctly.
16265 # The option is referenced via a variable to avoid confusing sed.
16266 lt_compile=`echo "$ac_compile" | $SED \
16267 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16269 -e 's:$: $lt_compiler_flag:'`
16270 (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
16271 (eval "$lt_compile" 2>conftest.err)
16272 ac_status=$?
16273 cat conftest.err >&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 if (exit $ac_status) && test -s "$ac_outfile"; then
16276 # The compiler can only warn and ignore the option if not recognized
16277 # So say no if there are warnings
16278 if test ! -s conftest.err; then
16279 lt_cv_prog_compiler_rtti_exceptions=yes
16282 $rm conftest*
16285 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16286 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16288 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16289 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16290 else
16296 lt_prog_compiler_wl_GCJ=
16297 lt_prog_compiler_pic_GCJ=
16298 lt_prog_compiler_static_GCJ=
16300 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16301 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16303 if test "$GCC" = yes; then
16304 lt_prog_compiler_wl_GCJ='-Wl,'
16305 lt_prog_compiler_static_GCJ='-static'
16307 case $host_os in
16308 aix*)
16309 # All AIX code is PIC.
16310 if test "$host_cpu" = ia64; then
16311 # AIX 5 now supports IA64 processor
16312 lt_prog_compiler_static_GCJ='-Bstatic'
16316 amigaos*)
16317 # FIXME: we need at least 68020 code to build shared libraries, but
16318 # adding the `-m68020' flag to GCC prevents building anything better,
16319 # like `-m68040'.
16320 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16323 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16324 # PIC is the default for these OSes.
16327 mingw* | pw32* | os2*)
16328 # This hack is so that the source file can tell whether it is being
16329 # built for inclusion in a dll (and should export symbols for example).
16330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16333 darwin* | rhapsody*)
16334 # PIC is the default on this platform
16335 # Common symbols not allowed in MH_DYLIB files
16336 lt_prog_compiler_pic_GCJ='-fno-common'
16339 msdosdjgpp*)
16340 # Just because we use GCC doesn't mean we suddenly get shared libraries
16341 # on systems that don't support them.
16342 lt_prog_compiler_can_build_shared_GCJ=no
16343 enable_shared=no
16346 sysv4*MP*)
16347 if test -d /usr/nec; then
16348 lt_prog_compiler_pic_GCJ=-Kconform_pic
16352 hpux*)
16353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16354 # not for PA HP-UX.
16355 case "$host_cpu" in
16356 hppa*64*|ia64*)
16357 # +Z the default
16360 lt_prog_compiler_pic_GCJ='-fPIC'
16362 esac
16366 lt_prog_compiler_pic_GCJ='-fPIC'
16368 esac
16369 else
16370 # PORTME Check for flag to pass linker flags through the system compiler.
16371 case $host_os in
16372 aix*)
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 if test "$host_cpu" = ia64; then
16375 # AIX 5 now supports IA64 processor
16376 lt_prog_compiler_static_GCJ='-Bstatic'
16377 else
16378 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16382 mingw* | pw32* | os2*)
16383 # This hack is so that the source file can tell whether it is being
16384 # built for inclusion in a dll (and should export symbols for example).
16385 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16388 hpux9* | hpux10* | hpux11*)
16389 lt_prog_compiler_wl_GCJ='-Wl,'
16390 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16391 # not for PA HP-UX.
16392 case "$host_cpu" in
16393 hppa*64*|ia64*)
16394 # +Z the default
16397 lt_prog_compiler_pic_GCJ='+Z'
16399 esac
16400 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16401 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16404 irix5* | irix6* | nonstopux*)
16405 lt_prog_compiler_wl_GCJ='-Wl,'
16406 # PIC (with -KPIC) is the default.
16407 lt_prog_compiler_static_GCJ='-non_shared'
16410 newsos6)
16411 lt_prog_compiler_pic_GCJ='-KPIC'
16412 lt_prog_compiler_static_GCJ='-Bstatic'
16415 linux*)
16416 case $CC in
16417 icc* | ecc*)
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16419 lt_prog_compiler_pic_GCJ='-KPIC'
16420 lt_prog_compiler_static_GCJ='-static'
16422 ccc*)
16423 lt_prog_compiler_wl_GCJ='-Wl,'
16424 # All Alpha code is PIC.
16425 lt_prog_compiler_static_GCJ='-non_shared'
16427 esac
16430 osf3* | osf4* | osf5*)
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 # All OSF/1 code is PIC.
16433 lt_prog_compiler_static_GCJ='-non_shared'
16436 sco3.2v5*)
16437 lt_prog_compiler_pic_GCJ='-Kpic'
16438 lt_prog_compiler_static_GCJ='-dn'
16441 solaris*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_pic_GCJ='-KPIC'
16444 lt_prog_compiler_static_GCJ='-Bstatic'
16447 sunos4*)
16448 lt_prog_compiler_wl_GCJ='-Qoption ld '
16449 lt_prog_compiler_pic_GCJ='-PIC'
16450 lt_prog_compiler_static_GCJ='-Bstatic'
16453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 lt_prog_compiler_pic_GCJ='-KPIC'
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16459 sysv4*MP*)
16460 if test -d /usr/nec ;then
16461 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16462 lt_prog_compiler_static_GCJ='-Bstatic'
16466 uts4*)
16467 lt_prog_compiler_pic_GCJ='-pic'
16468 lt_prog_compiler_static_GCJ='-Bstatic'
16472 lt_prog_compiler_can_build_shared_GCJ=no
16474 esac
16477 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16478 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16481 # Check to make sure the PIC flag actually works.
16483 if test -n "$lt_prog_compiler_pic_GCJ"; then
16485 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16486 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16487 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490 lt_prog_compiler_pic_works_GCJ=no
16491 ac_outfile=conftest.$ac_objext
16492 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16493 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16494 # Insert the option either (1) after the last *FLAGS variable, or
16495 # (2) before a word containing "conftest.", or (3) at the end.
16496 # Note that $ac_compile itself does not contain backslashes and begins
16497 # with a dollar sign (not a hyphen), so the echo should work correctly.
16498 # The option is referenced via a variable to avoid confusing sed.
16499 lt_compile=`echo "$ac_compile" | $SED \
16500 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16502 -e 's:$: $lt_compiler_flag:'`
16503 (eval echo "\"\$as_me:16503: $lt_compile\"" >&5)
16504 (eval "$lt_compile" 2>conftest.err)
16505 ac_status=$?
16506 cat conftest.err >&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 if (exit $ac_status) && test -s "$ac_outfile"; then
16509 # The compiler can only warn and ignore the option if not recognized
16510 # So say no if there are warnings
16511 if test ! -s conftest.err; then
16512 lt_prog_compiler_pic_works_GCJ=yes
16515 $rm conftest*
16518 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16519 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16521 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16522 case $lt_prog_compiler_pic_GCJ in
16523 "" | " "*) ;;
16524 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16525 esac
16526 else
16527 lt_prog_compiler_pic_GCJ=
16528 lt_prog_compiler_can_build_shared_GCJ=no
16532 case "$host_os" in
16533 # For platforms which do not support PIC, -DPIC is meaningless:
16534 *djgpp*)
16535 lt_prog_compiler_pic_GCJ=
16538 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16540 esac
16542 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16543 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16544 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 lt_cv_prog_compiler_c_o_GCJ=no
16548 $rm -r conftest 2>/dev/null
16549 mkdir conftest
16550 cd conftest
16551 mkdir out
16552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16554 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16555 # that will create temporary files in the current directory regardless of
16556 # the output directory. Thus, making CWD read-only will cause this test
16557 # to fail, enabling locking or at least warning the user not to do parallel
16558 # builds.
16559 chmod -w .
16561 lt_compiler_flag="-o out/conftest2.$ac_objext"
16562 # Insert the option either (1) after the last *FLAGS variable, or
16563 # (2) before a word containing "conftest.", or (3) at the end.
16564 # Note that $ac_compile itself does not contain backslashes and begins
16565 # with a dollar sign (not a hyphen), so the echo should work correctly.
16566 lt_compile=`echo "$ac_compile" | $SED \
16567 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569 -e 's:$: $lt_compiler_flag:'`
16570 (eval echo "\"\$as_me:16570: $lt_compile\"" >&5)
16571 (eval "$lt_compile" 2>out/conftest.err)
16572 ac_status=$?
16573 cat out/conftest.err >&5
16574 echo "$as_me:16574: \$? = $ac_status" >&5
16575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16576 then
16577 # The compiler can only warn and ignore the option if not recognized
16578 # So say no if there are warnings
16579 if test ! -s out/conftest.err; then
16580 lt_cv_prog_compiler_c_o_GCJ=yes
16583 chmod u+w .
16584 $rm conftest*
16585 # SGI C++ compiler will create directory out/ii_files/ for
16586 # template instantiation
16587 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16588 $rm out/* && rmdir out
16589 cd ..
16590 rmdir conftest
16591 $rm conftest*
16594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16598 hard_links="nottested"
16599 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16600 # do not overwrite the value of need_locks provided by the user
16601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16603 hard_links=yes
16604 $rm conftest*
16605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16606 touch conftest.a
16607 ln conftest.a conftest.b 2>&5 || hard_links=no
16608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16609 { echo "$as_me:$LINENO: result: $hard_links" >&5
16610 echo "${ECHO_T}$hard_links" >&6; }
16611 if test "$hard_links" = no; then
16612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16614 need_locks=warn
16616 else
16617 need_locks=no
16620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16623 runpath_var=
16624 allow_undefined_flag_GCJ=
16625 enable_shared_with_static_runtimes_GCJ=no
16626 archive_cmds_GCJ=
16627 archive_expsym_cmds_GCJ=
16628 old_archive_From_new_cmds_GCJ=
16629 old_archive_from_expsyms_cmds_GCJ=
16630 export_dynamic_flag_spec_GCJ=
16631 whole_archive_flag_spec_GCJ=
16632 thread_safe_flag_spec_GCJ=
16633 hardcode_libdir_flag_spec_GCJ=
16634 hardcode_libdir_flag_spec_ld_GCJ=
16635 hardcode_libdir_separator_GCJ=
16636 hardcode_direct_GCJ=no
16637 hardcode_minus_L_GCJ=no
16638 hardcode_shlibpath_var_GCJ=unsupported
16639 link_all_deplibs_GCJ=unknown
16640 hardcode_automatic_GCJ=no
16641 module_cmds_GCJ=
16642 module_expsym_cmds_GCJ=
16643 always_export_symbols_GCJ=no
16644 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16645 # include_expsyms should be a list of space-separated symbols to be *always*
16646 # included in the symbol list
16647 include_expsyms_GCJ=
16648 # exclude_expsyms can be an extended regexp of symbols to exclude
16649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16651 # as well as any symbol that contains `d'.
16652 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16654 # platforms (ab)use it in PIC code, but their linkers get confused if
16655 # the symbol is explicitly referenced. Since portable code cannot
16656 # rely on this symbol name, it's probably fine to never include it in
16657 # preloaded symbol tables.
16658 extract_expsyms_cmds=
16660 case $host_os in
16661 cygwin* | mingw* | pw32*)
16662 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16663 # When not using gcc, we currently assume that we are using
16664 # Microsoft Visual C++.
16665 if test "$GCC" != yes; then
16666 with_gnu_ld=no
16669 openbsd*)
16670 with_gnu_ld=no
16672 esac
16674 ld_shlibs_GCJ=yes
16675 if test "$with_gnu_ld" = yes; then
16676 # If archive_cmds runs LD, not CC, wlarc should be empty
16677 wlarc='${wl}'
16679 # See if GNU ld supports shared libraries.
16680 case $host_os in
16681 aix3* | aix4* | aix5*)
16682 # On AIX/PPC, the GNU linker is very broken
16683 if test "$host_cpu" != ia64; then
16684 ld_shlibs_GCJ=no
16685 cat <<EOF 1>&2
16687 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16688 *** to be unable to reliably create shared libraries on AIX.
16689 *** Therefore, libtool is disabling shared libraries support. If you
16690 *** really care for shared libraries, you may want to modify your PATH
16691 *** so that a non-GNU linker is found, and then restart.
16697 amigaos*)
16698 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16699 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16700 hardcode_minus_L_GCJ=yes
16702 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16703 # that the semantics of dynamic libraries on AmigaOS, at least up
16704 # to version 4, is to share data among multiple programs linked
16705 # with the same dynamic library. Since this doesn't match the
16706 # behavior of shared libraries on other platforms, we can't use
16707 # them.
16708 ld_shlibs_GCJ=no
16711 beos*)
16712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16713 allow_undefined_flag_GCJ=unsupported
16714 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16715 # support --undefined. This deserves some investigation. FIXME
16716 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16717 else
16718 ld_shlibs_GCJ=no
16722 cygwin* | mingw* | pw32*)
16723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16724 # as there is no search path for DLLs.
16725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16726 allow_undefined_flag_GCJ=unsupported
16727 always_export_symbols_GCJ=no
16728 enable_shared_with_static_runtimes_GCJ=yes
16729 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16732 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16733 # If the export-symbols file already is a .def file (1st line
16734 # is EXPORTS), use it as is; otherwise, prepend...
16735 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16736 cp $export_symbols $output_objdir/$soname.def;
16737 else
16738 echo EXPORTS > $output_objdir/$soname.def;
16739 cat $export_symbols >> $output_objdir/$soname.def;
16741 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16742 else
16743 ld_shlibs=no
16747 netbsd*)
16748 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16749 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16750 wlarc=
16751 else
16752 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16753 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16757 solaris* | sysv5*)
16758 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16759 ld_shlibs_GCJ=no
16760 cat <<EOF 1>&2
16762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16763 *** create shared libraries on Solaris systems. Therefore, libtool
16764 *** is disabling shared libraries support. We urge you to upgrade GNU
16765 *** binutils to release 2.9.1 or newer. Another option is to modify
16766 *** your PATH or compiler configuration so that the native linker is
16767 *** used, and then restart.
16770 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16771 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16773 else
16774 ld_shlibs_GCJ=no
16778 sunos4*)
16779 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16780 wlarc=
16781 hardcode_direct_GCJ=yes
16782 hardcode_shlibpath_var_GCJ=no
16785 linux*)
16786 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16787 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788 archive_cmds_GCJ="$tmp_archive_cmds"
16789 supports_anon_versioning=no
16790 case `$LD -v 2>/dev/null` in
16791 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16794 *\ 2.11.*) ;; # other 2.11 versions
16795 *) supports_anon_versioning=yes ;;
16796 esac
16797 if test $supports_anon_versioning = yes; then
16798 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16799 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16800 $echo "local: *; };" >> $output_objdir/$libname.ver~
16801 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16802 else
16803 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16805 else
16806 ld_shlibs_GCJ=no
16811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16812 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16813 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16814 else
16815 ld_shlibs_GCJ=no
16818 esac
16820 if test "$ld_shlibs_GCJ" = yes; then
16821 runpath_var=LD_RUN_PATH
16822 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16823 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16824 # ancient GNU ld didn't support --whole-archive et. al.
16825 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16826 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16827 else
16828 whole_archive_flag_spec_GCJ=
16831 else
16832 # PORTME fill in a description of your system's linker (not GNU ld)
16833 case $host_os in
16834 aix3*)
16835 allow_undefined_flag_GCJ=unsupported
16836 always_export_symbols_GCJ=yes
16837 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16838 # Note: this linker hardcodes the directories in LIBPATH if there
16839 # are no directories specified by -L.
16840 hardcode_minus_L_GCJ=yes
16841 if test "$GCC" = yes && test -z "$link_static_flag"; then
16842 # Neither direct hardcoding nor static linking is supported with a
16843 # broken collect2.
16844 hardcode_direct_GCJ=unsupported
16848 aix4* | aix5*)
16849 if test "$host_cpu" = ia64; then
16850 # On IA64, the linker does run time linking by default, so we don't
16851 # have to do anything special.
16852 aix_use_runtimelinking=no
16853 exp_sym_flag='-Bexport'
16854 no_entry_flag=""
16855 else
16856 # If we're using GNU nm, then we don't want the "-C" option.
16857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16858 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16859 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16860 else
16861 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16863 aix_use_runtimelinking=no
16865 # Test if we are trying to use run time linking or normal
16866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16867 # need to do runtime linking.
16868 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16869 for ld_flag in $LDFLAGS; do
16870 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16871 aix_use_runtimelinking=yes
16872 break
16874 done
16875 esac
16877 exp_sym_flag='-bexport'
16878 no_entry_flag='-bnoentry'
16881 # When large executables or shared objects are built, AIX ld can
16882 # have problems creating the table of contents. If linking a library
16883 # or program results in "error TOC overflow" add -mminimal-toc to
16884 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16885 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16887 archive_cmds_GCJ=''
16888 hardcode_direct_GCJ=yes
16889 hardcode_libdir_separator_GCJ=':'
16890 link_all_deplibs_GCJ=yes
16892 if test "$GCC" = yes; then
16893 case $host_os in aix4.012|aix4.012.*)
16894 # We only want to do this on AIX 4.2 and lower, the check
16895 # below for broken collect2 doesn't work under 4.3+
16896 collect2name=`${CC} -print-prog-name=collect2`
16897 if test -f "$collect2name" && \
16898 strings "$collect2name" | grep resolve_lib_name >/dev/null
16899 then
16900 # We have reworked collect2
16901 hardcode_direct_GCJ=yes
16902 else
16903 # We have old collect2
16904 hardcode_direct_GCJ=unsupported
16905 # It fails to find uninstalled libraries when the uninstalled
16906 # path is not listed in the libpath. Setting hardcode_minus_L
16907 # to unsupported forces relinking
16908 hardcode_minus_L_GCJ=yes
16909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16910 hardcode_libdir_separator_GCJ=
16912 esac
16913 shared_flag='-shared'
16914 else
16915 # not using gcc
16916 if test "$host_cpu" = ia64; then
16917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16918 # chokes on -Wl,-G. The following line is correct:
16919 shared_flag='-G'
16920 else
16921 if test "$aix_use_runtimelinking" = yes; then
16922 shared_flag='${wl}-G'
16923 else
16924 shared_flag='${wl}-bM:SRE'
16929 # It seems that -bexpall does not export symbols beginning with
16930 # underscore (_), so it is better to generate a list of symbols to export.
16931 always_export_symbols_GCJ=yes
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # Warning - without using the other runtime loading flags (-brtl),
16934 # -berok will link without error, but may produce a broken library.
16935 allow_undefined_flag_GCJ='-berok'
16936 # Determine the default libpath from the value encoded in an empty executable.
16937 cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h. */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h. */
16945 main ()
16949 return 0;
16951 _ACEOF
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16957 esac
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16960 ac_status=$?
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16967 { (case "(($ac_try" in
16968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969 *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972 (eval "$ac_try") 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_try") 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; }; then
16987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16989 # Check for a 64-bit object if we didn't find anything.
16990 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16991 }'`; fi
16992 else
16993 echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16999 rm -f core conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17003 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17004 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17005 else
17006 if test "$host_cpu" = ia64; then
17007 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17008 allow_undefined_flag_GCJ="-z nodefs"
17009 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17010 else
17011 # Determine the default libpath from the value encoded in an empty executable.
17012 cat >conftest.$ac_ext <<_ACEOF
17013 /* confdefs.h. */
17014 _ACEOF
17015 cat confdefs.h >>conftest.$ac_ext
17016 cat >>conftest.$ac_ext <<_ACEOF
17017 /* end confdefs.h. */
17020 main ()
17024 return 0;
17026 _ACEOF
17027 rm -f conftest.$ac_objext conftest$ac_exeext
17028 if { (ac_try="$ac_link"
17029 case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032 esac
17033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } &&
17041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17042 { (case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045 esac
17046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_try") 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest$ac_exeext'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055 esac
17056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17064 # Check for a 64-bit object if we didn't find anything.
17065 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17066 }'`; fi
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17074 rm -f core conftest.err conftest.$ac_objext \
17075 conftest$ac_exeext conftest.$ac_ext
17076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17078 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17079 # Warning - without using the other run time loading flags,
17080 # -berok will link without error, but may produce a broken library.
17081 no_undefined_flag_GCJ=' ${wl}-bernotok'
17082 allow_undefined_flag_GCJ=' ${wl}-berok'
17083 # -bexpall does not export symbols beginning with underscore (_)
17084 always_export_symbols_GCJ=yes
17085 # Exported symbols can be pulled into shared objects from archives
17086 whole_archive_flag_spec_GCJ=' '
17087 archive_cmds_need_lc_GCJ=yes
17088 # This is similar to how AIX traditionally builds it's shared libraries.
17089 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17094 amigaos*)
17095 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17097 hardcode_minus_L_GCJ=yes
17098 # see comment about different semantics on the GNU ld section
17099 ld_shlibs_GCJ=no
17102 bsdi4*)
17103 export_dynamic_flag_spec_GCJ=-rdynamic
17106 cygwin* | mingw* | pw32*)
17107 # When not using gcc, we currently assume that we are using
17108 # Microsoft Visual C++.
17109 # hardcode_libdir_flag_spec is actually meaningless, as there is
17110 # no search path for DLLs.
17111 hardcode_libdir_flag_spec_GCJ=' '
17112 allow_undefined_flag_GCJ=unsupported
17113 # Tell ltmain to make .lib files, not .a files.
17114 libext=lib
17115 # Tell ltmain to make .dll files, not .so files.
17116 shrext=".dll"
17117 # FIXME: Setting linknames here is a bad hack.
17118 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17119 # The linker will automatically build a .lib file if we build a DLL.
17120 old_archive_From_new_cmds_GCJ='true'
17121 # FIXME: Should let the user specify the lib program.
17122 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17123 fix_srcfile_path='`cygpath -w "$srcfile"`'
17124 enable_shared_with_static_runtimes_GCJ=yes
17127 darwin* | rhapsody*)
17128 if test "$GXX" = yes ; then
17129 archive_cmds_need_lc_GCJ=no
17130 case "$host_os" in
17131 rhapsody* | darwin1.[012])
17132 allow_undefined_flag_GCJ='-undefined suppress'
17134 *) # Darwin 1.3 on
17135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17136 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17137 else
17138 case ${MACOSX_DEPLOYMENT_TARGET} in
17139 10.[012])
17140 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17142 10.*)
17143 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17145 esac
17148 esac
17149 lt_int_apple_cc_single_mod=no
17150 output_verbose_link_cmd='echo'
17151 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17152 lt_int_apple_cc_single_mod=yes
17154 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17155 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17156 else
17157 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17159 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17160 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17161 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17162 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17163 else
17164 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17166 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17167 hardcode_direct_GCJ=no
17168 hardcode_automatic_GCJ=yes
17169 hardcode_shlibpath_var_GCJ=unsupported
17170 whole_archive_flag_spec_GCJ='-all_load $convenience'
17171 link_all_deplibs_GCJ=yes
17172 else
17173 ld_shlibs_GCJ=no
17177 dgux*)
17178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17180 hardcode_shlibpath_var_GCJ=no
17183 freebsd1*)
17184 ld_shlibs_GCJ=no
17187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17188 # support. Future versions do this automatically, but an explicit c++rt0.o
17189 # does not break anything, and helps significantly (at the cost of a little
17190 # extra space).
17191 freebsd2.2*)
17192 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17193 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17194 hardcode_direct_GCJ=yes
17195 hardcode_shlibpath_var_GCJ=no
17198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17199 freebsd2*)
17200 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17201 hardcode_direct_GCJ=yes
17202 hardcode_minus_L_GCJ=yes
17203 hardcode_shlibpath_var_GCJ=no
17206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17207 freebsd* | kfreebsd*-gnu)
17208 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17209 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17210 hardcode_direct_GCJ=yes
17211 hardcode_shlibpath_var_GCJ=no
17214 hpux9*)
17215 if test "$GCC" = yes; then
17216 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17217 else
17218 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17220 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17221 hardcode_libdir_separator_GCJ=:
17222 hardcode_direct_GCJ=yes
17224 # hardcode_minus_L: Not really in the search PATH,
17225 # but as the default location of the library.
17226 hardcode_minus_L_GCJ=yes
17227 export_dynamic_flag_spec_GCJ='${wl}-E'
17230 hpux10* | hpux11*)
17231 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17232 case "$host_cpu" in
17233 hppa*64*|ia64*)
17234 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17237 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17239 esac
17240 else
17241 case "$host_cpu" in
17242 hppa*64*|ia64*)
17243 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17248 esac
17250 if test "$with_gnu_ld" = no; then
17251 case "$host_cpu" in
17252 hppa*64*)
17253 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17254 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17255 hardcode_libdir_separator_GCJ=:
17256 hardcode_direct_GCJ=no
17257 hardcode_shlibpath_var_GCJ=no
17259 ia64*)
17260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261 hardcode_direct_GCJ=no
17262 hardcode_shlibpath_var_GCJ=no
17264 # hardcode_minus_L: Not really in the search PATH,
17265 # but as the default location of the library.
17266 hardcode_minus_L_GCJ=yes
17269 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17270 hardcode_libdir_separator_GCJ=:
17271 hardcode_direct_GCJ=yes
17272 export_dynamic_flag_spec_GCJ='${wl}-E'
17274 # hardcode_minus_L: Not really in the search PATH,
17275 # but as the default location of the library.
17276 hardcode_minus_L_GCJ=yes
17278 esac
17282 irix5* | irix6* | nonstopux*)
17283 if test "$GCC" = yes; then
17284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17285 else
17286 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17287 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17289 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17290 hardcode_libdir_separator_GCJ=:
17291 link_all_deplibs_GCJ=yes
17294 netbsd*)
17295 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17296 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17297 else
17298 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17300 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17301 hardcode_direct_GCJ=yes
17302 hardcode_shlibpath_var_GCJ=no
17305 newsos6)
17306 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17307 hardcode_direct_GCJ=yes
17308 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17309 hardcode_libdir_separator_GCJ=:
17310 hardcode_shlibpath_var_GCJ=no
17313 openbsd*)
17314 hardcode_direct_GCJ=yes
17315 hardcode_shlibpath_var_GCJ=no
17316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17317 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17318 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17319 export_dynamic_flag_spec_GCJ='${wl}-E'
17320 else
17321 case $host_os in
17322 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17323 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17327 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17328 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17330 esac
17334 os2*)
17335 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17336 hardcode_minus_L_GCJ=yes
17337 allow_undefined_flag_GCJ=unsupported
17338 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17339 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17342 osf3*)
17343 if test "$GCC" = yes; then
17344 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17345 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17346 else
17347 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17348 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17350 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17351 hardcode_libdir_separator_GCJ=:
17354 osf4* | osf5*) # as osf3* with the addition of -msym flag
17355 if test "$GCC" = yes; then
17356 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17357 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17358 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17359 else
17360 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17361 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17362 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17363 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17365 # Both c and cxx compiler support -rpath directly
17366 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17368 hardcode_libdir_separator_GCJ=:
17371 sco3.2v5*)
17372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_shlibpath_var_GCJ=no
17374 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17375 runpath_var=LD_RUN_PATH
17376 hardcode_runpath_var=yes
17379 solaris*)
17380 no_undefined_flag_GCJ=' -z text'
17381 if test "$GCC" = yes; then
17382 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17383 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17384 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17385 else
17386 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17388 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17390 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17391 hardcode_shlibpath_var_GCJ=no
17392 case $host_os in
17393 solaris2.[0-5] | solaris2.[0-5].*) ;;
17394 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17395 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17396 esac
17397 link_all_deplibs_GCJ=yes
17400 sunos4*)
17401 if test "x$host_vendor" = xsequent; then
17402 # Use $CC to link under sequent, because it throws in some extra .o
17403 # files that make .init and .fini sections work.
17404 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17405 else
17406 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17408 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17409 hardcode_direct_GCJ=yes
17410 hardcode_minus_L_GCJ=yes
17411 hardcode_shlibpath_var_GCJ=no
17414 sysv4)
17415 case $host_vendor in
17416 sni)
17417 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17418 hardcode_direct_GCJ=yes # is this really true???
17420 siemens)
17421 ## LD is ld it makes a PLAMLIB
17422 ## CC just makes a GrossModule.
17423 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17424 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17425 hardcode_direct_GCJ=no
17427 motorola)
17428 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17429 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17431 esac
17432 runpath_var='LD_RUN_PATH'
17433 hardcode_shlibpath_var_GCJ=no
17436 sysv4.3*)
17437 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17438 hardcode_shlibpath_var_GCJ=no
17439 export_dynamic_flag_spec_GCJ='-Bexport'
17442 sysv4*MP*)
17443 if test -d /usr/nec; then
17444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_shlibpath_var_GCJ=no
17446 runpath_var=LD_RUN_PATH
17447 hardcode_runpath_var=yes
17448 ld_shlibs_GCJ=yes
17452 sysv4.2uw2*)
17453 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17454 hardcode_direct_GCJ=yes
17455 hardcode_minus_L_GCJ=no
17456 hardcode_shlibpath_var_GCJ=no
17457 hardcode_runpath_var=yes
17458 runpath_var=LD_RUN_PATH
17461 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17462 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17463 if test "$GCC" = yes; then
17464 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17465 else
17466 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17468 runpath_var='LD_RUN_PATH'
17469 hardcode_shlibpath_var_GCJ=no
17472 sysv5*)
17473 no_undefined_flag_GCJ=' -z text'
17474 # $CC -shared without GNU ld will not create a library from C++
17475 # object files and a static libstdc++, better avoid it by now
17476 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17479 hardcode_libdir_flag_spec_GCJ=
17480 hardcode_shlibpath_var_GCJ=no
17481 runpath_var='LD_RUN_PATH'
17484 uts4*)
17485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17486 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17487 hardcode_shlibpath_var_GCJ=no
17491 ld_shlibs_GCJ=no
17493 esac
17496 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17497 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17498 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17501 if test "$GCC" = yes; then
17502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17506 # Do we need to explicitly link libc?
17508 case "x$archive_cmds_need_lc_GCJ" in
17509 x|xyes)
17510 # Assume -lc should be added
17511 archive_cmds_need_lc_GCJ=yes
17513 if test "$enable_shared" = yes && test "$GCC" = yes; then
17514 case $archive_cmds_GCJ in
17515 *'~'*)
17516 # FIXME: we may have to deal with multi-command sequences.
17518 '$CC '*)
17519 # Test whether the compiler implicitly links with -lc since on some
17520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17521 # to ld, don't add -lc before -lgcc.
17522 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17523 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17524 $rm conftest*
17525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } 2>conftest.err; then
17532 soname=conftest
17533 lib=conftest
17534 libobjs=conftest.$ac_objext
17535 deplibs=
17536 wl=$lt_prog_compiler_wl_GCJ
17537 compiler_flags=-v
17538 linker_flags=-v
17539 verstring=
17540 output_objdir=.
17541 libname=conftest
17542 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17543 allow_undefined_flag_GCJ=
17544 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17545 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }
17549 then
17550 archive_cmds_need_lc_GCJ=no
17551 else
17552 archive_cmds_need_lc_GCJ=yes
17554 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17555 else
17556 cat conftest.err 1>&5
17558 $rm conftest*
17559 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17560 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17562 esac
17565 esac
17567 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17568 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17569 library_names_spec=
17570 libname_spec='lib$name'
17571 soname_spec=
17572 shrext=".so"
17573 postinstall_cmds=
17574 postuninstall_cmds=
17575 finish_cmds=
17576 finish_eval=
17577 shlibpath_var=
17578 shlibpath_overrides_runpath=unknown
17579 version_type=none
17580 dynamic_linker="$host_os ld.so"
17581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17582 if test "$GCC" = yes; then
17583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17584 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17585 # if the path contains ";" then we assume it to be the separator
17586 # otherwise default to the standard path separator (i.e. ":") - it is
17587 # assumed that no part of a normal pathname contains ";" but that should
17588 # okay in the real world where ";" in dirpaths is itself problematic.
17589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17590 else
17591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17593 else
17594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17596 need_lib_prefix=unknown
17597 hardcode_into_libs=no
17599 # when you set need_version to no, make sure it does not cause -set_version
17600 # flags to be left without arguments
17601 need_version=unknown
17603 case $host_os in
17604 aix3*)
17605 version_type=linux
17606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17607 shlibpath_var=LIBPATH
17609 # AIX 3 has no versioning support, so we append a major version to the name.
17610 soname_spec='${libname}${release}${shared_ext}$major'
17613 aix4* | aix5*)
17614 version_type=linux
17615 need_lib_prefix=no
17616 need_version=no
17617 hardcode_into_libs=yes
17618 if test "$host_cpu" = ia64; then
17619 # AIX 5 supports IA64
17620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17621 shlibpath_var=LD_LIBRARY_PATH
17622 else
17623 # With GCC up to 2.95.x, collect2 would create an import file
17624 # for dependence libraries. The import file would start with
17625 # the line `#! .'. This would cause the generated library to
17626 # depend on `.', always an invalid library. This was fixed in
17627 # development snapshots of GCC prior to 3.0.
17628 case $host_os in
17629 aix4 | aix4.[01] | aix4.[01].*)
17630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17631 echo ' yes '
17632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17634 else
17635 can_build_shared=no
17638 esac
17639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17640 # soname into executable. Probably we can add versioning support to
17641 # collect2, so additional links can be useful in future.
17642 if test "$aix_use_runtimelinking" = yes; then
17643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17644 # instead of lib<name>.a to let people know that these are not
17645 # typical AIX shared libraries.
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 else
17648 # We preserve .a as extension for shared libraries through AIX4.2
17649 # and later when we are not doing run time linking.
17650 library_names_spec='${libname}${release}.a $libname.a'
17651 soname_spec='${libname}${release}${shared_ext}$major'
17653 shlibpath_var=LIBPATH
17657 amigaos*)
17658 library_names_spec='$libname.ixlibrary $libname.a'
17659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17660 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17663 beos*)
17664 library_names_spec='${libname}${shared_ext}'
17665 dynamic_linker="$host_os ld.so"
17666 shlibpath_var=LIBRARY_PATH
17669 bsdi4*)
17670 version_type=linux
17671 need_version=no
17672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17673 soname_spec='${libname}${release}${shared_ext}$major'
17674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17675 shlibpath_var=LD_LIBRARY_PATH
17676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17678 # the default ld.so.conf also contains /usr/contrib/lib and
17679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17680 # libtool to hard-code these into programs
17683 cygwin* | mingw* | pw32*)
17684 version_type=windows
17685 shrext=".dll"
17686 need_version=no
17687 need_lib_prefix=no
17689 case $GCC,$host_os in
17690 yes,cygwin* | yes,mingw* | yes,pw32*)
17691 library_names_spec='$libname.dll.a'
17692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17693 postinstall_cmds='base_file=`basename \${file}`~
17694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17695 dldir=$destdir/`dirname \$dlpath`~
17696 test -d \$dldir || mkdir -p \$dldir~
17697 $install_prog $dir/$dlname \$dldir/$dlname'
17698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17699 dlpath=$dir/\$dldll~
17700 $rm \$dlpath'
17701 shlibpath_overrides_runpath=yes
17703 case $host_os in
17704 cygwin*)
17705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17709 mingw*)
17710 # MinGW DLLs use traditional 'lib' prefix
17711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17714 # It is most probably a Windows format PATH printed by
17715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17716 # path with ; separators, and with drive letters. We can handle the
17717 # drive letters (cygwin fileutils understands them), so leave them,
17718 # especially as we might pass files found there to a mingw objdump,
17719 # which wouldn't understand a cygwinified path. Ahh.
17720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17721 else
17722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17725 pw32*)
17726 # pw32 DLLs use 'pw' prefix rather than 'lib'
17727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17729 esac
17733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17735 esac
17736 dynamic_linker='Win32 ld.exe'
17737 # FIXME: first we should search . and the directory the executable is in
17738 shlibpath_var=PATH
17741 darwin* | rhapsody*)
17742 dynamic_linker="$host_os dyld"
17743 version_type=darwin
17744 need_lib_prefix=no
17745 need_version=no
17746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17747 soname_spec='${libname}${release}${major}$shared_ext'
17748 shlibpath_overrides_runpath=yes
17749 shlibpath_var=DYLD_LIBRARY_PATH
17750 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17752 if test "$GCC" = yes; then
17753 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17754 else
17755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17760 dgux*)
17761 version_type=linux
17762 need_lib_prefix=no
17763 need_version=no
17764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17765 soname_spec='${libname}${release}${shared_ext}$major'
17766 shlibpath_var=LD_LIBRARY_PATH
17769 freebsd1*)
17770 dynamic_linker=no
17773 kfreebsd*-gnu)
17774 version_type=linux
17775 need_lib_prefix=no
17776 need_version=no
17777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17779 shlibpath_var=LD_LIBRARY_PATH
17780 shlibpath_overrides_runpath=no
17781 hardcode_into_libs=yes
17782 dynamic_linker='GNU ld.so'
17785 freebsd*)
17786 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17787 version_type=freebsd-$objformat
17788 case $version_type in
17789 freebsd-elf*)
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17791 need_version=no
17792 need_lib_prefix=no
17794 freebsd-*)
17795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17796 need_version=yes
17798 esac
17799 shlibpath_var=LD_LIBRARY_PATH
17800 case $host_os in
17801 freebsd2*)
17802 shlibpath_overrides_runpath=yes
17804 freebsd3.01* | freebsdelf3.01*)
17805 shlibpath_overrides_runpath=yes
17806 hardcode_into_libs=yes
17808 *) # from 3.2 on
17809 shlibpath_overrides_runpath=no
17810 hardcode_into_libs=yes
17812 esac
17815 gnu*)
17816 version_type=linux
17817 need_lib_prefix=no
17818 need_version=no
17819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17820 soname_spec='${libname}${release}${shared_ext}$major'
17821 shlibpath_var=LD_LIBRARY_PATH
17822 hardcode_into_libs=yes
17825 hpux9* | hpux10* | hpux11*)
17826 # Give a soname corresponding to the major version so that dld.sl refuses to
17827 # link against other versions.
17828 version_type=sunos
17829 need_lib_prefix=no
17830 need_version=no
17831 case "$host_cpu" in
17832 ia64*)
17833 shrext='.so'
17834 hardcode_into_libs=yes
17835 dynamic_linker="$host_os dld.so"
17836 shlibpath_var=LD_LIBRARY_PATH
17837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17839 soname_spec='${libname}${release}${shared_ext}$major'
17840 if test "X$HPUX_IA64_MODE" = X32; then
17841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17842 else
17843 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17847 hppa*64*)
17848 shrext='.sl'
17849 hardcode_into_libs=yes
17850 dynamic_linker="$host_os dld.sl"
17851 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17852 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 soname_spec='${libname}${release}${shared_ext}$major'
17855 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17856 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17859 shrext='.sl'
17860 dynamic_linker="$host_os dld.sl"
17861 shlibpath_var=SHLIB_PATH
17862 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17866 esac
17867 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17868 postinstall_cmds='chmod 555 $lib'
17871 irix5* | irix6* | nonstopux*)
17872 case $host_os in
17873 nonstopux*) version_type=nonstopux ;;
17875 if test "$lt_cv_prog_gnu_ld" = yes; then
17876 version_type=linux
17877 else
17878 version_type=irix
17879 fi ;;
17880 esac
17881 need_lib_prefix=no
17882 need_version=no
17883 soname_spec='${libname}${release}${shared_ext}$major'
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17885 case $host_os in
17886 irix5* | nonstopux*)
17887 libsuff= shlibsuff=
17890 case $LD in # libtool.m4 will add one of these switches to LD
17891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17892 libsuff= shlibsuff= libmagic=32-bit;;
17893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17894 libsuff=32 shlibsuff=N32 libmagic=N32;;
17895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17896 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17897 *) libsuff= shlibsuff= libmagic=never-match;;
17898 esac
17900 esac
17901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17902 shlibpath_overrides_runpath=no
17903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17905 hardcode_into_libs=yes
17908 # No shared lib support for Linux oldld, aout, or coff.
17909 linux*oldld* | linux*aout* | linux*coff*)
17910 dynamic_linker=no
17913 # This must be Linux ELF.
17914 linux*)
17915 version_type=linux
17916 need_lib_prefix=no
17917 need_version=no
17918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17919 soname_spec='${libname}${release}${shared_ext}$major'
17920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=no
17923 # This implies no fast_install, which is unacceptable.
17924 # Some rework will be needed to allow for fast_install
17925 # before this can be enabled.
17926 hardcode_into_libs=yes
17928 # We used to test for /lib/ld.so.1 and disable shared libraries on
17929 # powerpc, because MkLinux only supported shared libraries with the
17930 # GNU dynamic linker. Since this was broken with cross compilers,
17931 # most powerpc-linux boxes support dynamic linking these days and
17932 # people can always --disable-shared, the test was removed, and we
17933 # assume the GNU/Linux dynamic linker is in use.
17934 dynamic_linker='GNU/Linux ld.so'
17937 netbsd*)
17938 version_type=sunos
17939 need_lib_prefix=no
17940 need_version=no
17941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17944 dynamic_linker='NetBSD (a.out) ld.so'
17945 else
17946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17947 soname_spec='${libname}${release}${shared_ext}$major'
17948 dynamic_linker='NetBSD ld.elf_so'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=yes
17952 hardcode_into_libs=yes
17955 newsos6)
17956 version_type=linux
17957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17958 shlibpath_var=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath=yes
17962 nto-qnx*)
17963 version_type=linux
17964 need_lib_prefix=no
17965 need_version=no
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 shlibpath_var=LD_LIBRARY_PATH
17969 shlibpath_overrides_runpath=yes
17972 openbsd*)
17973 version_type=sunos
17974 need_lib_prefix=no
17975 need_version=no
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17978 shlibpath_var=LD_LIBRARY_PATH
17979 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17980 case $host_os in
17981 openbsd2.[89] | openbsd2.[89].*)
17982 shlibpath_overrides_runpath=no
17985 shlibpath_overrides_runpath=yes
17987 esac
17988 else
17989 shlibpath_overrides_runpath=yes
17993 os2*)
17994 libname_spec='$name'
17995 shrext=".dll"
17996 need_lib_prefix=no
17997 library_names_spec='$libname${shared_ext} $libname.a'
17998 dynamic_linker='OS/2 ld.exe'
17999 shlibpath_var=LIBPATH
18002 osf3* | osf4* | osf5*)
18003 version_type=osf
18004 need_lib_prefix=no
18005 need_version=no
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18010 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18013 sco3.2v5*)
18014 version_type=osf
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 shlibpath_var=LD_LIBRARY_PATH
18020 solaris*)
18021 version_type=linux
18022 need_lib_prefix=no
18023 need_version=no
18024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 soname_spec='${libname}${release}${shared_ext}$major'
18026 shlibpath_var=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath=yes
18028 hardcode_into_libs=yes
18029 # ldd complains unless libraries are executable
18030 postinstall_cmds='chmod +x $lib'
18033 sunos4*)
18034 version_type=sunos
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18037 shlibpath_var=LD_LIBRARY_PATH
18038 shlibpath_overrides_runpath=yes
18039 if test "$with_gnu_ld" = yes; then
18040 need_lib_prefix=no
18042 need_version=yes
18045 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18046 version_type=linux
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 case $host_vendor in
18051 sni)
18052 shlibpath_overrides_runpath=no
18053 need_lib_prefix=no
18054 export_dynamic_flag_spec='${wl}-Blargedynsym'
18055 runpath_var=LD_RUN_PATH
18057 siemens)
18058 need_lib_prefix=no
18060 motorola)
18061 need_lib_prefix=no
18062 need_version=no
18063 shlibpath_overrides_runpath=no
18064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18066 esac
18069 sysv4*MP*)
18070 if test -d /usr/nec ;then
18071 version_type=linux
18072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18073 soname_spec='$libname${shared_ext}.$major'
18074 shlibpath_var=LD_LIBRARY_PATH
18078 uts4*)
18079 version_type=linux
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18086 dynamic_linker=no
18088 esac
18089 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18090 echo "${ECHO_T}$dynamic_linker" >&6; }
18091 test "$dynamic_linker" = no && can_build_shared=no
18093 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18094 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18095 hardcode_action_GCJ=
18096 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18097 test -n "$runpath_var GCJ" || \
18098 test "X$hardcode_automatic_GCJ"="Xyes" ; then
18100 # We can hardcode non-existant directories.
18101 if test "$hardcode_direct_GCJ" != no &&
18102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18103 # have to relink, otherwise we might link with an installed library
18104 # when we should be linking with a yet-to-be-installed one
18105 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18106 test "$hardcode_minus_L_GCJ" != no; then
18107 # Linking always hardcodes the temporary library directory.
18108 hardcode_action_GCJ=relink
18109 else
18110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18111 hardcode_action_GCJ=immediate
18113 else
18114 # We cannot hardcode anything, or else we can only hardcode existing
18115 # directories.
18116 hardcode_action_GCJ=unsupported
18118 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18119 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18121 if test "$hardcode_action_GCJ" = relink; then
18122 # Fast installation is not supported
18123 enable_fast_install=no
18124 elif test "$shlibpath_overrides_runpath" = yes ||
18125 test "$enable_shared" = no; then
18126 # Fast installation is not necessary
18127 enable_fast_install=needless
18130 striplib=
18131 old_striplib=
18132 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18133 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18134 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18135 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18136 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18137 { echo "$as_me:$LINENO: result: yes" >&5
18138 echo "${ECHO_T}yes" >&6; }
18139 else
18140 # FIXME - insert some real tests, host_os isn't really good enough
18141 case $host_os in
18142 darwin*)
18143 if test -n "$STRIP" ; then
18144 striplib="$STRIP -x"
18145 { echo "$as_me:$LINENO: result: yes" >&5
18146 echo "${ECHO_T}yes" >&6; }
18147 else
18148 { echo "$as_me:$LINENO: result: no" >&5
18149 echo "${ECHO_T}no" >&6; }
18153 { echo "$as_me:$LINENO: result: no" >&5
18154 echo "${ECHO_T}no" >&6; }
18156 esac
18159 if test "x$enable_dlopen" != xyes; then
18160 enable_dlopen=unknown
18161 enable_dlopen_self=unknown
18162 enable_dlopen_self_static=unknown
18163 else
18164 lt_cv_dlopen=no
18165 lt_cv_dlopen_libs=
18167 case $host_os in
18168 beos*)
18169 lt_cv_dlopen="load_add_on"
18170 lt_cv_dlopen_libs=
18171 lt_cv_dlopen_self=yes
18174 mingw* | pw32*)
18175 lt_cv_dlopen="LoadLibrary"
18176 lt_cv_dlopen_libs=
18179 cygwin*)
18180 lt_cv_dlopen="dlopen"
18181 lt_cv_dlopen_libs=
18184 darwin*)
18185 # if libdl is installed we need to link against it
18186 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18187 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18188 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18190 else
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-ldl $LIBS"
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18200 /* Override any GCC internal prototype to avoid an error.
18201 Use char because int might match the return type of a GCC
18202 builtin and then its argument prototype would still apply. */
18203 #ifdef __cplusplus
18204 extern "C"
18205 #endif
18206 char dlopen ();
18208 main ()
18210 return dlopen ();
18212 return 0;
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18223 ac_status=$?
18224 grep -v '^ *+' conftest.er1 >conftest.err
18225 rm -f conftest.er1
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18230 { (case "(($ac_try" in
18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18232 *) ac_try_echo=$ac_try;;
18233 esac
18234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18235 (eval "$ac_try") 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest$ac_exeext'
18240 { (case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_try") 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_lib_dl_dlopen=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_cv_lib_dl_dlopen=no
18257 rm -f core conftest.err conftest.$ac_objext \
18258 conftest$ac_exeext conftest.$ac_ext
18259 LIBS=$ac_check_lib_save_LIBS
18261 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18262 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18263 if test $ac_cv_lib_dl_dlopen = yes; then
18264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18265 else
18267 lt_cv_dlopen="dyld"
18268 lt_cv_dlopen_libs=
18269 lt_cv_dlopen_self=yes
18276 { echo "$as_me:$LINENO: checking for shl_load" >&5
18277 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18278 if test "${ac_cv_func_shl_load+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18289 #define shl_load innocuous_shl_load
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char shl_load (); below.
18293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294 <limits.h> exists even on freestanding compilers. */
18296 #ifdef __STDC__
18297 # include <limits.h>
18298 #else
18299 # include <assert.h>
18300 #endif
18302 #undef shl_load
18304 /* Override any GCC internal prototype to avoid an error.
18305 Use char because int might match the return type of a GCC
18306 builtin and then its argument prototype would still apply. */
18307 #ifdef __cplusplus
18308 extern "C"
18309 #endif
18310 char shl_load ();
18311 /* The GNU C library defines this for functions which it implements
18312 to always fail with ENOSYS. Some functions are actually named
18313 something starting with __ and the normal name is an alias. */
18314 #if defined __stub_shl_load || defined __stub___shl_load
18315 choke me
18316 #endif
18319 main ()
18321 return shl_load ();
18323 return 0;
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest$ac_exeext'
18351 { (case "(($ac_try" in
18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18353 *) ac_try_echo=$ac_try;;
18354 esac
18355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18356 (eval "$ac_try") 2>&5
18357 ac_status=$?
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); }; }; then
18360 ac_cv_func_shl_load=yes
18361 else
18362 echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.$ac_ext >&5
18365 ac_cv_func_shl_load=no
18368 rm -f core conftest.err conftest.$ac_objext \
18369 conftest$ac_exeext conftest.$ac_ext
18371 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18372 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18373 if test $ac_cv_func_shl_load = yes; then
18374 lt_cv_dlopen="shl_load"
18375 else
18376 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18377 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18378 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 ac_check_lib_save_LIBS=$LIBS
18382 LIBS="-ldld $LIBS"
18383 cat >conftest.$ac_ext <<_ACEOF
18384 /* confdefs.h. */
18385 _ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18390 /* Override any GCC internal prototype to avoid an error.
18391 Use char because int might match the return type of a GCC
18392 builtin and then its argument prototype would still apply. */
18393 #ifdef __cplusplus
18394 extern "C"
18395 #endif
18396 char shl_load ();
18398 main ()
18400 return shl_load ();
18402 return 0;
18404 _ACEOF
18405 rm -f conftest.$ac_objext conftest$ac_exeext
18406 if { (ac_try="$ac_link"
18407 case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18410 esac
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_link") 2>conftest.er1
18413 ac_status=$?
18414 grep -v '^ *+' conftest.er1 >conftest.err
18415 rm -f conftest.er1
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest$ac_exeext'
18430 { (case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_lib_dld_shl_load=yes
18440 else
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_cv_lib_dld_shl_load=no
18447 rm -f core conftest.err conftest.$ac_objext \
18448 conftest$ac_exeext conftest.$ac_ext
18449 LIBS=$ac_check_lib_save_LIBS
18451 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18452 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18453 if test $ac_cv_lib_dld_shl_load = yes; then
18454 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18455 else
18456 { echo "$as_me:$LINENO: checking for dlopen" >&5
18457 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18458 if test "${ac_cv_func_dlopen+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461 cat >conftest.$ac_ext <<_ACEOF
18462 /* confdefs.h. */
18463 _ACEOF
18464 cat confdefs.h >>conftest.$ac_ext
18465 cat >>conftest.$ac_ext <<_ACEOF
18466 /* end confdefs.h. */
18467 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18469 #define dlopen innocuous_dlopen
18471 /* System header to define __stub macros and hopefully few prototypes,
18472 which can conflict with char dlopen (); below.
18473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18474 <limits.h> exists even on freestanding compilers. */
18476 #ifdef __STDC__
18477 # include <limits.h>
18478 #else
18479 # include <assert.h>
18480 #endif
18482 #undef dlopen
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 char dlopen ();
18491 /* The GNU C library defines this for functions which it implements
18492 to always fail with ENOSYS. Some functions are actually named
18493 something starting with __ and the normal name is an alias. */
18494 #if defined __stub_dlopen || defined __stub___dlopen
18495 choke me
18496 #endif
18499 main ()
18501 return dlopen ();
18503 return 0;
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524 esac
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_cv_func_dlopen=yes
18541 else
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_cv_func_dlopen=no
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18551 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18552 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18553 if test $ac_cv_func_dlopen = yes; then
18554 lt_cv_dlopen="dlopen"
18555 else
18556 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18557 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 ac_check_lib_save_LIBS=$LIBS
18562 LIBS="-ldl $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h. */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply. */
18573 #ifdef __cplusplus
18574 extern "C"
18575 #endif
18576 char dlopen ();
18578 main ()
18580 return dlopen ();
18582 return 0;
18584 _ACEOF
18585 rm -f conftest.$ac_objext conftest$ac_exeext
18586 if { (ac_try="$ac_link"
18587 case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_link") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18600 { (case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603 esac
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_try") 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; } &&
18609 { ac_try='test -s conftest$ac_exeext'
18610 { (case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_try") 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_lib_dl_dlopen=yes
18620 else
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_lib_dl_dlopen=no
18627 rm -f core conftest.err conftest.$ac_objext \
18628 conftest$ac_exeext conftest.$ac_ext
18629 LIBS=$ac_check_lib_save_LIBS
18631 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18632 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18633 if test $ac_cv_lib_dl_dlopen = yes; then
18634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18635 else
18636 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18637 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
18638 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641 ac_check_lib_save_LIBS=$LIBS
18642 LIBS="-lsvld $LIBS"
18643 cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h. */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18650 /* Override any GCC internal prototype to avoid an error.
18651 Use char because int might match the return type of a GCC
18652 builtin and then its argument prototype would still apply. */
18653 #ifdef __cplusplus
18654 extern "C"
18655 #endif
18656 char dlopen ();
18658 main ()
18660 return dlopen ();
18662 return 0;
18664 _ACEOF
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669 *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_link") 2>conftest.er1
18673 ac_status=$?
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } &&
18679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680 { (case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685 (eval "$ac_try") 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest$ac_exeext'
18690 { (case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_try") 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 ac_cv_lib_svld_dlopen=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_cv_lib_svld_dlopen=no
18707 rm -f core conftest.err conftest.$ac_objext \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18712 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
18713 if test $ac_cv_lib_svld_dlopen = yes; then
18714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18715 else
18716 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18717 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
18718 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-ldld $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h. */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18733 #ifdef __cplusplus
18734 extern "C"
18735 #endif
18736 char dld_link ();
18738 main ()
18740 return dld_link ();
18742 return 0;
18744 _ACEOF
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750 esac
18751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18752 (eval "$ac_link") 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18766 ac_status=$?
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; } &&
18769 { ac_try='test -s conftest$ac_exeext'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_lib_dld_dld_link=yes
18780 else
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_dld_dld_link=no
18787 rm -f core conftest.err conftest.$ac_objext \
18788 conftest$ac_exeext conftest.$ac_ext
18789 LIBS=$ac_check_lib_save_LIBS
18791 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18792 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18793 if test $ac_cv_lib_dld_dld_link = yes; then
18794 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18813 esac
18815 if test "x$lt_cv_dlopen" != xno; then
18816 enable_dlopen=yes
18817 else
18818 enable_dlopen=no
18821 case $lt_cv_dlopen in
18822 dlopen)
18823 save_CPPFLAGS="$CPPFLAGS"
18824 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18826 save_LDFLAGS="$LDFLAGS"
18827 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18829 save_LIBS="$LIBS"
18830 LIBS="$lt_cv_dlopen_libs $LIBS"
18832 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18833 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18834 if test "${lt_cv_dlopen_self+set}" = set; then
18835 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837 if test "$cross_compiling" = yes; then :
18838 lt_cv_dlopen_self=cross
18839 else
18840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18841 lt_status=$lt_dlunknown
18842 cat > conftest.$ac_ext <<EOF
18843 #line 18843 "configure"
18844 #include "confdefs.h"
18846 #if HAVE_DLFCN_H
18847 #include <dlfcn.h>
18848 #endif
18850 #include <stdio.h>
18852 #ifdef RTLD_GLOBAL
18853 # define LT_DLGLOBAL RTLD_GLOBAL
18854 #else
18855 # ifdef DL_GLOBAL
18856 # define LT_DLGLOBAL DL_GLOBAL
18857 # else
18858 # define LT_DLGLOBAL 0
18859 # endif
18860 #endif
18862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18863 find out it does not work in some platform. */
18864 #ifndef LT_DLLAZY_OR_NOW
18865 # ifdef RTLD_LAZY
18866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18867 # else
18868 # ifdef DL_LAZY
18869 # define LT_DLLAZY_OR_NOW DL_LAZY
18870 # else
18871 # ifdef RTLD_NOW
18872 # define LT_DLLAZY_OR_NOW RTLD_NOW
18873 # else
18874 # ifdef DL_NOW
18875 # define LT_DLLAZY_OR_NOW DL_NOW
18876 # else
18877 # define LT_DLLAZY_OR_NOW 0
18878 # endif
18879 # endif
18880 # endif
18881 # endif
18882 #endif
18884 #ifdef __cplusplus
18885 extern "C" void exit (int);
18886 #endif
18888 void fnord() { int i=42;}
18889 int main ()
18891 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18892 int status = $lt_dlunknown;
18894 if (self)
18896 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18897 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18898 /* dlclose (self); */
18901 exit (status);
18904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18905 (eval $ac_link) 2>&5
18906 ac_status=$?
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18909 (./conftest; exit; ) 2>/dev/null
18910 lt_status=$?
18911 case x$lt_status in
18912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18914 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18915 esac
18916 else :
18917 # compilation failed
18918 lt_cv_dlopen_self=no
18921 rm -fr conftest*
18925 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18926 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18928 if test "x$lt_cv_dlopen_self" = xyes; then
18929 LDFLAGS="$LDFLAGS $link_static_flag"
18930 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18931 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18932 if test "${lt_cv_dlopen_self_static+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934 else
18935 if test "$cross_compiling" = yes; then :
18936 lt_cv_dlopen_self_static=cross
18937 else
18938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18939 lt_status=$lt_dlunknown
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18941 "configure"
18942 #include "confdefs.h"
18944 #if HAVE_DLFCN_H
18945 #include <dlfcn.h>
18946 #endif
18948 #include <stdio.h>
18950 #ifdef RTLD_GLOBAL
18951 # define LT_DLGLOBAL RTLD_GLOBAL
18952 #else
18953 # ifdef DL_GLOBAL
18954 # define LT_DLGLOBAL DL_GLOBAL
18955 # else
18956 # define LT_DLGLOBAL 0
18957 # endif
18958 #endif
18960 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18961 find out it does not work in some platform. */
18962 #ifndef LT_DLLAZY_OR_NOW
18963 # ifdef RTLD_LAZY
18964 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18965 # else
18966 # ifdef DL_LAZY
18967 # define LT_DLLAZY_OR_NOW DL_LAZY
18968 # else
18969 # ifdef RTLD_NOW
18970 # define LT_DLLAZY_OR_NOW RTLD_NOW
18971 # else
18972 # ifdef DL_NOW
18973 # define LT_DLLAZY_OR_NOW DL_NOW
18974 # else
18975 # define LT_DLLAZY_OR_NOW 0
18976 # endif
18977 # endif
18978 # endif
18979 # endif
18980 #endif
18982 #ifdef __cplusplus
18983 extern "C" void exit (int);
18984 #endif
18986 void fnord() { int i=42;}
18987 int main ()
18989 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18990 int status = $lt_dlunknown;
18992 if (self)
18994 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18995 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18996 /* dlclose (self); */
18999 exit (status);
19002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003 (eval $ac_link) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19007 (./conftest; exit; ) 2>/dev/null
19008 lt_status=$?
19009 case x$lt_status in
19010 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19011 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19012 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19013 esac
19014 else :
19015 # compilation failed
19016 lt_cv_dlopen_self_static=no
19019 rm -fr conftest*
19023 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19024 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19027 CPPFLAGS="$save_CPPFLAGS"
19028 LDFLAGS="$save_LDFLAGS"
19029 LIBS="$save_LIBS"
19031 esac
19033 case $lt_cv_dlopen_self in
19034 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19035 *) enable_dlopen_self=unknown ;;
19036 esac
19038 case $lt_cv_dlopen_self_static in
19039 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19040 *) enable_dlopen_self_static=unknown ;;
19041 esac
19045 # The else clause should only fire when bootstrapping the
19046 # libtool distribution, otherwise you forgot to ship ltmain.sh
19047 # with your package, and you will get complaints that there are
19048 # no rules to generate ltmain.sh.
19049 if test -f "$ltmain"; then
19050 # See if we are running on zsh, and set the options which allow our commands through
19051 # without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19055 # Now quote all the things that may contain metacharacters while being
19056 # careful not to overquote the AC_SUBSTed values. We take copies of the
19057 # variables and quote the copies for generation of the libtool script.
19058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19061 deplibs_check_method reload_flag reload_cmds need_locks \
19062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19063 lt_cv_sys_global_symbol_to_c_name_address \
19064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19065 old_postinstall_cmds old_postuninstall_cmds \
19066 compiler_GCJ \
19067 CC_GCJ \
19068 LD_GCJ \
19069 lt_prog_compiler_wl_GCJ \
19070 lt_prog_compiler_pic_GCJ \
19071 lt_prog_compiler_static_GCJ \
19072 lt_prog_compiler_no_builtin_flag_GCJ \
19073 export_dynamic_flag_spec_GCJ \
19074 thread_safe_flag_spec_GCJ \
19075 whole_archive_flag_spec_GCJ \
19076 enable_shared_with_static_runtimes_GCJ \
19077 old_archive_cmds_GCJ \
19078 old_archive_from_new_cmds_GCJ \
19079 predep_objects_GCJ \
19080 postdep_objects_GCJ \
19081 predeps_GCJ \
19082 postdeps_GCJ \
19083 compiler_lib_search_path_GCJ \
19084 archive_cmds_GCJ \
19085 archive_expsym_cmds_GCJ \
19086 postinstall_cmds_GCJ \
19087 postuninstall_cmds_GCJ \
19088 old_archive_from_expsyms_cmds_GCJ \
19089 allow_undefined_flag_GCJ \
19090 no_undefined_flag_GCJ \
19091 export_symbols_cmds_GCJ \
19092 hardcode_libdir_flag_spec_GCJ \
19093 hardcode_libdir_flag_spec_ld_GCJ \
19094 hardcode_libdir_separator_GCJ \
19095 hardcode_automatic_GCJ \
19096 module_cmds_GCJ \
19097 module_expsym_cmds_GCJ \
19098 lt_cv_prog_compiler_c_o_GCJ \
19099 exclude_expsyms_GCJ \
19100 include_expsyms_GCJ; do
19102 case $var in
19103 old_archive_cmds_GCJ | \
19104 old_archive_from_new_cmds_GCJ | \
19105 archive_cmds_GCJ | \
19106 archive_expsym_cmds_GCJ | \
19107 module_cmds_GCJ | \
19108 module_expsym_cmds_GCJ | \
19109 old_archive_from_expsyms_cmds_GCJ | \
19110 export_symbols_cmds_GCJ | \
19111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19112 postinstall_cmds | postuninstall_cmds | \
19113 old_postinstall_cmds | old_postuninstall_cmds | \
19114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19115 # Double-quote double-evaled strings.
19116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19121 esac
19122 done
19124 case $lt_echo in
19125 *'\$0 --fallback-echo"')
19126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19128 esac
19130 cfgfile="$ofile"
19132 cat <<__EOF__ >> "$cfgfile"
19133 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19135 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19137 # Shell to use when invoking shell scripts.
19138 SHELL=$lt_SHELL
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19146 # Whether or not to add -lc for building shared libraries.
19147 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19149 # Whether or not to disallow shared libs when runtime libs are static
19150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19152 # Whether or not to optimize for fast installation.
19153 fast_install=$enable_fast_install
19155 # The host system.
19156 host_alias=$host_alias
19157 host=$host
19159 # An echo program that does not interpret backslashes.
19160 echo=$lt_echo
19162 # The archiver.
19163 AR=$lt_AR
19164 AR_FLAGS=$lt_AR_FLAGS
19166 # A C compiler.
19167 LTCC=$lt_LTCC
19169 # A language-specific compiler.
19170 CC=$lt_compiler_GCJ
19172 # Is the compiler the GNU C compiler?
19173 with_gcc=$GCC_GCJ
19175 # An ERE matcher.
19176 EGREP=$lt_EGREP
19178 # The linker used to build libraries.
19179 LD=$lt_LD_GCJ
19181 # Whether we need hard or soft links.
19182 LN_S=$lt_LN_S
19184 # A BSD-compatible nm program.
19185 NM=$lt_NM
19187 # A symbol stripping program
19188 STRIP="$STRIP"
19190 # Used to examine libraries when file_magic_cmd begins "file"
19191 MAGIC_CMD=$MAGIC_CMD
19193 # Used on cygwin: DLL creation program.
19194 DLLTOOL="$DLLTOOL"
19196 # Used on cygwin: object dumper.
19197 OBJDUMP="$OBJDUMP"
19199 # Used on cygwin: assembler.
19200 AS="$AS"
19202 # The name of the directory that contains temporary libtool files.
19203 objdir=$objdir
19205 # How to create reloadable object files.
19206 reload_flag=$lt_reload_flag
19207 reload_cmds=$lt_reload_cmds
19209 # How to pass a linker flag through the compiler.
19210 wl=$lt_lt_prog_compiler_wl_GCJ
19212 # Object file suffix (normally "o").
19213 objext="$ac_objext"
19215 # Old archive suffix (normally "a").
19216 libext="$libext"
19218 # Shared library suffix (normally ".so").
19219 shrext='$shrext'
19221 # Executable file suffix (normally "").
19222 exeext="$exeext"
19224 # Additional compiler flags for building library objects.
19225 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19226 pic_mode=$pic_mode
19228 # What is the maximum length of a command?
19229 max_cmd_len=$lt_cv_sys_max_cmd_len
19231 # Does compiler simultaneously support -c and -o options?
19232 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19234 # Must we lock files when doing compilation ?
19235 need_locks=$lt_need_locks
19237 # Do we need the lib prefix for modules?
19238 need_lib_prefix=$need_lib_prefix
19240 # Do we need a version for libraries?
19241 need_version=$need_version
19243 # Whether dlopen is supported.
19244 dlopen_support=$enable_dlopen
19246 # Whether dlopen of programs is supported.
19247 dlopen_self=$enable_dlopen_self
19249 # Whether dlopen of statically linked programs is supported.
19250 dlopen_self_static=$enable_dlopen_self_static
19252 # Compiler flag to prevent dynamic linking.
19253 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19255 # Compiler flag to turn off builtin functions.
19256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19258 # Compiler flag to allow reflexive dlopens.
19259 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19261 # Compiler flag to generate shared objects directly from archives.
19262 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19264 # Compiler flag to generate thread-safe objects.
19265 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19267 # Library versioning type.
19268 version_type=$version_type
19270 # Format of library name prefix.
19271 libname_spec=$lt_libname_spec
19273 # List of archive names. First name is the real one, the rest are links.
19274 # The last name is the one that the linker finds with -lNAME.
19275 library_names_spec=$lt_library_names_spec
19277 # The coded name of the library, if different from the real name.
19278 soname_spec=$lt_soname_spec
19280 # Commands used to build and install an old-style archive.
19281 RANLIB=$lt_RANLIB
19282 old_archive_cmds=$lt_old_archive_cmds_GCJ
19283 old_postinstall_cmds=$lt_old_postinstall_cmds
19284 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19286 # Create an old-style archive from a shared archive.
19287 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19289 # Create a temporary old-style archive to link instead of a shared archive.
19290 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19292 # Commands used to build and install a shared archive.
19293 archive_cmds=$lt_archive_cmds_GCJ
19294 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19295 postinstall_cmds=$lt_postinstall_cmds
19296 postuninstall_cmds=$lt_postuninstall_cmds
19298 # Commands used to build a loadable module (assumed same as above if empty)
19299 module_cmds=$lt_module_cmds_GCJ
19300 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19302 # Commands to strip libraries.
19303 old_striplib=$lt_old_striplib
19304 striplib=$lt_striplib
19306 # Dependencies to place before the objects being linked to create a
19307 # shared library.
19308 predep_objects=$lt_predep_objects_GCJ
19310 # Dependencies to place after the objects being linked to create a
19311 # shared library.
19312 postdep_objects=$lt_postdep_objects_GCJ
19314 # Dependencies to place before the objects being linked to create a
19315 # shared library.
19316 predeps=$lt_predeps_GCJ
19318 # Dependencies to place after the objects being linked to create a
19319 # shared library.
19320 postdeps=$lt_postdeps_GCJ
19322 # The library search path used internally by the compiler when linking
19323 # a shared library.
19324 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19326 # Method to check whether dependent libraries are shared objects.
19327 deplibs_check_method=$lt_deplibs_check_method
19329 # Command to use when deplibs_check_method == file_magic.
19330 file_magic_cmd=$lt_file_magic_cmd
19332 # Flag that allows shared libraries with undefined symbols to be built.
19333 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19335 # Flag that forces no undefined symbols.
19336 no_undefined_flag=$lt_no_undefined_flag_GCJ
19338 # Commands used to finish a libtool library installation in a directory.
19339 finish_cmds=$lt_finish_cmds
19341 # Same as above, but a single script fragment to be evaled but not shown.
19342 finish_eval=$lt_finish_eval
19344 # Take the output of nm and produce a listing of raw symbols and C names.
19345 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19347 # Transform the output of nm in a proper C declaration
19348 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19350 # Transform the output of nm in a C name address pair
19351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19353 # This is the shared library runtime path variable.
19354 runpath_var=$runpath_var
19356 # This is the shared library path variable.
19357 shlibpath_var=$shlibpath_var
19359 # Is shlibpath searched before the hard-coded library search path?
19360 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19362 # How to hardcode a shared library path into an executable.
19363 hardcode_action=$hardcode_action_GCJ
19365 # Whether we should hardcode library paths into libraries.
19366 hardcode_into_libs=$hardcode_into_libs
19368 # Flag to hardcode \$libdir into a binary during linking.
19369 # This must work even if \$libdir does not exist.
19370 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19372 # If ld is used when linking, flag to hardcode \$libdir into
19373 # a binary during linking. This must work even if \$libdir does
19374 # not exist.
19375 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19377 # Whether we need a single -rpath flag with a separated argument.
19378 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19380 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19381 # resulting binary.
19382 hardcode_direct=$hardcode_direct_GCJ
19384 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19385 # resulting binary.
19386 hardcode_minus_L=$hardcode_minus_L_GCJ
19388 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19389 # the resulting binary.
19390 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19392 # Set to yes if building a shared library automatically hardcodes DIR into the library
19393 # and all subsequent libraries and executables linked against it.
19394 hardcode_automatic=$hardcode_automatic_GCJ
19396 # Variables whose values should be saved in libtool wrapper scripts and
19397 # restored at relink time.
19398 variables_saved_for_relink="$variables_saved_for_relink"
19400 # Whether libtool must link a program against all its dependency libraries.
19401 link_all_deplibs=$link_all_deplibs_GCJ
19403 # Compile-time system search path for libraries
19404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19406 # Run-time system search path for libraries
19407 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19409 # Fix the shell variable \$srcfile for the compiler.
19410 fix_srcfile_path="$fix_srcfile_path_GCJ"
19412 # Set to yes if exported symbols are required.
19413 always_export_symbols=$always_export_symbols_GCJ
19415 # The commands to list exported symbols.
19416 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19418 # The commands to extract the exported symbol list from a shared archive.
19419 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19421 # Symbols that should not be listed in the preloaded symbols.
19422 exclude_expsyms=$lt_exclude_expsyms_GCJ
19424 # Symbols that must always be exported.
19425 include_expsyms=$lt_include_expsyms_GCJ
19427 # ### END LIBTOOL TAG CONFIG: $tagname
19429 __EOF__
19432 else
19433 # If there is no Makefile yet, we rely on a make rule to execute
19434 # `config.status --recheck' to rerun these tests and create the
19435 # libtool script then.
19436 test -f Makefile && make "$ltmain"
19440 ac_ext=c
19441 ac_cpp='$CPP $CPPFLAGS'
19442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19446 CC="$lt_save_CC"
19448 else
19449 tagname=""
19456 # Source file extension for RC test sources.
19457 ac_ext=rc
19459 # Object file extension for compiled RC test sources.
19460 objext=o
19461 objext_RC=$objext
19463 # Code to be used in simple compile tests
19464 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19466 # Code to be used in simple link tests
19467 lt_simple_link_test_code="$lt_simple_compile_test_code"
19469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19471 # If no C compiler was specified, use CC.
19472 LTCC=${LTCC-"$CC"}
19474 # Allow CC to be a program name with arguments.
19475 compiler=$CC
19478 # Allow CC to be a program name with arguments.
19479 lt_save_CC="$CC"
19480 CC=${RC-"windres"}
19481 compiler=$CC
19482 compiler_RC=$CC
19483 lt_cv_prog_compiler_c_o_RC=yes
19485 # The else clause should only fire when bootstrapping the
19486 # libtool distribution, otherwise you forgot to ship ltmain.sh
19487 # with your package, and you will get complaints that there are
19488 # no rules to generate ltmain.sh.
19489 if test -f "$ltmain"; then
19490 # See if we are running on zsh, and set the options which allow our commands through
19491 # without removal of \ escapes.
19492 if test -n "${ZSH_VERSION+set}" ; then
19493 setopt NO_GLOB_SUBST
19495 # Now quote all the things that may contain metacharacters while being
19496 # careful not to overquote the AC_SUBSTed values. We take copies of the
19497 # variables and quote the copies for generation of the libtool script.
19498 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
19499 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19500 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19501 deplibs_check_method reload_flag reload_cmds need_locks \
19502 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19503 lt_cv_sys_global_symbol_to_c_name_address \
19504 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19505 old_postinstall_cmds old_postuninstall_cmds \
19506 compiler_RC \
19507 CC_RC \
19508 LD_RC \
19509 lt_prog_compiler_wl_RC \
19510 lt_prog_compiler_pic_RC \
19511 lt_prog_compiler_static_RC \
19512 lt_prog_compiler_no_builtin_flag_RC \
19513 export_dynamic_flag_spec_RC \
19514 thread_safe_flag_spec_RC \
19515 whole_archive_flag_spec_RC \
19516 enable_shared_with_static_runtimes_RC \
19517 old_archive_cmds_RC \
19518 old_archive_from_new_cmds_RC \
19519 predep_objects_RC \
19520 postdep_objects_RC \
19521 predeps_RC \
19522 postdeps_RC \
19523 compiler_lib_search_path_RC \
19524 archive_cmds_RC \
19525 archive_expsym_cmds_RC \
19526 postinstall_cmds_RC \
19527 postuninstall_cmds_RC \
19528 old_archive_from_expsyms_cmds_RC \
19529 allow_undefined_flag_RC \
19530 no_undefined_flag_RC \
19531 export_symbols_cmds_RC \
19532 hardcode_libdir_flag_spec_RC \
19533 hardcode_libdir_flag_spec_ld_RC \
19534 hardcode_libdir_separator_RC \
19535 hardcode_automatic_RC \
19536 module_cmds_RC \
19537 module_expsym_cmds_RC \
19538 lt_cv_prog_compiler_c_o_RC \
19539 exclude_expsyms_RC \
19540 include_expsyms_RC; do
19542 case $var in
19543 old_archive_cmds_RC | \
19544 old_archive_from_new_cmds_RC | \
19545 archive_cmds_RC | \
19546 archive_expsym_cmds_RC | \
19547 module_cmds_RC | \
19548 module_expsym_cmds_RC | \
19549 old_archive_from_expsyms_cmds_RC | \
19550 export_symbols_cmds_RC | \
19551 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19552 postinstall_cmds | postuninstall_cmds | \
19553 old_postinstall_cmds | old_postuninstall_cmds | \
19554 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19555 # Double-quote double-evaled strings.
19556 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19561 esac
19562 done
19564 case $lt_echo in
19565 *'\$0 --fallback-echo"')
19566 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19568 esac
19570 cfgfile="$ofile"
19572 cat <<__EOF__ >> "$cfgfile"
19573 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19577 # Shell to use when invoking shell scripts.
19578 SHELL=$lt_SHELL
19580 # Whether or not to build shared libraries.
19581 build_libtool_libs=$enable_shared
19583 # Whether or not to build static libraries.
19584 build_old_libs=$enable_static
19586 # Whether or not to add -lc for building shared libraries.
19587 build_libtool_need_lc=$archive_cmds_need_lc_RC
19589 # Whether or not to disallow shared libs when runtime libs are static
19590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19592 # Whether or not to optimize for fast installation.
19593 fast_install=$enable_fast_install
19595 # The host system.
19596 host_alias=$host_alias
19597 host=$host
19599 # An echo program that does not interpret backslashes.
19600 echo=$lt_echo
19602 # The archiver.
19603 AR=$lt_AR
19604 AR_FLAGS=$lt_AR_FLAGS
19606 # A C compiler.
19607 LTCC=$lt_LTCC
19609 # A language-specific compiler.
19610 CC=$lt_compiler_RC
19612 # Is the compiler the GNU C compiler?
19613 with_gcc=$GCC_RC
19615 # An ERE matcher.
19616 EGREP=$lt_EGREP
19618 # The linker used to build libraries.
19619 LD=$lt_LD_RC
19621 # Whether we need hard or soft links.
19622 LN_S=$lt_LN_S
19624 # A BSD-compatible nm program.
19625 NM=$lt_NM
19627 # A symbol stripping program
19628 STRIP="$STRIP"
19630 # Used to examine libraries when file_magic_cmd begins "file"
19631 MAGIC_CMD=$MAGIC_CMD
19633 # Used on cygwin: DLL creation program.
19634 DLLTOOL="$DLLTOOL"
19636 # Used on cygwin: object dumper.
19637 OBJDUMP="$OBJDUMP"
19639 # Used on cygwin: assembler.
19640 AS="$AS"
19642 # The name of the directory that contains temporary libtool files.
19643 objdir=$objdir
19645 # How to create reloadable object files.
19646 reload_flag=$lt_reload_flag
19647 reload_cmds=$lt_reload_cmds
19649 # How to pass a linker flag through the compiler.
19650 wl=$lt_lt_prog_compiler_wl_RC
19652 # Object file suffix (normally "o").
19653 objext="$ac_objext"
19655 # Old archive suffix (normally "a").
19656 libext="$libext"
19658 # Shared library suffix (normally ".so").
19659 shrext='$shrext'
19661 # Executable file suffix (normally "").
19662 exeext="$exeext"
19664 # Additional compiler flags for building library objects.
19665 pic_flag=$lt_lt_prog_compiler_pic_RC
19666 pic_mode=$pic_mode
19668 # What is the maximum length of a command?
19669 max_cmd_len=$lt_cv_sys_max_cmd_len
19671 # Does compiler simultaneously support -c and -o options?
19672 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19674 # Must we lock files when doing compilation ?
19675 need_locks=$lt_need_locks
19677 # Do we need the lib prefix for modules?
19678 need_lib_prefix=$need_lib_prefix
19680 # Do we need a version for libraries?
19681 need_version=$need_version
19683 # Whether dlopen is supported.
19684 dlopen_support=$enable_dlopen
19686 # Whether dlopen of programs is supported.
19687 dlopen_self=$enable_dlopen_self
19689 # Whether dlopen of statically linked programs is supported.
19690 dlopen_self_static=$enable_dlopen_self_static
19692 # Compiler flag to prevent dynamic linking.
19693 link_static_flag=$lt_lt_prog_compiler_static_RC
19695 # Compiler flag to turn off builtin functions.
19696 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19698 # Compiler flag to allow reflexive dlopens.
19699 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19701 # Compiler flag to generate shared objects directly from archives.
19702 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19704 # Compiler flag to generate thread-safe objects.
19705 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19707 # Library versioning type.
19708 version_type=$version_type
19710 # Format of library name prefix.
19711 libname_spec=$lt_libname_spec
19713 # List of archive names. First name is the real one, the rest are links.
19714 # The last name is the one that the linker finds with -lNAME.
19715 library_names_spec=$lt_library_names_spec
19717 # The coded name of the library, if different from the real name.
19718 soname_spec=$lt_soname_spec
19720 # Commands used to build and install an old-style archive.
19721 RANLIB=$lt_RANLIB
19722 old_archive_cmds=$lt_old_archive_cmds_RC
19723 old_postinstall_cmds=$lt_old_postinstall_cmds
19724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19726 # Create an old-style archive from a shared archive.
19727 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19729 # Create a temporary old-style archive to link instead of a shared archive.
19730 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19732 # Commands used to build and install a shared archive.
19733 archive_cmds=$lt_archive_cmds_RC
19734 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19735 postinstall_cmds=$lt_postinstall_cmds
19736 postuninstall_cmds=$lt_postuninstall_cmds
19738 # Commands used to build a loadable module (assumed same as above if empty)
19739 module_cmds=$lt_module_cmds_RC
19740 module_expsym_cmds=$lt_module_expsym_cmds_RC
19742 # Commands to strip libraries.
19743 old_striplib=$lt_old_striplib
19744 striplib=$lt_striplib
19746 # Dependencies to place before the objects being linked to create a
19747 # shared library.
19748 predep_objects=$lt_predep_objects_RC
19750 # Dependencies to place after the objects being linked to create a
19751 # shared library.
19752 postdep_objects=$lt_postdep_objects_RC
19754 # Dependencies to place before the objects being linked to create a
19755 # shared library.
19756 predeps=$lt_predeps_RC
19758 # Dependencies to place after the objects being linked to create a
19759 # shared library.
19760 postdeps=$lt_postdeps_RC
19762 # The library search path used internally by the compiler when linking
19763 # a shared library.
19764 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19766 # Method to check whether dependent libraries are shared objects.
19767 deplibs_check_method=$lt_deplibs_check_method
19769 # Command to use when deplibs_check_method == file_magic.
19770 file_magic_cmd=$lt_file_magic_cmd
19772 # Flag that allows shared libraries with undefined symbols to be built.
19773 allow_undefined_flag=$lt_allow_undefined_flag_RC
19775 # Flag that forces no undefined symbols.
19776 no_undefined_flag=$lt_no_undefined_flag_RC
19778 # Commands used to finish a libtool library installation in a directory.
19779 finish_cmds=$lt_finish_cmds
19781 # Same as above, but a single script fragment to be evaled but not shown.
19782 finish_eval=$lt_finish_eval
19784 # Take the output of nm and produce a listing of raw symbols and C names.
19785 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19787 # Transform the output of nm in a proper C declaration
19788 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19790 # Transform the output of nm in a C name address pair
19791 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19793 # This is the shared library runtime path variable.
19794 runpath_var=$runpath_var
19796 # This is the shared library path variable.
19797 shlibpath_var=$shlibpath_var
19799 # Is shlibpath searched before the hard-coded library search path?
19800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19802 # How to hardcode a shared library path into an executable.
19803 hardcode_action=$hardcode_action_RC
19805 # Whether we should hardcode library paths into libraries.
19806 hardcode_into_libs=$hardcode_into_libs
19808 # Flag to hardcode \$libdir into a binary during linking.
19809 # This must work even if \$libdir does not exist.
19810 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19812 # If ld is used when linking, flag to hardcode \$libdir into
19813 # a binary during linking. This must work even if \$libdir does
19814 # not exist.
19815 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19817 # Whether we need a single -rpath flag with a separated argument.
19818 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19820 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19821 # resulting binary.
19822 hardcode_direct=$hardcode_direct_RC
19824 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19825 # resulting binary.
19826 hardcode_minus_L=$hardcode_minus_L_RC
19828 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19829 # the resulting binary.
19830 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19832 # Set to yes if building a shared library automatically hardcodes DIR into the library
19833 # and all subsequent libraries and executables linked against it.
19834 hardcode_automatic=$hardcode_automatic_RC
19836 # Variables whose values should be saved in libtool wrapper scripts and
19837 # restored at relink time.
19838 variables_saved_for_relink="$variables_saved_for_relink"
19840 # Whether libtool must link a program against all its dependency libraries.
19841 link_all_deplibs=$link_all_deplibs_RC
19843 # Compile-time system search path for libraries
19844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19846 # Run-time system search path for libraries
19847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19849 # Fix the shell variable \$srcfile for the compiler.
19850 fix_srcfile_path="$fix_srcfile_path_RC"
19852 # Set to yes if exported symbols are required.
19853 always_export_symbols=$always_export_symbols_RC
19855 # The commands to list exported symbols.
19856 export_symbols_cmds=$lt_export_symbols_cmds_RC
19858 # The commands to extract the exported symbol list from a shared archive.
19859 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19861 # Symbols that should not be listed in the preloaded symbols.
19862 exclude_expsyms=$lt_exclude_expsyms_RC
19864 # Symbols that must always be exported.
19865 include_expsyms=$lt_include_expsyms_RC
19867 # ### END LIBTOOL TAG CONFIG: $tagname
19869 __EOF__
19872 else
19873 # If there is no Makefile yet, we rely on a make rule to execute
19874 # `config.status --recheck' to rerun these tests and create the
19875 # libtool script then.
19876 test -f Makefile && make "$ltmain"
19880 ac_ext=c
19881 ac_cpp='$CPP $CPPFLAGS'
19882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19886 CC="$lt_save_CC"
19891 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19892 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19893 { (exit 1); exit 1; }; }
19895 esac
19897 # Append the new tag name to the list of available tags.
19898 if test -n "$tagname" ; then
19899 available_tags="$available_tags $tagname"
19902 done
19903 IFS="$lt_save_ifs"
19905 # Now substitute the updated list of available tags.
19906 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19907 mv "${ofile}T" "$ofile"
19908 chmod +x "$ofile"
19909 else
19910 rm -f "${ofile}T"
19911 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19912 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19913 { (exit 1); exit 1; }; }
19919 # This can be used to rebuild libtool when needed
19920 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19922 # Always use our own libtool.
19923 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19925 # Prevent multiple expansion
19946 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19947 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19948 if test "${ac_cv_c_const+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951 cat >conftest.$ac_ext <<_ACEOF
19952 /* confdefs.h. */
19953 _ACEOF
19954 cat confdefs.h >>conftest.$ac_ext
19955 cat >>conftest.$ac_ext <<_ACEOF
19956 /* end confdefs.h. */
19959 main ()
19961 /* FIXME: Include the comments suggested by Paul. */
19962 #ifndef __cplusplus
19963 /* Ultrix mips cc rejects this. */
19964 typedef int charset[2];
19965 const charset x;
19966 /* SunOS 4.1.1 cc rejects this. */
19967 char const *const *ccp;
19968 char **p;
19969 /* NEC SVR4.0.2 mips cc rejects this. */
19970 struct point {int x, y;};
19971 static struct point const zero = {0,0};
19972 /* AIX XL C 1.02.0.0 rejects this.
19973 It does not let you subtract one const X* pointer from another in
19974 an arm of an if-expression whose if-part is not a constant
19975 expression */
19976 const char *g = "string";
19977 ccp = &g + (g ? g-g : 0);
19978 /* HPUX 7.0 cc rejects these. */
19979 ++ccp;
19980 p = (char**) ccp;
19981 ccp = (char const *const *) p;
19982 { /* SCO 3.2v4 cc rejects this. */
19983 char *t;
19984 char const *s = 0 ? (char *) 0 : (char const *) 0;
19986 *t++ = 0;
19987 if (s) return 0;
19989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19990 int x[] = {25, 17};
19991 const int *foo = &x[0];
19992 ++foo;
19994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19995 typedef const int *iptr;
19996 iptr p = 0;
19997 ++p;
19999 { /* AIX XL C 1.02.0.0 rejects this saying
20000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20001 struct s { int j; const int *ap[3]; };
20002 struct s *b; b->j = 5;
20004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20005 const int foo = 10;
20006 if (!foo) return 0;
20008 return !x[0] && !zero.x;
20009 #endif
20012 return 0;
20014 _ACEOF
20015 rm -f conftest.$ac_objext
20016 if { (ac_try="$ac_compile"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_compile") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
20029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20030 { (case "(($ac_try" in
20031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032 *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035 (eval "$ac_try") 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; } &&
20039 { ac_try='test -s conftest.$ac_objext'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 ac_cv_c_const=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_c_const=no
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20060 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20061 if test $ac_cv_c_const = no; then
20063 cat >>confdefs.h <<\_ACEOF
20064 #define const
20065 _ACEOF
20074 ac_header_dirent=no
20075 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20076 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20077 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20078 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082 cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h. */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20088 #include <sys/types.h>
20089 #include <$ac_hdr>
20092 main ()
20094 if ((DIR *) 0)
20095 return 0;
20097 return 0;
20099 _ACEOF
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_compile") 2>conftest.er1
20108 ac_status=$?
20109 grep -v '^ *+' conftest.er1 >conftest.err
20110 rm -f conftest.er1
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } &&
20114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; } &&
20124 { ac_try='test -s conftest.$ac_objext'
20125 { (case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128 esac
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_try") 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 eval "$as_ac_Header=yes"
20135 else
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 eval "$as_ac_Header=no"
20142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20144 ac_res=`eval echo '${'$as_ac_Header'}'`
20145 { echo "$as_me:$LINENO: result: $ac_res" >&5
20146 echo "${ECHO_T}$ac_res" >&6; }
20147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20148 cat >>confdefs.h <<_ACEOF
20149 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20150 _ACEOF
20152 ac_header_dirent=$ac_hdr; break
20155 done
20156 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20157 if test $ac_header_dirent = dirent.h; then
20158 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20159 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20160 if test "${ac_cv_search_opendir+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163 ac_func_search_save_LIBS=$LIBS
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h. */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char opendir ();
20179 main ()
20181 return opendir ();
20183 return 0;
20185 _ACEOF
20186 for ac_lib in '' dir; do
20187 if test -z "$ac_lib"; then
20188 ac_res="none required"
20189 else
20190 ac_res=-l$ac_lib
20191 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20193 rm -f conftest.$ac_objext conftest$ac_exeext
20194 if { (ac_try="$ac_link"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_link") 2>conftest.er1
20201 ac_status=$?
20202 grep -v '^ *+' conftest.er1 >conftest.err
20203 rm -f conftest.er1
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } &&
20207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20208 { (case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_try") 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest$ac_exeext'
20218 { (case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221 esac
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_try") 2>&5
20224 ac_status=$?
20225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20227 ac_cv_search_opendir=$ac_res
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext
20237 if test "${ac_cv_search_opendir+set}" = set; then
20238 break
20240 done
20241 if test "${ac_cv_search_opendir+set}" = set; then
20243 else
20244 ac_cv_search_opendir=no
20246 rm conftest.$ac_ext
20247 LIBS=$ac_func_search_save_LIBS
20249 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20250 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20251 ac_res=$ac_cv_search_opendir
20252 if test "$ac_res" != no; then
20253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20257 else
20258 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20260 if test "${ac_cv_search_opendir+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263 ac_func_search_save_LIBS=$LIBS
20264 cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h. */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20274 #ifdef __cplusplus
20275 extern "C"
20276 #endif
20277 char opendir ();
20279 main ()
20281 return opendir ();
20283 return 0;
20285 _ACEOF
20286 for ac_lib in '' x; do
20287 if test -z "$ac_lib"; then
20288 ac_res="none required"
20289 else
20290 ac_res=-l$ac_lib
20291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20298 esac
20299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20308 { (case "(($ac_try" in
20309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310 *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313 (eval "$ac_try") 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest$ac_exeext'
20318 { (case "(($ac_try" in
20319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320 *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323 (eval "$ac_try") 2>&5
20324 ac_status=$?
20325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20326 (exit $ac_status); }; }; then
20327 ac_cv_search_opendir=$ac_res
20328 else
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20335 rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext
20337 if test "${ac_cv_search_opendir+set}" = set; then
20338 break
20340 done
20341 if test "${ac_cv_search_opendir+set}" = set; then
20343 else
20344 ac_cv_search_opendir=no
20346 rm conftest.$ac_ext
20347 LIBS=$ac_func_search_save_LIBS
20349 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20350 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20351 ac_res=$ac_cv_search_opendir
20352 if test "$ac_res" != no; then
20353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20359 # Check whether --enable-ltdl-install was given.
20360 if test "${enable_ltdl_install+set}" = set; then
20361 enableval=$enable_ltdl_install;
20365 if test x"${enable_ltdl_install-no}" != xno; then
20366 cat >>confdefs.h <<\_ACEOF
20367 #define INSTALL_LTDL 1
20368 _ACEOF
20371 if test x"${enable_ltdl_convenience-no}" != xno; then
20372 cat >>confdefs.h <<\_ACEOF
20373 #define CONVENIENCE_LTDL 1
20374 _ACEOF
20379 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20380 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20381 if test "${libltdl_cv_shlibext+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20385 module=yes
20386 eval libltdl_cv_shlibext=$shrext
20389 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20390 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20391 if test -n "$libltdl_cv_shlibext"; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20395 _ACEOF
20400 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20401 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20402 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20403 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 else
20405 libltdl_cv_shlibpath_var="$shlibpath_var"
20407 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20408 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20409 if test -n "$libltdl_cv_shlibpath_var"; then
20411 cat >>confdefs.h <<_ACEOF
20412 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20413 _ACEOF
20418 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20419 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20420 if test "${libltdl_cv_sys_search_path+set}" = set; then
20421 echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20425 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20426 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20427 if test -n "$libltdl_cv_sys_search_path"; then
20428 sys_search_path=
20429 for dir in $libltdl_cv_sys_search_path; do
20430 if test -z "$sys_search_path"; then
20431 sys_search_path="$dir"
20432 else
20433 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20435 done
20437 cat >>confdefs.h <<_ACEOF
20438 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20439 _ACEOF
20443 { echo "$as_me:$LINENO: checking for objdir" >&5
20444 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20445 if test "${libltdl_cv_objdir+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447 else
20448 libltdl_cv_objdir="$objdir"
20449 if test -n "$objdir"; then
20451 else
20452 rm -f .libs 2>/dev/null
20453 mkdir .libs 2>/dev/null
20454 if test -d .libs; then
20455 libltdl_cv_objdir=.libs
20456 else
20457 # MS-DOS does not allow filenames that begin with a dot.
20458 libltdl_cv_objdir=_libs
20460 rmdir .libs 2>/dev/null
20464 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20465 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20467 cat >>confdefs.h <<_ACEOF
20468 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20469 _ACEOF
20473 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20474 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20475 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477 else
20478 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20479 libltdl_cv_preloaded_symbols=yes
20480 else
20481 libltdl_cv_preloaded_symbols=no
20485 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20486 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20487 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_PRELOADED_SYMBOLS 1
20491 _ACEOF
20495 LIBADD_DL=
20497 ac_ext=c
20498 ac_cpp='$CPP $CPPFLAGS'
20499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20504 { echo "$as_me:$LINENO: checking for shl_load" >&5
20505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20506 if test "${ac_cv_func_shl_load+set}" = set; then
20507 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 else
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h. */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20515 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20517 #define shl_load innocuous_shl_load
20519 /* System header to define __stub macros and hopefully few prototypes,
20520 which can conflict with char shl_load (); below.
20521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20522 <limits.h> exists even on freestanding compilers. */
20524 #ifdef __STDC__
20525 # include <limits.h>
20526 #else
20527 # include <assert.h>
20528 #endif
20530 #undef shl_load
20532 /* Override any GCC internal prototype to avoid an error.
20533 Use char because int might match the return type of a GCC
20534 builtin and then its argument prototype would still apply. */
20535 #ifdef __cplusplus
20536 extern "C"
20537 #endif
20538 char shl_load ();
20539 /* The GNU C library defines this for functions which it implements
20540 to always fail with ENOSYS. Some functions are actually named
20541 something starting with __ and the normal name is an alias. */
20542 #if defined __stub_shl_load || defined __stub___shl_load
20543 choke me
20544 #endif
20547 main ()
20549 return shl_load ();
20551 return 0;
20553 _ACEOF
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20559 esac
20560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20562 ac_status=$?
20563 grep -v '^ *+' conftest.er1 >conftest.err
20564 rm -f conftest.er1
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); } &&
20568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20569 { (case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572 esac
20573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20574 (eval "$ac_try") 2>&5
20575 ac_status=$?
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_try") 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_func_shl_load=yes
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_func_shl_load=no
20596 rm -f core conftest.err conftest.$ac_objext \
20597 conftest$ac_exeext conftest.$ac_ext
20599 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20601 if test $ac_cv_func_shl_load = yes; then
20603 cat >>confdefs.h <<\_ACEOF
20604 #define HAVE_SHL_LOAD 1
20605 _ACEOF
20607 else
20608 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20609 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20610 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-ldld $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 char shl_load ();
20630 main ()
20632 return shl_load ();
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest$ac_exeext'
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_lib_dld_shl_load=yes
20672 else
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_cv_lib_dld_shl_load=no
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20683 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20684 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20685 if test $ac_cv_lib_dld_shl_load = yes; then
20687 cat >>confdefs.h <<\_ACEOF
20688 #define HAVE_SHL_LOAD 1
20689 _ACEOF
20691 LIBADD_DL="$LIBADD_DL -ldld"
20692 else
20693 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20694 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20695 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20696 echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698 ac_check_lib_save_LIBS=$LIBS
20699 LIBS="-ldl $LIBS"
20700 cat >conftest.$ac_ext <<_ACEOF
20701 /* confdefs.h. */
20702 _ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20707 /* Override any GCC internal prototype to avoid an error.
20708 Use char because int might match the return type of a GCC
20709 builtin and then its argument prototype would still apply. */
20710 #ifdef __cplusplus
20711 extern "C"
20712 #endif
20713 char dlopen ();
20715 main ()
20717 return dlopen ();
20719 return 0;
20721 _ACEOF
20722 rm -f conftest.$ac_objext conftest$ac_exeext
20723 if { (ac_try="$ac_link"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20727 esac
20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_link") 2>conftest.er1
20730 ac_status=$?
20731 grep -v '^ *+' conftest.er1 >conftest.err
20732 rm -f conftest.er1
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20735 (exit $ac_status); } &&
20736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20737 { (case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_try") 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest$ac_exeext'
20747 { (case "(($ac_try" in
20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20749 *) ac_try_echo=$ac_try;;
20750 esac
20751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20752 (eval "$ac_try") 2>&5
20753 ac_status=$?
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); }; }; then
20756 ac_cv_lib_dl_dlopen=yes
20757 else
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20761 ac_cv_lib_dl_dlopen=no
20764 rm -f core conftest.err conftest.$ac_objext \
20765 conftest$ac_exeext conftest.$ac_ext
20766 LIBS=$ac_check_lib_save_LIBS
20768 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20770 if test $ac_cv_lib_dl_dlopen = yes; then
20772 cat >>confdefs.h <<\_ACEOF
20773 #define HAVE_LIBDL 1
20774 _ACEOF
20776 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20777 else
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #if HAVE_DLFCN_H
20785 # include <dlfcn.h>
20786 #endif
20789 main ()
20791 dlopen(0, 0);
20793 return 0;
20795 _ACEOF
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_link") 2>conftest.er1
20804 ac_status=$?
20805 grep -v '^ *+' conftest.er1 >conftest.err
20806 rm -f conftest.er1
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } &&
20810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20817 ac_status=$?
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; } &&
20820 { ac_try='test -s conftest$ac_exeext'
20821 { (case "(($ac_try" in
20822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823 *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826 (eval "$ac_try") 2>&5
20827 ac_status=$?
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; }; then
20831 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_LIBDL 1
20833 _ACEOF
20834 libltdl_cv_func_dlopen="yes"
20835 else
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20840 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 ac_check_lib_save_LIBS=$LIBS
20845 LIBS="-lsvld $LIBS"
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h. */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h. */
20853 /* Override any GCC internal prototype to avoid an error.
20854 Use char because int might match the return type of a GCC
20855 builtin and then its argument prototype would still apply. */
20856 #ifdef __cplusplus
20857 extern "C"
20858 #endif
20859 char dlopen ();
20861 main ()
20863 return dlopen ();
20865 return 0;
20867 _ACEOF
20868 rm -f conftest.$ac_objext conftest$ac_exeext
20869 if { (ac_try="$ac_link"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_link") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20883 { (case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_try") 2>&5
20889 ac_status=$?
20890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); }; } &&
20892 { ac_try='test -s conftest$ac_exeext'
20893 { (case "(($ac_try" in
20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895 *) ac_try_echo=$ac_try;;
20896 esac
20897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20898 (eval "$ac_try") 2>&5
20899 ac_status=$?
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); }; }; then
20902 ac_cv_lib_svld_dlopen=yes
20903 else
20904 echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_svld_dlopen=no
20910 rm -f core conftest.err conftest.$ac_objext \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20915 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20916 if test $ac_cv_lib_svld_dlopen = yes; then
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_LIBDL 1
20920 _ACEOF
20922 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20923 else
20924 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20925 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20926 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20927 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929 ac_check_lib_save_LIBS=$LIBS
20930 LIBS="-ldld $LIBS"
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20938 /* Override any GCC internal prototype to avoid an error.
20939 Use char because int might match the return type of a GCC
20940 builtin and then its argument prototype would still apply. */
20941 #ifdef __cplusplus
20942 extern "C"
20943 #endif
20944 char dld_link ();
20946 main ()
20948 return dld_link ();
20950 return 0;
20952 _ACEOF
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (ac_try="$ac_link"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_link") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } &&
20967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20968 { (case "(($ac_try" in
20969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970 *) ac_try_echo=$ac_try;;
20971 esac
20972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20973 (eval "$ac_try") 2>&5
20974 ac_status=$?
20975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); }; } &&
20977 { ac_try='test -s conftest$ac_exeext'
20978 { (case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981 esac
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_try") 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_cv_lib_dld_dld_link=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_cv_lib_dld_dld_link=no
20995 rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_lib_save_LIBS
20999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21001 if test $ac_cv_lib_dld_dld_link = yes; then
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_DLD 1
21005 _ACEOF
21007 LIBADD_DL="$LIBADD_DL -ldld"
21008 else
21009 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
21010 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
21011 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21013 else
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
21021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21022 #define _dyld_func_lookup innocuous__dyld_func_lookup
21024 /* System header to define __stub macros and hopefully few prototypes,
21025 which can conflict with char _dyld_func_lookup (); below.
21026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21027 <limits.h> exists even on freestanding compilers. */
21029 #ifdef __STDC__
21030 # include <limits.h>
21031 #else
21032 # include <assert.h>
21033 #endif
21035 #undef _dyld_func_lookup
21037 /* Override any GCC internal prototype to avoid an error.
21038 Use char because int might match the return type of a GCC
21039 builtin and then its argument prototype would still apply. */
21040 #ifdef __cplusplus
21041 extern "C"
21042 #endif
21043 char _dyld_func_lookup ();
21044 /* The GNU C library defines this for functions which it implements
21045 to always fail with ENOSYS. Some functions are actually named
21046 something starting with __ and the normal name is an alias. */
21047 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
21048 choke me
21049 #endif
21052 main ()
21054 return _dyld_func_lookup ();
21056 return 0;
21058 _ACEOF
21059 rm -f conftest.$ac_objext conftest$ac_exeext
21060 if { (ac_try="$ac_link"
21061 case "(($ac_try" in
21062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21063 *) ac_try_echo=$ac_try;;
21064 esac
21065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21066 (eval "$ac_link") 2>conftest.er1
21067 ac_status=$?
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21074 { (case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_try") 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (case "(($ac_try" in
21085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086 *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089 (eval "$ac_try") 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 ac_cv_func__dyld_func_lookup=yes
21094 else
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_cv_func__dyld_func_lookup=no
21101 rm -f core conftest.err conftest.$ac_objext \
21102 conftest$ac_exeext conftest.$ac_ext
21104 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
21105 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
21106 if test $ac_cv_func__dyld_func_lookup = yes; then
21108 cat >>confdefs.h <<\_ACEOF
21109 #define HAVE_DYLD 1
21110 _ACEOF
21123 rm -f core conftest.err conftest.$ac_objext \
21124 conftest$ac_exeext conftest.$ac_ext
21135 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
21136 then
21137 lt_save_LIBS="$LIBS"
21138 LIBS="$LIBS $LIBADD_DL"
21140 for ac_func in dlerror
21142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 else
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h. */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21156 #define $ac_func innocuous_$ac_func
21158 /* System header to define __stub macros and hopefully few prototypes,
21159 which can conflict with char $ac_func (); below.
21160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21161 <limits.h> exists even on freestanding compilers. */
21163 #ifdef __STDC__
21164 # include <limits.h>
21165 #else
21166 # include <assert.h>
21167 #endif
21169 #undef $ac_func
21171 /* Override any GCC internal prototype to avoid an error.
21172 Use char because int might match the return type of a GCC
21173 builtin and then its argument prototype would still apply. */
21174 #ifdef __cplusplus
21175 extern "C"
21176 #endif
21177 char $ac_func ();
21178 /* The GNU C library defines this for functions which it implements
21179 to always fail with ENOSYS. Some functions are actually named
21180 something starting with __ and the normal name is an alias. */
21181 #if defined __stub_$ac_func || defined __stub___$ac_func
21182 choke me
21183 #endif
21186 main ()
21188 return $ac_func ();
21190 return 0;
21192 _ACEOF
21193 rm -f conftest.$ac_objext conftest$ac_exeext
21194 if { (ac_try="$ac_link"
21195 case "(($ac_try" in
21196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197 *) ac_try_echo=$ac_try;;
21198 esac
21199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200 (eval "$ac_link") 2>conftest.er1
21201 ac_status=$?
21202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
21207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21208 { (case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_try") 2>&5
21214 ac_status=$?
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest$ac_exeext'
21218 { (case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_try") 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21227 eval "$as_ac_var=yes"
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 eval "$as_ac_var=no"
21235 rm -f core conftest.err conftest.$ac_objext \
21236 conftest$ac_exeext conftest.$ac_ext
21238 ac_res=`eval echo '${'$as_ac_var'}'`
21239 { echo "$as_me:$LINENO: result: $ac_res" >&5
21240 echo "${ECHO_T}$ac_res" >&6; }
21241 if test `eval echo '${'$as_ac_var'}'` = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21244 _ACEOF
21247 done
21249 LIBS="$lt_save_LIBS"
21251 ac_ext=c
21252 ac_cpp='$CPP $CPPFLAGS'
21253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21259 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
21260 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
21261 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
21262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 else
21264 ac_cv_sys_symbol_underscore=no
21265 cat > conftest.$ac_ext <<EOF
21266 void nm_test_func(){}
21267 int main(){nm_test_func;return 0;}
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>&5
21271 ac_status=$?
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; then
21274 # Now try to grab the symbols.
21275 ac_nlist=conftest.nm
21276 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
21277 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21278 ac_status=$?
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } && test -s "$ac_nlist"; then
21281 # See whether the symbols have a leading underscore.
21282 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21283 ac_cv_sys_symbol_underscore=yes
21284 else
21285 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21287 else
21288 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21291 else
21292 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21294 else
21295 echo "configure: failed program was:" >&5
21296 cat conftest.c >&5
21298 rm -rf conftest*
21301 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
21302 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
21305 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
21306 if test x"$libltdl_cv_func_dlopen" = xyes ||
21307 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21308 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
21309 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
21310 if test "${libltdl_cv_need_uscore+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313 libltdl_cv_need_uscore=unknown
21314 save_LIBS="$LIBS"
21315 LIBS="$LIBS $LIBADD_DL"
21316 if test "$cross_compiling" = yes; then :
21317 libltdl_cv_need_uscore=cross
21318 else
21319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21320 lt_status=$lt_dlunknown
21321 cat > conftest.$ac_ext <<EOF
21322 #line 21322 "configure"
21323 #include "confdefs.h"
21325 #if HAVE_DLFCN_H
21326 #include <dlfcn.h>
21327 #endif
21329 #include <stdio.h>
21331 #ifdef RTLD_GLOBAL
21332 # define LT_DLGLOBAL RTLD_GLOBAL
21333 #else
21334 # ifdef DL_GLOBAL
21335 # define LT_DLGLOBAL DL_GLOBAL
21336 # else
21337 # define LT_DLGLOBAL 0
21338 # endif
21339 #endif
21341 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21342 find out it does not work in some platform. */
21343 #ifndef LT_DLLAZY_OR_NOW
21344 # ifdef RTLD_LAZY
21345 # define LT_DLLAZY_OR_NOW RTLD_LAZY
21346 # else
21347 # ifdef DL_LAZY
21348 # define LT_DLLAZY_OR_NOW DL_LAZY
21349 # else
21350 # ifdef RTLD_NOW
21351 # define LT_DLLAZY_OR_NOW RTLD_NOW
21352 # else
21353 # ifdef DL_NOW
21354 # define LT_DLLAZY_OR_NOW DL_NOW
21355 # else
21356 # define LT_DLLAZY_OR_NOW 0
21357 # endif
21358 # endif
21359 # endif
21360 # endif
21361 #endif
21363 #ifdef __cplusplus
21364 extern "C" void exit (int);
21365 #endif
21367 void fnord() { int i=42;}
21368 int main ()
21370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21371 int status = $lt_dlunknown;
21373 if (self)
21375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21377 /* dlclose (self); */
21380 exit (status);
21383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21384 (eval $ac_link) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21388 (./conftest; exit; ) 2>/dev/null
21389 lt_status=$?
21390 case x$lt_status in
21391 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21392 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21393 x$lt_unknown|x*) ;;
21394 esac
21395 else :
21396 # compilation failed
21400 rm -fr conftest*
21402 LIBS="$save_LIBS"
21405 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
21406 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
21410 if test x"$libltdl_cv_need_uscore" = xyes; then
21412 cat >>confdefs.h <<\_ACEOF
21413 #define NEED_USCORE 1
21414 _ACEOF
21419 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
21420 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
21421 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 # PORTME does your system automatically load deplibs for dlopen?
21425 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21426 # For now, we just catch OSes we know something about -- in the
21427 # future, we'll try test this programmatically.
21428 libltdl_cv_sys_dlopen_deplibs=unknown
21429 case "$host_os" in
21430 aix3*|aix4.1.*|aix4.2.*)
21431 # Unknown whether this is true for these versions of AIX, but
21432 # we want this `case' here to explicitly catch those versions.
21433 libltdl_cv_sys_dlopen_deplibs=unknown
21435 aix[45]*)
21436 libltdl_cv_sys_dlopen_deplibs=yes
21438 darwin*)
21439 # Assuming the user has installed a libdl from somewhere, this is true
21440 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21441 libltdl_cv_sys_dlopen_deplibs=yes
21443 kfreebsd*-gnu)
21444 libltdl_cv_sys_dlopen_deplibs=yes
21446 gnu*)
21447 libltdl_cv_sys_dlopen_deplibs=yes
21449 hpux10*|hpux11*)
21450 libltdl_cv_sys_dlopen_deplibs=yes
21452 irix[12345]*|irix6.[01]*)
21453 # Catch all versions of IRIX before 6.2, and indicate that we don't
21454 # know how it worked for any of those versions.
21455 libltdl_cv_sys_dlopen_deplibs=unknown
21457 irix*)
21458 # The case above catches anything before 6.2, and it's known that
21459 # at 6.2 and later dlopen does load deplibs.
21460 libltdl_cv_sys_dlopen_deplibs=yes
21462 linux*)
21463 libltdl_cv_sys_dlopen_deplibs=yes
21465 netbsd*)
21466 libltdl_cv_sys_dlopen_deplibs=yes
21468 openbsd*)
21469 libltdl_cv_sys_dlopen_deplibs=yes
21471 osf[1234]*)
21472 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21473 # it did *not* use an RPATH in a shared library to find objects the
21474 # library depends on, so we explictly say `no'.
21475 libltdl_cv_sys_dlopen_deplibs=no
21477 osf5.0|osf5.0a|osf5.1)
21478 # dlopen *does* load deplibs and with the right loader patch applied
21479 # it even uses RPATH in a shared library to search for shared objects
21480 # that the library depends on, but there's no easy way to know if that
21481 # patch is installed. Since this is the case, all we can really
21482 # say is unknown -- it depends on the patch being installed. If
21483 # it is, this changes to `yes'. Without it, it would be `no'.
21484 libltdl_cv_sys_dlopen_deplibs=unknown
21486 osf*)
21487 # the two cases above should catch all versions of osf <= 5.1. Read
21488 # the comments above for what we know about them.
21489 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21490 # is used to find them so we can finally say `yes'.
21491 libltdl_cv_sys_dlopen_deplibs=yes
21493 solaris*)
21494 libltdl_cv_sys_dlopen_deplibs=yes
21496 esac
21499 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21500 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21501 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define LTDL_DLOPEN_DEPLIBS 1
21505 _ACEOF
21510 for ac_header in argz.h
21512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached) $ECHO_C" >&6
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21522 else
21523 # Is the header compilable?
21524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21526 cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h. */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 $ac_includes_default
21533 #include <$ac_header>
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21550 { (case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_try") 2>&5
21556 ac_status=$?
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; } &&
21559 { ac_try='test -s conftest.$ac_objext'
21560 { (case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21563 esac
21564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_try") 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; }; then
21569 ac_header_compiler=yes
21570 else
21571 echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_header_compiler=no
21577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21579 echo "${ECHO_T}$ac_header_compiler" >&6; }
21581 # Is the header present?
21582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <$ac_header>
21591 _ACEOF
21592 if { (ac_try="$ac_cpp conftest.$ac_ext"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21596 esac
21597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21599 ac_status=$?
21600 grep -v '^ *+' conftest.er1 >conftest.err
21601 rm -f conftest.er1
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } >/dev/null; then
21605 if test -s conftest.err; then
21606 ac_cpp_err=$ac_c_preproc_warn_flag
21607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21608 else
21609 ac_cpp_err=
21611 else
21612 ac_cpp_err=yes
21614 if test -z "$ac_cpp_err"; then
21615 ac_header_preproc=yes
21616 else
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ac_header_preproc=no
21623 rm -f conftest.err conftest.$ac_ext
21624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21625 echo "${ECHO_T}$ac_header_preproc" >&6; }
21627 # So? What about this header?
21628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21629 yes:no: )
21630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21634 ac_header_preproc=yes
21636 no:yes:* )
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21651 esac
21652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21655 echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657 eval "$as_ac_Header=\$ac_header_preproc"
21659 ac_res=`eval echo '${'$as_ac_Header'}'`
21660 { echo "$as_me:$LINENO: result: $ac_res" >&5
21661 echo "${ECHO_T}$ac_res" >&6; }
21664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21665 cat >>confdefs.h <<_ACEOF
21666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21667 _ACEOF
21671 done
21674 { echo "$as_me:$LINENO: checking for error_t" >&5
21675 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21676 if test "${ac_cv_type_error_t+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 #if HAVE_ARGZ_H
21686 # include <argz.h>
21687 #endif
21689 typedef error_t ac__type_new_;
21691 main ()
21693 if ((ac__type_new_ *) 0)
21694 return 0;
21695 if (sizeof (ac__type_new_))
21696 return 0;
21698 return 0;
21700 _ACEOF
21701 rm -f conftest.$ac_objext
21702 if { (ac_try="$ac_compile"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21706 esac
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_compile") 2>conftest.er1
21709 ac_status=$?
21710 grep -v '^ *+' conftest.er1 >conftest.err
21711 rm -f conftest.er1
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); } &&
21715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest.$ac_objext'
21726 { (case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_try") 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 ac_cv_type_error_t=yes
21736 else
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21740 ac_cv_type_error_t=no
21743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21745 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21746 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21747 if test $ac_cv_type_error_t = yes; then
21749 cat >>confdefs.h <<_ACEOF
21750 #define HAVE_ERROR_T 1
21751 _ACEOF
21754 else
21756 cat >>confdefs.h <<\_ACEOF
21757 #define error_t int
21758 _ACEOF
21768 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21774 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776 cat >conftest.$ac_ext <<_ACEOF
21777 /* confdefs.h. */
21778 _ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21784 #define $ac_func innocuous_$ac_func
21786 /* System header to define __stub macros and hopefully few prototypes,
21787 which can conflict with char $ac_func (); below.
21788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21789 <limits.h> exists even on freestanding compilers. */
21791 #ifdef __STDC__
21792 # include <limits.h>
21793 #else
21794 # include <assert.h>
21795 #endif
21797 #undef $ac_func
21799 /* Override any GCC internal prototype to avoid an error.
21800 Use char because int might match the return type of a GCC
21801 builtin and then its argument prototype would still apply. */
21802 #ifdef __cplusplus
21803 extern "C"
21804 #endif
21805 char $ac_func ();
21806 /* The GNU C library defines this for functions which it implements
21807 to always fail with ENOSYS. Some functions are actually named
21808 something starting with __ and the normal name is an alias. */
21809 #if defined __stub_$ac_func || defined __stub___$ac_func
21810 choke me
21811 #endif
21814 main ()
21816 return $ac_func ();
21818 return 0;
21820 _ACEOF
21821 rm -f conftest.$ac_objext conftest$ac_exeext
21822 if { (ac_try="$ac_link"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_link") 2>conftest.er1
21829 ac_status=$?
21830 grep -v '^ *+' conftest.er1 >conftest.err
21831 rm -f conftest.er1
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834 (exit $ac_status); } &&
21835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21836 { (case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_try") 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest$ac_exeext'
21846 { (case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21849 esac
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_try") 2>&5
21852 ac_status=$?
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 eval "$as_ac_var=yes"
21856 else
21857 echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 eval "$as_ac_var=no"
21863 rm -f core conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
21866 ac_res=`eval echo '${'$as_ac_var'}'`
21867 { echo "$as_me:$LINENO: result: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21869 if test `eval echo '${'$as_ac_var'}'` = yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21872 _ACEOF
21875 done
21904 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21905 stdio.h unistd.h
21907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21914 ac_res=`eval echo '${'$as_ac_Header'}'`
21915 { echo "$as_me:$LINENO: result: $ac_res" >&5
21916 echo "${ECHO_T}$ac_res" >&6; }
21917 else
21918 # Is the header compilable?
21919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21921 cat >conftest.$ac_ext <<_ACEOF
21922 /* confdefs.h. */
21923 _ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h. */
21927 $ac_includes_default
21928 #include <$ac_header>
21929 _ACEOF
21930 rm -f conftest.$ac_objext
21931 if { (ac_try="$ac_compile"
21932 case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21935 esac
21936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_compile") 2>conftest.er1
21938 ac_status=$?
21939 grep -v '^ *+' conftest.er1 >conftest.err
21940 rm -f conftest.er1
21941 cat conftest.err >&5
21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943 (exit $ac_status); } &&
21944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21945 { (case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_try") 2>&5
21951 ac_status=$?
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; } &&
21954 { ac_try='test -s conftest.$ac_objext'
21955 { (case "(($ac_try" in
21956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21957 *) ac_try_echo=$ac_try;;
21958 esac
21959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21960 (eval "$ac_try") 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; }; then
21964 ac_header_compiler=yes
21965 else
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_compiler=no
21972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21974 echo "${ECHO_T}$ac_header_compiler" >&6; }
21976 # Is the header present?
21977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21979 cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h. */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 #include <$ac_header>
21986 _ACEOF
21987 if { (ac_try="$ac_cpp conftest.$ac_ext"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21994 ac_status=$?
21995 grep -v '^ *+' conftest.er1 >conftest.err
21996 rm -f conftest.er1
21997 cat conftest.err >&5
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); } >/dev/null; then
22000 if test -s conftest.err; then
22001 ac_cpp_err=$ac_c_preproc_warn_flag
22002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22003 else
22004 ac_cpp_err=
22006 else
22007 ac_cpp_err=yes
22009 if test -z "$ac_cpp_err"; then
22010 ac_header_preproc=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_header_preproc=no
22018 rm -f conftest.err conftest.$ac_ext
22019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22020 echo "${ECHO_T}$ac_header_preproc" >&6; }
22022 # So? What about this header?
22023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22024 yes:no: )
22025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22029 ac_header_preproc=yes
22031 no:yes:* )
22032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22046 esac
22047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052 eval "$as_ac_Header=\$ac_header_preproc"
22054 ac_res=`eval echo '${'$as_ac_Header'}'`
22055 { echo "$as_me:$LINENO: result: $ac_res" >&5
22056 echo "${ECHO_T}$ac_res" >&6; }
22059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22060 cat >>confdefs.h <<_ACEOF
22061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 _ACEOF
22066 done
22072 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
22074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22081 ac_res=`eval echo '${'$as_ac_Header'}'`
22082 { echo "$as_me:$LINENO: result: $ac_res" >&5
22083 echo "${ECHO_T}$ac_res" >&6; }
22084 else
22085 # Is the header compilable?
22086 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22087 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22089 /* confdefs.h. */
22090 _ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 $ac_includes_default
22095 #include <$ac_header>
22096 _ACEOF
22097 rm -f conftest.$ac_objext
22098 if { (ac_try="$ac_compile"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_compile") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } &&
22111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
22122 { (case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_try") 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; }; then
22131 ac_header_compiler=yes
22132 else
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 ac_header_compiler=no
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22141 echo "${ECHO_T}$ac_header_compiler" >&6; }
22143 # Is the header present?
22144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 #include <$ac_header>
22153 _ACEOF
22154 if { (ac_try="$ac_cpp conftest.$ac_ext"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } >/dev/null; then
22167 if test -s conftest.err; then
22168 ac_cpp_err=$ac_c_preproc_warn_flag
22169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22170 else
22171 ac_cpp_err=
22173 else
22174 ac_cpp_err=yes
22176 if test -z "$ac_cpp_err"; then
22177 ac_header_preproc=yes
22178 else
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22182 ac_header_preproc=no
22185 rm -f conftest.err conftest.$ac_ext
22186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22187 echo "${ECHO_T}$ac_header_preproc" >&6; }
22189 # So? What about this header?
22190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22191 yes:no: )
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22196 ac_header_preproc=yes
22198 no:yes:* )
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22213 esac
22214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219 eval "$as_ac_Header=\$ac_header_preproc"
22221 ac_res=`eval echo '${'$as_ac_Header'}'`
22222 { echo "$as_me:$LINENO: result: $ac_res" >&5
22223 echo "${ECHO_T}$ac_res" >&6; }
22226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22227 cat >>confdefs.h <<_ACEOF
22228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22229 _ACEOF
22233 done
22237 for ac_header in string.h strings.h
22239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22244 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 ac_res=`eval echo '${'$as_ac_Header'}'`
22247 { echo "$as_me:$LINENO: result: $ac_res" >&5
22248 echo "${ECHO_T}$ac_res" >&6; }
22249 else
22250 # Is the header compilable?
22251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22253 cat >conftest.$ac_ext <<_ACEOF
22254 /* confdefs.h. */
22255 _ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 $ac_includes_default
22260 #include <$ac_header>
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_compile") 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } &&
22276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22277 { (case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_try") 2>&5
22283 ac_status=$?
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); }; } &&
22286 { ac_try='test -s conftest.$ac_objext'
22287 { (case "(($ac_try" in
22288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22289 *) ac_try_echo=$ac_try;;
22290 esac
22291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22292 (eval "$ac_try") 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; }; then
22296 ac_header_compiler=yes
22297 else
22298 echo "$as_me: failed program was:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ac_header_compiler=no
22304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22306 echo "${ECHO_T}$ac_header_compiler" >&6; }
22308 # Is the header present?
22309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <$ac_header>
22318 _ACEOF
22319 if { (ac_try="$ac_cpp conftest.$ac_ext"
22320 case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323 esac
22324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22326 ac_status=$?
22327 grep -v '^ *+' conftest.er1 >conftest.err
22328 rm -f conftest.er1
22329 cat conftest.err >&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } >/dev/null; then
22332 if test -s conftest.err; then
22333 ac_cpp_err=$ac_c_preproc_warn_flag
22334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22335 else
22336 ac_cpp_err=
22338 else
22339 ac_cpp_err=yes
22341 if test -z "$ac_cpp_err"; then
22342 ac_header_preproc=yes
22343 else
22344 echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_header_preproc=no
22350 rm -f conftest.err conftest.$ac_ext
22351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22352 echo "${ECHO_T}$ac_header_preproc" >&6; }
22354 # So? What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22356 yes:no: )
22357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22361 ac_header_preproc=yes
22363 no:yes:* )
22364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22378 esac
22379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 eval "$as_ac_Header=\$ac_header_preproc"
22386 ac_res=`eval echo '${'$as_ac_Header'}'`
22387 { echo "$as_me:$LINENO: result: $ac_res" >&5
22388 echo "${ECHO_T}$ac_res" >&6; }
22391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22392 cat >>confdefs.h <<_ACEOF
22393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22394 _ACEOF
22395 break
22398 done
22403 for ac_func in strchr index
22405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22410 else
22411 cat >conftest.$ac_ext <<_ACEOF
22412 /* confdefs.h. */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22419 #define $ac_func innocuous_$ac_func
22421 /* System header to define __stub macros and hopefully few prototypes,
22422 which can conflict with char $ac_func (); below.
22423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22424 <limits.h> exists even on freestanding compilers. */
22426 #ifdef __STDC__
22427 # include <limits.h>
22428 #else
22429 # include <assert.h>
22430 #endif
22432 #undef $ac_func
22434 /* Override any GCC internal prototype to avoid an error.
22435 Use char because int might match the return type of a GCC
22436 builtin and then its argument prototype would still apply. */
22437 #ifdef __cplusplus
22438 extern "C"
22439 #endif
22440 char $ac_func ();
22441 /* The GNU C library defines this for functions which it implements
22442 to always fail with ENOSYS. Some functions are actually named
22443 something starting with __ and the normal name is an alias. */
22444 #if defined __stub_$ac_func || defined __stub___$ac_func
22445 choke me
22446 #endif
22449 main ()
22451 return $ac_func ();
22453 return 0;
22455 _ACEOF
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>conftest.er1
22464 ac_status=$?
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22471 { (case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_try") 2>&5
22477 ac_status=$?
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); }; } &&
22480 { ac_try='test -s conftest$ac_exeext'
22481 { (case "(($ac_try" in
22482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483 *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486 (eval "$ac_try") 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; }; then
22490 eval "$as_ac_var=yes"
22491 else
22492 echo "$as_me: failed program was:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 eval "$as_ac_var=no"
22498 rm -f core conftest.err conftest.$ac_objext \
22499 conftest$ac_exeext conftest.$ac_ext
22501 ac_res=`eval echo '${'$as_ac_var'}'`
22502 { echo "$as_me:$LINENO: result: $ac_res" >&5
22503 echo "${ECHO_T}$ac_res" >&6; }
22504 if test `eval echo '${'$as_ac_var'}'` = yes; then
22505 cat >>confdefs.h <<_ACEOF
22506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22507 _ACEOF
22508 break
22510 done
22514 for ac_func in strrchr rindex
22516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22521 else
22522 cat >conftest.$ac_ext <<_ACEOF
22523 /* confdefs.h. */
22524 _ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22530 #define $ac_func innocuous_$ac_func
22532 /* System header to define __stub macros and hopefully few prototypes,
22533 which can conflict with char $ac_func (); below.
22534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22535 <limits.h> exists even on freestanding compilers. */
22537 #ifdef __STDC__
22538 # include <limits.h>
22539 #else
22540 # include <assert.h>
22541 #endif
22543 #undef $ac_func
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22548 #ifdef __cplusplus
22549 extern "C"
22550 #endif
22551 char $ac_func ();
22552 /* The GNU C library defines this for functions which it implements
22553 to always fail with ENOSYS. Some functions are actually named
22554 something starting with __ and the normal name is an alias. */
22555 #if defined __stub_$ac_func || defined __stub___$ac_func
22556 choke me
22557 #endif
22560 main ()
22562 return $ac_func ();
22564 return 0;
22566 _ACEOF
22567 rm -f conftest.$ac_objext conftest$ac_exeext
22568 if { (ac_try="$ac_link"
22569 case "(($ac_try" in
22570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571 *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574 (eval "$ac_link") 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } &&
22581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22582 { (case "(($ac_try" in
22583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584 *) ac_try_echo=$ac_try;;
22585 esac
22586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587 (eval "$ac_try") 2>&5
22588 ac_status=$?
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); }; } &&
22591 { ac_try='test -s conftest$ac_exeext'
22592 { (case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595 esac
22596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22597 (eval "$ac_try") 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; }; then
22601 eval "$as_ac_var=yes"
22602 else
22603 echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22606 eval "$as_ac_var=no"
22609 rm -f core conftest.err conftest.$ac_objext \
22610 conftest$ac_exeext conftest.$ac_ext
22612 ac_res=`eval echo '${'$as_ac_var'}'`
22613 { echo "$as_me:$LINENO: result: $ac_res" >&5
22614 echo "${ECHO_T}$ac_res" >&6; }
22615 if test `eval echo '${'$as_ac_var'}'` = yes; then
22616 cat >>confdefs.h <<_ACEOF
22617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22618 _ACEOF
22619 break
22621 done
22625 for ac_func in memcpy bcopy
22627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633 cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h. */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h. */
22639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22641 #define $ac_func innocuous_$ac_func
22643 /* System header to define __stub macros and hopefully few prototypes,
22644 which can conflict with char $ac_func (); below.
22645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22646 <limits.h> exists even on freestanding compilers. */
22648 #ifdef __STDC__
22649 # include <limits.h>
22650 #else
22651 # include <assert.h>
22652 #endif
22654 #undef $ac_func
22656 /* Override any GCC internal prototype to avoid an error.
22657 Use char because int might match the return type of a GCC
22658 builtin and then its argument prototype would still apply. */
22659 #ifdef __cplusplus
22660 extern "C"
22661 #endif
22662 char $ac_func ();
22663 /* The GNU C library defines this for functions which it implements
22664 to always fail with ENOSYS. Some functions are actually named
22665 something starting with __ and the normal name is an alias. */
22666 #if defined __stub_$ac_func || defined __stub___$ac_func
22667 choke me
22668 #endif
22671 main ()
22673 return $ac_func ();
22675 return 0;
22677 _ACEOF
22678 rm -f conftest.$ac_objext conftest$ac_exeext
22679 if { (ac_try="$ac_link"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_link") 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22693 { (case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22696 esac
22697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22698 (eval "$ac_try") 2>&5
22699 ac_status=$?
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest$ac_exeext'
22703 { (case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_try") 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; }; then
22712 eval "$as_ac_var=yes"
22713 else
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 eval "$as_ac_var=no"
22720 rm -f core conftest.err conftest.$ac_objext \
22721 conftest$ac_exeext conftest.$ac_ext
22723 ac_res=`eval echo '${'$as_ac_var'}'`
22724 { echo "$as_me:$LINENO: result: $ac_res" >&5
22725 echo "${ECHO_T}$ac_res" >&6; }
22726 if test `eval echo '${'$as_ac_var'}'` = yes; then
22727 cat >>confdefs.h <<_ACEOF
22728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22729 _ACEOF
22730 break
22732 done
22736 for ac_func in memmove strcmp
22738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744 cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h. */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h. */
22750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22752 #define $ac_func innocuous_$ac_func
22754 /* System header to define __stub macros and hopefully few prototypes,
22755 which can conflict with char $ac_func (); below.
22756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22757 <limits.h> exists even on freestanding compilers. */
22759 #ifdef __STDC__
22760 # include <limits.h>
22761 #else
22762 # include <assert.h>
22763 #endif
22765 #undef $ac_func
22767 /* Override any GCC internal prototype to avoid an error.
22768 Use char because int might match the return type of a GCC
22769 builtin and then its argument prototype would still apply. */
22770 #ifdef __cplusplus
22771 extern "C"
22772 #endif
22773 char $ac_func ();
22774 /* The GNU C library defines this for functions which it implements
22775 to always fail with ENOSYS. Some functions are actually named
22776 something starting with __ and the normal name is an alias. */
22777 #if defined __stub_$ac_func || defined __stub___$ac_func
22778 choke me
22779 #endif
22782 main ()
22784 return $ac_func ();
22786 return 0;
22788 _ACEOF
22789 rm -f conftest.$ac_objext conftest$ac_exeext
22790 if { (ac_try="$ac_link"
22791 case "(($ac_try" in
22792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793 *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796 (eval "$ac_link") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } &&
22803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22804 { (case "(($ac_try" in
22805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22806 *) ac_try_echo=$ac_try;;
22807 esac
22808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22809 (eval "$ac_try") 2>&5
22810 ac_status=$?
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest$ac_exeext'
22814 { (case "(($ac_try" in
22815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816 *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819 (eval "$ac_try") 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 eval "$as_ac_var=yes"
22824 else
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 eval "$as_ac_var=no"
22831 rm -f core conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
22834 ac_res=`eval echo '${'$as_ac_var'}'`
22835 { echo "$as_me:$LINENO: result: $ac_res" >&5
22836 echo "${ECHO_T}$ac_res" >&6; }
22837 if test `eval echo '${'$as_ac_var'}'` = yes; then
22838 cat >>confdefs.h <<_ACEOF
22839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22840 _ACEOF
22843 done
22848 for ac_func in closedir opendir readdir
22850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22864 #define $ac_func innocuous_$ac_func
22866 /* System header to define __stub macros and hopefully few prototypes,
22867 which can conflict with char $ac_func (); below.
22868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22869 <limits.h> exists even on freestanding compilers. */
22871 #ifdef __STDC__
22872 # include <limits.h>
22873 #else
22874 # include <assert.h>
22875 #endif
22877 #undef $ac_func
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 char $ac_func ();
22886 /* The GNU C library defines this for functions which it implements
22887 to always fail with ENOSYS. Some functions are actually named
22888 something starting with __ and the normal name is an alias. */
22889 #if defined __stub_$ac_func || defined __stub___$ac_func
22890 choke me
22891 #endif
22894 main ()
22896 return $ac_func ();
22898 return 0;
22900 _ACEOF
22901 rm -f conftest.$ac_objext conftest$ac_exeext
22902 if { (ac_try="$ac_link"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_link") 2>conftest.er1
22909 ac_status=$?
22910 grep -v '^ *+' conftest.er1 >conftest.err
22911 rm -f conftest.er1
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); } &&
22915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22916 { (case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_try") 2>&5
22922 ac_status=$?
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } &&
22925 { ac_try='test -s conftest$ac_exeext'
22926 { (case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22929 esac
22930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22931 (eval "$ac_try") 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 eval "$as_ac_var=yes"
22936 else
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 eval "$as_ac_var=no"
22943 rm -f core conftest.err conftest.$ac_objext \
22944 conftest$ac_exeext conftest.$ac_ext
22946 ac_res=`eval echo '${'$as_ac_var'}'`
22947 { echo "$as_me:$LINENO: result: $ac_res" >&5
22948 echo "${ECHO_T}$ac_res" >&6; }
22949 if test `eval echo '${'$as_ac_var'}'` = yes; then
22950 cat >>confdefs.h <<_ACEOF
22951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22952 _ACEOF
22955 done
22959 { echo "$as_me:$LINENO: checking for X" >&5
22960 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
22963 # Check whether --with-x was given.
22964 if test "${with_x+set}" = set; then
22965 withval=$with_x;
22968 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22969 if test "x$with_x" = xno; then
22970 # The user explicitly disabled X.
22971 have_x=disabled
22972 else
22973 case $x_includes,$x_libraries in #(
22974 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
22975 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
22976 { (exit 1); exit 1; }; };; #(
22977 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980 # One or both of the vars are not set, and there is no cached value.
22981 ac_x_includes=no ac_x_libraries=no
22982 rm -f -r conftest.dir
22983 if mkdir conftest.dir; then
22984 cd conftest.dir
22985 cat >Imakefile <<'_ACEOF'
22986 incroot:
22987 @echo incroot='${INCROOT}'
22988 usrlibdir:
22989 @echo usrlibdir='${USRLIBDIR}'
22990 libdir:
22991 @echo libdir='${LIBDIR}'
22992 _ACEOF
22993 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
22994 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22995 for ac_var in incroot usrlibdir libdir; do
22996 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
22997 done
22998 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22999 for ac_extension in a so sl; do
23000 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23001 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23002 ac_im_usrlibdir=$ac_im_libdir; break
23004 done
23005 # Screen out bogus values from the imake configuration. They are
23006 # bogus both because they are the default anyway, and because
23007 # using them would break gcc on systems where it needs fixed includes.
23008 case $ac_im_incroot in
23009 /usr/include) ac_x_includes= ;;
23010 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23011 esac
23012 case $ac_im_usrlibdir in
23013 /usr/lib | /lib) ;;
23014 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23015 esac
23017 cd ..
23018 rm -f -r conftest.dir
23021 # Standard set of common directories for X headers.
23022 # Check X11 before X11Rn because it is often a symlink to the current release.
23023 ac_x_header_dirs='
23024 /usr/X11/include
23025 /usr/X11R6/include
23026 /usr/X11R5/include
23027 /usr/X11R4/include
23029 /usr/include/X11
23030 /usr/include/X11R6
23031 /usr/include/X11R5
23032 /usr/include/X11R4
23034 /usr/local/X11/include
23035 /usr/local/X11R6/include
23036 /usr/local/X11R5/include
23037 /usr/local/X11R4/include
23039 /usr/local/include/X11
23040 /usr/local/include/X11R6
23041 /usr/local/include/X11R5
23042 /usr/local/include/X11R4
23044 /usr/X386/include
23045 /usr/x386/include
23046 /usr/XFree86/include/X11
23048 /usr/include
23049 /usr/local/include
23050 /usr/unsupported/include
23051 /usr/athena/include
23052 /usr/local/x11r5/include
23053 /usr/lpp/Xamples/include
23055 /usr/openwin/include
23056 /usr/openwin/share/include'
23058 if test "$ac_x_includes" = no; then
23059 # Guess where to find include files, by looking for Xlib.h.
23060 # First, try using that file with no special directory specified.
23061 cat >conftest.$ac_ext <<_ACEOF
23062 /* confdefs.h. */
23063 _ACEOF
23064 cat confdefs.h >>conftest.$ac_ext
23065 cat >>conftest.$ac_ext <<_ACEOF
23066 /* end confdefs.h. */
23067 #include <X11/Xlib.h>
23068 _ACEOF
23069 if { (ac_try="$ac_cpp conftest.$ac_ext"
23070 case "(($ac_try" in
23071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072 *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } >/dev/null; then
23082 if test -s conftest.err; then
23083 ac_cpp_err=$ac_c_preproc_warn_flag
23084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23085 else
23086 ac_cpp_err=
23088 else
23089 ac_cpp_err=yes
23091 if test -z "$ac_cpp_err"; then
23092 # We can compile using X headers with no special include directory.
23093 ac_x_includes=
23094 else
23095 echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23098 for ac_dir in $ac_x_header_dirs; do
23099 if test -r "$ac_dir/X11/Xlib.h"; then
23100 ac_x_includes=$ac_dir
23101 break
23103 done
23106 rm -f conftest.err conftest.$ac_ext
23107 fi # $ac_x_includes = no
23109 if test "$ac_x_libraries" = no; then
23110 # Check for the libraries.
23111 # See if we find them without any special options.
23112 # Don't add to $LIBS permanently.
23113 ac_save_LIBS=$LIBS
23114 LIBS="-lX11 $LIBS"
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h. */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 #include <X11/Xlib.h>
23123 main ()
23125 XrmInitialize ()
23127 return 0;
23129 _ACEOF
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } &&
23144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } &&
23154 { ac_try='test -s conftest$ac_exeext'
23155 { (case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23158 esac
23159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_try") 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; }; then
23164 LIBS=$ac_save_LIBS
23165 # We can link X programs with no special library path.
23166 ac_x_libraries=
23167 else
23168 echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23171 LIBS=$ac_save_LIBS
23172 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23174 # Don't even attempt the hair of trying to link an X program!
23175 for ac_extension in a so sl; do
23176 if test -r "$ac_dir/libXt.$ac_extension"; then
23177 ac_x_libraries=$ac_dir
23178 break 2
23180 done
23181 done
23184 rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23186 fi # $ac_x_libraries = no
23188 case $ac_x_includes,$ac_x_libraries in #(
23189 no,* | *,no | *\'*)
23190 # Didn't find X, or a directory has "'" in its name.
23191 ac_cv_have_x="have_x=no";; #(
23193 # Record where we found X for the cache.
23194 ac_cv_have_x="have_x=yes\
23195 ac_x_includes='$ac_x_includes'\
23196 ac_x_libraries='$ac_x_libraries'"
23197 esac
23199 ;; #(
23200 *) have_x=yes;;
23201 esac
23202 eval "$ac_cv_have_x"
23203 fi # $with_x != no
23205 if test "$have_x" != yes; then
23206 { echo "$as_me:$LINENO: result: $have_x" >&5
23207 echo "${ECHO_T}$have_x" >&6; }
23208 no_x=yes
23209 else
23210 # If each of the values was on the command line, it overrides each guess.
23211 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23212 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23213 # Update the cache value to reflect the command line values.
23214 ac_cv_have_x="have_x=yes\
23215 ac_x_includes='$x_includes'\
23216 ac_x_libraries='$x_libraries'"
23217 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23218 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
23221 if test "$no_x" = yes; then
23222 # Not all programs may use this symbol, but it does not hurt to define it.
23224 cat >>confdefs.h <<\_ACEOF
23225 #define X_DISPLAY_MISSING 1
23226 _ACEOF
23228 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23229 else
23230 if test -n "$x_includes"; then
23231 X_CFLAGS="$X_CFLAGS -I$x_includes"
23234 # It would also be nice to do this for all -L options, not just this one.
23235 if test -n "$x_libraries"; then
23236 X_LIBS="$X_LIBS -L$x_libraries"
23237 # For Solaris; some versions of Sun CC require a space after -R and
23238 # others require no space. Words are not sufficient . . . .
23239 case `(uname -sr) 2>/dev/null` in
23240 "SunOS 5"*)
23241 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23242 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
23243 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23244 cat >conftest.$ac_ext <<_ACEOF
23245 /* confdefs.h. */
23246 _ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23252 main ()
23256 return 0;
23258 _ACEOF
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (ac_try="$ac_link"
23261 case "(($ac_try" in
23262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23263 *) ac_try_echo=$ac_try;;
23264 esac
23265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23266 (eval "$ac_link") 2>conftest.er1
23267 ac_status=$?
23268 grep -v '^ *+' conftest.er1 >conftest.err
23269 rm -f conftest.er1
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23274 { (case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23277 esac
23278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23279 (eval "$ac_try") 2>&5
23280 ac_status=$?
23281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23282 (exit $ac_status); }; } &&
23283 { ac_try='test -s conftest$ac_exeext'
23284 { (case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23287 esac
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_try") 2>&5
23290 ac_status=$?
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 ac_R_nospace=yes
23294 else
23295 echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23298 ac_R_nospace=no
23301 rm -f core conftest.err conftest.$ac_objext \
23302 conftest$ac_exeext conftest.$ac_ext
23303 if test $ac_R_nospace = yes; then
23304 { echo "$as_me:$LINENO: result: no" >&5
23305 echo "${ECHO_T}no" >&6; }
23306 X_LIBS="$X_LIBS -R$x_libraries"
23307 else
23308 LIBS="$ac_xsave_LIBS -R $x_libraries"
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23317 main ()
23321 return 0;
23323 _ACEOF
23324 rm -f conftest.$ac_objext conftest$ac_exeext
23325 if { (ac_try="$ac_link"
23326 case "(($ac_try" in
23327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328 *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331 (eval "$ac_link") 2>conftest.er1
23332 ac_status=$?
23333 grep -v '^ *+' conftest.er1 >conftest.err
23334 rm -f conftest.er1
23335 cat conftest.err >&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23339 { (case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_try") 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest$ac_exeext'
23349 { (case "(($ac_try" in
23350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351 *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354 (eval "$ac_try") 2>&5
23355 ac_status=$?
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_R_space=yes
23359 else
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_R_space=no
23366 rm -f core conftest.err conftest.$ac_objext \
23367 conftest$ac_exeext conftest.$ac_ext
23368 if test $ac_R_space = yes; then
23369 { echo "$as_me:$LINENO: result: yes" >&5
23370 echo "${ECHO_T}yes" >&6; }
23371 X_LIBS="$X_LIBS -R $x_libraries"
23372 else
23373 { echo "$as_me:$LINENO: result: neither works" >&5
23374 echo "${ECHO_T}neither works" >&6; }
23377 LIBS=$ac_xsave_LIBS
23378 esac
23381 # Check for system-dependent libraries X programs must link with.
23382 # Do this before checking for the system-independent R6 libraries
23383 # (-lICE), since we may need -lsocket or whatever for X linking.
23385 if test "$ISC" = yes; then
23386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23387 else
23388 # Martyn Johnson says this is needed for Ultrix, if the X
23389 # libraries were built with DECnet support. And Karl Berry says
23390 # the Alpha needs dnet_stub (dnet does not exist).
23391 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23399 /* Override any GCC internal prototype to avoid an error.
23400 Use char because int might match the return type of a GCC
23401 builtin and then its argument prototype would still apply. */
23402 #ifdef __cplusplus
23403 extern "C"
23404 #endif
23405 char XOpenDisplay ();
23407 main ()
23409 return XOpenDisplay ();
23411 return 0;
23413 _ACEOF
23414 rm -f conftest.$ac_objext conftest$ac_exeext
23415 if { (ac_try="$ac_link"
23416 case "(($ac_try" in
23417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418 *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421 (eval "$ac_link") 2>conftest.er1
23422 ac_status=$?
23423 grep -v '^ *+' conftest.er1 >conftest.err
23424 rm -f conftest.er1
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23429 { (case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432 esac
23433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_try") 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest$ac_exeext'
23439 { (case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_try") 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23449 else
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23454 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23455 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23457 else
23458 ac_check_lib_save_LIBS=$LIBS
23459 LIBS="-ldnet $LIBS"
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23467 /* Override any GCC internal prototype to avoid an error.
23468 Use char because int might match the return type of a GCC
23469 builtin and then its argument prototype would still apply. */
23470 #ifdef __cplusplus
23471 extern "C"
23472 #endif
23473 char dnet_ntoa ();
23475 main ()
23477 return dnet_ntoa ();
23479 return 0;
23481 _ACEOF
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (ac_try="$ac_link"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487 esac
23488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_link") 2>conftest.er1
23490 ac_status=$?
23491 grep -v '^ *+' conftest.er1 >conftest.err
23492 rm -f conftest.er1
23493 cat conftest.err >&5
23494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495 (exit $ac_status); } &&
23496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23497 { (case "(($ac_try" in
23498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499 *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502 (eval "$ac_try") 2>&5
23503 ac_status=$?
23504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505 (exit $ac_status); }; } &&
23506 { ac_try='test -s conftest$ac_exeext'
23507 { (case "(($ac_try" in
23508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509 *) ac_try_echo=$ac_try;;
23510 esac
23511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_try") 2>&5
23513 ac_status=$?
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); }; }; then
23516 ac_cv_lib_dnet_dnet_ntoa=yes
23517 else
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ac_cv_lib_dnet_dnet_ntoa=no
23524 rm -f core conftest.err conftest.$ac_objext \
23525 conftest$ac_exeext conftest.$ac_ext
23526 LIBS=$ac_check_lib_save_LIBS
23528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23529 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23530 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23531 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23534 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23535 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23536 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23537 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540 ac_check_lib_save_LIBS=$LIBS
23541 LIBS="-ldnet_stub $LIBS"
23542 cat >conftest.$ac_ext <<_ACEOF
23543 /* confdefs.h. */
23544 _ACEOF
23545 cat confdefs.h >>conftest.$ac_ext
23546 cat >>conftest.$ac_ext <<_ACEOF
23547 /* end confdefs.h. */
23549 /* Override any GCC internal prototype to avoid an error.
23550 Use char because int might match the return type of a GCC
23551 builtin and then its argument prototype would still apply. */
23552 #ifdef __cplusplus
23553 extern "C"
23554 #endif
23555 char dnet_ntoa ();
23557 main ()
23559 return dnet_ntoa ();
23561 return 0;
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (ac_try="$ac_link"
23566 case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569 esac
23570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_link") 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } &&
23578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23579 { (case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23582 esac
23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_try") 2>&5
23585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest$ac_exeext'
23589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
23595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23599 else
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_cv_lib_dnet_stub_dnet_ntoa=no
23606 rm -f core conftest.err conftest.$ac_objext \
23607 conftest$ac_exeext conftest.$ac_ext
23608 LIBS=$ac_check_lib_save_LIBS
23610 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23611 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23612 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23613 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23619 rm -f core conftest.err conftest.$ac_objext \
23620 conftest$ac_exeext conftest.$ac_ext
23621 LIBS="$ac_xsave_LIBS"
23623 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23624 # to get the SysV transport functions.
23625 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23626 # needs -lnsl.
23627 # The nsl library prevents programs from opening the X display
23628 # on Irix 5.2, according to T.E. Dickey.
23629 # The functions gethostbyname, getservbyname, and inet_addr are
23630 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23631 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
23632 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
23633 if test "${ac_cv_func_gethostbyname+set}" = set; then
23634 echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636 cat >conftest.$ac_ext <<_ACEOF
23637 /* confdefs.h. */
23638 _ACEOF
23639 cat confdefs.h >>conftest.$ac_ext
23640 cat >>conftest.$ac_ext <<_ACEOF
23641 /* end confdefs.h. */
23642 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23644 #define gethostbyname innocuous_gethostbyname
23646 /* System header to define __stub macros and hopefully few prototypes,
23647 which can conflict with char gethostbyname (); below.
23648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23649 <limits.h> exists even on freestanding compilers. */
23651 #ifdef __STDC__
23652 # include <limits.h>
23653 #else
23654 # include <assert.h>
23655 #endif
23657 #undef gethostbyname
23659 /* Override any GCC internal prototype to avoid an error.
23660 Use char because int might match the return type of a GCC
23661 builtin and then its argument prototype would still apply. */
23662 #ifdef __cplusplus
23663 extern "C"
23664 #endif
23665 char gethostbyname ();
23666 /* The GNU C library defines this for functions which it implements
23667 to always fail with ENOSYS. Some functions are actually named
23668 something starting with __ and the normal name is an alias. */
23669 #if defined __stub_gethostbyname || defined __stub___gethostbyname
23670 choke me
23671 #endif
23674 main ()
23676 return gethostbyname ();
23678 return 0;
23680 _ACEOF
23681 rm -f conftest.$ac_objext conftest$ac_exeext
23682 if { (ac_try="$ac_link"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_link") 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } &&
23695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23696 { (case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_try") 2>&5
23702 ac_status=$?
23703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704 (exit $ac_status); }; } &&
23705 { ac_try='test -s conftest$ac_exeext'
23706 { (case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23709 esac
23710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23711 (eval "$ac_try") 2>&5
23712 ac_status=$?
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); }; }; then
23715 ac_cv_func_gethostbyname=yes
23716 else
23717 echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_func_gethostbyname=no
23723 rm -f core conftest.err conftest.$ac_objext \
23724 conftest$ac_exeext conftest.$ac_ext
23726 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23727 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
23729 if test $ac_cv_func_gethostbyname = no; then
23730 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23731 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
23732 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23734 else
23735 ac_check_lib_save_LIBS=$LIBS
23736 LIBS="-lnsl $LIBS"
23737 cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h. */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h. */
23744 /* Override any GCC internal prototype to avoid an error.
23745 Use char because int might match the return type of a GCC
23746 builtin and then its argument prototype would still apply. */
23747 #ifdef __cplusplus
23748 extern "C"
23749 #endif
23750 char gethostbyname ();
23752 main ()
23754 return gethostbyname ();
23756 return 0;
23758 _ACEOF
23759 rm -f conftest.$ac_objext conftest$ac_exeext
23760 if { (ac_try="$ac_link"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23764 esac
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_link") 2>conftest.er1
23767 ac_status=$?
23768 grep -v '^ *+' conftest.er1 >conftest.err
23769 rm -f conftest.er1
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } &&
23773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23774 { (case "(($ac_try" in
23775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23776 *) ac_try_echo=$ac_try;;
23777 esac
23778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23779 (eval "$ac_try") 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest$ac_exeext'
23784 { (case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_try") 2>&5
23790 ac_status=$?
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_lib_nsl_gethostbyname=yes
23794 else
23795 echo "$as_me: failed program was:" >&5
23796 sed 's/^/| /' conftest.$ac_ext >&5
23798 ac_cv_lib_nsl_gethostbyname=no
23801 rm -f core conftest.err conftest.$ac_objext \
23802 conftest$ac_exeext conftest.$ac_ext
23803 LIBS=$ac_check_lib_save_LIBS
23805 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23806 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
23807 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23811 if test $ac_cv_lib_nsl_gethostbyname = no; then
23812 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23813 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
23814 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816 else
23817 ac_check_lib_save_LIBS=$LIBS
23818 LIBS="-lbsd $LIBS"
23819 cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h. */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h. */
23826 /* Override any GCC internal prototype to avoid an error.
23827 Use char because int might match the return type of a GCC
23828 builtin and then its argument prototype would still apply. */
23829 #ifdef __cplusplus
23830 extern "C"
23831 #endif
23832 char gethostbyname ();
23834 main ()
23836 return gethostbyname ();
23838 return 0;
23840 _ACEOF
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (ac_try="$ac_link"
23843 case "(($ac_try" in
23844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23845 *) ac_try_echo=$ac_try;;
23846 esac
23847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23848 (eval "$ac_link") 2>conftest.er1
23849 ac_status=$?
23850 grep -v '^ *+' conftest.er1 >conftest.err
23851 rm -f conftest.er1
23852 cat conftest.err >&5
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); } &&
23855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23856 { (case "(($ac_try" in
23857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858 *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861 (eval "$ac_try") 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest$ac_exeext'
23866 { (case "(($ac_try" in
23867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23868 *) ac_try_echo=$ac_try;;
23869 esac
23870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23871 (eval "$ac_try") 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_cv_lib_bsd_gethostbyname=yes
23876 else
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 ac_cv_lib_bsd_gethostbyname=no
23883 rm -f core conftest.err conftest.$ac_objext \
23884 conftest$ac_exeext conftest.$ac_ext
23885 LIBS=$ac_check_lib_save_LIBS
23887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
23889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23896 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23897 # socket/setsockopt and other routines are undefined under SCO ODT
23898 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23899 # on later versions), says Simon Leinen: it contains gethostby*
23900 # variants that don't use the name server (or something). -lsocket
23901 # must be given before -lnsl if both are needed. We assume that
23902 # if connect needs -lnsl, so does gethostbyname.
23903 { echo "$as_me:$LINENO: checking for connect" >&5
23904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23905 if test "${ac_cv_func_connect+set}" = set; then
23906 echo $ECHO_N "(cached) $ECHO_C" >&6
23907 else
23908 cat >conftest.$ac_ext <<_ACEOF
23909 /* confdefs.h. */
23910 _ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23916 #define connect innocuous_connect
23918 /* System header to define __stub macros and hopefully few prototypes,
23919 which can conflict with char connect (); below.
23920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23921 <limits.h> exists even on freestanding compilers. */
23923 #ifdef __STDC__
23924 # include <limits.h>
23925 #else
23926 # include <assert.h>
23927 #endif
23929 #undef connect
23931 /* Override any GCC internal prototype to avoid an error.
23932 Use char because int might match the return type of a GCC
23933 builtin and then its argument prototype would still apply. */
23934 #ifdef __cplusplus
23935 extern "C"
23936 #endif
23937 char connect ();
23938 /* The GNU C library defines this for functions which it implements
23939 to always fail with ENOSYS. Some functions are actually named
23940 something starting with __ and the normal name is an alias. */
23941 #if defined __stub_connect || defined __stub___connect
23942 choke me
23943 #endif
23946 main ()
23948 return connect ();
23950 return 0;
23952 _ACEOF
23953 rm -f conftest.$ac_objext conftest$ac_exeext
23954 if { (ac_try="$ac_link"
23955 case "(($ac_try" in
23956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23958 esac
23959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_link") 2>conftest.er1
23961 ac_status=$?
23962 grep -v '^ *+' conftest.er1 >conftest.err
23963 rm -f conftest.er1
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966 (exit $ac_status); } &&
23967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23968 { (case "(($ac_try" in
23969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970 *) ac_try_echo=$ac_try;;
23971 esac
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973 (eval "$ac_try") 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; } &&
23977 { ac_try='test -s conftest$ac_exeext'
23978 { (case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_try") 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; }; then
23987 ac_cv_func_connect=yes
23988 else
23989 echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23992 ac_cv_func_connect=no
23995 rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23998 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23999 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
24001 if test $ac_cv_func_connect = no; then
24002 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24003 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24004 if test "${ac_cv_lib_socket_connect+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24006 else
24007 ac_check_lib_save_LIBS=$LIBS
24008 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24009 cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h. */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h. */
24016 /* Override any GCC internal prototype to avoid an error.
24017 Use char because int might match the return type of a GCC
24018 builtin and then its argument prototype would still apply. */
24019 #ifdef __cplusplus
24020 extern "C"
24021 #endif
24022 char connect ();
24024 main ()
24026 return connect ();
24028 return 0;
24030 _ACEOF
24031 rm -f conftest.$ac_objext conftest$ac_exeext
24032 if { (ac_try="$ac_link"
24033 case "(($ac_try" in
24034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24035 *) ac_try_echo=$ac_try;;
24036 esac
24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24038 (eval "$ac_link") 2>conftest.er1
24039 ac_status=$?
24040 grep -v '^ *+' conftest.er1 >conftest.err
24041 rm -f conftest.er1
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24046 { (case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24049 esac
24050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_try") 2>&5
24052 ac_status=$?
24053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054 (exit $ac_status); }; } &&
24055 { ac_try='test -s conftest$ac_exeext'
24056 { (case "(($ac_try" in
24057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24058 *) ac_try_echo=$ac_try;;
24059 esac
24060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24061 (eval "$ac_try") 2>&5
24062 ac_status=$?
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); }; }; then
24065 ac_cv_lib_socket_connect=yes
24066 else
24067 echo "$as_me: failed program was:" >&5
24068 sed 's/^/| /' conftest.$ac_ext >&5
24070 ac_cv_lib_socket_connect=no
24073 rm -f core conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
24075 LIBS=$ac_check_lib_save_LIBS
24077 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24078 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24079 if test $ac_cv_lib_socket_connect = yes; then
24080 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24085 # Guillermo Gomez says -lposix is necessary on A/UX.
24086 { echo "$as_me:$LINENO: checking for remove" >&5
24087 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24088 if test "${ac_cv_func_remove+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24090 else
24091 cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h. */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h. */
24097 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24099 #define remove innocuous_remove
24101 /* System header to define __stub macros and hopefully few prototypes,
24102 which can conflict with char remove (); below.
24103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24104 <limits.h> exists even on freestanding compilers. */
24106 #ifdef __STDC__
24107 # include <limits.h>
24108 #else
24109 # include <assert.h>
24110 #endif
24112 #undef remove
24114 /* Override any GCC internal prototype to avoid an error.
24115 Use char because int might match the return type of a GCC
24116 builtin and then its argument prototype would still apply. */
24117 #ifdef __cplusplus
24118 extern "C"
24119 #endif
24120 char remove ();
24121 /* The GNU C library defines this for functions which it implements
24122 to always fail with ENOSYS. Some functions are actually named
24123 something starting with __ and the normal name is an alias. */
24124 #if defined __stub_remove || defined __stub___remove
24125 choke me
24126 #endif
24129 main ()
24131 return remove ();
24133 return 0;
24135 _ACEOF
24136 rm -f conftest.$ac_objext conftest$ac_exeext
24137 if { (ac_try="$ac_link"
24138 case "(($ac_try" in
24139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140 *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143 (eval "$ac_link") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } &&
24150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24151 { (case "(($ac_try" in
24152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153 *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156 (eval "$ac_try") 2>&5
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); }; } &&
24160 { ac_try='test -s conftest$ac_exeext'
24161 { (case "(($ac_try" in
24162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163 *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166 (eval "$ac_try") 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; }; then
24170 ac_cv_func_remove=yes
24171 else
24172 echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24175 ac_cv_func_remove=no
24178 rm -f core conftest.err conftest.$ac_objext \
24179 conftest$ac_exeext conftest.$ac_ext
24181 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24182 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24184 if test $ac_cv_func_remove = no; then
24185 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24186 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24187 if test "${ac_cv_lib_posix_remove+set}" = set; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24189 else
24190 ac_check_lib_save_LIBS=$LIBS
24191 LIBS="-lposix $LIBS"
24192 cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h. */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h. */
24199 /* Override any GCC internal prototype to avoid an error.
24200 Use char because int might match the return type of a GCC
24201 builtin and then its argument prototype would still apply. */
24202 #ifdef __cplusplus
24203 extern "C"
24204 #endif
24205 char remove ();
24207 main ()
24209 return remove ();
24211 return 0;
24213 _ACEOF
24214 rm -f conftest.$ac_objext conftest$ac_exeext
24215 if { (ac_try="$ac_link"
24216 case "(($ac_try" in
24217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24218 *) ac_try_echo=$ac_try;;
24219 esac
24220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24221 (eval "$ac_link") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
24228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24229 { (case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234 (eval "$ac_try") 2>&5
24235 ac_status=$?
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); }; } &&
24238 { ac_try='test -s conftest$ac_exeext'
24239 { (case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24242 esac
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_try") 2>&5
24245 ac_status=$?
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); }; }; then
24248 ac_cv_lib_posix_remove=yes
24249 else
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24253 ac_cv_lib_posix_remove=no
24256 rm -f core conftest.err conftest.$ac_objext \
24257 conftest$ac_exeext conftest.$ac_ext
24258 LIBS=$ac_check_lib_save_LIBS
24260 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24261 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24262 if test $ac_cv_lib_posix_remove = yes; then
24263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24268 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24269 { echo "$as_me:$LINENO: checking for shmat" >&5
24270 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24271 if test "${ac_cv_func_shmat+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273 else
24274 cat >conftest.$ac_ext <<_ACEOF
24275 /* confdefs.h. */
24276 _ACEOF
24277 cat confdefs.h >>conftest.$ac_ext
24278 cat >>conftest.$ac_ext <<_ACEOF
24279 /* end confdefs.h. */
24280 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24282 #define shmat innocuous_shmat
24284 /* System header to define __stub macros and hopefully few prototypes,
24285 which can conflict with char shmat (); below.
24286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24287 <limits.h> exists even on freestanding compilers. */
24289 #ifdef __STDC__
24290 # include <limits.h>
24291 #else
24292 # include <assert.h>
24293 #endif
24295 #undef shmat
24297 /* Override any GCC internal prototype to avoid an error.
24298 Use char because int might match the return type of a GCC
24299 builtin and then its argument prototype would still apply. */
24300 #ifdef __cplusplus
24301 extern "C"
24302 #endif
24303 char shmat ();
24304 /* The GNU C library defines this for functions which it implements
24305 to always fail with ENOSYS. Some functions are actually named
24306 something starting with __ and the normal name is an alias. */
24307 #if defined __stub_shmat || defined __stub___shmat
24308 choke me
24309 #endif
24312 main ()
24314 return shmat ();
24316 return 0;
24318 _ACEOF
24319 rm -f conftest.$ac_objext conftest$ac_exeext
24320 if { (ac_try="$ac_link"
24321 case "(($ac_try" in
24322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24323 *) ac_try_echo=$ac_try;;
24324 esac
24325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24326 (eval "$ac_link") 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24334 { (case "(($ac_try" in
24335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24336 *) ac_try_echo=$ac_try;;
24337 esac
24338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24339 (eval "$ac_try") 2>&5
24340 ac_status=$?
24341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342 (exit $ac_status); }; } &&
24343 { ac_try='test -s conftest$ac_exeext'
24344 { (case "(($ac_try" in
24345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346 *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349 (eval "$ac_try") 2>&5
24350 ac_status=$?
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); }; }; then
24353 ac_cv_func_shmat=yes
24354 else
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358 ac_cv_func_shmat=no
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
24364 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24365 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24367 if test $ac_cv_func_shmat = no; then
24368 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24369 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24370 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24371 echo $ECHO_N "(cached) $ECHO_C" >&6
24372 else
24373 ac_check_lib_save_LIBS=$LIBS
24374 LIBS="-lipc $LIBS"
24375 cat >conftest.$ac_ext <<_ACEOF
24376 /* confdefs.h. */
24377 _ACEOF
24378 cat confdefs.h >>conftest.$ac_ext
24379 cat >>conftest.$ac_ext <<_ACEOF
24380 /* end confdefs.h. */
24382 /* Override any GCC internal prototype to avoid an error.
24383 Use char because int might match the return type of a GCC
24384 builtin and then its argument prototype would still apply. */
24385 #ifdef __cplusplus
24386 extern "C"
24387 #endif
24388 char shmat ();
24390 main ()
24392 return shmat ();
24394 return 0;
24396 _ACEOF
24397 rm -f conftest.$ac_objext conftest$ac_exeext
24398 if { (ac_try="$ac_link"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24402 esac
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_link") 2>conftest.er1
24405 ac_status=$?
24406 grep -v '^ *+' conftest.er1 >conftest.err
24407 rm -f conftest.er1
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } &&
24411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24412 { (case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415 esac
24416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24417 (eval "$ac_try") 2>&5
24418 ac_status=$?
24419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420 (exit $ac_status); }; } &&
24421 { ac_try='test -s conftest$ac_exeext'
24422 { (case "(($ac_try" in
24423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424 *) ac_try_echo=$ac_try;;
24425 esac
24426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24427 (eval "$ac_try") 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24431 ac_cv_lib_ipc_shmat=yes
24432 else
24433 echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24436 ac_cv_lib_ipc_shmat=no
24439 rm -f core conftest.err conftest.$ac_objext \
24440 conftest$ac_exeext conftest.$ac_ext
24441 LIBS=$ac_check_lib_save_LIBS
24443 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24444 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24445 if test $ac_cv_lib_ipc_shmat = yes; then
24446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24452 # Check for libraries that X11R6 Xt/Xaw programs need.
24453 ac_save_LDFLAGS=$LDFLAGS
24454 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24455 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24456 # check for ICE first), but we must link in the order -lSM -lICE or
24457 # we get undefined symbols. So assume we have SM if we have ICE.
24458 # These have to be linked with before -lX11, unlike the other
24459 # libraries we check for below, so use a different variable.
24460 # John Interrante, Karl Berry
24461 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24462 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
24463 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24465 else
24466 ac_check_lib_save_LIBS=$LIBS
24467 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24468 cat >conftest.$ac_ext <<_ACEOF
24469 /* confdefs.h. */
24470 _ACEOF
24471 cat confdefs.h >>conftest.$ac_ext
24472 cat >>conftest.$ac_ext <<_ACEOF
24473 /* end confdefs.h. */
24475 /* Override any GCC internal prototype to avoid an error.
24476 Use char because int might match the return type of a GCC
24477 builtin and then its argument prototype would still apply. */
24478 #ifdef __cplusplus
24479 extern "C"
24480 #endif
24481 char IceConnectionNumber ();
24483 main ()
24485 return IceConnectionNumber ();
24487 return 0;
24489 _ACEOF
24490 rm -f conftest.$ac_objext conftest$ac_exeext
24491 if { (ac_try="$ac_link"
24492 case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24495 esac
24496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24497 (eval "$ac_link") 2>conftest.er1
24498 ac_status=$?
24499 grep -v '^ *+' conftest.er1 >conftest.err
24500 rm -f conftest.er1
24501 cat conftest.err >&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); } &&
24504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24505 { (case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_try") 2>&5
24511 ac_status=$?
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); }; } &&
24514 { ac_try='test -s conftest$ac_exeext'
24515 { (case "(($ac_try" in
24516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24517 *) ac_try_echo=$ac_try;;
24518 esac
24519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24520 (eval "$ac_try") 2>&5
24521 ac_status=$?
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; }; then
24524 ac_cv_lib_ICE_IceConnectionNumber=yes
24525 else
24526 echo "$as_me: failed program was:" >&5
24527 sed 's/^/| /' conftest.$ac_ext >&5
24529 ac_cv_lib_ICE_IceConnectionNumber=no
24532 rm -f core conftest.err conftest.$ac_objext \
24533 conftest$ac_exeext conftest.$ac_ext
24534 LIBS=$ac_check_lib_save_LIBS
24536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24539 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24542 LDFLAGS=$ac_save_LDFLAGS
24547 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24548 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24549 if test "${ac_cv_c_bigendian+set}" = set; then
24550 echo $ECHO_N "(cached) $ECHO_C" >&6
24551 else
24552 # See if sys/param.h defines the BYTE_ORDER macro.
24553 cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h. */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h. */
24559 #include <sys/types.h>
24560 #include <sys/param.h>
24563 main ()
24565 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24566 bogus endian macros
24567 #endif
24570 return 0;
24572 _ACEOF
24573 rm -f conftest.$ac_objext
24574 if { (ac_try="$ac_compile"
24575 case "(($ac_try" in
24576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577 *) ac_try_echo=$ac_try;;
24578 esac
24579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580 (eval "$ac_compile") 2>conftest.er1
24581 ac_status=$?
24582 grep -v '^ *+' conftest.er1 >conftest.err
24583 rm -f conftest.er1
24584 cat conftest.err >&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); } &&
24587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24594 ac_status=$?
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; } &&
24597 { ac_try='test -s conftest.$ac_objext'
24598 { (case "(($ac_try" in
24599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600 *) ac_try_echo=$ac_try;;
24601 esac
24602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603 (eval "$ac_try") 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; }; then
24607 # It does; now see whether it defined to BIG_ENDIAN or not.
24608 cat >conftest.$ac_ext <<_ACEOF
24609 /* confdefs.h. */
24610 _ACEOF
24611 cat confdefs.h >>conftest.$ac_ext
24612 cat >>conftest.$ac_ext <<_ACEOF
24613 /* end confdefs.h. */
24614 #include <sys/types.h>
24615 #include <sys/param.h>
24618 main ()
24620 #if BYTE_ORDER != BIG_ENDIAN
24621 not big endian
24622 #endif
24625 return 0;
24627 _ACEOF
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_compile") 2>conftest.er1
24636 ac_status=$?
24637 grep -v '^ *+' conftest.er1 >conftest.err
24638 rm -f conftest.er1
24639 cat conftest.err >&5
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try='test -s conftest.$ac_objext'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
24662 ac_cv_c_bigendian=yes
24663 else
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24667 ac_cv_c_bigendian=no
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 else
24672 echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 # It does not; compile a test program.
24676 if test "$cross_compiling" = yes; then
24677 # try to guess the endianness by grepping values into an object file
24678 ac_cv_c_bigendian=unknown
24679 cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h. */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24686 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24687 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24688 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24689 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24690 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24692 main ()
24694 _ascii (); _ebcdic ();
24696 return 0;
24698 _ACEOF
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706 (eval "$ac_compile") 2>conftest.er1
24707 ac_status=$?
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
24713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24714 { (case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24717 esac
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_try") 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; } &&
24723 { ac_try='test -s conftest.$ac_objext'
24724 { (case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_try") 2>&5
24730 ac_status=$?
24731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732 (exit $ac_status); }; }; then
24733 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24734 ac_cv_c_bigendian=yes
24736 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24737 if test "$ac_cv_c_bigendian" = unknown; then
24738 ac_cv_c_bigendian=no
24739 else
24740 # finding both strings is unlikely to happen, but who knows?
24741 ac_cv_c_bigendian=unknown
24744 else
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24752 else
24753 cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h. */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h. */
24759 $ac_includes_default
24761 main ()
24764 /* Are we little or big endian? From Harbison&Steele. */
24765 union
24767 long int l;
24768 char c[sizeof (long int)];
24769 } u;
24770 u.l = 1;
24771 return u.c[sizeof (long int) - 1] == 1;
24774 return 0;
24776 _ACEOF
24777 rm -f conftest$ac_exeext
24778 if { (ac_try="$ac_link"
24779 case "(($ac_try" in
24780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781 *) ac_try_echo=$ac_try;;
24782 esac
24783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784 (eval "$ac_link") 2>&5
24785 ac_status=$?
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24788 { (case "(($ac_try" in
24789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24790 *) ac_try_echo=$ac_try;;
24791 esac
24792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24793 (eval "$ac_try") 2>&5
24794 ac_status=$?
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); }; }; then
24797 ac_cv_c_bigendian=no
24798 else
24799 echo "$as_me: program exited with status $ac_status" >&5
24800 echo "$as_me: failed program was:" >&5
24801 sed 's/^/| /' conftest.$ac_ext >&5
24803 ( exit $ac_status )
24804 ac_cv_c_bigendian=yes
24806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24815 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24816 case $ac_cv_c_bigendian in
24817 yes)
24819 cat >>confdefs.h <<\_ACEOF
24820 #define WORDS_BIGENDIAN 1
24821 _ACEOF
24826 { { echo "$as_me:$LINENO: error: unknown endianness
24827 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24828 echo "$as_me: error: unknown endianness
24829 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24830 { (exit 1); exit 1; }; } ;;
24831 esac
24833 { echo "$as_me:$LINENO: checking for inline" >&5
24834 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24835 if test "${ac_cv_c_inline+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838 ac_cv_c_inline=no
24839 for ac_kw in inline __inline__ __inline; do
24840 cat >conftest.$ac_ext <<_ACEOF
24841 /* confdefs.h. */
24842 _ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 #ifndef __cplusplus
24847 typedef int foo_t;
24848 static $ac_kw foo_t static_foo () {return 0; }
24849 $ac_kw foo_t foo () {return 0; }
24850 #endif
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24858 esac
24859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24860 (eval "$ac_compile") 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24868 { (case "(($ac_try" in
24869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870 *) ac_try_echo=$ac_try;;
24871 esac
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873 (eval "$ac_try") 2>&5
24874 ac_status=$?
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); }; } &&
24877 { ac_try='test -s conftest.$ac_objext'
24878 { (case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24881 esac
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_try") 2>&5
24884 ac_status=$?
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); }; }; then
24887 ac_cv_c_inline=$ac_kw
24888 else
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24896 test "$ac_cv_c_inline" != no && break
24897 done
24900 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24901 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24904 case $ac_cv_c_inline in
24905 inline | yes) ;;
24907 case $ac_cv_c_inline in
24908 no) ac_val=;;
24909 *) ac_val=$ac_cv_c_inline;;
24910 esac
24911 cat >>confdefs.h <<_ACEOF
24912 #ifndef __cplusplus
24913 #define inline $ac_val
24914 #endif
24915 _ACEOF
24917 esac
24919 { echo "$as_me:$LINENO: checking for unsigned char" >&5
24920 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
24921 if test "${ac_cv_type_unsigned_char+set}" = set; then
24922 echo $ECHO_N "(cached) $ECHO_C" >&6
24923 else
24924 cat >conftest.$ac_ext <<_ACEOF
24925 /* confdefs.h. */
24926 _ACEOF
24927 cat confdefs.h >>conftest.$ac_ext
24928 cat >>conftest.$ac_ext <<_ACEOF
24929 /* end confdefs.h. */
24930 $ac_includes_default
24931 typedef unsigned char ac__type_new_;
24933 main ()
24935 if ((ac__type_new_ *) 0)
24936 return 0;
24937 if (sizeof (ac__type_new_))
24938 return 0;
24940 return 0;
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (ac_try="$ac_compile"
24945 case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950 (eval "$ac_compile") 2>conftest.er1
24951 ac_status=$?
24952 grep -v '^ *+' conftest.er1 >conftest.err
24953 rm -f conftest.er1
24954 cat conftest.err >&5
24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } &&
24957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24958 { (case "(($ac_try" in
24959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960 *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963 (eval "$ac_try") 2>&5
24964 ac_status=$?
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); }; } &&
24967 { ac_try='test -s conftest.$ac_objext'
24968 { (case "(($ac_try" in
24969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970 *) ac_try_echo=$ac_try;;
24971 esac
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973 (eval "$ac_try") 2>&5
24974 ac_status=$?
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); }; }; then
24977 ac_cv_type_unsigned_char=yes
24978 else
24979 echo "$as_me: failed program was:" >&5
24980 sed 's/^/| /' conftest.$ac_ext >&5
24982 ac_cv_type_unsigned_char=no
24985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
24988 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
24990 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
24991 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
24992 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995 if test "$ac_cv_type_unsigned_char" = yes; then
24996 # The cast to long int works around a bug in the HP C Compiler
24997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24999 # This bug is HP SR number 8606223364.
25000 if test "$cross_compiling" = yes; then
25001 # Depending upon the size, compute the lo and hi bounds.
25002 cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h. */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h. */
25008 $ac_includes_default
25009 typedef unsigned char ac__type_sizeof_;
25011 main ()
25013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25014 test_array [0] = 0
25017 return 0;
25019 _ACEOF
25020 rm -f conftest.$ac_objext
25021 if { (ac_try="$ac_compile"
25022 case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25025 esac
25026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_compile") 2>conftest.er1
25028 ac_status=$?
25029 grep -v '^ *+' conftest.er1 >conftest.err
25030 rm -f conftest.er1
25031 cat conftest.err >&5
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); } &&
25034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25035 { (case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040 (eval "$ac_try") 2>&5
25041 ac_status=$?
25042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043 (exit $ac_status); }; } &&
25044 { ac_try='test -s conftest.$ac_objext'
25045 { (case "(($ac_try" in
25046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047 *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050 (eval "$ac_try") 2>&5
25051 ac_status=$?
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); }; }; then
25054 ac_lo=0 ac_mid=0
25055 while :; do
25056 cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h. */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h. */
25062 $ac_includes_default
25063 typedef unsigned char ac__type_sizeof_;
25065 main ()
25067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25068 test_array [0] = 0
25071 return 0;
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25081 (eval "$ac_compile") 2>conftest.er1
25082 ac_status=$?
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
25088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25089 { (case "(($ac_try" in
25090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25091 *) ac_try_echo=$ac_try;;
25092 esac
25093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25094 (eval "$ac_try") 2>&5
25095 ac_status=$?
25096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25097 (exit $ac_status); }; } &&
25098 { ac_try='test -s conftest.$ac_objext'
25099 { (case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25102 esac
25103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25104 (eval "$ac_try") 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_hi=$ac_mid; break
25109 else
25110 echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25113 ac_lo=`expr $ac_mid + 1`
25114 if test $ac_lo -le $ac_mid; then
25115 ac_lo= ac_hi=
25116 break
25118 ac_mid=`expr 2 '*' $ac_mid + 1`
25121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 done
25123 else
25124 echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25127 cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h. */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h. */
25133 $ac_includes_default
25134 typedef unsigned char ac__type_sizeof_;
25136 main ()
25138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25139 test_array [0] = 0
25142 return 0;
25144 _ACEOF
25145 rm -f conftest.$ac_objext
25146 if { (ac_try="$ac_compile"
25147 case "(($ac_try" in
25148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149 *) ac_try_echo=$ac_try;;
25150 esac
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152 (eval "$ac_compile") 2>conftest.er1
25153 ac_status=$?
25154 grep -v '^ *+' conftest.er1 >conftest.err
25155 rm -f conftest.er1
25156 cat conftest.err >&5
25157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158 (exit $ac_status); } &&
25159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25160 { (case "(($ac_try" in
25161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162 *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165 (eval "$ac_try") 2>&5
25166 ac_status=$?
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); }; } &&
25169 { ac_try='test -s conftest.$ac_objext'
25170 { (case "(($ac_try" in
25171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25172 *) ac_try_echo=$ac_try;;
25173 esac
25174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25175 (eval "$ac_try") 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_hi=-1 ac_mid=-1
25180 while :; do
25181 cat >conftest.$ac_ext <<_ACEOF
25182 /* confdefs.h. */
25183 _ACEOF
25184 cat confdefs.h >>conftest.$ac_ext
25185 cat >>conftest.$ac_ext <<_ACEOF
25186 /* end confdefs.h. */
25187 $ac_includes_default
25188 typedef unsigned char ac__type_sizeof_;
25190 main ()
25192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25193 test_array [0] = 0
25196 return 0;
25198 _ACEOF
25199 rm -f conftest.$ac_objext
25200 if { (ac_try="$ac_compile"
25201 case "(($ac_try" in
25202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203 *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206 (eval "$ac_compile") 2>conftest.er1
25207 ac_status=$?
25208 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25214 { (case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25217 esac
25218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25219 (eval "$ac_try") 2>&5
25220 ac_status=$?
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; } &&
25223 { ac_try='test -s conftest.$ac_objext'
25224 { (case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25227 esac
25228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25229 (eval "$ac_try") 2>&5
25230 ac_status=$?
25231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232 (exit $ac_status); }; }; then
25233 ac_lo=$ac_mid; break
25234 else
25235 echo "$as_me: failed program was:" >&5
25236 sed 's/^/| /' conftest.$ac_ext >&5
25238 ac_hi=`expr '(' $ac_mid ')' - 1`
25239 if test $ac_mid -le $ac_hi; then
25240 ac_lo= ac_hi=
25241 break
25243 ac_mid=`expr 2 '*' $ac_mid`
25246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25247 done
25248 else
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ac_lo= ac_hi=
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259 # Binary search between lo and hi bounds.
25260 while test "x$ac_lo" != "x$ac_hi"; do
25261 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25262 cat >conftest.$ac_ext <<_ACEOF
25263 /* confdefs.h. */
25264 _ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25269 typedef unsigned char ac__type_sizeof_;
25271 main ()
25273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25274 test_array [0] = 0
25277 return 0;
25279 _ACEOF
25280 rm -f conftest.$ac_objext
25281 if { (ac_try="$ac_compile"
25282 case "(($ac_try" in
25283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25285 esac
25286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25287 (eval "$ac_compile") 2>conftest.er1
25288 ac_status=$?
25289 grep -v '^ *+' conftest.er1 >conftest.err
25290 rm -f conftest.er1
25291 cat conftest.err >&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
25294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25295 { (case "(($ac_try" in
25296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297 *) ac_try_echo=$ac_try;;
25298 esac
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300 (eval "$ac_try") 2>&5
25301 ac_status=$?
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); }; } &&
25304 { ac_try='test -s conftest.$ac_objext'
25305 { (case "(($ac_try" in
25306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307 *) ac_try_echo=$ac_try;;
25308 esac
25309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25310 (eval "$ac_try") 2>&5
25311 ac_status=$?
25312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313 (exit $ac_status); }; }; then
25314 ac_hi=$ac_mid
25315 else
25316 echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25319 ac_lo=`expr '(' $ac_mid ')' + 1`
25322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25323 done
25324 case $ac_lo in
25325 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
25326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25327 See \`config.log' for more details." >&5
25328 echo "$as_me: error: cannot compute sizeof (unsigned char)
25329 See \`config.log' for more details." >&2;}
25330 { (exit 77); exit 77; }; } ;;
25331 esac
25332 else
25333 cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h. */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 $ac_includes_default
25340 typedef unsigned char ac__type_sizeof_;
25341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25343 #include <stdio.h>
25344 #include <stdlib.h>
25346 main ()
25349 FILE *f = fopen ("conftest.val", "w");
25350 if (! f)
25351 return 1;
25352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25354 long int i = longval ();
25355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25356 return 1;
25357 fprintf (f, "%ld\n", i);
25359 else
25361 unsigned long int i = ulongval ();
25362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25363 return 1;
25364 fprintf (f, "%lu\n", i);
25366 return ferror (f) || fclose (f) != 0;
25369 return 0;
25371 _ACEOF
25372 rm -f conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377 esac
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_link") 2>&5
25380 ac_status=$?
25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25383 { (case "(($ac_try" in
25384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385 *) ac_try_echo=$ac_try;;
25386 esac
25387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25388 (eval "$ac_try") 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); }; }; then
25392 ac_cv_sizeof_unsigned_char=`cat conftest.val`
25393 else
25394 echo "$as_me: program exited with status $ac_status" >&5
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 ( exit $ac_status )
25399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
25400 See \`config.log' for more details." >&5
25401 echo "$as_me: error: cannot compute sizeof (unsigned char)
25402 See \`config.log' for more details." >&2;}
25403 { (exit 77); exit 77; }; }
25405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25407 rm -f conftest.val
25408 else
25409 ac_cv_sizeof_unsigned_char=0
25412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
25413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
25414 cat >>confdefs.h <<_ACEOF
25415 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
25416 _ACEOF
25419 { echo "$as_me:$LINENO: checking for unsigned short" >&5
25420 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
25421 if test "${ac_cv_type_unsigned_short+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25423 else
25424 cat >conftest.$ac_ext <<_ACEOF
25425 /* confdefs.h. */
25426 _ACEOF
25427 cat confdefs.h >>conftest.$ac_ext
25428 cat >>conftest.$ac_ext <<_ACEOF
25429 /* end confdefs.h. */
25430 $ac_includes_default
25431 typedef unsigned short ac__type_new_;
25433 main ()
25435 if ((ac__type_new_ *) 0)
25436 return 0;
25437 if (sizeof (ac__type_new_))
25438 return 0;
25440 return 0;
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447 *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450 (eval "$ac_compile") 2>conftest.er1
25451 ac_status=$?
25452 grep -v '^ *+' conftest.er1 >conftest.err
25453 rm -f conftest.er1
25454 cat conftest.err >&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } &&
25457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25458 { (case "(($ac_try" in
25459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460 *) ac_try_echo=$ac_try;;
25461 esac
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463 (eval "$ac_try") 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; } &&
25467 { ac_try='test -s conftest.$ac_objext'
25468 { (case "(($ac_try" in
25469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470 *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473 (eval "$ac_try") 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; }; then
25477 ac_cv_type_unsigned_short=yes
25478 else
25479 echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25482 ac_cv_type_unsigned_short=no
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25487 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
25488 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
25490 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
25491 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
25492 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
25493 echo $ECHO_N "(cached) $ECHO_C" >&6
25494 else
25495 if test "$ac_cv_type_unsigned_short" = yes; then
25496 # The cast to long int works around a bug in the HP C Compiler
25497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25499 # This bug is HP SR number 8606223364.
25500 if test "$cross_compiling" = yes; then
25501 # Depending upon the size, compute the lo and hi bounds.
25502 cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h. */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 $ac_includes_default
25509 typedef unsigned short ac__type_sizeof_;
25511 main ()
25513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25514 test_array [0] = 0
25517 return 0;
25519 _ACEOF
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524 *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25528 ac_status=$?
25529 grep -v '^ *+' conftest.er1 >conftest.err
25530 rm -f conftest.er1
25531 cat conftest.err >&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } &&
25534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25535 { (case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540 (eval "$ac_try") 2>&5
25541 ac_status=$?
25542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543 (exit $ac_status); }; } &&
25544 { ac_try='test -s conftest.$ac_objext'
25545 { (case "(($ac_try" in
25546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25548 esac
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_try") 2>&5
25551 ac_status=$?
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); }; }; then
25554 ac_lo=0 ac_mid=0
25555 while :; do
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25563 typedef unsigned short ac__type_sizeof_;
25565 main ()
25567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25568 test_array [0] = 0
25571 return 0;
25573 _ACEOF
25574 rm -f conftest.$ac_objext
25575 if { (ac_try="$ac_compile"
25576 case "(($ac_try" in
25577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578 *) ac_try_echo=$ac_try;;
25579 esac
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581 (eval "$ac_compile") 2>conftest.er1
25582 ac_status=$?
25583 grep -v '^ *+' conftest.er1 >conftest.err
25584 rm -f conftest.er1
25585 cat conftest.err >&5
25586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } &&
25588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25589 { (case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25592 esac
25593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25594 (eval "$ac_try") 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; } &&
25598 { ac_try='test -s conftest.$ac_objext'
25599 { (case "(($ac_try" in
25600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25601 *) ac_try_echo=$ac_try;;
25602 esac
25603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25604 (eval "$ac_try") 2>&5
25605 ac_status=$?
25606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); }; }; then
25608 ac_hi=$ac_mid; break
25609 else
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25613 ac_lo=`expr $ac_mid + 1`
25614 if test $ac_lo -le $ac_mid; then
25615 ac_lo= ac_hi=
25616 break
25618 ac_mid=`expr 2 '*' $ac_mid + 1`
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 done
25623 else
25624 echo "$as_me: failed program was:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 cat >conftest.$ac_ext <<_ACEOF
25628 /* confdefs.h. */
25629 _ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 $ac_includes_default
25634 typedef unsigned short ac__type_sizeof_;
25636 main ()
25638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25639 test_array [0] = 0
25642 return 0;
25644 _ACEOF
25645 rm -f conftest.$ac_objext
25646 if { (ac_try="$ac_compile"
25647 case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25650 esac
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652 (eval "$ac_compile") 2>conftest.er1
25653 ac_status=$?
25654 grep -v '^ *+' conftest.er1 >conftest.err
25655 rm -f conftest.er1
25656 cat conftest.err >&5
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); } &&
25659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25660 { (case "(($ac_try" in
25661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25662 *) ac_try_echo=$ac_try;;
25663 esac
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665 (eval "$ac_try") 2>&5
25666 ac_status=$?
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); }; } &&
25669 { ac_try='test -s conftest.$ac_objext'
25670 { (case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25673 esac
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675 (eval "$ac_try") 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 ac_hi=-1 ac_mid=-1
25680 while :; do
25681 cat >conftest.$ac_ext <<_ACEOF
25682 /* confdefs.h. */
25683 _ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 $ac_includes_default
25688 typedef unsigned short ac__type_sizeof_;
25690 main ()
25692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25693 test_array [0] = 0
25696 return 0;
25698 _ACEOF
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703 *) ac_try_echo=$ac_try;;
25704 esac
25705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25707 ac_status=$?
25708 grep -v '^ *+' conftest.er1 >conftest.err
25709 rm -f conftest.er1
25710 cat conftest.err >&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } &&
25713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25714 { (case "(($ac_try" in
25715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719 (eval "$ac_try") 2>&5
25720 ac_status=$?
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); }; } &&
25723 { ac_try='test -s conftest.$ac_objext'
25724 { (case "(($ac_try" in
25725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25726 *) ac_try_echo=$ac_try;;
25727 esac
25728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25729 (eval "$ac_try") 2>&5
25730 ac_status=$?
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); }; }; then
25733 ac_lo=$ac_mid; break
25734 else
25735 echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25738 ac_hi=`expr '(' $ac_mid ')' - 1`
25739 if test $ac_mid -le $ac_hi; then
25740 ac_lo= ac_hi=
25741 break
25743 ac_mid=`expr 2 '*' $ac_mid`
25746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25747 done
25748 else
25749 echo "$as_me: failed program was:" >&5
25750 sed 's/^/| /' conftest.$ac_ext >&5
25752 ac_lo= ac_hi=
25755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25759 # Binary search between lo and hi bounds.
25760 while test "x$ac_lo" != "x$ac_hi"; do
25761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25762 cat >conftest.$ac_ext <<_ACEOF
25763 /* confdefs.h. */
25764 _ACEOF
25765 cat confdefs.h >>conftest.$ac_ext
25766 cat >>conftest.$ac_ext <<_ACEOF
25767 /* end confdefs.h. */
25768 $ac_includes_default
25769 typedef unsigned short ac__type_sizeof_;
25771 main ()
25773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25774 test_array [0] = 0
25777 return 0;
25779 _ACEOF
25780 rm -f conftest.$ac_objext
25781 if { (ac_try="$ac_compile"
25782 case "(($ac_try" in
25783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25784 *) ac_try_echo=$ac_try;;
25785 esac
25786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25787 (eval "$ac_compile") 2>conftest.er1
25788 ac_status=$?
25789 grep -v '^ *+' conftest.er1 >conftest.err
25790 rm -f conftest.er1
25791 cat conftest.err >&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } &&
25794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25795 { (case "(($ac_try" in
25796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25797 *) ac_try_echo=$ac_try;;
25798 esac
25799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25800 (eval "$ac_try") 2>&5
25801 ac_status=$?
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); }; } &&
25804 { ac_try='test -s conftest.$ac_objext'
25805 { (case "(($ac_try" in
25806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807 *) ac_try_echo=$ac_try;;
25808 esac
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810 (eval "$ac_try") 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; }; then
25814 ac_hi=$ac_mid
25815 else
25816 echo "$as_me: failed program was:" >&5
25817 sed 's/^/| /' conftest.$ac_ext >&5
25819 ac_lo=`expr '(' $ac_mid ')' + 1`
25822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25823 done
25824 case $ac_lo in
25825 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25827 See \`config.log' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (unsigned short)
25829 See \`config.log' for more details." >&2;}
25830 { (exit 77); exit 77; }; } ;;
25831 esac
25832 else
25833 cat >conftest.$ac_ext <<_ACEOF
25834 /* confdefs.h. */
25835 _ACEOF
25836 cat confdefs.h >>conftest.$ac_ext
25837 cat >>conftest.$ac_ext <<_ACEOF
25838 /* end confdefs.h. */
25839 $ac_includes_default
25840 typedef unsigned short ac__type_sizeof_;
25841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25843 #include <stdio.h>
25844 #include <stdlib.h>
25846 main ()
25849 FILE *f = fopen ("conftest.val", "w");
25850 if (! f)
25851 return 1;
25852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25854 long int i = longval ();
25855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25856 return 1;
25857 fprintf (f, "%ld\n", i);
25859 else
25861 unsigned long int i = ulongval ();
25862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25863 return 1;
25864 fprintf (f, "%lu\n", i);
25866 return ferror (f) || fclose (f) != 0;
25869 return 0;
25871 _ACEOF
25872 rm -f conftest$ac_exeext
25873 if { (ac_try="$ac_link"
25874 case "(($ac_try" in
25875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876 *) ac_try_echo=$ac_try;;
25877 esac
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879 (eval "$ac_link") 2>&5
25880 ac_status=$?
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25883 { (case "(($ac_try" in
25884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885 *) ac_try_echo=$ac_try;;
25886 esac
25887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888 (eval "$ac_try") 2>&5
25889 ac_status=$?
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); }; }; then
25892 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25893 else
25894 echo "$as_me: program exited with status $ac_status" >&5
25895 echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25898 ( exit $ac_status )
25899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25900 See \`config.log' for more details." >&5
25901 echo "$as_me: error: cannot compute sizeof (unsigned short)
25902 See \`config.log' for more details." >&2;}
25903 { (exit 77); exit 77; }; }
25905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25907 rm -f conftest.val
25908 else
25909 ac_cv_sizeof_unsigned_short=0
25912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25913 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
25914 cat >>confdefs.h <<_ACEOF
25915 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25916 _ACEOF
25919 { echo "$as_me:$LINENO: checking for unsigned int" >&5
25920 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
25921 if test "${ac_cv_type_unsigned_int+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25923 else
25924 cat >conftest.$ac_ext <<_ACEOF
25925 /* confdefs.h. */
25926 _ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25930 $ac_includes_default
25931 typedef unsigned int ac__type_new_;
25933 main ()
25935 if ((ac__type_new_ *) 0)
25936 return 0;
25937 if (sizeof (ac__type_new_))
25938 return 0;
25940 return 0;
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (ac_try="$ac_compile"
25945 case "(($ac_try" in
25946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947 *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950 (eval "$ac_compile") 2>conftest.er1
25951 ac_status=$?
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25958 { (case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_try") 2>&5
25964 ac_status=$?
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; } &&
25967 { ac_try='test -s conftest.$ac_objext'
25968 { (case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_try") 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 ac_cv_type_unsigned_int=yes
25978 else
25979 echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25982 ac_cv_type_unsigned_int=no
25985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
25988 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
25990 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
25991 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
25992 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25993 echo $ECHO_N "(cached) $ECHO_C" >&6
25994 else
25995 if test "$ac_cv_type_unsigned_int" = yes; then
25996 # The cast to long int works around a bug in the HP C Compiler
25997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25999 # This bug is HP SR number 8606223364.
26000 if test "$cross_compiling" = yes; then
26001 # Depending upon the size, compute the lo and hi bounds.
26002 cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h. */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 $ac_includes_default
26009 typedef unsigned int ac__type_sizeof_;
26011 main ()
26013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26014 test_array [0] = 0
26017 return 0;
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
26022 case "(($ac_try" in
26023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024 *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26035 { (case "(($ac_try" in
26036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037 *) ac_try_echo=$ac_try;;
26038 esac
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040 (eval "$ac_try") 2>&5
26041 ac_status=$?
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); }; } &&
26044 { ac_try='test -s conftest.$ac_objext'
26045 { (case "(($ac_try" in
26046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047 *) ac_try_echo=$ac_try;;
26048 esac
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050 (eval "$ac_try") 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_lo=0 ac_mid=0
26055 while :; do
26056 cat >conftest.$ac_ext <<_ACEOF
26057 /* confdefs.h. */
26058 _ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 $ac_includes_default
26063 typedef unsigned int ac__type_sizeof_;
26065 main ()
26067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26068 test_array [0] = 0
26071 return 0;
26073 _ACEOF
26074 rm -f conftest.$ac_objext
26075 if { (ac_try="$ac_compile"
26076 case "(($ac_try" in
26077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078 *) ac_try_echo=$ac_try;;
26079 esac
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_compile") 2>conftest.er1
26082 ac_status=$?
26083 grep -v '^ *+' conftest.er1 >conftest.err
26084 rm -f conftest.er1
26085 cat conftest.err >&5
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } &&
26088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26089 { (case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26092 esac
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094 (eval "$ac_try") 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest.$ac_objext'
26099 { (case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102 esac
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_try") 2>&5
26105 ac_status=$?
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; }; then
26108 ac_hi=$ac_mid; break
26109 else
26110 echo "$as_me: failed program was:" >&5
26111 sed 's/^/| /' conftest.$ac_ext >&5
26113 ac_lo=`expr $ac_mid + 1`
26114 if test $ac_lo -le $ac_mid; then
26115 ac_lo= ac_hi=
26116 break
26118 ac_mid=`expr 2 '*' $ac_mid + 1`
26121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122 done
26123 else
26124 echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.$ac_ext >&5
26127 cat >conftest.$ac_ext <<_ACEOF
26128 /* confdefs.h. */
26129 _ACEOF
26130 cat confdefs.h >>conftest.$ac_ext
26131 cat >>conftest.$ac_ext <<_ACEOF
26132 /* end confdefs.h. */
26133 $ac_includes_default
26134 typedef unsigned int ac__type_sizeof_;
26136 main ()
26138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26139 test_array [0] = 0
26142 return 0;
26144 _ACEOF
26145 rm -f conftest.$ac_objext
26146 if { (ac_try="$ac_compile"
26147 case "(($ac_try" in
26148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149 *) ac_try_echo=$ac_try;;
26150 esac
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152 (eval "$ac_compile") 2>conftest.er1
26153 ac_status=$?
26154 grep -v '^ *+' conftest.er1 >conftest.err
26155 rm -f conftest.er1
26156 cat conftest.err >&5
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
26159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26160 { (case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165 (eval "$ac_try") 2>&5
26166 ac_status=$?
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); }; } &&
26169 { ac_try='test -s conftest.$ac_objext'
26170 { (case "(($ac_try" in
26171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175 (eval "$ac_try") 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); }; }; then
26179 ac_hi=-1 ac_mid=-1
26180 while :; do
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h. */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 $ac_includes_default
26188 typedef unsigned int ac__type_sizeof_;
26190 main ()
26192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26193 test_array [0] = 0
26196 return 0;
26198 _ACEOF
26199 rm -f conftest.$ac_objext
26200 if { (ac_try="$ac_compile"
26201 case "(($ac_try" in
26202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203 *) ac_try_echo=$ac_try;;
26204 esac
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206 (eval "$ac_compile") 2>conftest.er1
26207 ac_status=$?
26208 grep -v '^ *+' conftest.er1 >conftest.err
26209 rm -f conftest.er1
26210 cat conftest.err >&5
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } &&
26213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26214 { (case "(($ac_try" in
26215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216 *) ac_try_echo=$ac_try;;
26217 esac
26218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26219 (eval "$ac_try") 2>&5
26220 ac_status=$?
26221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26222 (exit $ac_status); }; } &&
26223 { ac_try='test -s conftest.$ac_objext'
26224 { (case "(($ac_try" in
26225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26226 *) ac_try_echo=$ac_try;;
26227 esac
26228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26229 (eval "$ac_try") 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26233 ac_lo=$ac_mid; break
26234 else
26235 echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26238 ac_hi=`expr '(' $ac_mid ')' - 1`
26239 if test $ac_mid -le $ac_hi; then
26240 ac_lo= ac_hi=
26241 break
26243 ac_mid=`expr 2 '*' $ac_mid`
26246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 done
26248 else
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ac_lo= ac_hi=
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 # Binary search between lo and hi bounds.
26260 while test "x$ac_lo" != "x$ac_hi"; do
26261 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h. */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h. */
26268 $ac_includes_default
26269 typedef unsigned int ac__type_sizeof_;
26271 main ()
26273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26274 test_array [0] = 0
26277 return 0;
26279 _ACEOF
26280 rm -f conftest.$ac_objext
26281 if { (ac_try="$ac_compile"
26282 case "(($ac_try" in
26283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284 *) ac_try_echo=$ac_try;;
26285 esac
26286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26287 (eval "$ac_compile") 2>conftest.er1
26288 ac_status=$?
26289 grep -v '^ *+' conftest.er1 >conftest.err
26290 rm -f conftest.er1
26291 cat conftest.err >&5
26292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } &&
26294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26295 { (case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300 (eval "$ac_try") 2>&5
26301 ac_status=$?
26302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303 (exit $ac_status); }; } &&
26304 { ac_try='test -s conftest.$ac_objext'
26305 { (case "(($ac_try" in
26306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307 *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310 (eval "$ac_try") 2>&5
26311 ac_status=$?
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); }; }; then
26314 ac_hi=$ac_mid
26315 else
26316 echo "$as_me: failed program was:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26319 ac_lo=`expr '(' $ac_mid ')' + 1`
26322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26323 done
26324 case $ac_lo in
26325 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
26326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26327 See \`config.log' for more details." >&5
26328 echo "$as_me: error: cannot compute sizeof (unsigned int)
26329 See \`config.log' for more details." >&2;}
26330 { (exit 77); exit 77; }; } ;;
26331 esac
26332 else
26333 cat >conftest.$ac_ext <<_ACEOF
26334 /* confdefs.h. */
26335 _ACEOF
26336 cat confdefs.h >>conftest.$ac_ext
26337 cat >>conftest.$ac_ext <<_ACEOF
26338 /* end confdefs.h. */
26339 $ac_includes_default
26340 typedef unsigned int ac__type_sizeof_;
26341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26343 #include <stdio.h>
26344 #include <stdlib.h>
26346 main ()
26349 FILE *f = fopen ("conftest.val", "w");
26350 if (! f)
26351 return 1;
26352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26354 long int i = longval ();
26355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26356 return 1;
26357 fprintf (f, "%ld\n", i);
26359 else
26361 unsigned long int i = ulongval ();
26362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26363 return 1;
26364 fprintf (f, "%lu\n", i);
26366 return ferror (f) || fclose (f) != 0;
26369 return 0;
26371 _ACEOF
26372 rm -f conftest$ac_exeext
26373 if { (ac_try="$ac_link"
26374 case "(($ac_try" in
26375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26376 *) ac_try_echo=$ac_try;;
26377 esac
26378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26379 (eval "$ac_link") 2>&5
26380 ac_status=$?
26381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26383 { (case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26386 esac
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_try") 2>&5
26389 ac_status=$?
26390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 (exit $ac_status); }; }; then
26392 ac_cv_sizeof_unsigned_int=`cat conftest.val`
26393 else
26394 echo "$as_me: program exited with status $ac_status" >&5
26395 echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26398 ( exit $ac_status )
26399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
26400 See \`config.log' for more details." >&5
26401 echo "$as_me: error: cannot compute sizeof (unsigned int)
26402 See \`config.log' for more details." >&2;}
26403 { (exit 77); exit 77; }; }
26405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26407 rm -f conftest.val
26408 else
26409 ac_cv_sizeof_unsigned_int=0
26412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
26413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
26414 cat >>confdefs.h <<_ACEOF
26415 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26416 _ACEOF
26419 { echo "$as_me:$LINENO: checking for unsigned long" >&5
26420 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
26421 if test "${ac_cv_type_unsigned_long+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26423 else
26424 cat >conftest.$ac_ext <<_ACEOF
26425 /* confdefs.h. */
26426 _ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h. */
26430 $ac_includes_default
26431 typedef unsigned long ac__type_new_;
26433 main ()
26435 if ((ac__type_new_ *) 0)
26436 return 0;
26437 if (sizeof (ac__type_new_))
26438 return 0;
26440 return 0;
26442 _ACEOF
26443 rm -f conftest.$ac_objext
26444 if { (ac_try="$ac_compile"
26445 case "(($ac_try" in
26446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447 *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450 (eval "$ac_compile") 2>conftest.er1
26451 ac_status=$?
26452 grep -v '^ *+' conftest.er1 >conftest.err
26453 rm -f conftest.er1
26454 cat conftest.err >&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); } &&
26457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26458 { (case "(($ac_try" in
26459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460 *) ac_try_echo=$ac_try;;
26461 esac
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463 (eval "$ac_try") 2>&5
26464 ac_status=$?
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); }; } &&
26467 { ac_try='test -s conftest.$ac_objext'
26468 { (case "(($ac_try" in
26469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470 *) ac_try_echo=$ac_try;;
26471 esac
26472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473 (eval "$ac_try") 2>&5
26474 ac_status=$?
26475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476 (exit $ac_status); }; }; then
26477 ac_cv_type_unsigned_long=yes
26478 else
26479 echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26482 ac_cv_type_unsigned_long=no
26485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
26488 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
26490 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
26491 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
26492 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26493 echo $ECHO_N "(cached) $ECHO_C" >&6
26494 else
26495 if test "$ac_cv_type_unsigned_long" = yes; then
26496 # The cast to long int works around a bug in the HP C Compiler
26497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26499 # This bug is HP SR number 8606223364.
26500 if test "$cross_compiling" = yes; then
26501 # Depending upon the size, compute the lo and hi bounds.
26502 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h. */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 $ac_includes_default
26509 typedef unsigned long ac__type_sizeof_;
26511 main ()
26513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26514 test_array [0] = 0
26517 return 0;
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524 *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527 (eval "$ac_compile") 2>conftest.er1
26528 ac_status=$?
26529 grep -v '^ *+' conftest.er1 >conftest.err
26530 rm -f conftest.er1
26531 cat conftest.err >&5
26532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533 (exit $ac_status); } &&
26534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26535 { (case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_try") 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; } &&
26544 { ac_try='test -s conftest.$ac_objext'
26545 { (case "(($ac_try" in
26546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547 *) ac_try_echo=$ac_try;;
26548 esac
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550 (eval "$ac_try") 2>&5
26551 ac_status=$?
26552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553 (exit $ac_status); }; }; then
26554 ac_lo=0 ac_mid=0
26555 while :; do
26556 cat >conftest.$ac_ext <<_ACEOF
26557 /* confdefs.h. */
26558 _ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562 $ac_includes_default
26563 typedef unsigned long ac__type_sizeof_;
26565 main ()
26567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26568 test_array [0] = 0
26571 return 0;
26573 _ACEOF
26574 rm -f conftest.$ac_objext
26575 if { (ac_try="$ac_compile"
26576 case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26579 esac
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581 (eval "$ac_compile") 2>conftest.er1
26582 ac_status=$?
26583 grep -v '^ *+' conftest.er1 >conftest.err
26584 rm -f conftest.er1
26585 cat conftest.err >&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } &&
26588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26589 { (case "(($ac_try" in
26590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591 *) ac_try_echo=$ac_try;;
26592 esac
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594 (eval "$ac_try") 2>&5
26595 ac_status=$?
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; } &&
26598 { ac_try='test -s conftest.$ac_objext'
26599 { (case "(($ac_try" in
26600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26601 *) ac_try_echo=$ac_try;;
26602 esac
26603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26604 (eval "$ac_try") 2>&5
26605 ac_status=$?
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; }; then
26608 ac_hi=$ac_mid; break
26609 else
26610 echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26613 ac_lo=`expr $ac_mid + 1`
26614 if test $ac_lo -le $ac_mid; then
26615 ac_lo= ac_hi=
26616 break
26618 ac_mid=`expr 2 '*' $ac_mid + 1`
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 done
26623 else
26624 echo "$as_me: failed program was:" >&5
26625 sed 's/^/| /' conftest.$ac_ext >&5
26627 cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h. */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 $ac_includes_default
26634 typedef unsigned long ac__type_sizeof_;
26636 main ()
26638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26639 test_array [0] = 0
26642 return 0;
26644 _ACEOF
26645 rm -f conftest.$ac_objext
26646 if { (ac_try="$ac_compile"
26647 case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26650 esac
26651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652 (eval "$ac_compile") 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
26659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26660 { (case "(($ac_try" in
26661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662 *) ac_try_echo=$ac_try;;
26663 esac
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665 (eval "$ac_try") 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest.$ac_objext'
26670 { (case "(($ac_try" in
26671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26672 *) ac_try_echo=$ac_try;;
26673 esac
26674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26675 (eval "$ac_try") 2>&5
26676 ac_status=$?
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); }; }; then
26679 ac_hi=-1 ac_mid=-1
26680 while :; do
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h. */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26687 $ac_includes_default
26688 typedef unsigned long ac__type_sizeof_;
26690 main ()
26692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26693 test_array [0] = 0
26696 return 0;
26698 _ACEOF
26699 rm -f conftest.$ac_objext
26700 if { (ac_try="$ac_compile"
26701 case "(($ac_try" in
26702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703 *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706 (eval "$ac_compile") 2>conftest.er1
26707 ac_status=$?
26708 grep -v '^ *+' conftest.er1 >conftest.err
26709 rm -f conftest.er1
26710 cat conftest.err >&5
26711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712 (exit $ac_status); } &&
26713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26714 { (case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_try") 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; } &&
26723 { ac_try='test -s conftest.$ac_objext'
26724 { (case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26727 esac
26728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26729 (eval "$ac_try") 2>&5
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); }; }; then
26733 ac_lo=$ac_mid; break
26734 else
26735 echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26738 ac_hi=`expr '(' $ac_mid ')' - 1`
26739 if test $ac_mid -le $ac_hi; then
26740 ac_lo= ac_hi=
26741 break
26743 ac_mid=`expr 2 '*' $ac_mid`
26746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26747 done
26748 else
26749 echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26752 ac_lo= ac_hi=
26755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26759 # Binary search between lo and hi bounds.
26760 while test "x$ac_lo" != "x$ac_hi"; do
26761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26762 cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h. */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h. */
26768 $ac_includes_default
26769 typedef unsigned long ac__type_sizeof_;
26771 main ()
26773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26774 test_array [0] = 0
26777 return 0;
26779 _ACEOF
26780 rm -f conftest.$ac_objext
26781 if { (ac_try="$ac_compile"
26782 case "(($ac_try" in
26783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784 *) ac_try_echo=$ac_try;;
26785 esac
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787 (eval "$ac_compile") 2>conftest.er1
26788 ac_status=$?
26789 grep -v '^ *+' conftest.er1 >conftest.err
26790 rm -f conftest.er1
26791 cat conftest.err >&5
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); } &&
26794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26795 { (case "(($ac_try" in
26796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797 *) ac_try_echo=$ac_try;;
26798 esac
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800 (eval "$ac_try") 2>&5
26801 ac_status=$?
26802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803 (exit $ac_status); }; } &&
26804 { ac_try='test -s conftest.$ac_objext'
26805 { (case "(($ac_try" in
26806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26807 *) ac_try_echo=$ac_try;;
26808 esac
26809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26810 (eval "$ac_try") 2>&5
26811 ac_status=$?
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; }; then
26814 ac_hi=$ac_mid
26815 else
26816 echo "$as_me: failed program was:" >&5
26817 sed 's/^/| /' conftest.$ac_ext >&5
26819 ac_lo=`expr '(' $ac_mid ')' + 1`
26822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26823 done
26824 case $ac_lo in
26825 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26827 See \`config.log' for more details." >&5
26828 echo "$as_me: error: cannot compute sizeof (unsigned long)
26829 See \`config.log' for more details." >&2;}
26830 { (exit 77); exit 77; }; } ;;
26831 esac
26832 else
26833 cat >conftest.$ac_ext <<_ACEOF
26834 /* confdefs.h. */
26835 _ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26839 $ac_includes_default
26840 typedef unsigned long ac__type_sizeof_;
26841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26843 #include <stdio.h>
26844 #include <stdlib.h>
26846 main ()
26849 FILE *f = fopen ("conftest.val", "w");
26850 if (! f)
26851 return 1;
26852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26854 long int i = longval ();
26855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26856 return 1;
26857 fprintf (f, "%ld\n", i);
26859 else
26861 unsigned long int i = ulongval ();
26862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
26863 return 1;
26864 fprintf (f, "%lu\n", i);
26866 return ferror (f) || fclose (f) != 0;
26869 return 0;
26871 _ACEOF
26872 rm -f conftest$ac_exeext
26873 if { (ac_try="$ac_link"
26874 case "(($ac_try" in
26875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876 *) ac_try_echo=$ac_try;;
26877 esac
26878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26879 (eval "$ac_link") 2>&5
26880 ac_status=$?
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26883 { (case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886 esac
26887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_try") 2>&5
26889 ac_status=$?
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); }; }; then
26892 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26893 else
26894 echo "$as_me: program exited with status $ac_status" >&5
26895 echo "$as_me: failed program was:" >&5
26896 sed 's/^/| /' conftest.$ac_ext >&5
26898 ( exit $ac_status )
26899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26900 See \`config.log' for more details." >&5
26901 echo "$as_me: error: cannot compute sizeof (unsigned long)
26902 See \`config.log' for more details." >&2;}
26903 { (exit 77); exit 77; }; }
26905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26907 rm -f conftest.val
26908 else
26909 ac_cv_sizeof_unsigned_long=0
26912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26913 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
26914 cat >>confdefs.h <<_ACEOF
26915 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26916 _ACEOF
26919 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
26920 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
26921 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26922 echo $ECHO_N "(cached) $ECHO_C" >&6
26923 else
26924 cat >conftest.$ac_ext <<_ACEOF
26925 /* confdefs.h. */
26926 _ACEOF
26927 cat confdefs.h >>conftest.$ac_ext
26928 cat >>conftest.$ac_ext <<_ACEOF
26929 /* end confdefs.h. */
26930 $ac_includes_default
26931 typedef unsigned long long ac__type_new_;
26933 main ()
26935 if ((ac__type_new_ *) 0)
26936 return 0;
26937 if (sizeof (ac__type_new_))
26938 return 0;
26940 return 0;
26942 _ACEOF
26943 rm -f conftest.$ac_objext
26944 if { (ac_try="$ac_compile"
26945 case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_compile") 2>conftest.er1
26951 ac_status=$?
26952 grep -v '^ *+' conftest.er1 >conftest.err
26953 rm -f conftest.er1
26954 cat conftest.err >&5
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); } &&
26957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26958 { (case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963 (eval "$ac_try") 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; } &&
26967 { ac_try='test -s conftest.$ac_objext'
26968 { (case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_try") 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; }; then
26977 ac_cv_type_unsigned_long_long=yes
26978 else
26979 echo "$as_me: failed program was:" >&5
26980 sed 's/^/| /' conftest.$ac_ext >&5
26982 ac_cv_type_unsigned_long_long=no
26985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26987 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26988 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
26990 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26991 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
26992 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26993 echo $ECHO_N "(cached) $ECHO_C" >&6
26994 else
26995 if test "$ac_cv_type_unsigned_long_long" = yes; then
26996 # The cast to long int works around a bug in the HP C Compiler
26997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26999 # This bug is HP SR number 8606223364.
27000 if test "$cross_compiling" = yes; then
27001 # Depending upon the size, compute the lo and hi bounds.
27002 cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h. */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 $ac_includes_default
27009 typedef unsigned long long ac__type_sizeof_;
27011 main ()
27013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27014 test_array [0] = 0
27017 return 0;
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
27022 case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_compile") 2>conftest.er1
27028 ac_status=$?
27029 grep -v '^ *+' conftest.er1 >conftest.err
27030 rm -f conftest.er1
27031 cat conftest.err >&5
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); } &&
27034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27038 esac
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
27041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; } &&
27044 { ac_try='test -s conftest.$ac_objext'
27045 { (case "(($ac_try" in
27046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047 *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050 (eval "$ac_try") 2>&5
27051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27054 ac_lo=0 ac_mid=0
27055 while :; do
27056 cat >conftest.$ac_ext <<_ACEOF
27057 /* confdefs.h. */
27058 _ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27062 $ac_includes_default
27063 typedef unsigned long long ac__type_sizeof_;
27065 main ()
27067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27068 test_array [0] = 0
27071 return 0;
27073 _ACEOF
27074 rm -f conftest.$ac_objext
27075 if { (ac_try="$ac_compile"
27076 case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_compile") 2>conftest.er1
27082 ac_status=$?
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
27088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27089 { (case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_try") 2>&5
27095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest.$ac_objext'
27099 { (case "(($ac_try" in
27100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101 *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104 (eval "$ac_try") 2>&5
27105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
27108 ac_hi=$ac_mid; break
27109 else
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27113 ac_lo=`expr $ac_mid + 1`
27114 if test $ac_lo -le $ac_mid; then
27115 ac_lo= ac_hi=
27116 break
27118 ac_mid=`expr 2 '*' $ac_mid + 1`
27121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27122 done
27123 else
27124 echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27127 cat >conftest.$ac_ext <<_ACEOF
27128 /* confdefs.h. */
27129 _ACEOF
27130 cat confdefs.h >>conftest.$ac_ext
27131 cat >>conftest.$ac_ext <<_ACEOF
27132 /* end confdefs.h. */
27133 $ac_includes_default
27134 typedef unsigned long long ac__type_sizeof_;
27136 main ()
27138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27139 test_array [0] = 0
27142 return 0;
27144 _ACEOF
27145 rm -f conftest.$ac_objext
27146 if { (ac_try="$ac_compile"
27147 case "(($ac_try" in
27148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149 *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152 (eval "$ac_compile") 2>conftest.er1
27153 ac_status=$?
27154 grep -v '^ *+' conftest.er1 >conftest.err
27155 rm -f conftest.er1
27156 cat conftest.err >&5
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); } &&
27159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27160 { (case "(($ac_try" in
27161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27162 *) ac_try_echo=$ac_try;;
27163 esac
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165 (eval "$ac_try") 2>&5
27166 ac_status=$?
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); }; } &&
27169 { ac_try='test -s conftest.$ac_objext'
27170 { (case "(($ac_try" in
27171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27172 *) ac_try_echo=$ac_try;;
27173 esac
27174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27175 (eval "$ac_try") 2>&5
27176 ac_status=$?
27177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); }; }; then
27179 ac_hi=-1 ac_mid=-1
27180 while :; do
27181 cat >conftest.$ac_ext <<_ACEOF
27182 /* confdefs.h. */
27183 _ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 $ac_includes_default
27188 typedef unsigned long long ac__type_sizeof_;
27190 main ()
27192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27193 test_array [0] = 0
27196 return 0;
27198 _ACEOF
27199 rm -f conftest.$ac_objext
27200 if { (ac_try="$ac_compile"
27201 case "(($ac_try" in
27202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203 *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_compile") 2>conftest.er1
27207 ac_status=$?
27208 grep -v '^ *+' conftest.er1 >conftest.err
27209 rm -f conftest.er1
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } &&
27213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27214 { (case "(($ac_try" in
27215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216 *) ac_try_echo=$ac_try;;
27217 esac
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219 (eval "$ac_try") 2>&5
27220 ac_status=$?
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); }; } &&
27223 { ac_try='test -s conftest.$ac_objext'
27224 { (case "(($ac_try" in
27225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27226 *) ac_try_echo=$ac_try;;
27227 esac
27228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27229 (eval "$ac_try") 2>&5
27230 ac_status=$?
27231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); }; }; then
27233 ac_lo=$ac_mid; break
27234 else
27235 echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27238 ac_hi=`expr '(' $ac_mid ')' - 1`
27239 if test $ac_mid -le $ac_hi; then
27240 ac_lo= ac_hi=
27241 break
27243 ac_mid=`expr 2 '*' $ac_mid`
27246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27247 done
27248 else
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_lo= ac_hi=
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259 # Binary search between lo and hi bounds.
27260 while test "x$ac_lo" != "x$ac_hi"; do
27261 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27262 cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h. */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h. */
27268 $ac_includes_default
27269 typedef unsigned long long ac__type_sizeof_;
27271 main ()
27273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27274 test_array [0] = 0
27277 return 0;
27279 _ACEOF
27280 rm -f conftest.$ac_objext
27281 if { (ac_try="$ac_compile"
27282 case "(($ac_try" in
27283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284 *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287 (eval "$ac_compile") 2>conftest.er1
27288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27295 { (case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_try") 2>&5
27301 ac_status=$?
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); }; } &&
27304 { ac_try='test -s conftest.$ac_objext'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
27311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; }; then
27314 ac_hi=$ac_mid
27315 else
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_lo=`expr '(' $ac_mid ')' + 1`
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27323 done
27324 case $ac_lo in
27325 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27327 See \`config.log' for more details." >&5
27328 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27329 See \`config.log' for more details." >&2;}
27330 { (exit 77); exit 77; }; } ;;
27331 esac
27332 else
27333 cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h. */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h. */
27339 $ac_includes_default
27340 typedef unsigned long long ac__type_sizeof_;
27341 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27342 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27343 #include <stdio.h>
27344 #include <stdlib.h>
27346 main ()
27349 FILE *f = fopen ("conftest.val", "w");
27350 if (! f)
27351 return 1;
27352 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27354 long int i = longval ();
27355 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27356 return 1;
27357 fprintf (f, "%ld\n", i);
27359 else
27361 unsigned long int i = ulongval ();
27362 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27363 return 1;
27364 fprintf (f, "%lu\n", i);
27366 return ferror (f) || fclose (f) != 0;
27369 return 0;
27371 _ACEOF
27372 rm -f conftest$ac_exeext
27373 if { (ac_try="$ac_link"
27374 case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_link") 2>&5
27380 ac_status=$?
27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27383 { (case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27386 esac
27387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388 (eval "$ac_try") 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27393 else
27394 echo "$as_me: program exited with status $ac_status" >&5
27395 echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27398 ( exit $ac_status )
27399 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27400 See \`config.log' for more details." >&5
27401 echo "$as_me: error: cannot compute sizeof (unsigned long long)
27402 See \`config.log' for more details." >&2;}
27403 { (exit 77); exit 77; }; }
27405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27407 rm -f conftest.val
27408 else
27409 ac_cv_sizeof_unsigned_long_long=0
27412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27413 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
27414 cat >>confdefs.h <<_ACEOF
27415 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27416 _ACEOF
27419 { echo "$as_me:$LINENO: checking for int *" >&5
27420 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
27421 if test "${ac_cv_type_int_p+set}" = set; then
27422 echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424 cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h. */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h. */
27430 $ac_includes_default
27431 typedef int * ac__type_new_;
27433 main ()
27435 if ((ac__type_new_ *) 0)
27436 return 0;
27437 if (sizeof (ac__type_new_))
27438 return 0;
27440 return 0;
27442 _ACEOF
27443 rm -f conftest.$ac_objext
27444 if { (ac_try="$ac_compile"
27445 case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_compile") 2>conftest.er1
27451 ac_status=$?
27452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
27455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
27457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27458 { (case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_try") 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; } &&
27467 { ac_try='test -s conftest.$ac_objext'
27468 { (case "(($ac_try" in
27469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470 *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473 (eval "$ac_try") 2>&5
27474 ac_status=$?
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; }; then
27477 ac_cv_type_int_p=yes
27478 else
27479 echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27482 ac_cv_type_int_p=no
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
27488 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
27490 { echo "$as_me:$LINENO: checking size of int *" >&5
27491 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
27492 if test "${ac_cv_sizeof_int_p+set}" = set; then
27493 echo $ECHO_N "(cached) $ECHO_C" >&6
27494 else
27495 if test "$ac_cv_type_int_p" = yes; then
27496 # The cast to long int works around a bug in the HP C Compiler
27497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27499 # This bug is HP SR number 8606223364.
27500 if test "$cross_compiling" = yes; then
27501 # Depending upon the size, compute the lo and hi bounds.
27502 cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h. */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27508 $ac_includes_default
27509 typedef int * ac__type_sizeof_;
27511 main ()
27513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27514 test_array [0] = 0
27517 return 0;
27519 _ACEOF
27520 rm -f conftest.$ac_objext
27521 if { (ac_try="$ac_compile"
27522 case "(($ac_try" in
27523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524 *) ac_try_echo=$ac_try;;
27525 esac
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527 (eval "$ac_compile") 2>conftest.er1
27528 ac_status=$?
27529 grep -v '^ *+' conftest.er1 >conftest.err
27530 rm -f conftest.er1
27531 cat conftest.err >&5
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); } &&
27534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27535 { (case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
27541 ac_status=$?
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; } &&
27544 { ac_try='test -s conftest.$ac_objext'
27545 { (case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_try") 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_lo=0 ac_mid=0
27555 while :; do
27556 cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h. */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h. */
27562 $ac_includes_default
27563 typedef int * ac__type_sizeof_;
27565 main ()
27567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27568 test_array [0] = 0
27571 return 0;
27573 _ACEOF
27574 rm -f conftest.$ac_objext
27575 if { (ac_try="$ac_compile"
27576 case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_compile") 2>conftest.er1
27582 ac_status=$?
27583 grep -v '^ *+' conftest.er1 >conftest.err
27584 rm -f conftest.er1
27585 cat conftest.err >&5
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } &&
27588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27589 { (case "(($ac_try" in
27590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591 *) ac_try_echo=$ac_try;;
27592 esac
27593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594 (eval "$ac_try") 2>&5
27595 ac_status=$?
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); }; } &&
27598 { ac_try='test -s conftest.$ac_objext'
27599 { (case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27602 esac
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_try") 2>&5
27605 ac_status=$?
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; }; then
27608 ac_hi=$ac_mid; break
27609 else
27610 echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27613 ac_lo=`expr $ac_mid + 1`
27614 if test $ac_lo -le $ac_mid; then
27615 ac_lo= ac_hi=
27616 break
27618 ac_mid=`expr 2 '*' $ac_mid + 1`
27621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27622 done
27623 else
27624 echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 cat >conftest.$ac_ext <<_ACEOF
27628 /* confdefs.h. */
27629 _ACEOF
27630 cat confdefs.h >>conftest.$ac_ext
27631 cat >>conftest.$ac_ext <<_ACEOF
27632 /* end confdefs.h. */
27633 $ac_includes_default
27634 typedef int * ac__type_sizeof_;
27636 main ()
27638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27639 test_array [0] = 0
27642 return 0;
27644 _ACEOF
27645 rm -f conftest.$ac_objext
27646 if { (ac_try="$ac_compile"
27647 case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_compile") 2>conftest.er1
27653 ac_status=$?
27654 grep -v '^ *+' conftest.er1 >conftest.err
27655 rm -f conftest.er1
27656 cat conftest.err >&5
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); } &&
27659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27660 { (case "(($ac_try" in
27661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662 *) ac_try_echo=$ac_try;;
27663 esac
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665 (eval "$ac_try") 2>&5
27666 ac_status=$?
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); }; } &&
27669 { ac_try='test -s conftest.$ac_objext'
27670 { (case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27673 esac
27674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_try") 2>&5
27676 ac_status=$?
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; }; then
27679 ac_hi=-1 ac_mid=-1
27680 while :; do
27681 cat >conftest.$ac_ext <<_ACEOF
27682 /* confdefs.h. */
27683 _ACEOF
27684 cat confdefs.h >>conftest.$ac_ext
27685 cat >>conftest.$ac_ext <<_ACEOF
27686 /* end confdefs.h. */
27687 $ac_includes_default
27688 typedef int * ac__type_sizeof_;
27690 main ()
27692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27693 test_array [0] = 0
27696 return 0;
27698 _ACEOF
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_compile") 2>conftest.er1
27707 ac_status=$?
27708 grep -v '^ *+' conftest.er1 >conftest.err
27709 rm -f conftest.er1
27710 cat conftest.err >&5
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); } &&
27713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27714 { (case "(($ac_try" in
27715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716 *) ac_try_echo=$ac_try;;
27717 esac
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719 (eval "$ac_try") 2>&5
27720 ac_status=$?
27721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; } &&
27723 { ac_try='test -s conftest.$ac_objext'
27724 { (case "(($ac_try" in
27725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726 *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729 (eval "$ac_try") 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 ac_lo=$ac_mid; break
27734 else
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27738 ac_hi=`expr '(' $ac_mid ')' - 1`
27739 if test $ac_mid -le $ac_hi; then
27740 ac_lo= ac_hi=
27741 break
27743 ac_mid=`expr 2 '*' $ac_mid`
27746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27747 done
27748 else
27749 echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27752 ac_lo= ac_hi=
27755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27759 # Binary search between lo and hi bounds.
27760 while test "x$ac_lo" != "x$ac_hi"; do
27761 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27762 cat >conftest.$ac_ext <<_ACEOF
27763 /* confdefs.h. */
27764 _ACEOF
27765 cat confdefs.h >>conftest.$ac_ext
27766 cat >>conftest.$ac_ext <<_ACEOF
27767 /* end confdefs.h. */
27768 $ac_includes_default
27769 typedef int * ac__type_sizeof_;
27771 main ()
27773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27774 test_array [0] = 0
27777 return 0;
27779 _ACEOF
27780 rm -f conftest.$ac_objext
27781 if { (ac_try="$ac_compile"
27782 case "(($ac_try" in
27783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784 *) ac_try_echo=$ac_try;;
27785 esac
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787 (eval "$ac_compile") 2>conftest.er1
27788 ac_status=$?
27789 grep -v '^ *+' conftest.er1 >conftest.err
27790 rm -f conftest.er1
27791 cat conftest.err >&5
27792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793 (exit $ac_status); } &&
27794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27795 { (case "(($ac_try" in
27796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797 *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800 (eval "$ac_try") 2>&5
27801 ac_status=$?
27802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803 (exit $ac_status); }; } &&
27804 { ac_try='test -s conftest.$ac_objext'
27805 { (case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27808 esac
27809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27810 (eval "$ac_try") 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814 ac_hi=$ac_mid
27815 else
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27819 ac_lo=`expr '(' $ac_mid ')' + 1`
27822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27823 done
27824 case $ac_lo in
27825 ?*) ac_cv_sizeof_int_p=$ac_lo;;
27826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
27827 See \`config.log' for more details." >&5
27828 echo "$as_me: error: cannot compute sizeof (int *)
27829 See \`config.log' for more details." >&2;}
27830 { (exit 77); exit 77; }; } ;;
27831 esac
27832 else
27833 cat >conftest.$ac_ext <<_ACEOF
27834 /* confdefs.h. */
27835 _ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 $ac_includes_default
27840 typedef int * ac__type_sizeof_;
27841 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27842 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27843 #include <stdio.h>
27844 #include <stdlib.h>
27846 main ()
27849 FILE *f = fopen ("conftest.val", "w");
27850 if (! f)
27851 return 1;
27852 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27854 long int i = longval ();
27855 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27856 return 1;
27857 fprintf (f, "%ld\n", i);
27859 else
27861 unsigned long int i = ulongval ();
27862 if (i != ((long int) (sizeof (ac__type_sizeof_))))
27863 return 1;
27864 fprintf (f, "%lu\n", i);
27866 return ferror (f) || fclose (f) != 0;
27869 return 0;
27871 _ACEOF
27872 rm -f conftest$ac_exeext
27873 if { (ac_try="$ac_link"
27874 case "(($ac_try" in
27875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27876 *) ac_try_echo=$ac_try;;
27877 esac
27878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27879 (eval "$ac_link") 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886 esac
27887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; }; then
27892 ac_cv_sizeof_int_p=`cat conftest.val`
27893 else
27894 echo "$as_me: program exited with status $ac_status" >&5
27895 echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 ( exit $ac_status )
27899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
27900 See \`config.log' for more details." >&5
27901 echo "$as_me: error: cannot compute sizeof (int *)
27902 See \`config.log' for more details." >&2;}
27903 { (exit 77); exit 77; }; }
27905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27907 rm -f conftest.val
27908 else
27909 ac_cv_sizeof_int_p=0
27912 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27913 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
27914 cat >>confdefs.h <<_ACEOF
27915 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27916 _ACEOF
27920 for ac_func in getenv
27922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h. */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h. */
27934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27936 #define $ac_func innocuous_$ac_func
27938 /* System header to define __stub macros and hopefully few prototypes,
27939 which can conflict with char $ac_func (); below.
27940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27941 <limits.h> exists even on freestanding compilers. */
27943 #ifdef __STDC__
27944 # include <limits.h>
27945 #else
27946 # include <assert.h>
27947 #endif
27949 #undef $ac_func
27951 /* Override any GCC internal prototype to avoid an error.
27952 Use char because int might match the return type of a GCC
27953 builtin and then its argument prototype would still apply. */
27954 #ifdef __cplusplus
27955 extern "C"
27956 #endif
27957 char $ac_func ();
27958 /* The GNU C library defines this for functions which it implements
27959 to always fail with ENOSYS. Some functions are actually named
27960 something starting with __ and the normal name is an alias. */
27961 #if defined __stub_$ac_func || defined __stub___$ac_func
27962 choke me
27963 #endif
27966 main ()
27968 return $ac_func ();
27970 return 0;
27972 _ACEOF
27973 rm -f conftest.$ac_objext conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27978 esac
27979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27980 (eval "$ac_link") 2>conftest.er1
27981 ac_status=$?
27982 grep -v '^ *+' conftest.er1 >conftest.err
27983 rm -f conftest.er1
27984 cat conftest.err >&5
27985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27986 (exit $ac_status); } &&
27987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27988 { (case "(($ac_try" in
27989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990 *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993 (eval "$ac_try") 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; } &&
27997 { ac_try='test -s conftest$ac_exeext'
27998 { (case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001 esac
28002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_try") 2>&5
28004 ac_status=$?
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; }; then
28007 eval "$as_ac_var=yes"
28008 else
28009 echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28012 eval "$as_ac_var=no"
28015 rm -f core conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
28018 ac_res=`eval echo '${'$as_ac_var'}'`
28019 { echo "$as_me:$LINENO: result: $ac_res" >&5
28020 echo "${ECHO_T}$ac_res" >&6; }
28021 if test `eval echo '${'$as_ac_var'}'` = yes; then
28022 cat >>confdefs.h <<_ACEOF
28023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28024 _ACEOF
28025 cat >>confdefs.h <<\_ACEOF
28026 #define BX_HAVE_GETENV 1
28027 _ACEOF
28030 done
28033 for ac_func in setenv
28035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28039 echo $ECHO_N "(cached) $ECHO_C" >&6
28040 else
28041 cat >conftest.$ac_ext <<_ACEOF
28042 /* confdefs.h. */
28043 _ACEOF
28044 cat confdefs.h >>conftest.$ac_ext
28045 cat >>conftest.$ac_ext <<_ACEOF
28046 /* end confdefs.h. */
28047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28049 #define $ac_func innocuous_$ac_func
28051 /* System header to define __stub macros and hopefully few prototypes,
28052 which can conflict with char $ac_func (); below.
28053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28054 <limits.h> exists even on freestanding compilers. */
28056 #ifdef __STDC__
28057 # include <limits.h>
28058 #else
28059 # include <assert.h>
28060 #endif
28062 #undef $ac_func
28064 /* Override any GCC internal prototype to avoid an error.
28065 Use char because int might match the return type of a GCC
28066 builtin and then its argument prototype would still apply. */
28067 #ifdef __cplusplus
28068 extern "C"
28069 #endif
28070 char $ac_func ();
28071 /* The GNU C library defines this for functions which it implements
28072 to always fail with ENOSYS. Some functions are actually named
28073 something starting with __ and the normal name is an alias. */
28074 #if defined __stub_$ac_func || defined __stub___$ac_func
28075 choke me
28076 #endif
28079 main ()
28081 return $ac_func ();
28083 return 0;
28085 _ACEOF
28086 rm -f conftest.$ac_objext conftest$ac_exeext
28087 if { (ac_try="$ac_link"
28088 case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28091 esac
28092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_link") 2>conftest.er1
28094 ac_status=$?
28095 grep -v '^ *+' conftest.er1 >conftest.err
28096 rm -f conftest.er1
28097 cat conftest.err >&5
28098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099 (exit $ac_status); } &&
28100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28101 { (case "(($ac_try" in
28102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28103 *) ac_try_echo=$ac_try;;
28104 esac
28105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28106 (eval "$ac_try") 2>&5
28107 ac_status=$?
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; } &&
28110 { ac_try='test -s conftest$ac_exeext'
28111 { (case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28114 esac
28115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116 (eval "$ac_try") 2>&5
28117 ac_status=$?
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28119 (exit $ac_status); }; }; then
28120 eval "$as_ac_var=yes"
28121 else
28122 echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28125 eval "$as_ac_var=no"
28128 rm -f core conftest.err conftest.$ac_objext \
28129 conftest$ac_exeext conftest.$ac_ext
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132 { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135 cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28137 _ACEOF
28138 cat >>confdefs.h <<\_ACEOF
28139 #define BX_HAVE_SETENV 1
28140 _ACEOF
28143 done
28146 for ac_func in select
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154 cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h. */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h. */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28162 #define $ac_func innocuous_$ac_func
28164 /* System header to define __stub macros and hopefully few prototypes,
28165 which can conflict with char $ac_func (); below.
28166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167 <limits.h> exists even on freestanding compilers. */
28169 #ifdef __STDC__
28170 # include <limits.h>
28171 #else
28172 # include <assert.h>
28173 #endif
28175 #undef $ac_func
28177 /* Override any GCC internal prototype to avoid an error.
28178 Use char because int might match the return type of a GCC
28179 builtin and then its argument prototype would still apply. */
28180 #ifdef __cplusplus
28181 extern "C"
28182 #endif
28183 char $ac_func ();
28184 /* The GNU C library defines this for functions which it implements
28185 to always fail with ENOSYS. Some functions are actually named
28186 something starting with __ and the normal name is an alias. */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28188 choke me
28189 #endif
28192 main ()
28194 return $ac_func ();
28196 return 0;
28198 _ACEOF
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206 (eval "$ac_link") 2>conftest.er1
28207 ac_status=$?
28208 grep -v '^ *+' conftest.er1 >conftest.err
28209 rm -f conftest.er1
28210 cat conftest.err >&5
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
28213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28214 { (case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219 (eval "$ac_try") 2>&5
28220 ac_status=$?
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); }; } &&
28223 { ac_try='test -s conftest$ac_exeext'
28224 { (case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227 esac
28228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28229 (eval "$ac_try") 2>&5
28230 ac_status=$?
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); }; }; then
28233 eval "$as_ac_var=yes"
28234 else
28235 echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28238 eval "$as_ac_var=no"
28241 rm -f core conftest.err conftest.$ac_objext \
28242 conftest$ac_exeext conftest.$ac_ext
28244 ac_res=`eval echo '${'$as_ac_var'}'`
28245 { echo "$as_me:$LINENO: result: $ac_res" >&5
28246 echo "${ECHO_T}$ac_res" >&6; }
28247 if test `eval echo '${'$as_ac_var'}'` = yes; then
28248 cat >>confdefs.h <<_ACEOF
28249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28250 _ACEOF
28251 cat >>confdefs.h <<\_ACEOF
28252 #define BX_HAVE_SELECT 1
28253 _ACEOF
28256 done
28259 for ac_func in snprintf
28261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28265 echo $ECHO_N "(cached) $ECHO_C" >&6
28266 else
28267 cat >conftest.$ac_ext <<_ACEOF
28268 /* confdefs.h. */
28269 _ACEOF
28270 cat confdefs.h >>conftest.$ac_ext
28271 cat >>conftest.$ac_ext <<_ACEOF
28272 /* end confdefs.h. */
28273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28275 #define $ac_func innocuous_$ac_func
28277 /* System header to define __stub macros and hopefully few prototypes,
28278 which can conflict with char $ac_func (); below.
28279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28280 <limits.h> exists even on freestanding compilers. */
28282 #ifdef __STDC__
28283 # include <limits.h>
28284 #else
28285 # include <assert.h>
28286 #endif
28288 #undef $ac_func
28290 /* Override any GCC internal prototype to avoid an error.
28291 Use char because int might match the return type of a GCC
28292 builtin and then its argument prototype would still apply. */
28293 #ifdef __cplusplus
28294 extern "C"
28295 #endif
28296 char $ac_func ();
28297 /* The GNU C library defines this for functions which it implements
28298 to always fail with ENOSYS. Some functions are actually named
28299 something starting with __ and the normal name is an alias. */
28300 #if defined __stub_$ac_func || defined __stub___$ac_func
28301 choke me
28302 #endif
28305 main ()
28307 return $ac_func ();
28309 return 0;
28311 _ACEOF
28312 rm -f conftest.$ac_objext conftest$ac_exeext
28313 if { (ac_try="$ac_link"
28314 case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28317 esac
28318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_link") 2>conftest.er1
28320 ac_status=$?
28321 grep -v '^ *+' conftest.er1 >conftest.err
28322 rm -f conftest.er1
28323 cat conftest.err >&5
28324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325 (exit $ac_status); } &&
28326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28327 { (case "(($ac_try" in
28328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28329 *) ac_try_echo=$ac_try;;
28330 esac
28331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28332 (eval "$ac_try") 2>&5
28333 ac_status=$?
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; } &&
28336 { ac_try='test -s conftest$ac_exeext'
28337 { (case "(($ac_try" in
28338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339 *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342 (eval "$ac_try") 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; }; then
28346 eval "$as_ac_var=yes"
28347 else
28348 echo "$as_me: failed program was:" >&5
28349 sed 's/^/| /' conftest.$ac_ext >&5
28351 eval "$as_ac_var=no"
28354 rm -f core conftest.err conftest.$ac_objext \
28355 conftest$ac_exeext conftest.$ac_ext
28357 ac_res=`eval echo '${'$as_ac_var'}'`
28358 { echo "$as_me:$LINENO: result: $ac_res" >&5
28359 echo "${ECHO_T}$ac_res" >&6; }
28360 if test `eval echo '${'$as_ac_var'}'` = yes; then
28361 cat >>confdefs.h <<_ACEOF
28362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28363 _ACEOF
28364 cat >>confdefs.h <<\_ACEOF
28365 #define BX_HAVE_SNPRINTF 1
28366 _ACEOF
28369 done
28372 for ac_func in vsnprintf
28374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28378 echo $ECHO_N "(cached) $ECHO_C" >&6
28379 else
28380 cat >conftest.$ac_ext <<_ACEOF
28381 /* confdefs.h. */
28382 _ACEOF
28383 cat confdefs.h >>conftest.$ac_ext
28384 cat >>conftest.$ac_ext <<_ACEOF
28385 /* end confdefs.h. */
28386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28388 #define $ac_func innocuous_$ac_func
28390 /* System header to define __stub macros and hopefully few prototypes,
28391 which can conflict with char $ac_func (); below.
28392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28393 <limits.h> exists even on freestanding compilers. */
28395 #ifdef __STDC__
28396 # include <limits.h>
28397 #else
28398 # include <assert.h>
28399 #endif
28401 #undef $ac_func
28403 /* Override any GCC internal prototype to avoid an error.
28404 Use char because int might match the return type of a GCC
28405 builtin and then its argument prototype would still apply. */
28406 #ifdef __cplusplus
28407 extern "C"
28408 #endif
28409 char $ac_func ();
28410 /* The GNU C library defines this for functions which it implements
28411 to always fail with ENOSYS. Some functions are actually named
28412 something starting with __ and the normal name is an alias. */
28413 #if defined __stub_$ac_func || defined __stub___$ac_func
28414 choke me
28415 #endif
28418 main ()
28420 return $ac_func ();
28422 return 0;
28424 _ACEOF
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (ac_try="$ac_link"
28427 case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_link") 2>conftest.er1
28433 ac_status=$?
28434 grep -v '^ *+' conftest.er1 >conftest.err
28435 rm -f conftest.er1
28436 cat conftest.err >&5
28437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438 (exit $ac_status); } &&
28439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28440 { (case "(($ac_try" in
28441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28442 *) ac_try_echo=$ac_try;;
28443 esac
28444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28445 (eval "$ac_try") 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; } &&
28449 { ac_try='test -s conftest$ac_exeext'
28450 { (case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28453 esac
28454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_try") 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 eval "$as_ac_var=yes"
28460 else
28461 echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28464 eval "$as_ac_var=no"
28467 rm -f core conftest.err conftest.$ac_objext \
28468 conftest$ac_exeext conftest.$ac_ext
28470 ac_res=`eval echo '${'$as_ac_var'}'`
28471 { echo "$as_me:$LINENO: result: $ac_res" >&5
28472 echo "${ECHO_T}$ac_res" >&6; }
28473 if test `eval echo '${'$as_ac_var'}'` = yes; then
28474 cat >>confdefs.h <<_ACEOF
28475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28476 _ACEOF
28477 cat >>confdefs.h <<\_ACEOF
28478 #define BX_HAVE_VSNPRINTF 1
28479 _ACEOF
28482 done
28485 for ac_func in strtoull
28487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28491 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 else
28493 cat >conftest.$ac_ext <<_ACEOF
28494 /* confdefs.h. */
28495 _ACEOF
28496 cat confdefs.h >>conftest.$ac_ext
28497 cat >>conftest.$ac_ext <<_ACEOF
28498 /* end confdefs.h. */
28499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28501 #define $ac_func innocuous_$ac_func
28503 /* System header to define __stub macros and hopefully few prototypes,
28504 which can conflict with char $ac_func (); below.
28505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28506 <limits.h> exists even on freestanding compilers. */
28508 #ifdef __STDC__
28509 # include <limits.h>
28510 #else
28511 # include <assert.h>
28512 #endif
28514 #undef $ac_func
28516 /* Override any GCC internal prototype to avoid an error.
28517 Use char because int might match the return type of a GCC
28518 builtin and then its argument prototype would still apply. */
28519 #ifdef __cplusplus
28520 extern "C"
28521 #endif
28522 char $ac_func ();
28523 /* The GNU C library defines this for functions which it implements
28524 to always fail with ENOSYS. Some functions are actually named
28525 something starting with __ and the normal name is an alias. */
28526 #if defined __stub_$ac_func || defined __stub___$ac_func
28527 choke me
28528 #endif
28531 main ()
28533 return $ac_func ();
28535 return 0;
28537 _ACEOF
28538 rm -f conftest.$ac_objext conftest$ac_exeext
28539 if { (ac_try="$ac_link"
28540 case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28543 esac
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545 (eval "$ac_link") 2>conftest.er1
28546 ac_status=$?
28547 grep -v '^ *+' conftest.er1 >conftest.err
28548 rm -f conftest.er1
28549 cat conftest.err >&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
28552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28553 { (case "(($ac_try" in
28554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555 *) ac_try_echo=$ac_try;;
28556 esac
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558 (eval "$ac_try") 2>&5
28559 ac_status=$?
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; } &&
28562 { ac_try='test -s conftest$ac_exeext'
28563 { (case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28566 esac
28567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_try") 2>&5
28569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; }; then
28572 eval "$as_ac_var=yes"
28573 else
28574 echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.$ac_ext >&5
28577 eval "$as_ac_var=no"
28580 rm -f core conftest.err conftest.$ac_objext \
28581 conftest$ac_exeext conftest.$ac_ext
28583 ac_res=`eval echo '${'$as_ac_var'}'`
28584 { echo "$as_me:$LINENO: result: $ac_res" >&5
28585 echo "${ECHO_T}$ac_res" >&6; }
28586 if test `eval echo '${'$as_ac_var'}'` = yes; then
28587 cat >>confdefs.h <<_ACEOF
28588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28589 _ACEOF
28590 cat >>confdefs.h <<\_ACEOF
28591 #define BX_HAVE_STRTOULL 1
28592 _ACEOF
28595 done
28598 for ac_func in strtouq
28600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28604 echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606 cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h. */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28614 #define $ac_func innocuous_$ac_func
28616 /* System header to define __stub macros and hopefully few prototypes,
28617 which can conflict with char $ac_func (); below.
28618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28619 <limits.h> exists even on freestanding compilers. */
28621 #ifdef __STDC__
28622 # include <limits.h>
28623 #else
28624 # include <assert.h>
28625 #endif
28627 #undef $ac_func
28629 /* Override any GCC internal prototype to avoid an error.
28630 Use char because int might match the return type of a GCC
28631 builtin and then its argument prototype would still apply. */
28632 #ifdef __cplusplus
28633 extern "C"
28634 #endif
28635 char $ac_func ();
28636 /* The GNU C library defines this for functions which it implements
28637 to always fail with ENOSYS. Some functions are actually named
28638 something starting with __ and the normal name is an alias. */
28639 #if defined __stub_$ac_func || defined __stub___$ac_func
28640 choke me
28641 #endif
28644 main ()
28646 return $ac_func ();
28648 return 0;
28650 _ACEOF
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (ac_try="$ac_link"
28653 case "(($ac_try" in
28654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28655 *) ac_try_echo=$ac_try;;
28656 esac
28657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28658 (eval "$ac_link") 2>conftest.er1
28659 ac_status=$?
28660 grep -v '^ *+' conftest.er1 >conftest.err
28661 rm -f conftest.er1
28662 cat conftest.err >&5
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); } &&
28665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28666 { (case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28669 esac
28670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_try") 2>&5
28672 ac_status=$?
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; } &&
28675 { ac_try='test -s conftest$ac_exeext'
28676 { (case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679 esac
28680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_try") 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 eval "$as_ac_var=yes"
28686 else
28687 echo "$as_me: failed program was:" >&5
28688 sed 's/^/| /' conftest.$ac_ext >&5
28690 eval "$as_ac_var=no"
28693 rm -f core conftest.err conftest.$ac_objext \
28694 conftest$ac_exeext conftest.$ac_ext
28696 ac_res=`eval echo '${'$as_ac_var'}'`
28697 { echo "$as_me:$LINENO: result: $ac_res" >&5
28698 echo "${ECHO_T}$ac_res" >&6; }
28699 if test `eval echo '${'$as_ac_var'}'` = yes; then
28700 cat >>confdefs.h <<_ACEOF
28701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28702 _ACEOF
28703 cat >>confdefs.h <<\_ACEOF
28704 #define BX_HAVE_STRTOUQ 1
28705 _ACEOF
28708 done
28711 for ac_func in strdup
28713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28717 echo $ECHO_N "(cached) $ECHO_C" >&6
28718 else
28719 cat >conftest.$ac_ext <<_ACEOF
28720 /* confdefs.h. */
28721 _ACEOF
28722 cat confdefs.h >>conftest.$ac_ext
28723 cat >>conftest.$ac_ext <<_ACEOF
28724 /* end confdefs.h. */
28725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28727 #define $ac_func innocuous_$ac_func
28729 /* System header to define __stub macros and hopefully few prototypes,
28730 which can conflict with char $ac_func (); below.
28731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28732 <limits.h> exists even on freestanding compilers. */
28734 #ifdef __STDC__
28735 # include <limits.h>
28736 #else
28737 # include <assert.h>
28738 #endif
28740 #undef $ac_func
28742 /* Override any GCC internal prototype to avoid an error.
28743 Use char because int might match the return type of a GCC
28744 builtin and then its argument prototype would still apply. */
28745 #ifdef __cplusplus
28746 extern "C"
28747 #endif
28748 char $ac_func ();
28749 /* The GNU C library defines this for functions which it implements
28750 to always fail with ENOSYS. Some functions are actually named
28751 something starting with __ and the normal name is an alias. */
28752 #if defined __stub_$ac_func || defined __stub___$ac_func
28753 choke me
28754 #endif
28757 main ()
28759 return $ac_func ();
28761 return 0;
28763 _ACEOF
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (ac_try="$ac_link"
28766 case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28769 esac
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_link") 2>conftest.er1
28772 ac_status=$?
28773 grep -v '^ *+' conftest.er1 >conftest.err
28774 rm -f conftest.er1
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } &&
28778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28779 { (case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782 esac
28783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_try") 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; } &&
28788 { ac_try='test -s conftest$ac_exeext'
28789 { (case "(($ac_try" in
28790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28791 *) ac_try_echo=$ac_try;;
28792 esac
28793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28794 (eval "$ac_try") 2>&5
28795 ac_status=$?
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); }; }; then
28798 eval "$as_ac_var=yes"
28799 else
28800 echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28803 eval "$as_ac_var=no"
28806 rm -f core conftest.err conftest.$ac_objext \
28807 conftest$ac_exeext conftest.$ac_ext
28809 ac_res=`eval echo '${'$as_ac_var'}'`
28810 { echo "$as_me:$LINENO: result: $ac_res" >&5
28811 echo "${ECHO_T}$ac_res" >&6; }
28812 if test `eval echo '${'$as_ac_var'}'` = yes; then
28813 cat >>confdefs.h <<_ACEOF
28814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28815 _ACEOF
28816 cat >>confdefs.h <<\_ACEOF
28817 #define BX_HAVE_STRDUP 1
28818 _ACEOF
28821 done
28824 for ac_func in strrev
28826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28827 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28830 echo $ECHO_N "(cached) $ECHO_C" >&6
28831 else
28832 cat >conftest.$ac_ext <<_ACEOF
28833 /* confdefs.h. */
28834 _ACEOF
28835 cat confdefs.h >>conftest.$ac_ext
28836 cat >>conftest.$ac_ext <<_ACEOF
28837 /* end confdefs.h. */
28838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28840 #define $ac_func innocuous_$ac_func
28842 /* System header to define __stub macros and hopefully few prototypes,
28843 which can conflict with char $ac_func (); below.
28844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28845 <limits.h> exists even on freestanding compilers. */
28847 #ifdef __STDC__
28848 # include <limits.h>
28849 #else
28850 # include <assert.h>
28851 #endif
28853 #undef $ac_func
28855 /* Override any GCC internal prototype to avoid an error.
28856 Use char because int might match the return type of a GCC
28857 builtin and then its argument prototype would still apply. */
28858 #ifdef __cplusplus
28859 extern "C"
28860 #endif
28861 char $ac_func ();
28862 /* The GNU C library defines this for functions which it implements
28863 to always fail with ENOSYS. Some functions are actually named
28864 something starting with __ and the normal name is an alias. */
28865 #if defined __stub_$ac_func || defined __stub___$ac_func
28866 choke me
28867 #endif
28870 main ()
28872 return $ac_func ();
28874 return 0;
28876 _ACEOF
28877 rm -f conftest.$ac_objext conftest$ac_exeext
28878 if { (ac_try="$ac_link"
28879 case "(($ac_try" in
28880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28881 *) ac_try_echo=$ac_try;;
28882 esac
28883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28884 (eval "$ac_link") 2>conftest.er1
28885 ac_status=$?
28886 grep -v '^ *+' conftest.er1 >conftest.err
28887 rm -f conftest.er1
28888 cat conftest.err >&5
28889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890 (exit $ac_status); } &&
28891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28892 { (case "(($ac_try" in
28893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894 *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897 (eval "$ac_try") 2>&5
28898 ac_status=$?
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); }; } &&
28901 { ac_try='test -s conftest$ac_exeext'
28902 { (case "(($ac_try" in
28903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904 *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907 (eval "$ac_try") 2>&5
28908 ac_status=$?
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); }; }; then
28911 eval "$as_ac_var=yes"
28912 else
28913 echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28916 eval "$as_ac_var=no"
28919 rm -f core conftest.err conftest.$ac_objext \
28920 conftest$ac_exeext conftest.$ac_ext
28922 ac_res=`eval echo '${'$as_ac_var'}'`
28923 { echo "$as_me:$LINENO: result: $ac_res" >&5
28924 echo "${ECHO_T}$ac_res" >&6; }
28925 if test `eval echo '${'$as_ac_var'}'` = yes; then
28926 cat >>confdefs.h <<_ACEOF
28927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28928 _ACEOF
28929 cat >>confdefs.h <<\_ACEOF
28930 #define BX_HAVE_STRREV 1
28931 _ACEOF
28934 done
28937 for ac_func in sleep
28939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28943 echo $ECHO_N "(cached) $ECHO_C" >&6
28944 else
28945 cat >conftest.$ac_ext <<_ACEOF
28946 /* confdefs.h. */
28947 _ACEOF
28948 cat confdefs.h >>conftest.$ac_ext
28949 cat >>conftest.$ac_ext <<_ACEOF
28950 /* end confdefs.h. */
28951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28953 #define $ac_func innocuous_$ac_func
28955 /* System header to define __stub macros and hopefully few prototypes,
28956 which can conflict with char $ac_func (); below.
28957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28958 <limits.h> exists even on freestanding compilers. */
28960 #ifdef __STDC__
28961 # include <limits.h>
28962 #else
28963 # include <assert.h>
28964 #endif
28966 #undef $ac_func
28968 /* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28971 #ifdef __cplusplus
28972 extern "C"
28973 #endif
28974 char $ac_func ();
28975 /* The GNU C library defines this for functions which it implements
28976 to always fail with ENOSYS. Some functions are actually named
28977 something starting with __ and the normal name is an alias. */
28978 #if defined __stub_$ac_func || defined __stub___$ac_func
28979 choke me
28980 #endif
28983 main ()
28985 return $ac_func ();
28987 return 0;
28989 _ACEOF
28990 rm -f conftest.$ac_objext conftest$ac_exeext
28991 if { (ac_try="$ac_link"
28992 case "(($ac_try" in
28993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994 *) ac_try_echo=$ac_try;;
28995 esac
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997 (eval "$ac_link") 2>conftest.er1
28998 ac_status=$?
28999 grep -v '^ *+' conftest.er1 >conftest.err
29000 rm -f conftest.er1
29001 cat conftest.err >&5
29002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003 (exit $ac_status); } &&
29004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29005 { (case "(($ac_try" in
29006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007 *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010 (eval "$ac_try") 2>&5
29011 ac_status=$?
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest$ac_exeext'
29015 { (case "(($ac_try" in
29016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29017 *) ac_try_echo=$ac_try;;
29018 esac
29019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29020 (eval "$ac_try") 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; }; then
29024 eval "$as_ac_var=yes"
29025 else
29026 echo "$as_me: failed program was:" >&5
29027 sed 's/^/| /' conftest.$ac_ext >&5
29029 eval "$as_ac_var=no"
29032 rm -f core conftest.err conftest.$ac_objext \
29033 conftest$ac_exeext conftest.$ac_ext
29035 ac_res=`eval echo '${'$as_ac_var'}'`
29036 { echo "$as_me:$LINENO: result: $ac_res" >&5
29037 echo "${ECHO_T}$ac_res" >&6; }
29038 if test `eval echo '${'$as_ac_var'}'` = yes; then
29039 cat >>confdefs.h <<_ACEOF
29040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29041 _ACEOF
29042 cat >>confdefs.h <<\_ACEOF
29043 #define BX_HAVE_SLEEP 1
29044 _ACEOF
29047 done
29050 for ac_func in usleep
29052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29056 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 else
29058 cat >conftest.$ac_ext <<_ACEOF
29059 /* confdefs.h. */
29060 _ACEOF
29061 cat confdefs.h >>conftest.$ac_ext
29062 cat >>conftest.$ac_ext <<_ACEOF
29063 /* end confdefs.h. */
29064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29066 #define $ac_func innocuous_$ac_func
29068 /* System header to define __stub macros and hopefully few prototypes,
29069 which can conflict with char $ac_func (); below.
29070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29071 <limits.h> exists even on freestanding compilers. */
29073 #ifdef __STDC__
29074 # include <limits.h>
29075 #else
29076 # include <assert.h>
29077 #endif
29079 #undef $ac_func
29081 /* Override any GCC internal prototype to avoid an error.
29082 Use char because int might match the return type of a GCC
29083 builtin and then its argument prototype would still apply. */
29084 #ifdef __cplusplus
29085 extern "C"
29086 #endif
29087 char $ac_func ();
29088 /* The GNU C library defines this for functions which it implements
29089 to always fail with ENOSYS. Some functions are actually named
29090 something starting with __ and the normal name is an alias. */
29091 #if defined __stub_$ac_func || defined __stub___$ac_func
29092 choke me
29093 #endif
29096 main ()
29098 return $ac_func ();
29100 return 0;
29102 _ACEOF
29103 rm -f conftest.$ac_objext conftest$ac_exeext
29104 if { (ac_try="$ac_link"
29105 case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_link") 2>conftest.er1
29111 ac_status=$?
29112 grep -v '^ *+' conftest.er1 >conftest.err
29113 rm -f conftest.er1
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } &&
29117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29121 esac
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; } &&
29127 { ac_try='test -s conftest$ac_exeext'
29128 { (case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_try") 2>&5
29134 ac_status=$?
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); }; }; then
29137 eval "$as_ac_var=yes"
29138 else
29139 echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29142 eval "$as_ac_var=no"
29145 rm -f core conftest.err conftest.$ac_objext \
29146 conftest$ac_exeext conftest.$ac_ext
29148 ac_res=`eval echo '${'$as_ac_var'}'`
29149 { echo "$as_me:$LINENO: result: $ac_res" >&5
29150 echo "${ECHO_T}$ac_res" >&6; }
29151 if test `eval echo '${'$as_ac_var'}'` = yes; then
29152 cat >>confdefs.h <<_ACEOF
29153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29154 _ACEOF
29155 cat >>confdefs.h <<\_ACEOF
29156 #define BX_HAVE_USLEEP 1
29157 _ACEOF
29160 done
29163 for ac_func in nanosleep
29165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 else
29171 cat >conftest.$ac_ext <<_ACEOF
29172 /* confdefs.h. */
29173 _ACEOF
29174 cat confdefs.h >>conftest.$ac_ext
29175 cat >>conftest.$ac_ext <<_ACEOF
29176 /* end confdefs.h. */
29177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29179 #define $ac_func innocuous_$ac_func
29181 /* System header to define __stub macros and hopefully few prototypes,
29182 which can conflict with char $ac_func (); below.
29183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29184 <limits.h> exists even on freestanding compilers. */
29186 #ifdef __STDC__
29187 # include <limits.h>
29188 #else
29189 # include <assert.h>
29190 #endif
29192 #undef $ac_func
29194 /* Override any GCC internal prototype to avoid an error.
29195 Use char because int might match the return type of a GCC
29196 builtin and then its argument prototype would still apply. */
29197 #ifdef __cplusplus
29198 extern "C"
29199 #endif
29200 char $ac_func ();
29201 /* The GNU C library defines this for functions which it implements
29202 to always fail with ENOSYS. Some functions are actually named
29203 something starting with __ and the normal name is an alias. */
29204 #if defined __stub_$ac_func || defined __stub___$ac_func
29205 choke me
29206 #endif
29209 main ()
29211 return $ac_func ();
29213 return 0;
29215 _ACEOF
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220 *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223 (eval "$ac_link") 2>conftest.er1
29224 ac_status=$?
29225 grep -v '^ *+' conftest.er1 >conftest.err
29226 rm -f conftest.er1
29227 cat conftest.err >&5
29228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229 (exit $ac_status); } &&
29230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29231 { (case "(($ac_try" in
29232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29233 *) ac_try_echo=$ac_try;;
29234 esac
29235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29236 (eval "$ac_try") 2>&5
29237 ac_status=$?
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239 (exit $ac_status); }; } &&
29240 { ac_try='test -s conftest$ac_exeext'
29241 { (case "(($ac_try" in
29242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243 *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246 (eval "$ac_try") 2>&5
29247 ac_status=$?
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); }; }; then
29250 eval "$as_ac_var=yes"
29251 else
29252 echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29255 eval "$as_ac_var=no"
29258 rm -f core conftest.err conftest.$ac_objext \
29259 conftest$ac_exeext conftest.$ac_ext
29261 ac_res=`eval echo '${'$as_ac_var'}'`
29262 { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29264 if test `eval echo '${'$as_ac_var'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29267 _ACEOF
29268 cat >>confdefs.h <<\_ACEOF
29269 #define BX_HAVE_NANOSLEEP 1
29270 _ACEOF
29273 done
29276 for ac_func in abort
29278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283 else
29284 cat >conftest.$ac_ext <<_ACEOF
29285 /* confdefs.h. */
29286 _ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h. */
29290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29292 #define $ac_func innocuous_$ac_func
29294 /* System header to define __stub macros and hopefully few prototypes,
29295 which can conflict with char $ac_func (); below.
29296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29297 <limits.h> exists even on freestanding compilers. */
29299 #ifdef __STDC__
29300 # include <limits.h>
29301 #else
29302 # include <assert.h>
29303 #endif
29305 #undef $ac_func
29307 /* Override any GCC internal prototype to avoid an error.
29308 Use char because int might match the return type of a GCC
29309 builtin and then its argument prototype would still apply. */
29310 #ifdef __cplusplus
29311 extern "C"
29312 #endif
29313 char $ac_func ();
29314 /* The GNU C library defines this for functions which it implements
29315 to always fail with ENOSYS. Some functions are actually named
29316 something starting with __ and the normal name is an alias. */
29317 #if defined __stub_$ac_func || defined __stub___$ac_func
29318 choke me
29319 #endif
29322 main ()
29324 return $ac_func ();
29326 return 0;
29328 _ACEOF
29329 rm -f conftest.$ac_objext conftest$ac_exeext
29330 if { (ac_try="$ac_link"
29331 case "(($ac_try" in
29332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29333 *) ac_try_echo=$ac_try;;
29334 esac
29335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29336 (eval "$ac_link") 2>conftest.er1
29337 ac_status=$?
29338 grep -v '^ *+' conftest.er1 >conftest.err
29339 rm -f conftest.er1
29340 cat conftest.err >&5
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); } &&
29343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29344 { (case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29347 esac
29348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_try") 2>&5
29350 ac_status=$?
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; } &&
29353 { ac_try='test -s conftest$ac_exeext'
29354 { (case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29357 esac
29358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29359 (eval "$ac_try") 2>&5
29360 ac_status=$?
29361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29362 (exit $ac_status); }; }; then
29363 eval "$as_ac_var=yes"
29364 else
29365 echo "$as_me: failed program was:" >&5
29366 sed 's/^/| /' conftest.$ac_ext >&5
29368 eval "$as_ac_var=no"
29371 rm -f core conftest.err conftest.$ac_objext \
29372 conftest$ac_exeext conftest.$ac_ext
29374 ac_res=`eval echo '${'$as_ac_var'}'`
29375 { echo "$as_me:$LINENO: result: $ac_res" >&5
29376 echo "${ECHO_T}$ac_res" >&6; }
29377 if test `eval echo '${'$as_ac_var'}'` = yes; then
29378 cat >>confdefs.h <<_ACEOF
29379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29380 _ACEOF
29381 cat >>confdefs.h <<\_ACEOF
29382 #define BX_HAVE_ABORT 1
29383 _ACEOF
29386 done
29389 for ac_func in gettimeofday
29391 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29392 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29393 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29394 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29396 else
29397 cat >conftest.$ac_ext <<_ACEOF
29398 /* confdefs.h. */
29399 _ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h. */
29403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29405 #define $ac_func innocuous_$ac_func
29407 /* System header to define __stub macros and hopefully few prototypes,
29408 which can conflict with char $ac_func (); below.
29409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29410 <limits.h> exists even on freestanding compilers. */
29412 #ifdef __STDC__
29413 # include <limits.h>
29414 #else
29415 # include <assert.h>
29416 #endif
29418 #undef $ac_func
29420 /* Override any GCC internal prototype to avoid an error.
29421 Use char because int might match the return type of a GCC
29422 builtin and then its argument prototype would still apply. */
29423 #ifdef __cplusplus
29424 extern "C"
29425 #endif
29426 char $ac_func ();
29427 /* The GNU C library defines this for functions which it implements
29428 to always fail with ENOSYS. Some functions are actually named
29429 something starting with __ and the normal name is an alias. */
29430 #if defined __stub_$ac_func || defined __stub___$ac_func
29431 choke me
29432 #endif
29435 main ()
29437 return $ac_func ();
29439 return 0;
29441 _ACEOF
29442 rm -f conftest.$ac_objext conftest$ac_exeext
29443 if { (ac_try="$ac_link"
29444 case "(($ac_try" in
29445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29446 *) ac_try_echo=$ac_try;;
29447 esac
29448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29449 (eval "$ac_link") 2>conftest.er1
29450 ac_status=$?
29451 grep -v '^ *+' conftest.er1 >conftest.err
29452 rm -f conftest.er1
29453 cat conftest.err >&5
29454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29455 (exit $ac_status); } &&
29456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29457 { (case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29460 esac
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462 (eval "$ac_try") 2>&5
29463 ac_status=$?
29464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); }; } &&
29466 { ac_try='test -s conftest$ac_exeext'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470 esac
29471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
29476 eval "$as_ac_var=yes"
29477 else
29478 echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481 eval "$as_ac_var=no"
29484 rm -f core conftest.err conftest.$ac_objext \
29485 conftest$ac_exeext conftest.$ac_ext
29487 ac_res=`eval echo '${'$as_ac_var'}'`
29488 { echo "$as_me:$LINENO: result: $ac_res" >&5
29489 echo "${ECHO_T}$ac_res" >&6; }
29490 if test `eval echo '${'$as_ac_var'}'` = yes; then
29491 cat >>confdefs.h <<_ACEOF
29492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29493 _ACEOF
29494 cat >>confdefs.h <<\_ACEOF
29495 #define BX_HAVE_GETTIMEOFDAY 1
29496 _ACEOF
29499 done
29501 { echo "$as_me:$LINENO: checking for socklen_t" >&5
29502 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
29503 if test "${ac_cv_type_socklen_t+set}" = set; then
29504 echo $ECHO_N "(cached) $ECHO_C" >&6
29505 else
29506 cat >conftest.$ac_ext <<_ACEOF
29507 /* confdefs.h. */
29508 _ACEOF
29509 cat confdefs.h >>conftest.$ac_ext
29510 cat >>conftest.$ac_ext <<_ACEOF
29511 /* end confdefs.h. */
29512 #include <sys/types.h>
29513 #include <sys/socket.h>
29515 typedef socklen_t ac__type_new_;
29517 main ()
29519 if ((ac__type_new_ *) 0)
29520 return 0;
29521 if (sizeof (ac__type_new_))
29522 return 0;
29524 return 0;
29526 _ACEOF
29527 rm -f conftest.$ac_objext
29528 if { (ac_try="$ac_compile"
29529 case "(($ac_try" in
29530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531 *) ac_try_echo=$ac_try;;
29532 esac
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534 (eval "$ac_compile") 2>conftest.er1
29535 ac_status=$?
29536 grep -v '^ *+' conftest.er1 >conftest.err
29537 rm -f conftest.er1
29538 cat conftest.err >&5
29539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540 (exit $ac_status); } &&
29541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29542 { (case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29545 esac
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_try") 2>&5
29548 ac_status=$?
29549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); }; } &&
29551 { ac_try='test -s conftest.$ac_objext'
29552 { (case "(($ac_try" in
29553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554 *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557 (eval "$ac_try") 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29561 ac_cv_type_socklen_t=yes
29562 else
29563 echo "$as_me: failed program was:" >&5
29564 sed 's/^/| /' conftest.$ac_ext >&5
29566 ac_cv_type_socklen_t=no
29569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29572 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
29573 if test $ac_cv_type_socklen_t = yes; then
29574 cat >>confdefs.h <<\_ACEOF
29575 #define BX_HAVE_SOCKLEN_T 1
29576 _ACEOF
29580 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
29581 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
29582 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585 cat >conftest.$ac_ext <<_ACEOF
29586 /* confdefs.h. */
29587 _ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 #include <sys/socket.h>
29592 #include <netinet/in.h>
29595 main ()
29597 static struct sockaddr_in ac_aggr;
29598 if (ac_aggr.sin_len)
29599 return 0;
29601 return 0;
29603 _ACEOF
29604 rm -f conftest.$ac_objext
29605 if { (ac_try="$ac_compile"
29606 case "(($ac_try" in
29607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29608 *) ac_try_echo=$ac_try;;
29609 esac
29610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29611 (eval "$ac_compile") 2>conftest.er1
29612 ac_status=$?
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29619 { (case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29622 esac
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_try") 2>&5
29625 ac_status=$?
29626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29627 (exit $ac_status); }; } &&
29628 { ac_try='test -s conftest.$ac_objext'
29629 { (case "(($ac_try" in
29630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29631 *) ac_try_echo=$ac_try;;
29632 esac
29633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29634 (eval "$ac_try") 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; }; then
29638 ac_cv_member_struct_sockaddr_in_sin_len=yes
29639 else
29640 echo "$as_me: failed program was:" >&5
29641 sed 's/^/| /' conftest.$ac_ext >&5
29643 cat >conftest.$ac_ext <<_ACEOF
29644 /* confdefs.h. */
29645 _ACEOF
29646 cat confdefs.h >>conftest.$ac_ext
29647 cat >>conftest.$ac_ext <<_ACEOF
29648 /* end confdefs.h. */
29649 #include <sys/socket.h>
29650 #include <netinet/in.h>
29653 main ()
29655 static struct sockaddr_in ac_aggr;
29656 if (sizeof ac_aggr.sin_len)
29657 return 0;
29659 return 0;
29661 _ACEOF
29662 rm -f conftest.$ac_objext
29663 if { (ac_try="$ac_compile"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667 esac
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_compile") 2>conftest.er1
29670 ac_status=$?
29671 grep -v '^ *+' conftest.er1 >conftest.err
29672 rm -f conftest.er1
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } &&
29676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29677 { (case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680 esac
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_try") 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; } &&
29686 { ac_try='test -s conftest.$ac_objext'
29687 { (case "(($ac_try" in
29688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29689 *) ac_try_echo=$ac_try;;
29690 esac
29691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29692 (eval "$ac_try") 2>&5
29693 ac_status=$?
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); }; }; then
29696 ac_cv_member_struct_sockaddr_in_sin_len=yes
29697 else
29698 echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29701 ac_cv_member_struct_sockaddr_in_sin_len=no
29704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29709 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
29710 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
29711 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
29712 cat >>confdefs.h <<\_ACEOF
29713 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
29714 _ACEOF
29719 for ac_func in mkstemp
29721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29725 echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727 cat >conftest.$ac_ext <<_ACEOF
29728 /* confdefs.h. */
29729 _ACEOF
29730 cat confdefs.h >>conftest.$ac_ext
29731 cat >>conftest.$ac_ext <<_ACEOF
29732 /* end confdefs.h. */
29733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29735 #define $ac_func innocuous_$ac_func
29737 /* System header to define __stub macros and hopefully few prototypes,
29738 which can conflict with char $ac_func (); below.
29739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29740 <limits.h> exists even on freestanding compilers. */
29742 #ifdef __STDC__
29743 # include <limits.h>
29744 #else
29745 # include <assert.h>
29746 #endif
29748 #undef $ac_func
29750 /* Override any GCC internal prototype to avoid an error.
29751 Use char because int might match the return type of a GCC
29752 builtin and then its argument prototype would still apply. */
29753 #ifdef __cplusplus
29754 extern "C"
29755 #endif
29756 char $ac_func ();
29757 /* The GNU C library defines this for functions which it implements
29758 to always fail with ENOSYS. Some functions are actually named
29759 something starting with __ and the normal name is an alias. */
29760 #if defined __stub_$ac_func || defined __stub___$ac_func
29761 choke me
29762 #endif
29765 main ()
29767 return $ac_func ();
29769 return 0;
29771 _ACEOF
29772 rm -f conftest.$ac_objext conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29777 esac
29778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29779 (eval "$ac_link") 2>conftest.er1
29780 ac_status=$?
29781 grep -v '^ *+' conftest.er1 >conftest.err
29782 rm -f conftest.er1
29783 cat conftest.err >&5
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); } &&
29786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; } &&
29796 { ac_try='test -s conftest$ac_exeext'
29797 { (case "(($ac_try" in
29798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799 *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802 (eval "$ac_try") 2>&5
29803 ac_status=$?
29804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805 (exit $ac_status); }; }; then
29806 eval "$as_ac_var=yes"
29807 else
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 eval "$as_ac_var=no"
29814 rm -f core conftest.err conftest.$ac_objext \
29815 conftest$ac_exeext conftest.$ac_ext
29817 ac_res=`eval echo '${'$as_ac_var'}'`
29818 { echo "$as_me:$LINENO: result: $ac_res" >&5
29819 echo "${ECHO_T}$ac_res" >&6; }
29820 if test `eval echo '${'$as_ac_var'}'` = yes; then
29821 cat >>confdefs.h <<_ACEOF
29822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29823 _ACEOF
29824 cat >>confdefs.h <<\_ACEOF
29825 #define BX_HAVE_MKSTEMP 1
29826 _ACEOF
29829 done
29831 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29832 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29833 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29834 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29835 echo $ECHO_N "(cached) $ECHO_C" >&6
29837 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29838 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29839 else
29840 # Is the header compilable?
29841 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
29842 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
29843 cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h. */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h. */
29849 $ac_includes_default
29850 #include <sys/mman.h>
29851 _ACEOF
29852 rm -f conftest.$ac_objext
29853 if { (ac_try="$ac_compile"
29854 case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29857 esac
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_compile") 2>conftest.er1
29860 ac_status=$?
29861 grep -v '^ *+' conftest.er1 >conftest.err
29862 rm -f conftest.er1
29863 cat conftest.err >&5
29864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865 (exit $ac_status); } &&
29866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29867 { (case "(($ac_try" in
29868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29869 *) ac_try_echo=$ac_try;;
29870 esac
29871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29872 (eval "$ac_try") 2>&5
29873 ac_status=$?
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; } &&
29876 { ac_try='test -s conftest.$ac_objext'
29877 { (case "(($ac_try" in
29878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29879 *) ac_try_echo=$ac_try;;
29880 esac
29881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29882 (eval "$ac_try") 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; }; then
29886 ac_header_compiler=yes
29887 else
29888 echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29891 ac_header_compiler=no
29894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29896 echo "${ECHO_T}$ac_header_compiler" >&6; }
29898 # Is the header present?
29899 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
29900 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
29901 cat >conftest.$ac_ext <<_ACEOF
29902 /* confdefs.h. */
29903 _ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h. */
29907 #include <sys/mman.h>
29908 _ACEOF
29909 if { (ac_try="$ac_cpp conftest.$ac_ext"
29910 case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29913 esac
29914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29916 ac_status=$?
29917 grep -v '^ *+' conftest.er1 >conftest.err
29918 rm -f conftest.er1
29919 cat conftest.err >&5
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); } >/dev/null; then
29922 if test -s conftest.err; then
29923 ac_cpp_err=$ac_c_preproc_warn_flag
29924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29925 else
29926 ac_cpp_err=
29928 else
29929 ac_cpp_err=yes
29931 if test -z "$ac_cpp_err"; then
29932 ac_header_preproc=yes
29933 else
29934 echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29937 ac_header_preproc=no
29940 rm -f conftest.err conftest.$ac_ext
29941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29942 echo "${ECHO_T}$ac_header_preproc" >&6; }
29944 # So? What about this header?
29945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29946 yes:no: )
29947 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
29948 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
29950 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
29951 ac_header_preproc=yes
29953 no:yes:* )
29954 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
29955 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
29956 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
29957 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
29959 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
29961 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
29963 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
29964 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
29965 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
29968 esac
29969 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
29970 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
29971 if test "${ac_cv_header_sys_mman_h+set}" = set; then
29972 echo $ECHO_N "(cached) $ECHO_C" >&6
29973 else
29974 ac_cv_header_sys_mman_h=$ac_header_preproc
29976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
29977 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
29980 if test $ac_cv_header_sys_mman_h = yes; then
29981 cat >>confdefs.h <<\_ACEOF
29982 #define BX_HAVE_SYS_MMAN_H 1
29983 _ACEOF
29989 for ac_func in timelocal
29991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29996 else
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h. */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h. */
30003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30005 #define $ac_func innocuous_$ac_func
30007 /* System header to define __stub macros and hopefully few prototypes,
30008 which can conflict with char $ac_func (); below.
30009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30010 <limits.h> exists even on freestanding compilers. */
30012 #ifdef __STDC__
30013 # include <limits.h>
30014 #else
30015 # include <assert.h>
30016 #endif
30018 #undef $ac_func
30020 /* Override any GCC internal prototype to avoid an error.
30021 Use char because int might match the return type of a GCC
30022 builtin and then its argument prototype would still apply. */
30023 #ifdef __cplusplus
30024 extern "C"
30025 #endif
30026 char $ac_func ();
30027 /* The GNU C library defines this for functions which it implements
30028 to always fail with ENOSYS. Some functions are actually named
30029 something starting with __ and the normal name is an alias. */
30030 #if defined __stub_$ac_func || defined __stub___$ac_func
30031 choke me
30032 #endif
30035 main ()
30037 return $ac_func ();
30039 return 0;
30041 _ACEOF
30042 rm -f conftest.$ac_objext conftest$ac_exeext
30043 if { (ac_try="$ac_link"
30044 case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047 esac
30048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_link") 2>conftest.er1
30050 ac_status=$?
30051 grep -v '^ *+' conftest.er1 >conftest.err
30052 rm -f conftest.er1
30053 cat conftest.err >&5
30054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30055 (exit $ac_status); } &&
30056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30057 { (case "(($ac_try" in
30058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059 *) ac_try_echo=$ac_try;;
30060 esac
30061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062 (eval "$ac_try") 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; } &&
30066 { ac_try='test -s conftest$ac_exeext'
30067 { (case "(($ac_try" in
30068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069 *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072 (eval "$ac_try") 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 eval "$as_ac_var=yes"
30077 else
30078 echo "$as_me: failed program was:" >&5
30079 sed 's/^/| /' conftest.$ac_ext >&5
30081 eval "$as_ac_var=no"
30084 rm -f core conftest.err conftest.$ac_objext \
30085 conftest$ac_exeext conftest.$ac_ext
30087 ac_res=`eval echo '${'$as_ac_var'}'`
30088 { echo "$as_me:$LINENO: result: $ac_res" >&5
30089 echo "${ECHO_T}$ac_res" >&6; }
30090 if test `eval echo '${'$as_ac_var'}'` = yes; then
30091 cat >>confdefs.h <<_ACEOF
30092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30093 _ACEOF
30094 cat >>confdefs.h <<\_ACEOF
30095 #define BX_HAVE_TIMELOCAL 1
30096 _ACEOF
30099 done
30102 for ac_func in gmtime
30104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30105 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30107 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30108 echo $ECHO_N "(cached) $ECHO_C" >&6
30109 else
30110 cat >conftest.$ac_ext <<_ACEOF
30111 /* confdefs.h. */
30112 _ACEOF
30113 cat confdefs.h >>conftest.$ac_ext
30114 cat >>conftest.$ac_ext <<_ACEOF
30115 /* end confdefs.h. */
30116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30118 #define $ac_func innocuous_$ac_func
30120 /* System header to define __stub macros and hopefully few prototypes,
30121 which can conflict with char $ac_func (); below.
30122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30123 <limits.h> exists even on freestanding compilers. */
30125 #ifdef __STDC__
30126 # include <limits.h>
30127 #else
30128 # include <assert.h>
30129 #endif
30131 #undef $ac_func
30133 /* Override any GCC internal prototype to avoid an error.
30134 Use char because int might match the return type of a GCC
30135 builtin and then its argument prototype would still apply. */
30136 #ifdef __cplusplus
30137 extern "C"
30138 #endif
30139 char $ac_func ();
30140 /* The GNU C library defines this for functions which it implements
30141 to always fail with ENOSYS. Some functions are actually named
30142 something starting with __ and the normal name is an alias. */
30143 #if defined __stub_$ac_func || defined __stub___$ac_func
30144 choke me
30145 #endif
30148 main ()
30150 return $ac_func ();
30152 return 0;
30154 _ACEOF
30155 rm -f conftest.$ac_objext conftest$ac_exeext
30156 if { (ac_try="$ac_link"
30157 case "(($ac_try" in
30158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30159 *) ac_try_echo=$ac_try;;
30160 esac
30161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30162 (eval "$ac_link") 2>conftest.er1
30163 ac_status=$?
30164 grep -v '^ *+' conftest.er1 >conftest.err
30165 rm -f conftest.er1
30166 cat conftest.err >&5
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); } &&
30169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30170 { (case "(($ac_try" in
30171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30172 *) ac_try_echo=$ac_try;;
30173 esac
30174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30175 (eval "$ac_try") 2>&5
30176 ac_status=$?
30177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178 (exit $ac_status); }; } &&
30179 { ac_try='test -s conftest$ac_exeext'
30180 { (case "(($ac_try" in
30181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182 *) ac_try_echo=$ac_try;;
30183 esac
30184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185 (eval "$ac_try") 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
30189 eval "$as_ac_var=yes"
30190 else
30191 echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30194 eval "$as_ac_var=no"
30197 rm -f core conftest.err conftest.$ac_objext \
30198 conftest$ac_exeext conftest.$ac_ext
30200 ac_res=`eval echo '${'$as_ac_var'}'`
30201 { echo "$as_me:$LINENO: result: $ac_res" >&5
30202 echo "${ECHO_T}$ac_res" >&6; }
30203 if test `eval echo '${'$as_ac_var'}'` = yes; then
30204 cat >>confdefs.h <<_ACEOF
30205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30206 _ACEOF
30207 cat >>confdefs.h <<\_ACEOF
30208 #define BX_HAVE_GMTIME 1
30209 _ACEOF
30212 done
30215 for ac_func in mktime
30217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223 cat >conftest.$ac_ext <<_ACEOF
30224 /* confdefs.h. */
30225 _ACEOF
30226 cat confdefs.h >>conftest.$ac_ext
30227 cat >>conftest.$ac_ext <<_ACEOF
30228 /* end confdefs.h. */
30229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30231 #define $ac_func innocuous_$ac_func
30233 /* System header to define __stub macros and hopefully few prototypes,
30234 which can conflict with char $ac_func (); below.
30235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30236 <limits.h> exists even on freestanding compilers. */
30238 #ifdef __STDC__
30239 # include <limits.h>
30240 #else
30241 # include <assert.h>
30242 #endif
30244 #undef $ac_func
30246 /* Override any GCC internal prototype to avoid an error.
30247 Use char because int might match the return type of a GCC
30248 builtin and then its argument prototype would still apply. */
30249 #ifdef __cplusplus
30250 extern "C"
30251 #endif
30252 char $ac_func ();
30253 /* The GNU C library defines this for functions which it implements
30254 to always fail with ENOSYS. Some functions are actually named
30255 something starting with __ and the normal name is an alias. */
30256 #if defined __stub_$ac_func || defined __stub___$ac_func
30257 choke me
30258 #endif
30261 main ()
30263 return $ac_func ();
30265 return 0;
30267 _ACEOF
30268 rm -f conftest.$ac_objext conftest$ac_exeext
30269 if { (ac_try="$ac_link"
30270 case "(($ac_try" in
30271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272 *) ac_try_echo=$ac_try;;
30273 esac
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275 (eval "$ac_link") 2>conftest.er1
30276 ac_status=$?
30277 grep -v '^ *+' conftest.er1 >conftest.err
30278 rm -f conftest.er1
30279 cat conftest.err >&5
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } &&
30282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30286 esac
30287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_try") 2>&5
30289 ac_status=$?
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; } &&
30292 { ac_try='test -s conftest$ac_exeext'
30293 { (case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30296 esac
30297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_try") 2>&5
30299 ac_status=$?
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 eval "$as_ac_var=yes"
30303 else
30304 echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30307 eval "$as_ac_var=no"
30310 rm -f core conftest.err conftest.$ac_objext \
30311 conftest$ac_exeext conftest.$ac_ext
30313 ac_res=`eval echo '${'$as_ac_var'}'`
30314 { echo "$as_me:$LINENO: result: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30316 if test `eval echo '${'$as_ac_var'}'` = yes; then
30317 cat >>confdefs.h <<_ACEOF
30318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30319 _ACEOF
30320 cat >>confdefs.h <<\_ACEOF
30321 #define BX_HAVE_MKTIME 1
30322 _ACEOF
30325 done
30328 # Check whether --enable-largefile was given.
30329 if test "${enable_largefile+set}" = set; then
30330 enableval=$enable_largefile;
30333 if test "$enable_largefile" != no; then
30334 wx_largefile=no
30336 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
30337 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
30338 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30340 else
30342 cat >conftest.$ac_ext <<_ACEOF
30343 /* confdefs.h. */
30344 _ACEOF
30345 cat confdefs.h >>conftest.$ac_ext
30346 cat >>conftest.$ac_ext <<_ACEOF
30347 /* end confdefs.h. */
30348 #define _FILE_OFFSET_BITS 64
30349 #include <sys/types.h>
30351 main ()
30353 typedef struct {
30354 unsigned int field: sizeof(off_t) == 8;
30355 } wxlf;
30358 return 0;
30360 _ACEOF
30361 rm -f conftest.$ac_objext
30362 if { (ac_try="$ac_compile"
30363 case "(($ac_try" in
30364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30365 *) ac_try_echo=$ac_try;;
30366 esac
30367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30368 (eval "$ac_compile") 2>conftest.er1
30369 ac_status=$?
30370 grep -v '^ *+' conftest.er1 >conftest.err
30371 rm -f conftest.er1
30372 cat conftest.err >&5
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); } &&
30375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30376 { (case "(($ac_try" in
30377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30378 *) ac_try_echo=$ac_try;;
30379 esac
30380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30381 (eval "$ac_try") 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; } &&
30385 { ac_try='test -s conftest.$ac_objext'
30386 { (case "(($ac_try" in
30387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30388 *) ac_try_echo=$ac_try;;
30389 esac
30390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30391 (eval "$ac_try") 2>&5
30392 ac_status=$?
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); }; }; then
30395 ac_cv_sys_file_offset_bits=64
30396 else
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 ac_cv_sys_file_offset_bits=no
30403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30407 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
30408 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
30410 if test "$ac_cv_sys_file_offset_bits" != no; then
30411 wx_largefile=yes
30412 cat >>confdefs.h <<_ACEOF
30413 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
30414 _ACEOF
30418 if test "x$wx_largefile" != "xyes"; then
30420 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
30421 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
30422 if test "${ac_cv_sys_large_files+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30426 cat >conftest.$ac_ext <<_ACEOF
30427 /* confdefs.h. */
30428 _ACEOF
30429 cat confdefs.h >>conftest.$ac_ext
30430 cat >>conftest.$ac_ext <<_ACEOF
30431 /* end confdefs.h. */
30432 #define _LARGE_FILES 1
30433 #include <sys/types.h>
30435 main ()
30437 typedef struct {
30438 unsigned int field: sizeof(off_t) == 8;
30439 } wxlf;
30442 return 0;
30444 _ACEOF
30445 rm -f conftest.$ac_objext
30446 if { (ac_try="$ac_compile"
30447 case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450 esac
30451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_compile") 2>conftest.er1
30453 ac_status=$?
30454 grep -v '^ *+' conftest.er1 >conftest.err
30455 rm -f conftest.er1
30456 cat conftest.err >&5
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); } &&
30459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30460 { (case "(($ac_try" in
30461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30462 *) ac_try_echo=$ac_try;;
30463 esac
30464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30465 (eval "$ac_try") 2>&5
30466 ac_status=$?
30467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468 (exit $ac_status); }; } &&
30469 { ac_try='test -s conftest.$ac_objext'
30470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473 esac
30474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
30476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
30479 ac_cv_sys_large_files=1
30480 else
30481 echo "$as_me: failed program was:" >&5
30482 sed 's/^/| /' conftest.$ac_ext >&5
30484 ac_cv_sys_large_files=no
30487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
30492 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
30494 if test "$ac_cv_sys_large_files" != no; then
30495 wx_largefile=yes
30496 cat >>confdefs.h <<_ACEOF
30497 #define _LARGE_FILES $ac_cv_sys_large_files
30498 _ACEOF
30504 { echo "$as_me:$LINENO: checking if large file support is available" >&5
30505 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
30506 if test "x$wx_largefile" = "xyes"; then
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_LARGEFILE_SUPPORT 1
30509 _ACEOF
30512 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
30513 echo "${ECHO_T}$wx_largefile" >&6; }
30517 if test "x$wx_largefile" = "xyes"; then
30518 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
30519 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
30520 else
30521 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
30523 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
30524 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
30525 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
30528 have_cos=0
30529 have_floor=0
30531 for ac_func in cos
30533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30537 echo $ECHO_N "(cached) $ECHO_C" >&6
30538 else
30539 cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h. */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30547 #define $ac_func innocuous_$ac_func
30549 /* System header to define __stub macros and hopefully few prototypes,
30550 which can conflict with char $ac_func (); below.
30551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30552 <limits.h> exists even on freestanding compilers. */
30554 #ifdef __STDC__
30555 # include <limits.h>
30556 #else
30557 # include <assert.h>
30558 #endif
30560 #undef $ac_func
30562 /* Override any GCC internal prototype to avoid an error.
30563 Use char because int might match the return type of a GCC
30564 builtin and then its argument prototype would still apply. */
30565 #ifdef __cplusplus
30566 extern "C"
30567 #endif
30568 char $ac_func ();
30569 /* The GNU C library defines this for functions which it implements
30570 to always fail with ENOSYS. Some functions are actually named
30571 something starting with __ and the normal name is an alias. */
30572 #if defined __stub_$ac_func || defined __stub___$ac_func
30573 choke me
30574 #endif
30577 main ()
30579 return $ac_func ();
30581 return 0;
30583 _ACEOF
30584 rm -f conftest.$ac_objext conftest$ac_exeext
30585 if { (ac_try="$ac_link"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589 esac
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_link") 2>conftest.er1
30592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602 esac
30603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; } &&
30608 { ac_try='test -s conftest$ac_exeext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30612 esac
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
30618 eval "$as_ac_var=yes"
30619 else
30620 echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30623 eval "$as_ac_var=no"
30626 rm -f core conftest.err conftest.$ac_objext \
30627 conftest$ac_exeext conftest.$ac_ext
30629 ac_res=`eval echo '${'$as_ac_var'}'`
30630 { echo "$as_me:$LINENO: result: $ac_res" >&5
30631 echo "${ECHO_T}$ac_res" >&6; }
30632 if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635 _ACEOF
30636 have_cos=1
30638 done
30641 for ac_func in floor
30643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30648 else
30649 cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h. */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30657 #define $ac_func innocuous_$ac_func
30659 /* System header to define __stub macros and hopefully few prototypes,
30660 which can conflict with char $ac_func (); below.
30661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30662 <limits.h> exists even on freestanding compilers. */
30664 #ifdef __STDC__
30665 # include <limits.h>
30666 #else
30667 # include <assert.h>
30668 #endif
30670 #undef $ac_func
30672 /* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30675 #ifdef __cplusplus
30676 extern "C"
30677 #endif
30678 char $ac_func ();
30679 /* The GNU C library defines this for functions which it implements
30680 to always fail with ENOSYS. Some functions are actually named
30681 something starting with __ and the normal name is an alias. */
30682 #if defined __stub_$ac_func || defined __stub___$ac_func
30683 choke me
30684 #endif
30687 main ()
30689 return $ac_func ();
30691 return 0;
30693 _ACEOF
30694 rm -f conftest.$ac_objext conftest$ac_exeext
30695 if { (ac_try="$ac_link"
30696 case "(($ac_try" in
30697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30698 *) ac_try_echo=$ac_try;;
30699 esac
30700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30701 (eval "$ac_link") 2>conftest.er1
30702 ac_status=$?
30703 grep -v '^ *+' conftest.er1 >conftest.err
30704 rm -f conftest.er1
30705 cat conftest.err >&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); } &&
30708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30709 { (case "(($ac_try" in
30710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30711 *) ac_try_echo=$ac_try;;
30712 esac
30713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30714 (eval "$ac_try") 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; } &&
30718 { ac_try='test -s conftest$ac_exeext'
30719 { (case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722 esac
30723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_try") 2>&5
30725 ac_status=$?
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; }; then
30728 eval "$as_ac_var=yes"
30729 else
30730 echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30733 eval "$as_ac_var=no"
30736 rm -f core conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
30739 ac_res=`eval echo '${'$as_ac_var'}'`
30740 { echo "$as_me:$LINENO: result: $ac_res" >&5
30741 echo "${ECHO_T}$ac_res" >&6; }
30742 if test `eval echo '${'$as_ac_var'}'` = yes; then
30743 cat >>confdefs.h <<_ACEOF
30744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30745 _ACEOF
30746 have_floor=1
30748 done
30750 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
30751 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
30752 if test "$have_cos" = 1 -a "$have_floor" = 1; then
30753 { echo "$as_me:$LINENO: result: yes" >&5
30754 echo "${ECHO_T}yes" >&6; }
30755 else
30756 { echo "$as_me:$LINENO: result: no" >&5
30757 echo "${ECHO_T}no" >&6; }
30758 LIBS="$LIBS -lm"
30759 # use different functions to bypass configure caching
30760 have_sin=0
30761 have_ceil=0
30763 for ac_func in sin
30765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30769 echo $ECHO_N "(cached) $ECHO_C" >&6
30770 else
30771 cat >conftest.$ac_ext <<_ACEOF
30772 /* confdefs.h. */
30773 _ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30779 #define $ac_func innocuous_$ac_func
30781 /* System header to define __stub macros and hopefully few prototypes,
30782 which can conflict with char $ac_func (); below.
30783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30784 <limits.h> exists even on freestanding compilers. */
30786 #ifdef __STDC__
30787 # include <limits.h>
30788 #else
30789 # include <assert.h>
30790 #endif
30792 #undef $ac_func
30794 /* Override any GCC internal prototype to avoid an error.
30795 Use char because int might match the return type of a GCC
30796 builtin and then its argument prototype would still apply. */
30797 #ifdef __cplusplus
30798 extern "C"
30799 #endif
30800 char $ac_func ();
30801 /* The GNU C library defines this for functions which it implements
30802 to always fail with ENOSYS. Some functions are actually named
30803 something starting with __ and the normal name is an alias. */
30804 #if defined __stub_$ac_func || defined __stub___$ac_func
30805 choke me
30806 #endif
30809 main ()
30811 return $ac_func ();
30813 return 0;
30815 _ACEOF
30816 rm -f conftest.$ac_objext conftest$ac_exeext
30817 if { (ac_try="$ac_link"
30818 case "(($ac_try" in
30819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820 *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823 (eval "$ac_link") 2>conftest.er1
30824 ac_status=$?
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
30830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30831 { (case "(($ac_try" in
30832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30833 *) ac_try_echo=$ac_try;;
30834 esac
30835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30836 (eval "$ac_try") 2>&5
30837 ac_status=$?
30838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; } &&
30840 { ac_try='test -s conftest$ac_exeext'
30841 { (case "(($ac_try" in
30842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843 *) ac_try_echo=$ac_try;;
30844 esac
30845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846 (eval "$ac_try") 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
30850 eval "$as_ac_var=yes"
30851 else
30852 echo "$as_me: failed program was:" >&5
30853 sed 's/^/| /' conftest.$ac_ext >&5
30855 eval "$as_ac_var=no"
30858 rm -f core conftest.err conftest.$ac_objext \
30859 conftest$ac_exeext conftest.$ac_ext
30861 ac_res=`eval echo '${'$as_ac_var'}'`
30862 { echo "$as_me:$LINENO: result: $ac_res" >&5
30863 echo "${ECHO_T}$ac_res" >&6; }
30864 if test `eval echo '${'$as_ac_var'}'` = yes; then
30865 cat >>confdefs.h <<_ACEOF
30866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30867 _ACEOF
30868 have_sin=1
30870 done
30873 for ac_func in ceil
30875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30876 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30879 echo $ECHO_N "(cached) $ECHO_C" >&6
30880 else
30881 cat >conftest.$ac_ext <<_ACEOF
30882 /* confdefs.h. */
30883 _ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h. */
30887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30889 #define $ac_func innocuous_$ac_func
30891 /* System header to define __stub macros and hopefully few prototypes,
30892 which can conflict with char $ac_func (); below.
30893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30894 <limits.h> exists even on freestanding compilers. */
30896 #ifdef __STDC__
30897 # include <limits.h>
30898 #else
30899 # include <assert.h>
30900 #endif
30902 #undef $ac_func
30904 /* Override any GCC internal prototype to avoid an error.
30905 Use char because int might match the return type of a GCC
30906 builtin and then its argument prototype would still apply. */
30907 #ifdef __cplusplus
30908 extern "C"
30909 #endif
30910 char $ac_func ();
30911 /* The GNU C library defines this for functions which it implements
30912 to always fail with ENOSYS. Some functions are actually named
30913 something starting with __ and the normal name is an alias. */
30914 #if defined __stub_$ac_func || defined __stub___$ac_func
30915 choke me
30916 #endif
30919 main ()
30921 return $ac_func ();
30923 return 0;
30925 _ACEOF
30926 rm -f conftest.$ac_objext conftest$ac_exeext
30927 if { (ac_try="$ac_link"
30928 case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30931 esac
30932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_link") 2>conftest.er1
30934 ac_status=$?
30935 grep -v '^ *+' conftest.er1 >conftest.err
30936 rm -f conftest.er1
30937 cat conftest.err >&5
30938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939 (exit $ac_status); } &&
30940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30941 { (case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_try") 2>&5
30947 ac_status=$?
30948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30949 (exit $ac_status); }; } &&
30950 { ac_try='test -s conftest$ac_exeext'
30951 { (case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954 esac
30955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_try") 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 eval "$as_ac_var=yes"
30961 else
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.$ac_ext >&5
30965 eval "$as_ac_var=no"
30968 rm -f core conftest.err conftest.$ac_objext \
30969 conftest$ac_exeext conftest.$ac_ext
30971 ac_res=`eval echo '${'$as_ac_var'}'`
30972 { echo "$as_me:$LINENO: result: $ac_res" >&5
30973 echo "${ECHO_T}$ac_res" >&6; }
30974 if test `eval echo '${'$as_ac_var'}'` = yes; then
30975 cat >>confdefs.h <<_ACEOF
30976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30977 _ACEOF
30978 have_ceil=1
30980 done
30982 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
30983 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
30984 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
30985 { echo "$as_me:$LINENO: result: yes" >&5
30986 echo "${ECHO_T}yes" >&6; }
30987 else
30988 { echo "$as_me:$LINENO: result: no" >&5
30989 echo "${ECHO_T}no" >&6; }
30990 # not sure we should warn the user, crash, etc.
30991 # expect link failure
30995 { echo "$as_me:$LINENO: checking for struct timeval" >&5
30996 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
30997 cat >conftest.$ac_ext <<_ACEOF
30998 /* confdefs.h. */
30999 _ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h. */
31003 #include <sys/time.h>
31005 main ()
31007 struct timeval x;
31009 return 0;
31011 _ACEOF
31012 rm -f conftest.$ac_objext
31013 if { (ac_try="$ac_compile"
31014 case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017 esac
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_compile") 2>conftest.er1
31020 ac_status=$?
31021 grep -v '^ *+' conftest.er1 >conftest.err
31022 rm -f conftest.er1
31023 cat conftest.err >&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); } &&
31026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31030 esac
31031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
31033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; } &&
31036 { ac_try='test -s conftest.$ac_objext'
31037 { (case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31040 esac
31041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_try") 2>&5
31043 ac_status=$?
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); }; }; then
31047 { echo "$as_me:$LINENO: result: yes" >&5
31048 echo "${ECHO_T}yes" >&6; }
31049 cat >>confdefs.h <<\_ACEOF
31050 #define BX_HAVE_STRUCT_TIMEVAL 1
31051 _ACEOF
31054 else
31055 echo "$as_me: failed program was:" >&5
31056 sed 's/^/| /' conftest.$ac_ext >&5
31058 { echo "$as_me:$LINENO: result: no" >&5
31059 echo "${ECHO_T}no" >&6; }
31062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31064 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
31065 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
31066 cat >conftest.$ac_ext <<_ACEOF
31067 /* confdefs.h. */
31068 _ACEOF
31069 cat confdefs.h >>conftest.$ac_ext
31070 cat >>conftest.$ac_ext <<_ACEOF
31071 /* end confdefs.h. */
31074 main ()
31076 typedef struct { } junk;
31078 return 0;
31080 _ACEOF
31081 rm -f conftest.$ac_objext
31082 if { (ac_try="$ac_compile"
31083 case "(($ac_try" in
31084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31085 *) ac_try_echo=$ac_try;;
31086 esac
31087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31088 (eval "$ac_compile") 2>conftest.er1
31089 ac_status=$?
31090 grep -v '^ *+' conftest.er1 >conftest.err
31091 rm -f conftest.er1
31092 cat conftest.err >&5
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
31095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31096 { (case "(($ac_try" in
31097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098 *) ac_try_echo=$ac_try;;
31099 esac
31100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101 (eval "$ac_try") 2>&5
31102 ac_status=$?
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); }; } &&
31105 { ac_try='test -s conftest.$ac_objext'
31106 { (case "(($ac_try" in
31107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31108 *) ac_try_echo=$ac_try;;
31109 esac
31110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31111 (eval "$ac_try") 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; }; then
31115 { echo "$as_me:$LINENO: result: yes" >&5
31116 echo "${ECHO_T}yes" >&6; }
31117 else
31118 echo "$as_me: failed program was:" >&5
31119 sed 's/^/| /' conftest.$ac_ext >&5
31122 cat >>confdefs.h <<\_ACEOF
31123 #define BX_NO_EMPTY_STRUCTS 1
31124 _ACEOF
31126 { echo "$as_me:$LINENO: result: no" >&5
31127 echo "${ECHO_T}no" >&6; }
31131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31133 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
31134 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h. */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31143 main ()
31145 typedef struct { } __attribute__ ((packed)) junk;
31147 return 0;
31149 _ACEOF
31150 rm -f conftest.$ac_objext
31151 if { (ac_try="$ac_compile"
31152 case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155 esac
31156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
31158 ac_status=$?
31159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } &&
31164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31165 { (case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31168 esac
31169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170 (eval "$ac_try") 2>&5
31171 ac_status=$?
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest.$ac_objext'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178 esac
31179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
31184 { echo "$as_me:$LINENO: result: yes" >&5
31185 echo "${ECHO_T}yes" >&6; }
31186 else
31187 echo "$as_me: failed program was:" >&5
31188 sed 's/^/| /' conftest.$ac_ext >&5
31191 { echo "$as_me:$LINENO: result: no" >&5
31192 echo "${ECHO_T}no" >&6; }
31193 cat >>confdefs.h <<\_ACEOF
31194 #define BX_NO_ATTRIBUTES 1
31195 _ACEOF
31200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31203 ac_ext=cpp
31204 ac_cpp='$CXXCPP $CPPFLAGS'
31205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31209 { echo "$as_me:$LINENO: checking for hash_map" >&5
31210 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
31211 cat >conftest.$ac_ext <<_ACEOF
31212 /* confdefs.h. */
31213 _ACEOF
31214 cat confdefs.h >>conftest.$ac_ext
31215 cat >>conftest.$ac_ext <<_ACEOF
31216 /* end confdefs.h. */
31217 #include <hash_map>
31219 main ()
31223 return 0;
31225 _ACEOF
31226 rm -f conftest.$ac_objext
31227 if { (ac_try="$ac_compile"
31228 case "(($ac_try" in
31229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31230 *) ac_try_echo=$ac_try;;
31231 esac
31232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31233 (eval "$ac_compile") 2>conftest.er1
31234 ac_status=$?
31235 grep -v '^ *+' conftest.er1 >conftest.err
31236 rm -f conftest.er1
31237 cat conftest.err >&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); } &&
31240 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31241 { (case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_try") 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; } &&
31250 { ac_try='test -s conftest.$ac_objext'
31251 { (case "(($ac_try" in
31252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253 *) ac_try_echo=$ac_try;;
31254 esac
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256 (eval "$ac_try") 2>&5
31257 ac_status=$?
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); }; }; then
31261 { echo "$as_me:$LINENO: result: yes" >&5
31262 echo "${ECHO_T}yes" >&6; }
31263 cat >>confdefs.h <<\_ACEOF
31264 #define BX_HAVE_HASH_MAP 1
31265 _ACEOF
31268 else
31269 echo "$as_me: failed program was:" >&5
31270 sed 's/^/| /' conftest.$ac_ext >&5
31272 { echo "$as_me:$LINENO: result: no" >&5
31273 echo "${ECHO_T}no" >&6; }
31276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31277 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
31278 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
31279 cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h. */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h. */
31285 #include <hash_map.h>
31287 main ()
31291 return 0;
31293 _ACEOF
31294 rm -f conftest.$ac_objext
31295 if { (ac_try="$ac_compile"
31296 case "(($ac_try" in
31297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31298 *) ac_try_echo=$ac_try;;
31299 esac
31300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31301 (eval "$ac_compile") 2>conftest.er1
31302 ac_status=$?
31303 grep -v '^ *+' conftest.er1 >conftest.err
31304 rm -f conftest.er1
31305 cat conftest.err >&5
31306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31307 (exit $ac_status); } &&
31308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31309 { (case "(($ac_try" in
31310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31311 *) ac_try_echo=$ac_try;;
31312 esac
31313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31314 (eval "$ac_try") 2>&5
31315 ac_status=$?
31316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317 (exit $ac_status); }; } &&
31318 { ac_try='test -s conftest.$ac_objext'
31319 { (case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31322 esac
31323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_try") 2>&5
31325 ac_status=$?
31326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327 (exit $ac_status); }; }; then
31329 { echo "$as_me:$LINENO: result: yes" >&5
31330 echo "${ECHO_T}yes" >&6; }
31331 cat >>confdefs.h <<\_ACEOF
31332 #define BX_HAVE_HASH_MAP_H 1
31333 _ACEOF
31336 else
31337 echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31340 { echo "$as_me:$LINENO: result: no" >&5
31341 echo "${ECHO_T}no" >&6; }
31344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345 { echo "$as_me:$LINENO: checking for set" >&5
31346 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
31347 cat >conftest.$ac_ext <<_ACEOF
31348 /* confdefs.h. */
31349 _ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31353 #include <set>
31355 main ()
31359 return 0;
31361 _ACEOF
31362 rm -f conftest.$ac_objext
31363 if { (ac_try="$ac_compile"
31364 case "(($ac_try" in
31365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366 *) ac_try_echo=$ac_try;;
31367 esac
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369 (eval "$ac_compile") 2>conftest.er1
31370 ac_status=$?
31371 grep -v '^ *+' conftest.er1 >conftest.err
31372 rm -f conftest.er1
31373 cat conftest.err >&5
31374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375 (exit $ac_status); } &&
31376 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31377 { (case "(($ac_try" in
31378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379 *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382 (eval "$ac_try") 2>&5
31383 ac_status=$?
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); }; } &&
31386 { ac_try='test -s conftest.$ac_objext'
31387 { (case "(($ac_try" in
31388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389 *) ac_try_echo=$ac_try;;
31390 esac
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392 (eval "$ac_try") 2>&5
31393 ac_status=$?
31394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395 (exit $ac_status); }; }; then
31397 { echo "$as_me:$LINENO: result: yes" >&5
31398 echo "${ECHO_T}yes" >&6; }
31399 cat >>confdefs.h <<\_ACEOF
31400 #define BX_HAVE_SET 1
31401 _ACEOF
31404 else
31405 echo "$as_me: failed program was:" >&5
31406 sed 's/^/| /' conftest.$ac_ext >&5
31408 { echo "$as_me:$LINENO: result: no" >&5
31409 echo "${ECHO_T}no" >&6; }
31412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31413 { echo "$as_me:$LINENO: checking for set.h" >&5
31414 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
31415 cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h. */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h. */
31421 #include <set.h>
31423 main ()
31427 return 0;
31429 _ACEOF
31430 rm -f conftest.$ac_objext
31431 if { (ac_try="$ac_compile"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31435 esac
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_compile") 2>conftest.er1
31438 ac_status=$?
31439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } &&
31444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31445 { (case "(($ac_try" in
31446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31447 *) ac_try_echo=$ac_try;;
31448 esac
31449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31450 (eval "$ac_try") 2>&5
31451 ac_status=$?
31452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453 (exit $ac_status); }; } &&
31454 { ac_try='test -s conftest.$ac_objext'
31455 { (case "(($ac_try" in
31456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31457 *) ac_try_echo=$ac_try;;
31458 esac
31459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31460 (eval "$ac_try") 2>&5
31461 ac_status=$?
31462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463 (exit $ac_status); }; }; then
31465 { echo "$as_me:$LINENO: result: yes" >&5
31466 echo "${ECHO_T}yes" >&6; }
31467 cat >>confdefs.h <<\_ACEOF
31468 #define BX_HAVE_SET_H 1
31469 _ACEOF
31472 else
31473 echo "$as_me: failed program was:" >&5
31474 sed 's/^/| /' conftest.$ac_ext >&5
31476 { echo "$as_me:$LINENO: result: no" >&5
31477 echo "${ECHO_T}no" >&6; }
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481 ac_ext=c
31482 ac_cpp='$CPP $CPPFLAGS'
31483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31488 if test "$with_all_libs" = yes; then
31489 if test "$cross_configure" = 1; then
31490 { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&5
31491 echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&2;}
31493 if test "$with_beos" != yes; then
31494 can_compile_beos=1
31495 if test "${ac_cv_header_app_Application_h+set}" = set; then
31496 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31497 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31498 if test "${ac_cv_header_app_Application_h+set}" = set; then
31499 echo $ECHO_N "(cached) $ECHO_C" >&6
31501 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31502 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31503 else
31504 # Is the header compilable?
31505 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
31506 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
31507 cat >conftest.$ac_ext <<_ACEOF
31508 /* confdefs.h. */
31509 _ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h. */
31513 $ac_includes_default
31514 #include <app/Application.h>
31515 _ACEOF
31516 rm -f conftest.$ac_objext
31517 if { (ac_try="$ac_compile"
31518 case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31521 esac
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_compile") 2>conftest.er1
31524 ac_status=$?
31525 grep -v '^ *+' conftest.er1 >conftest.err
31526 rm -f conftest.er1
31527 cat conftest.err >&5
31528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31529 (exit $ac_status); } &&
31530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31534 esac
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31537 ac_status=$?
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest.$ac_objext'
31541 { (case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31544 esac
31545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31546 (eval "$ac_try") 2>&5
31547 ac_status=$?
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549 (exit $ac_status); }; }; then
31550 ac_header_compiler=yes
31551 else
31552 echo "$as_me: failed program was:" >&5
31553 sed 's/^/| /' conftest.$ac_ext >&5
31555 ac_header_compiler=no
31558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31560 echo "${ECHO_T}$ac_header_compiler" >&6; }
31562 # Is the header present?
31563 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
31564 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
31565 cat >conftest.$ac_ext <<_ACEOF
31566 /* confdefs.h. */
31567 _ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31571 #include <app/Application.h>
31572 _ACEOF
31573 if { (ac_try="$ac_cpp conftest.$ac_ext"
31574 case "(($ac_try" in
31575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576 *) ac_try_echo=$ac_try;;
31577 esac
31578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31580 ac_status=$?
31581 grep -v '^ *+' conftest.er1 >conftest.err
31582 rm -f conftest.er1
31583 cat conftest.err >&5
31584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585 (exit $ac_status); } >/dev/null; then
31586 if test -s conftest.err; then
31587 ac_cpp_err=$ac_c_preproc_warn_flag
31588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31589 else
31590 ac_cpp_err=
31592 else
31593 ac_cpp_err=yes
31595 if test -z "$ac_cpp_err"; then
31596 ac_header_preproc=yes
31597 else
31598 echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31601 ac_header_preproc=no
31604 rm -f conftest.err conftest.$ac_ext
31605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31606 echo "${ECHO_T}$ac_header_preproc" >&6; }
31608 # So? What about this header?
31609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31610 yes:no: )
31611 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
31612 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31613 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
31614 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
31615 ac_header_preproc=yes
31617 no:yes:* )
31618 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
31619 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
31621 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
31623 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
31625 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
31627 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
31628 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
31629 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
31632 esac
31633 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
31634 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
31635 if test "${ac_cv_header_app_Application_h+set}" = set; then
31636 echo $ECHO_N "(cached) $ECHO_C" >&6
31637 else
31638 ac_cv_header_app_Application_h=$ac_header_preproc
31640 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
31641 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
31644 if test $ac_cv_header_app_Application_h = yes; then
31646 else
31647 can_compile_beos=0
31651 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31652 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31653 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31654 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31655 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31658 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31659 else
31660 # Is the header compilable?
31661 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
31662 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
31663 cat >conftest.$ac_ext <<_ACEOF
31664 /* confdefs.h. */
31665 _ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31669 $ac_includes_default
31670 #include <interface/Window.h>
31671 _ACEOF
31672 rm -f conftest.$ac_objext
31673 if { (ac_try="$ac_compile"
31674 case "(($ac_try" in
31675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31676 *) ac_try_echo=$ac_try;;
31677 esac
31678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31679 (eval "$ac_compile") 2>conftest.er1
31680 ac_status=$?
31681 grep -v '^ *+' conftest.er1 >conftest.err
31682 rm -f conftest.er1
31683 cat conftest.err >&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } &&
31686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31687 { (case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31690 esac
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_try") 2>&5
31693 ac_status=$?
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); }; } &&
31696 { ac_try='test -s conftest.$ac_objext'
31697 { (case "(($ac_try" in
31698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31699 *) ac_try_echo=$ac_try;;
31700 esac
31701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31702 (eval "$ac_try") 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 ac_header_compiler=yes
31707 else
31708 echo "$as_me: failed program was:" >&5
31709 sed 's/^/| /' conftest.$ac_ext >&5
31711 ac_header_compiler=no
31714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31716 echo "${ECHO_T}$ac_header_compiler" >&6; }
31718 # Is the header present?
31719 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
31720 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
31721 cat >conftest.$ac_ext <<_ACEOF
31722 /* confdefs.h. */
31723 _ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h. */
31727 #include <interface/Window.h>
31728 _ACEOF
31729 if { (ac_try="$ac_cpp conftest.$ac_ext"
31730 case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31733 esac
31734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31736 ac_status=$?
31737 grep -v '^ *+' conftest.er1 >conftest.err
31738 rm -f conftest.er1
31739 cat conftest.err >&5
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); } >/dev/null; then
31742 if test -s conftest.err; then
31743 ac_cpp_err=$ac_c_preproc_warn_flag
31744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31745 else
31746 ac_cpp_err=
31748 else
31749 ac_cpp_err=yes
31751 if test -z "$ac_cpp_err"; then
31752 ac_header_preproc=yes
31753 else
31754 echo "$as_me: failed program was:" >&5
31755 sed 's/^/| /' conftest.$ac_ext >&5
31757 ac_header_preproc=no
31760 rm -f conftest.err conftest.$ac_ext
31761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31762 echo "${ECHO_T}$ac_header_preproc" >&6; }
31764 # So? What about this header?
31765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31766 yes:no: )
31767 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
31768 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31769 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
31770 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
31771 ac_header_preproc=yes
31773 no:yes:* )
31774 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
31775 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
31777 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
31779 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
31781 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
31783 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
31785 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
31788 esac
31789 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
31790 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
31791 if test "${ac_cv_header_interface_Window_h+set}" = set; then
31792 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 else
31794 ac_cv_header_interface_Window_h=$ac_header_preproc
31796 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
31797 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
31800 if test $ac_cv_header_interface_Window_h = yes; then
31802 else
31803 can_compile_beos=0
31807 if test "${ac_cv_header_interface_View_h+set}" = set; then
31808 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31809 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31810 if test "${ac_cv_header_interface_View_h+set}" = set; then
31811 echo $ECHO_N "(cached) $ECHO_C" >&6
31813 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31814 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31815 else
31816 # Is the header compilable?
31817 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
31818 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
31819 cat >conftest.$ac_ext <<_ACEOF
31820 /* confdefs.h. */
31821 _ACEOF
31822 cat confdefs.h >>conftest.$ac_ext
31823 cat >>conftest.$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 $ac_includes_default
31826 #include <interface/View.h>
31827 _ACEOF
31828 rm -f conftest.$ac_objext
31829 if { (ac_try="$ac_compile"
31830 case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_compile") 2>conftest.er1
31836 ac_status=$?
31837 grep -v '^ *+' conftest.er1 >conftest.err
31838 rm -f conftest.er1
31839 cat conftest.err >&5
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); } &&
31842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31843 { (case "(($ac_try" in
31844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845 *) ac_try_echo=$ac_try;;
31846 esac
31847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31848 (eval "$ac_try") 2>&5
31849 ac_status=$?
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); }; } &&
31852 { ac_try='test -s conftest.$ac_objext'
31853 { (case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31856 esac
31857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_try") 2>&5
31859 ac_status=$?
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); }; }; then
31862 ac_header_compiler=yes
31863 else
31864 echo "$as_me: failed program was:" >&5
31865 sed 's/^/| /' conftest.$ac_ext >&5
31867 ac_header_compiler=no
31870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31872 echo "${ECHO_T}$ac_header_compiler" >&6; }
31874 # Is the header present?
31875 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
31876 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
31877 cat >conftest.$ac_ext <<_ACEOF
31878 /* confdefs.h. */
31879 _ACEOF
31880 cat confdefs.h >>conftest.$ac_ext
31881 cat >>conftest.$ac_ext <<_ACEOF
31882 /* end confdefs.h. */
31883 #include <interface/View.h>
31884 _ACEOF
31885 if { (ac_try="$ac_cpp conftest.$ac_ext"
31886 case "(($ac_try" in
31887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31888 *) ac_try_echo=$ac_try;;
31889 esac
31890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31892 ac_status=$?
31893 grep -v '^ *+' conftest.er1 >conftest.err
31894 rm -f conftest.er1
31895 cat conftest.err >&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); } >/dev/null; then
31898 if test -s conftest.err; then
31899 ac_cpp_err=$ac_c_preproc_warn_flag
31900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31901 else
31902 ac_cpp_err=
31904 else
31905 ac_cpp_err=yes
31907 if test -z "$ac_cpp_err"; then
31908 ac_header_preproc=yes
31909 else
31910 echo "$as_me: failed program was:" >&5
31911 sed 's/^/| /' conftest.$ac_ext >&5
31913 ac_header_preproc=no
31916 rm -f conftest.err conftest.$ac_ext
31917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31918 echo "${ECHO_T}$ac_header_preproc" >&6; }
31920 # So? What about this header?
31921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31922 yes:no: )
31923 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
31924 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31925 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
31926 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
31927 ac_header_preproc=yes
31929 no:yes:* )
31930 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
31931 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
31932 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
31933 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
31934 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
31935 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
31936 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
31937 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
31938 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
31939 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
31940 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
31941 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
31944 esac
31945 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
31946 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
31947 if test "${ac_cv_header_interface_View_h+set}" = set; then
31948 echo $ECHO_N "(cached) $ECHO_C" >&6
31949 else
31950 ac_cv_header_interface_View_h=$ac_header_preproc
31952 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
31953 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
31956 if test $ac_cv_header_interface_View_h = yes; then
31958 else
31959 can_compile_beos=0
31963 if test $can_compile_beos = 1; then
31964 with_beos=yes
31968 if test "$with_amigaos" != yes; then
31969 can_compile_amigaos=1
31970 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31971 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
31972 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
31973 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
31974 echo $ECHO_N "(cached) $ECHO_C" >&6
31976 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
31977 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
31978 else
31979 # Is the header compilable?
31980 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
31981 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
31982 cat >conftest.$ac_ext <<_ACEOF
31983 /* confdefs.h. */
31984 _ACEOF
31985 cat confdefs.h >>conftest.$ac_ext
31986 cat >>conftest.$ac_ext <<_ACEOF
31987 /* end confdefs.h. */
31988 $ac_includes_default
31989 #include <proto/intuition.h>
31990 _ACEOF
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31996 esac
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_compile") 2>conftest.er1
31999 ac_status=$?
32000 grep -v '^ *+' conftest.er1 >conftest.err
32001 rm -f conftest.er1
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32009 esac
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32012 ac_status=$?
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; } &&
32015 { ac_try='test -s conftest.$ac_objext'
32016 { (case "(($ac_try" in
32017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32018 *) ac_try_echo=$ac_try;;
32019 esac
32020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32021 (eval "$ac_try") 2>&5
32022 ac_status=$?
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 ac_header_compiler=yes
32026 else
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.$ac_ext >&5
32030 ac_header_compiler=no
32033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32034 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32035 echo "${ECHO_T}$ac_header_compiler" >&6; }
32037 # Is the header present?
32038 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
32039 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
32040 cat >conftest.$ac_ext <<_ACEOF
32041 /* confdefs.h. */
32042 _ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32046 #include <proto/intuition.h>
32047 _ACEOF
32048 if { (ac_try="$ac_cpp conftest.$ac_ext"
32049 case "(($ac_try" in
32050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051 *) ac_try_echo=$ac_try;;
32052 esac
32053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32055 ac_status=$?
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } >/dev/null; then
32061 if test -s conftest.err; then
32062 ac_cpp_err=$ac_c_preproc_warn_flag
32063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32064 else
32065 ac_cpp_err=
32067 else
32068 ac_cpp_err=yes
32070 if test -z "$ac_cpp_err"; then
32071 ac_header_preproc=yes
32072 else
32073 echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32076 ac_header_preproc=no
32079 rm -f conftest.err conftest.$ac_ext
32080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32081 echo "${ECHO_T}$ac_header_preproc" >&6; }
32083 # So? What about this header?
32084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32085 yes:no: )
32086 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
32087 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32088 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
32089 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
32090 ac_header_preproc=yes
32092 no:yes:* )
32093 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
32094 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
32095 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
32096 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
32097 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
32098 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
32099 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
32100 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
32101 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
32102 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
32103 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
32104 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
32107 esac
32108 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
32109 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
32110 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
32111 echo $ECHO_N "(cached) $ECHO_C" >&6
32112 else
32113 ac_cv_header_proto_intuition_h=$ac_header_preproc
32115 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
32116 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
32119 if test $ac_cv_header_proto_intuition_h = yes; then
32121 else
32122 can_compile_amigaos=0
32126 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32127 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32128 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32129 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32130 echo $ECHO_N "(cached) $ECHO_C" >&6
32132 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32133 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32134 else
32135 # Is the header compilable?
32136 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
32137 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
32138 cat >conftest.$ac_ext <<_ACEOF
32139 /* confdefs.h. */
32140 _ACEOF
32141 cat confdefs.h >>conftest.$ac_ext
32142 cat >>conftest.$ac_ext <<_ACEOF
32143 /* end confdefs.h. */
32144 $ac_includes_default
32145 #include <intuition/intuitionbase.h>
32146 _ACEOF
32147 rm -f conftest.$ac_objext
32148 if { (ac_try="$ac_compile"
32149 case "(($ac_try" in
32150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32151 *) ac_try_echo=$ac_try;;
32152 esac
32153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32154 (eval "$ac_compile") 2>conftest.er1
32155 ac_status=$?
32156 grep -v '^ *+' conftest.er1 >conftest.err
32157 rm -f conftest.er1
32158 cat conftest.err >&5
32159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160 (exit $ac_status); } &&
32161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32162 { (case "(($ac_try" in
32163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164 *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167 (eval "$ac_try") 2>&5
32168 ac_status=$?
32169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170 (exit $ac_status); }; } &&
32171 { ac_try='test -s conftest.$ac_objext'
32172 { (case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32175 esac
32176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_try") 2>&5
32178 ac_status=$?
32179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32180 (exit $ac_status); }; }; then
32181 ac_header_compiler=yes
32182 else
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32186 ac_header_compiler=no
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32191 echo "${ECHO_T}$ac_header_compiler" >&6; }
32193 # Is the header present?
32194 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
32195 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
32196 cat >conftest.$ac_ext <<_ACEOF
32197 /* confdefs.h. */
32198 _ACEOF
32199 cat confdefs.h >>conftest.$ac_ext
32200 cat >>conftest.$ac_ext <<_ACEOF
32201 /* end confdefs.h. */
32202 #include <intuition/intuitionbase.h>
32203 _ACEOF
32204 if { (ac_try="$ac_cpp conftest.$ac_ext"
32205 case "(($ac_try" in
32206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207 *) ac_try_echo=$ac_try;;
32208 esac
32209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32211 ac_status=$?
32212 grep -v '^ *+' conftest.er1 >conftest.err
32213 rm -f conftest.er1
32214 cat conftest.err >&5
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); } >/dev/null; then
32217 if test -s conftest.err; then
32218 ac_cpp_err=$ac_c_preproc_warn_flag
32219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32220 else
32221 ac_cpp_err=
32223 else
32224 ac_cpp_err=yes
32226 if test -z "$ac_cpp_err"; then
32227 ac_header_preproc=yes
32228 else
32229 echo "$as_me: failed program was:" >&5
32230 sed 's/^/| /' conftest.$ac_ext >&5
32232 ac_header_preproc=no
32235 rm -f conftest.err conftest.$ac_ext
32236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32237 echo "${ECHO_T}$ac_header_preproc" >&6; }
32239 # So? What about this header?
32240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32241 yes:no: )
32242 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
32243 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32244 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
32245 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
32246 ac_header_preproc=yes
32248 no:yes:* )
32249 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
32250 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
32251 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
32252 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
32253 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
32254 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
32255 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
32256 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
32257 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
32258 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
32259 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
32260 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
32263 esac
32264 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
32265 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
32266 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
32267 echo $ECHO_N "(cached) $ECHO_C" >&6
32268 else
32269 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
32271 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
32272 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
32275 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
32277 else
32278 can_compile_amigaos=0
32282 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32283 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32284 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32285 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32286 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32289 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32290 else
32291 # Is the header compilable?
32292 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
32293 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
32294 cat >conftest.$ac_ext <<_ACEOF
32295 /* confdefs.h. */
32296 _ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32300 $ac_includes_default
32301 #include <cybergraphx/cybergraphics.h>
32302 _ACEOF
32303 rm -f conftest.$ac_objext
32304 if { (ac_try="$ac_compile"
32305 case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32308 esac
32309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_compile") 2>conftest.er1
32311 ac_status=$?
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } &&
32317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32318 { (case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32321 esac
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_try") 2>&5
32324 ac_status=$?
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); }; } &&
32327 { ac_try='test -s conftest.$ac_objext'
32328 { (case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32331 esac
32332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_try") 2>&5
32334 ac_status=$?
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); }; }; then
32337 ac_header_compiler=yes
32338 else
32339 echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32342 ac_header_compiler=no
32345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32347 echo "${ECHO_T}$ac_header_compiler" >&6; }
32349 # Is the header present?
32350 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
32351 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
32352 cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h. */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32358 #include <cybergraphx/cybergraphics.h>
32359 _ACEOF
32360 if { (ac_try="$ac_cpp conftest.$ac_ext"
32361 case "(($ac_try" in
32362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32363 *) ac_try_echo=$ac_try;;
32364 esac
32365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32367 ac_status=$?
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } >/dev/null; then
32373 if test -s conftest.err; then
32374 ac_cpp_err=$ac_c_preproc_warn_flag
32375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32376 else
32377 ac_cpp_err=
32379 else
32380 ac_cpp_err=yes
32382 if test -z "$ac_cpp_err"; then
32383 ac_header_preproc=yes
32384 else
32385 echo "$as_me: failed program was:" >&5
32386 sed 's/^/| /' conftest.$ac_ext >&5
32388 ac_header_preproc=no
32391 rm -f conftest.err conftest.$ac_ext
32392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32393 echo "${ECHO_T}$ac_header_preproc" >&6; }
32395 # So? What about this header?
32396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32397 yes:no: )
32398 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
32399 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32400 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
32401 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
32402 ac_header_preproc=yes
32404 no:yes:* )
32405 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
32406 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
32407 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
32408 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
32409 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
32410 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
32411 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
32412 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
32413 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
32414 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
32415 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
32416 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
32419 esac
32420 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
32421 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
32422 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32424 else
32425 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
32427 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
32428 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
32431 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
32433 else
32434 can_compile_amigaos=0
32438 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32439 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32440 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32441 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32442 echo $ECHO_N "(cached) $ECHO_C" >&6
32444 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32445 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32446 else
32447 # Is the header compilable?
32448 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
32449 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
32450 cat >conftest.$ac_ext <<_ACEOF
32451 /* confdefs.h. */
32452 _ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h. */
32456 $ac_includes_default
32457 #include <devices/trackdisk.h>
32458 _ACEOF
32459 rm -f conftest.$ac_objext
32460 if { (ac_try="$ac_compile"
32461 case "(($ac_try" in
32462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32463 *) ac_try_echo=$ac_try;;
32464 esac
32465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32466 (eval "$ac_compile") 2>conftest.er1
32467 ac_status=$?
32468 grep -v '^ *+' conftest.er1 >conftest.err
32469 rm -f conftest.er1
32470 cat conftest.err >&5
32471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 (exit $ac_status); } &&
32473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32474 { (case "(($ac_try" in
32475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32476 *) ac_try_echo=$ac_try;;
32477 esac
32478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32479 (eval "$ac_try") 2>&5
32480 ac_status=$?
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); }; } &&
32483 { ac_try='test -s conftest.$ac_objext'
32484 { (case "(($ac_try" in
32485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32486 *) ac_try_echo=$ac_try;;
32487 esac
32488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32489 (eval "$ac_try") 2>&5
32490 ac_status=$?
32491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32492 (exit $ac_status); }; }; then
32493 ac_header_compiler=yes
32494 else
32495 echo "$as_me: failed program was:" >&5
32496 sed 's/^/| /' conftest.$ac_ext >&5
32498 ac_header_compiler=no
32501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32503 echo "${ECHO_T}$ac_header_compiler" >&6; }
32505 # Is the header present?
32506 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
32507 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
32508 cat >conftest.$ac_ext <<_ACEOF
32509 /* confdefs.h. */
32510 _ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h. */
32514 #include <devices/trackdisk.h>
32515 _ACEOF
32516 if { (ac_try="$ac_cpp conftest.$ac_ext"
32517 case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520 esac
32521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32523 ac_status=$?
32524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); } >/dev/null; then
32529 if test -s conftest.err; then
32530 ac_cpp_err=$ac_c_preproc_warn_flag
32531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32532 else
32533 ac_cpp_err=
32535 else
32536 ac_cpp_err=yes
32538 if test -z "$ac_cpp_err"; then
32539 ac_header_preproc=yes
32540 else
32541 echo "$as_me: failed program was:" >&5
32542 sed 's/^/| /' conftest.$ac_ext >&5
32544 ac_header_preproc=no
32547 rm -f conftest.err conftest.$ac_ext
32548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32549 echo "${ECHO_T}$ac_header_preproc" >&6; }
32551 # So? What about this header?
32552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32553 yes:no: )
32554 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
32555 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32556 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
32557 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
32558 ac_header_preproc=yes
32560 no:yes:* )
32561 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
32562 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
32563 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
32564 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
32565 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
32566 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
32567 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
32568 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
32569 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
32570 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
32571 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
32572 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
32575 esac
32576 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
32577 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
32578 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
32579 echo $ECHO_N "(cached) $ECHO_C" >&6
32580 else
32581 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
32583 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
32584 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
32587 if test $ac_cv_header_devices_trackdisk_h = yes; then
32589 else
32590 can_compile_amigaos=0
32594 if test $can_compile_amigaos = 1; then
32595 with_amigaos=yes
32599 if test "$with_macos" != yes; then
32600 can_compile_macos=1
32601 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32602 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32603 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32604 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32605 echo $ECHO_N "(cached) $ECHO_C" >&6
32607 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32608 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32609 else
32610 # Is the header compilable?
32611 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
32612 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
32613 cat >conftest.$ac_ext <<_ACEOF
32614 /* confdefs.h. */
32615 _ACEOF
32616 cat confdefs.h >>conftest.$ac_ext
32617 cat >>conftest.$ac_ext <<_ACEOF
32618 /* end confdefs.h. */
32619 $ac_includes_default
32620 #include <Quickdraw.h>
32621 _ACEOF
32622 rm -f conftest.$ac_objext
32623 if { (ac_try="$ac_compile"
32624 case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32627 esac
32628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_compile") 2>conftest.er1
32630 ac_status=$?
32631 grep -v '^ *+' conftest.er1 >conftest.err
32632 rm -f conftest.er1
32633 cat conftest.err >&5
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); } &&
32636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32637 { (case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32640 esac
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_try") 2>&5
32643 ac_status=$?
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); }; } &&
32646 { ac_try='test -s conftest.$ac_objext'
32647 { (case "(($ac_try" in
32648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32649 *) ac_try_echo=$ac_try;;
32650 esac
32651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32652 (eval "$ac_try") 2>&5
32653 ac_status=$?
32654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655 (exit $ac_status); }; }; then
32656 ac_header_compiler=yes
32657 else
32658 echo "$as_me: failed program was:" >&5
32659 sed 's/^/| /' conftest.$ac_ext >&5
32661 ac_header_compiler=no
32664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32666 echo "${ECHO_T}$ac_header_compiler" >&6; }
32668 # Is the header present?
32669 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
32670 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
32671 cat >conftest.$ac_ext <<_ACEOF
32672 /* confdefs.h. */
32673 _ACEOF
32674 cat confdefs.h >>conftest.$ac_ext
32675 cat >>conftest.$ac_ext <<_ACEOF
32676 /* end confdefs.h. */
32677 #include <Quickdraw.h>
32678 _ACEOF
32679 if { (ac_try="$ac_cpp conftest.$ac_ext"
32680 case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683 esac
32684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32686 ac_status=$?
32687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); } >/dev/null; then
32692 if test -s conftest.err; then
32693 ac_cpp_err=$ac_c_preproc_warn_flag
32694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32695 else
32696 ac_cpp_err=
32698 else
32699 ac_cpp_err=yes
32701 if test -z "$ac_cpp_err"; then
32702 ac_header_preproc=yes
32703 else
32704 echo "$as_me: failed program was:" >&5
32705 sed 's/^/| /' conftest.$ac_ext >&5
32707 ac_header_preproc=no
32710 rm -f conftest.err conftest.$ac_ext
32711 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32712 echo "${ECHO_T}$ac_header_preproc" >&6; }
32714 # So? What about this header?
32715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32716 yes:no: )
32717 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
32718 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
32720 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
32721 ac_header_preproc=yes
32723 no:yes:* )
32724 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
32725 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
32726 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
32727 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
32728 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
32729 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
32730 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
32731 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
32732 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
32733 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
32734 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
32735 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
32738 esac
32739 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
32740 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
32741 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32743 else
32744 ac_cv_header_Quickdraw_h=$ac_header_preproc
32746 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
32747 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
32750 if test $ac_cv_header_Quickdraw_h = yes; then
32752 else
32753 can_compile_macos=0
32757 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32758 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32759 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32760 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32761 echo $ECHO_N "(cached) $ECHO_C" >&6
32763 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32764 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32765 else
32766 # Is the header compilable?
32767 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
32768 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
32769 cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h. */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32775 $ac_includes_default
32776 #include <Dialogs.h>
32777 _ACEOF
32778 rm -f conftest.$ac_objext
32779 if { (ac_try="$ac_compile"
32780 case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783 esac
32784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_compile") 2>conftest.er1
32786 ac_status=$?
32787 grep -v '^ *+' conftest.er1 >conftest.err
32788 rm -f conftest.er1
32789 cat conftest.err >&5
32790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32791 (exit $ac_status); } &&
32792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32793 { (case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_try") 2>&5
32799 ac_status=$?
32800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32801 (exit $ac_status); }; } &&
32802 { ac_try='test -s conftest.$ac_objext'
32803 { (case "(($ac_try" in
32804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32805 *) ac_try_echo=$ac_try;;
32806 esac
32807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32808 (eval "$ac_try") 2>&5
32809 ac_status=$?
32810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811 (exit $ac_status); }; }; then
32812 ac_header_compiler=yes
32813 else
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32817 ac_header_compiler=no
32820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32822 echo "${ECHO_T}$ac_header_compiler" >&6; }
32824 # Is the header present?
32825 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
32826 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
32827 cat >conftest.$ac_ext <<_ACEOF
32828 /* confdefs.h. */
32829 _ACEOF
32830 cat confdefs.h >>conftest.$ac_ext
32831 cat >>conftest.$ac_ext <<_ACEOF
32832 /* end confdefs.h. */
32833 #include <Dialogs.h>
32834 _ACEOF
32835 if { (ac_try="$ac_cpp conftest.$ac_ext"
32836 case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32842 ac_status=$?
32843 grep -v '^ *+' conftest.er1 >conftest.err
32844 rm -f conftest.er1
32845 cat conftest.err >&5
32846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847 (exit $ac_status); } >/dev/null; then
32848 if test -s conftest.err; then
32849 ac_cpp_err=$ac_c_preproc_warn_flag
32850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32851 else
32852 ac_cpp_err=
32854 else
32855 ac_cpp_err=yes
32857 if test -z "$ac_cpp_err"; then
32858 ac_header_preproc=yes
32859 else
32860 echo "$as_me: failed program was:" >&5
32861 sed 's/^/| /' conftest.$ac_ext >&5
32863 ac_header_preproc=no
32866 rm -f conftest.err conftest.$ac_ext
32867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32868 echo "${ECHO_T}$ac_header_preproc" >&6; }
32870 # So? What about this header?
32871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32872 yes:no: )
32873 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32874 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32875 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
32876 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
32877 ac_header_preproc=yes
32879 no:yes:* )
32880 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
32881 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
32882 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
32883 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
32884 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
32885 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
32886 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
32887 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32888 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
32889 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
32890 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
32891 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
32894 esac
32895 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
32896 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
32897 if test "${ac_cv_header_Dialogs_h+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32899 else
32900 ac_cv_header_Dialogs_h=$ac_header_preproc
32902 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
32903 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
32906 if test $ac_cv_header_Dialogs_h = yes; then
32908 else
32909 can_compile_macos=0
32913 if test $can_compile_macos = 1; then
32914 with_macos=yes
32918 if test "$with_carbon" != yes; then
32919 can_compile_carbon=1
32920 if test "${ac_cv_header_Carbon_h+set}" = set; then
32921 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
32922 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
32923 if test "${ac_cv_header_Carbon_h+set}" = set; then
32924 echo $ECHO_N "(cached) $ECHO_C" >&6
32926 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
32927 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
32928 else
32929 # Is the header compilable?
32930 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
32931 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
32932 cat >conftest.$ac_ext <<_ACEOF
32933 /* confdefs.h. */
32934 _ACEOF
32935 cat confdefs.h >>conftest.$ac_ext
32936 cat >>conftest.$ac_ext <<_ACEOF
32937 /* end confdefs.h. */
32938 $ac_includes_default
32939 #include <Carbon.h>
32940 _ACEOF
32941 rm -f conftest.$ac_objext
32942 if { (ac_try="$ac_compile"
32943 case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946 esac
32947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
32949 ac_status=$?
32950 grep -v '^ *+' conftest.er1 >conftest.err
32951 rm -f conftest.er1
32952 cat conftest.err >&5
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); } &&
32955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32956 { (case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32959 esac
32960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_try") 2>&5
32962 ac_status=$?
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } &&
32965 { ac_try='test -s conftest.$ac_objext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32969 esac
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32972 ac_status=$?
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 ac_header_compiler=yes
32976 else
32977 echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32980 ac_header_compiler=no
32983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32985 echo "${ECHO_T}$ac_header_compiler" >&6; }
32987 # Is the header present?
32988 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
32989 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
32990 cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h. */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 #include <Carbon.h>
32997 _ACEOF
32998 if { (ac_try="$ac_cpp conftest.$ac_ext"
32999 case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33005 ac_status=$?
33006 grep -v '^ *+' conftest.er1 >conftest.err
33007 rm -f conftest.er1
33008 cat conftest.err >&5
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } >/dev/null; then
33011 if test -s conftest.err; then
33012 ac_cpp_err=$ac_c_preproc_warn_flag
33013 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33014 else
33015 ac_cpp_err=
33017 else
33018 ac_cpp_err=yes
33020 if test -z "$ac_cpp_err"; then
33021 ac_header_preproc=yes
33022 else
33023 echo "$as_me: failed program was:" >&5
33024 sed 's/^/| /' conftest.$ac_ext >&5
33026 ac_header_preproc=no
33029 rm -f conftest.err conftest.$ac_ext
33030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33031 echo "${ECHO_T}$ac_header_preproc" >&6; }
33033 # So? What about this header?
33034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33035 yes:no: )
33036 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
33037 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33038 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
33039 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
33040 ac_header_preproc=yes
33042 no:yes:* )
33043 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
33044 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
33045 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
33046 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
33047 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
33048 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
33049 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
33050 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
33051 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
33052 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
33053 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
33054 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
33057 esac
33058 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
33059 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
33060 if test "${ac_cv_header_Carbon_h+set}" = set; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33062 else
33063 ac_cv_header_Carbon_h=$ac_header_preproc
33065 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
33066 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
33069 if test $ac_cv_header_Carbon_h = yes; then
33071 else
33072 can_compile_carbon=0
33076 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33077 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33078 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33079 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33080 echo $ECHO_N "(cached) $ECHO_C" >&6
33082 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33083 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33084 else
33085 # Is the header compilable?
33086 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
33087 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
33088 cat >conftest.$ac_ext <<_ACEOF
33089 /* confdefs.h. */
33090 _ACEOF
33091 cat confdefs.h >>conftest.$ac_ext
33092 cat >>conftest.$ac_ext <<_ACEOF
33093 /* end confdefs.h. */
33094 $ac_includes_default
33095 #include <ApplicationServices/ApplicationServices.h>
33096 _ACEOF
33097 rm -f conftest.$ac_objext
33098 if { (ac_try="$ac_compile"
33099 case "(($ac_try" in
33100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33101 *) ac_try_echo=$ac_try;;
33102 esac
33103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33104 (eval "$ac_compile") 2>conftest.er1
33105 ac_status=$?
33106 grep -v '^ *+' conftest.er1 >conftest.err
33107 rm -f conftest.er1
33108 cat conftest.err >&5
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); } &&
33111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33112 { (case "(($ac_try" in
33113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33114 *) ac_try_echo=$ac_try;;
33115 esac
33116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33117 (eval "$ac_try") 2>&5
33118 ac_status=$?
33119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120 (exit $ac_status); }; } &&
33121 { ac_try='test -s conftest.$ac_objext'
33122 { (case "(($ac_try" in
33123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33124 *) ac_try_echo=$ac_try;;
33125 esac
33126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33127 (eval "$ac_try") 2>&5
33128 ac_status=$?
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; }; then
33131 ac_header_compiler=yes
33132 else
33133 echo "$as_me: failed program was:" >&5
33134 sed 's/^/| /' conftest.$ac_ext >&5
33136 ac_header_compiler=no
33139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33141 echo "${ECHO_T}$ac_header_compiler" >&6; }
33143 # Is the header present?
33144 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
33145 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
33146 cat >conftest.$ac_ext <<_ACEOF
33147 /* confdefs.h. */
33148 _ACEOF
33149 cat confdefs.h >>conftest.$ac_ext
33150 cat >>conftest.$ac_ext <<_ACEOF
33151 /* end confdefs.h. */
33152 #include <ApplicationServices/ApplicationServices.h>
33153 _ACEOF
33154 if { (ac_try="$ac_cpp conftest.$ac_ext"
33155 case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33158 esac
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33161 ac_status=$?
33162 grep -v '^ *+' conftest.er1 >conftest.err
33163 rm -f conftest.er1
33164 cat conftest.err >&5
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } >/dev/null; then
33167 if test -s conftest.err; then
33168 ac_cpp_err=$ac_c_preproc_warn_flag
33169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33170 else
33171 ac_cpp_err=
33173 else
33174 ac_cpp_err=yes
33176 if test -z "$ac_cpp_err"; then
33177 ac_header_preproc=yes
33178 else
33179 echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 ac_header_preproc=no
33185 rm -f conftest.err conftest.$ac_ext
33186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33187 echo "${ECHO_T}$ac_header_preproc" >&6; }
33189 # So? What about this header?
33190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33191 yes:no: )
33192 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
33193 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33194 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
33195 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
33196 ac_header_preproc=yes
33198 no:yes:* )
33199 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
33200 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
33201 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
33202 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
33203 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
33204 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
33205 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
33206 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
33207 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
33208 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
33209 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
33210 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
33213 esac
33214 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
33215 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
33216 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
33217 echo $ECHO_N "(cached) $ECHO_C" >&6
33218 else
33219 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
33221 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
33222 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
33225 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
33227 else
33228 can_compile_carbon=0
33232 if test $can_compile_carbon = 1; then
33233 with_carbon=yes
33237 if test "$with_win32" != yes; then
33238 can_compile_win32=1
33239 if test "${ac_cv_header_windows_h+set}" = set; then
33240 { echo "$as_me:$LINENO: checking for windows.h" >&5
33241 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33242 if test "${ac_cv_header_windows_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33245 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33246 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33247 else
33248 # Is the header compilable?
33249 { echo "$as_me:$LINENO: checking windows.h usability" >&5
33250 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
33251 cat >conftest.$ac_ext <<_ACEOF
33252 /* confdefs.h. */
33253 _ACEOF
33254 cat confdefs.h >>conftest.$ac_ext
33255 cat >>conftest.$ac_ext <<_ACEOF
33256 /* end confdefs.h. */
33257 $ac_includes_default
33258 #include <windows.h>
33259 _ACEOF
33260 rm -f conftest.$ac_objext
33261 if { (ac_try="$ac_compile"
33262 case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265 esac
33266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
33268 ac_status=$?
33269 grep -v '^ *+' conftest.er1 >conftest.err
33270 rm -f conftest.er1
33271 cat conftest.err >&5
33272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273 (exit $ac_status); } &&
33274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278 esac
33279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33288 esac
33289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
33294 ac_header_compiler=yes
33295 else
33296 echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33299 ac_header_compiler=no
33302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33304 echo "${ECHO_T}$ac_header_compiler" >&6; }
33306 # Is the header present?
33307 { echo "$as_me:$LINENO: checking windows.h presence" >&5
33308 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
33309 cat >conftest.$ac_ext <<_ACEOF
33310 /* confdefs.h. */
33311 _ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h. */
33315 #include <windows.h>
33316 _ACEOF
33317 if { (ac_try="$ac_cpp conftest.$ac_ext"
33318 case "(($ac_try" in
33319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33320 *) ac_try_echo=$ac_try;;
33321 esac
33322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33324 ac_status=$?
33325 grep -v '^ *+' conftest.er1 >conftest.err
33326 rm -f conftest.er1
33327 cat conftest.err >&5
33328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33329 (exit $ac_status); } >/dev/null; then
33330 if test -s conftest.err; then
33331 ac_cpp_err=$ac_c_preproc_warn_flag
33332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33333 else
33334 ac_cpp_err=
33336 else
33337 ac_cpp_err=yes
33339 if test -z "$ac_cpp_err"; then
33340 ac_header_preproc=yes
33341 else
33342 echo "$as_me: failed program was:" >&5
33343 sed 's/^/| /' conftest.$ac_ext >&5
33345 ac_header_preproc=no
33348 rm -f conftest.err conftest.$ac_ext
33349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33350 echo "${ECHO_T}$ac_header_preproc" >&6; }
33352 # So? What about this header?
33353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33354 yes:no: )
33355 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
33356 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33357 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
33358 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
33359 ac_header_preproc=yes
33361 no:yes:* )
33362 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
33363 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
33364 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
33365 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
33366 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
33367 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
33368 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
33369 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
33370 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
33371 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
33372 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
33373 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
33376 esac
33377 { echo "$as_me:$LINENO: checking for windows.h" >&5
33378 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
33379 if test "${ac_cv_header_windows_h+set}" = set; then
33380 echo $ECHO_N "(cached) $ECHO_C" >&6
33381 else
33382 ac_cv_header_windows_h=$ac_header_preproc
33384 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
33385 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
33388 if test $ac_cv_header_windows_h = yes; then
33390 else
33391 can_compile_win32=0
33395 if test "${ac_cv_header_commctrl_h+set}" = set; then
33396 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33397 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33398 if test "${ac_cv_header_commctrl_h+set}" = set; then
33399 echo $ECHO_N "(cached) $ECHO_C" >&6
33401 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33402 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33403 else
33404 # Is the header compilable?
33405 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
33406 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
33407 cat >conftest.$ac_ext <<_ACEOF
33408 /* confdefs.h. */
33409 _ACEOF
33410 cat confdefs.h >>conftest.$ac_ext
33411 cat >>conftest.$ac_ext <<_ACEOF
33412 /* end confdefs.h. */
33413 $ac_includes_default
33414 #include <commctrl.h>
33415 _ACEOF
33416 rm -f conftest.$ac_objext
33417 if { (ac_try="$ac_compile"
33418 case "(($ac_try" in
33419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33420 *) ac_try_echo=$ac_try;;
33421 esac
33422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33423 (eval "$ac_compile") 2>conftest.er1
33424 ac_status=$?
33425 grep -v '^ *+' conftest.er1 >conftest.err
33426 rm -f conftest.er1
33427 cat conftest.err >&5
33428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33429 (exit $ac_status); } &&
33430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33431 { (case "(($ac_try" in
33432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33433 *) ac_try_echo=$ac_try;;
33434 esac
33435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33436 (eval "$ac_try") 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; } &&
33440 { ac_try='test -s conftest.$ac_objext'
33441 { (case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33444 esac
33445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_try") 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
33450 ac_header_compiler=yes
33451 else
33452 echo "$as_me: failed program was:" >&5
33453 sed 's/^/| /' conftest.$ac_ext >&5
33455 ac_header_compiler=no
33458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33460 echo "${ECHO_T}$ac_header_compiler" >&6; }
33462 # Is the header present?
33463 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
33464 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
33465 cat >conftest.$ac_ext <<_ACEOF
33466 /* confdefs.h. */
33467 _ACEOF
33468 cat confdefs.h >>conftest.$ac_ext
33469 cat >>conftest.$ac_ext <<_ACEOF
33470 /* end confdefs.h. */
33471 #include <commctrl.h>
33472 _ACEOF
33473 if { (ac_try="$ac_cpp conftest.$ac_ext"
33474 case "(($ac_try" in
33475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33476 *) ac_try_echo=$ac_try;;
33477 esac
33478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33480 ac_status=$?
33481 grep -v '^ *+' conftest.er1 >conftest.err
33482 rm -f conftest.er1
33483 cat conftest.err >&5
33484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485 (exit $ac_status); } >/dev/null; then
33486 if test -s conftest.err; then
33487 ac_cpp_err=$ac_c_preproc_warn_flag
33488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33489 else
33490 ac_cpp_err=
33492 else
33493 ac_cpp_err=yes
33495 if test -z "$ac_cpp_err"; then
33496 ac_header_preproc=yes
33497 else
33498 echo "$as_me: failed program was:" >&5
33499 sed 's/^/| /' conftest.$ac_ext >&5
33501 ac_header_preproc=no
33504 rm -f conftest.err conftest.$ac_ext
33505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33506 echo "${ECHO_T}$ac_header_preproc" >&6; }
33508 # So? What about this header?
33509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33510 yes:no: )
33511 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33512 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33513 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
33514 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
33515 ac_header_preproc=yes
33517 no:yes:* )
33518 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
33519 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
33520 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
33521 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
33522 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
33523 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
33524 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
33525 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
33526 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
33527 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
33528 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
33529 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
33532 esac
33533 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
33534 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
33535 if test "${ac_cv_header_commctrl_h+set}" = set; then
33536 echo $ECHO_N "(cached) $ECHO_C" >&6
33537 else
33538 ac_cv_header_commctrl_h=$ac_header_preproc
33540 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
33541 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
33544 if test $ac_cv_header_commctrl_h = yes; then
33546 else
33547 can_compile_win32=0
33551 if test $can_compile_win32 = 1; then
33552 with_win32=yes
33556 if test "$with_sdl" != yes; then
33557 can_compile_sdl=1
33558 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33559 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33560 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33561 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33562 echo $ECHO_N "(cached) $ECHO_C" >&6
33564 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33565 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33566 else
33567 # Is the header compilable?
33568 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
33569 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
33570 cat >conftest.$ac_ext <<_ACEOF
33571 /* confdefs.h. */
33572 _ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h. */
33576 $ac_includes_default
33577 #include <SDL/SDL.h>
33578 _ACEOF
33579 rm -f conftest.$ac_objext
33580 if { (ac_try="$ac_compile"
33581 case "(($ac_try" in
33582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33583 *) ac_try_echo=$ac_try;;
33584 esac
33585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33586 (eval "$ac_compile") 2>conftest.er1
33587 ac_status=$?
33588 grep -v '^ *+' conftest.er1 >conftest.err
33589 rm -f conftest.er1
33590 cat conftest.err >&5
33591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33592 (exit $ac_status); } &&
33593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33594 { (case "(($ac_try" in
33595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596 *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599 (eval "$ac_try") 2>&5
33600 ac_status=$?
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); }; } &&
33603 { ac_try='test -s conftest.$ac_objext'
33604 { (case "(($ac_try" in
33605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33606 *) ac_try_echo=$ac_try;;
33607 esac
33608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33609 (eval "$ac_try") 2>&5
33610 ac_status=$?
33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612 (exit $ac_status); }; }; then
33613 ac_header_compiler=yes
33614 else
33615 echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33618 ac_header_compiler=no
33621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33623 echo "${ECHO_T}$ac_header_compiler" >&6; }
33625 # Is the header present?
33626 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
33627 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
33628 cat >conftest.$ac_ext <<_ACEOF
33629 /* confdefs.h. */
33630 _ACEOF
33631 cat confdefs.h >>conftest.$ac_ext
33632 cat >>conftest.$ac_ext <<_ACEOF
33633 /* end confdefs.h. */
33634 #include <SDL/SDL.h>
33635 _ACEOF
33636 if { (ac_try="$ac_cpp conftest.$ac_ext"
33637 case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33640 esac
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33643 ac_status=$?
33644 grep -v '^ *+' conftest.er1 >conftest.err
33645 rm -f conftest.er1
33646 cat conftest.err >&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); } >/dev/null; then
33649 if test -s conftest.err; then
33650 ac_cpp_err=$ac_c_preproc_warn_flag
33651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33652 else
33653 ac_cpp_err=
33655 else
33656 ac_cpp_err=yes
33658 if test -z "$ac_cpp_err"; then
33659 ac_header_preproc=yes
33660 else
33661 echo "$as_me: failed program was:" >&5
33662 sed 's/^/| /' conftest.$ac_ext >&5
33664 ac_header_preproc=no
33667 rm -f conftest.err conftest.$ac_ext
33668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33669 echo "${ECHO_T}$ac_header_preproc" >&6; }
33671 # So? What about this header?
33672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33673 yes:no: )
33674 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
33675 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33676 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
33677 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
33678 ac_header_preproc=yes
33680 no:yes:* )
33681 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
33682 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
33683 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
33684 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
33685 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
33686 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
33687 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
33688 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
33689 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
33690 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
33691 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
33692 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
33695 esac
33696 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
33697 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
33698 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
33699 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 else
33701 ac_cv_header_SDL_SDL_h=$ac_header_preproc
33703 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
33704 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
33707 if test $ac_cv_header_SDL_SDL_h = yes; then
33709 else
33710 can_compile_sdl=0
33714 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33715 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33716 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33717 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33718 echo $ECHO_N "(cached) $ECHO_C" >&6
33720 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33721 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33722 else
33723 # Is the header compilable?
33724 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
33725 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
33726 cat >conftest.$ac_ext <<_ACEOF
33727 /* confdefs.h. */
33728 _ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h. */
33732 $ac_includes_default
33733 #include <SDL/SDL_main.h>
33734 _ACEOF
33735 rm -f conftest.$ac_objext
33736 if { (ac_try="$ac_compile"
33737 case "(($ac_try" in
33738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739 *) ac_try_echo=$ac_try;;
33740 esac
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742 (eval "$ac_compile") 2>conftest.er1
33743 ac_status=$?
33744 grep -v '^ *+' conftest.er1 >conftest.err
33745 rm -f conftest.er1
33746 cat conftest.err >&5
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); } &&
33749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33750 { (case "(($ac_try" in
33751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33752 *) ac_try_echo=$ac_try;;
33753 esac
33754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33755 (eval "$ac_try") 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; } &&
33759 { ac_try='test -s conftest.$ac_objext'
33760 { (case "(($ac_try" in
33761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762 *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765 (eval "$ac_try") 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; }; then
33769 ac_header_compiler=yes
33770 else
33771 echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.$ac_ext >&5
33774 ac_header_compiler=no
33777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33779 echo "${ECHO_T}$ac_header_compiler" >&6; }
33781 # Is the header present?
33782 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
33783 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
33784 cat >conftest.$ac_ext <<_ACEOF
33785 /* confdefs.h. */
33786 _ACEOF
33787 cat confdefs.h >>conftest.$ac_ext
33788 cat >>conftest.$ac_ext <<_ACEOF
33789 /* end confdefs.h. */
33790 #include <SDL/SDL_main.h>
33791 _ACEOF
33792 if { (ac_try="$ac_cpp conftest.$ac_ext"
33793 case "(($ac_try" in
33794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795 *) ac_try_echo=$ac_try;;
33796 esac
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33799 ac_status=$?
33800 grep -v '^ *+' conftest.er1 >conftest.err
33801 rm -f conftest.er1
33802 cat conftest.err >&5
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); } >/dev/null; then
33805 if test -s conftest.err; then
33806 ac_cpp_err=$ac_c_preproc_warn_flag
33807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33808 else
33809 ac_cpp_err=
33811 else
33812 ac_cpp_err=yes
33814 if test -z "$ac_cpp_err"; then
33815 ac_header_preproc=yes
33816 else
33817 echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33820 ac_header_preproc=no
33823 rm -f conftest.err conftest.$ac_ext
33824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33825 echo "${ECHO_T}$ac_header_preproc" >&6; }
33827 # So? What about this header?
33828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33829 yes:no: )
33830 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
33831 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33832 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
33833 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
33834 ac_header_preproc=yes
33836 no:yes:* )
33837 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
33838 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
33839 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
33840 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
33841 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
33842 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
33843 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
33844 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
33845 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
33846 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
33847 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
33848 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
33851 esac
33852 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
33853 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
33854 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33856 else
33857 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
33859 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
33860 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
33863 if test $ac_cv_header_SDL_SDL_main_h = yes; then
33865 else
33866 can_compile_sdl=0
33870 if test $can_compile_sdl = 1; then
33871 with_sdl=yes
33875 if test "$with_svga" != yes; then
33876 can_compile_svga=1
33877 if test "${ac_cv_header_vga_h+set}" = set; then
33878 { echo "$as_me:$LINENO: checking for vga.h" >&5
33879 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
33880 if test "${ac_cv_header_vga_h+set}" = set; then
33881 echo $ECHO_N "(cached) $ECHO_C" >&6
33883 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
33884 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
33885 else
33886 # Is the header compilable?
33887 { echo "$as_me:$LINENO: checking vga.h usability" >&5
33888 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
33889 cat >conftest.$ac_ext <<_ACEOF
33890 /* confdefs.h. */
33891 _ACEOF
33892 cat confdefs.h >>conftest.$ac_ext
33893 cat >>conftest.$ac_ext <<_ACEOF
33894 /* end confdefs.h. */
33895 $ac_includes_default
33896 #include <vga.h>
33897 _ACEOF
33898 rm -f conftest.$ac_objext
33899 if { (ac_try="$ac_compile"
33900 case "(($ac_try" in
33901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902 *) ac_try_echo=$ac_try;;
33903 esac
33904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905 (eval "$ac_compile") 2>conftest.er1
33906 ac_status=$?
33907 grep -v '^ *+' conftest.er1 >conftest.err
33908 rm -f conftest.er1
33909 cat conftest.err >&5
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); } &&
33912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33913 { (case "(($ac_try" in
33914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33915 *) ac_try_echo=$ac_try;;
33916 esac
33917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33918 (eval "$ac_try") 2>&5
33919 ac_status=$?
33920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33921 (exit $ac_status); }; } &&
33922 { ac_try='test -s conftest.$ac_objext'
33923 { (case "(($ac_try" in
33924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33925 *) ac_try_echo=$ac_try;;
33926 esac
33927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33928 (eval "$ac_try") 2>&5
33929 ac_status=$?
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); }; }; then
33932 ac_header_compiler=yes
33933 else
33934 echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33937 ac_header_compiler=no
33940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33942 echo "${ECHO_T}$ac_header_compiler" >&6; }
33944 # Is the header present?
33945 { echo "$as_me:$LINENO: checking vga.h presence" >&5
33946 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
33947 cat >conftest.$ac_ext <<_ACEOF
33948 /* confdefs.h. */
33949 _ACEOF
33950 cat confdefs.h >>conftest.$ac_ext
33951 cat >>conftest.$ac_ext <<_ACEOF
33952 /* end confdefs.h. */
33953 #include <vga.h>
33954 _ACEOF
33955 if { (ac_try="$ac_cpp conftest.$ac_ext"
33956 case "(($ac_try" in
33957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33958 *) ac_try_echo=$ac_try;;
33959 esac
33960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33962 ac_status=$?
33963 grep -v '^ *+' conftest.er1 >conftest.err
33964 rm -f conftest.er1
33965 cat conftest.err >&5
33966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967 (exit $ac_status); } >/dev/null; then
33968 if test -s conftest.err; then
33969 ac_cpp_err=$ac_c_preproc_warn_flag
33970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33971 else
33972 ac_cpp_err=
33974 else
33975 ac_cpp_err=yes
33977 if test -z "$ac_cpp_err"; then
33978 ac_header_preproc=yes
33979 else
33980 echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33983 ac_header_preproc=no
33986 rm -f conftest.err conftest.$ac_ext
33987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33988 echo "${ECHO_T}$ac_header_preproc" >&6; }
33990 # So? What about this header?
33991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33992 yes:no: )
33993 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
33994 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33995 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
33996 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
33997 ac_header_preproc=yes
33999 no:yes:* )
34000 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
34001 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
34002 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
34003 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
34004 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
34005 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
34006 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
34007 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
34008 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
34009 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
34010 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
34011 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
34014 esac
34015 { echo "$as_me:$LINENO: checking for vga.h" >&5
34016 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
34017 if test "${ac_cv_header_vga_h+set}" = set; then
34018 echo $ECHO_N "(cached) $ECHO_C" >&6
34019 else
34020 ac_cv_header_vga_h=$ac_header_preproc
34022 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
34023 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
34026 if test $ac_cv_header_vga_h = yes; then
34028 else
34029 can_compile_svga=0
34033 if test "${ac_cv_header_vgagl_h+set}" = set; then
34034 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34035 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34036 if test "${ac_cv_header_vgagl_h+set}" = set; then
34037 echo $ECHO_N "(cached) $ECHO_C" >&6
34039 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34040 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34041 else
34042 # Is the header compilable?
34043 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
34044 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
34045 cat >conftest.$ac_ext <<_ACEOF
34046 /* confdefs.h. */
34047 _ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h. */
34051 $ac_includes_default
34052 #include <vgagl.h>
34053 _ACEOF
34054 rm -f conftest.$ac_objext
34055 if { (ac_try="$ac_compile"
34056 case "(($ac_try" in
34057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34058 *) ac_try_echo=$ac_try;;
34059 esac
34060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34061 (eval "$ac_compile") 2>conftest.er1
34062 ac_status=$?
34063 grep -v '^ *+' conftest.er1 >conftest.err
34064 rm -f conftest.er1
34065 cat conftest.err >&5
34066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067 (exit $ac_status); } &&
34068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34069 { (case "(($ac_try" in
34070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071 *) ac_try_echo=$ac_try;;
34072 esac
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074 (eval "$ac_try") 2>&5
34075 ac_status=$?
34076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077 (exit $ac_status); }; } &&
34078 { ac_try='test -s conftest.$ac_objext'
34079 { (case "(($ac_try" in
34080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34081 *) ac_try_echo=$ac_try;;
34082 esac
34083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34084 (eval "$ac_try") 2>&5
34085 ac_status=$?
34086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087 (exit $ac_status); }; }; then
34088 ac_header_compiler=yes
34089 else
34090 echo "$as_me: failed program was:" >&5
34091 sed 's/^/| /' conftest.$ac_ext >&5
34093 ac_header_compiler=no
34096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34098 echo "${ECHO_T}$ac_header_compiler" >&6; }
34100 # Is the header present?
34101 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
34102 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
34103 cat >conftest.$ac_ext <<_ACEOF
34104 /* confdefs.h. */
34105 _ACEOF
34106 cat confdefs.h >>conftest.$ac_ext
34107 cat >>conftest.$ac_ext <<_ACEOF
34108 /* end confdefs.h. */
34109 #include <vgagl.h>
34110 _ACEOF
34111 if { (ac_try="$ac_cpp conftest.$ac_ext"
34112 case "(($ac_try" in
34113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34114 *) ac_try_echo=$ac_try;;
34115 esac
34116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34118 ac_status=$?
34119 grep -v '^ *+' conftest.er1 >conftest.err
34120 rm -f conftest.er1
34121 cat conftest.err >&5
34122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); } >/dev/null; then
34124 if test -s conftest.err; then
34125 ac_cpp_err=$ac_c_preproc_warn_flag
34126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34127 else
34128 ac_cpp_err=
34130 else
34131 ac_cpp_err=yes
34133 if test -z "$ac_cpp_err"; then
34134 ac_header_preproc=yes
34135 else
34136 echo "$as_me: failed program was:" >&5
34137 sed 's/^/| /' conftest.$ac_ext >&5
34139 ac_header_preproc=no
34142 rm -f conftest.err conftest.$ac_ext
34143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34144 echo "${ECHO_T}$ac_header_preproc" >&6; }
34146 # So? What about this header?
34147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34148 yes:no: )
34149 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
34150 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34151 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
34152 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
34153 ac_header_preproc=yes
34155 no:yes:* )
34156 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
34157 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
34158 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
34159 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
34160 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
34161 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
34162 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
34163 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
34164 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
34165 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
34166 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
34167 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
34170 esac
34171 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
34172 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
34173 if test "${ac_cv_header_vgagl_h+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34175 else
34176 ac_cv_header_vgagl_h=$ac_header_preproc
34178 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
34179 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
34182 if test $ac_cv_header_vgagl_h = yes; then
34184 else
34185 can_compile_svga=0
34189 if test $can_compile_svga = 1; then
34190 with_svga=yes
34194 if test "$with_x11" != yes; then
34195 can_compile_x11=1
34196 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34197 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34198 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34199 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34200 echo $ECHO_N "(cached) $ECHO_C" >&6
34202 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34203 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34204 else
34205 # Is the header compilable?
34206 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
34207 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
34208 cat >conftest.$ac_ext <<_ACEOF
34209 /* confdefs.h. */
34210 _ACEOF
34211 cat confdefs.h >>conftest.$ac_ext
34212 cat >>conftest.$ac_ext <<_ACEOF
34213 /* end confdefs.h. */
34214 $ac_includes_default
34215 #include <X11/Xlib.h>
34216 _ACEOF
34217 rm -f conftest.$ac_objext
34218 if { (ac_try="$ac_compile"
34219 case "(($ac_try" in
34220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34221 *) ac_try_echo=$ac_try;;
34222 esac
34223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34224 (eval "$ac_compile") 2>conftest.er1
34225 ac_status=$?
34226 grep -v '^ *+' conftest.er1 >conftest.err
34227 rm -f conftest.er1
34228 cat conftest.err >&5
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); } &&
34231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34232 { (case "(($ac_try" in
34233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34234 *) ac_try_echo=$ac_try;;
34235 esac
34236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34237 (eval "$ac_try") 2>&5
34238 ac_status=$?
34239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34240 (exit $ac_status); }; } &&
34241 { ac_try='test -s conftest.$ac_objext'
34242 { (case "(($ac_try" in
34243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244 *) ac_try_echo=$ac_try;;
34245 esac
34246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247 (eval "$ac_try") 2>&5
34248 ac_status=$?
34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34250 (exit $ac_status); }; }; then
34251 ac_header_compiler=yes
34252 else
34253 echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34256 ac_header_compiler=no
34259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34261 echo "${ECHO_T}$ac_header_compiler" >&6; }
34263 # Is the header present?
34264 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
34265 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
34266 cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h. */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272 #include <X11/Xlib.h>
34273 _ACEOF
34274 if { (ac_try="$ac_cpp conftest.$ac_ext"
34275 case "(($ac_try" in
34276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34277 *) ac_try_echo=$ac_try;;
34278 esac
34279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34281 ac_status=$?
34282 grep -v '^ *+' conftest.er1 >conftest.err
34283 rm -f conftest.er1
34284 cat conftest.err >&5
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); } >/dev/null; then
34287 if test -s conftest.err; then
34288 ac_cpp_err=$ac_c_preproc_warn_flag
34289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34290 else
34291 ac_cpp_err=
34293 else
34294 ac_cpp_err=yes
34296 if test -z "$ac_cpp_err"; then
34297 ac_header_preproc=yes
34298 else
34299 echo "$as_me: failed program was:" >&5
34300 sed 's/^/| /' conftest.$ac_ext >&5
34302 ac_header_preproc=no
34305 rm -f conftest.err conftest.$ac_ext
34306 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34307 echo "${ECHO_T}$ac_header_preproc" >&6; }
34309 # So? What about this header?
34310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34311 yes:no: )
34312 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34313 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34314 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
34315 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
34316 ac_header_preproc=yes
34318 no:yes:* )
34319 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
34320 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
34321 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
34322 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
34323 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
34324 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
34325 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
34326 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34327 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
34328 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
34329 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
34330 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
34333 esac
34334 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
34335 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
34336 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
34337 echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339 ac_cv_header_X11_Xlib_h=$ac_header_preproc
34341 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
34342 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
34345 if test $ac_cv_header_X11_Xlib_h = yes; then
34347 else
34348 can_compile_x11=0
34352 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34353 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34354 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34355 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34356 echo $ECHO_N "(cached) $ECHO_C" >&6
34358 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34359 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34360 else
34361 # Is the header compilable?
34362 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
34363 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
34364 cat >conftest.$ac_ext <<_ACEOF
34365 /* confdefs.h. */
34366 _ACEOF
34367 cat confdefs.h >>conftest.$ac_ext
34368 cat >>conftest.$ac_ext <<_ACEOF
34369 /* end confdefs.h. */
34370 $ac_includes_default
34371 #include <X11/Xutil.h>
34372 _ACEOF
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34378 esac
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_compile") 2>conftest.er1
34381 ac_status=$?
34382 grep -v '^ *+' conftest.er1 >conftest.err
34383 rm -f conftest.er1
34384 cat conftest.err >&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); } &&
34387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34388 { (case "(($ac_try" in
34389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34390 *) ac_try_echo=$ac_try;;
34391 esac
34392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34393 (eval "$ac_try") 2>&5
34394 ac_status=$?
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); }; } &&
34397 { ac_try='test -s conftest.$ac_objext'
34398 { (case "(($ac_try" in
34399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34400 *) ac_try_echo=$ac_try;;
34401 esac
34402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34403 (eval "$ac_try") 2>&5
34404 ac_status=$?
34405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34406 (exit $ac_status); }; }; then
34407 ac_header_compiler=yes
34408 else
34409 echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.$ac_ext >&5
34412 ac_header_compiler=no
34415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34417 echo "${ECHO_T}$ac_header_compiler" >&6; }
34419 # Is the header present?
34420 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
34421 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
34422 cat >conftest.$ac_ext <<_ACEOF
34423 /* confdefs.h. */
34424 _ACEOF
34425 cat confdefs.h >>conftest.$ac_ext
34426 cat >>conftest.$ac_ext <<_ACEOF
34427 /* end confdefs.h. */
34428 #include <X11/Xutil.h>
34429 _ACEOF
34430 if { (ac_try="$ac_cpp conftest.$ac_ext"
34431 case "(($ac_try" in
34432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433 *) ac_try_echo=$ac_try;;
34434 esac
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34437 ac_status=$?
34438 grep -v '^ *+' conftest.er1 >conftest.err
34439 rm -f conftest.er1
34440 cat conftest.err >&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); } >/dev/null; then
34443 if test -s conftest.err; then
34444 ac_cpp_err=$ac_c_preproc_warn_flag
34445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34446 else
34447 ac_cpp_err=
34449 else
34450 ac_cpp_err=yes
34452 if test -z "$ac_cpp_err"; then
34453 ac_header_preproc=yes
34454 else
34455 echo "$as_me: failed program was:" >&5
34456 sed 's/^/| /' conftest.$ac_ext >&5
34458 ac_header_preproc=no
34461 rm -f conftest.err conftest.$ac_ext
34462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34463 echo "${ECHO_T}$ac_header_preproc" >&6; }
34465 # So? What about this header?
34466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34467 yes:no: )
34468 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
34469 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34470 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
34471 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
34472 ac_header_preproc=yes
34474 no:yes:* )
34475 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
34476 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
34477 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
34478 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
34479 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
34480 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
34481 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
34482 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
34483 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
34484 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
34485 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
34486 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
34489 esac
34490 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
34491 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
34492 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
34493 echo $ECHO_N "(cached) $ECHO_C" >&6
34494 else
34495 ac_cv_header_X11_Xutil_h=$ac_header_preproc
34497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
34498 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
34501 if test $ac_cv_header_X11_Xutil_h = yes; then
34503 else
34504 can_compile_x11=0
34508 if test $can_compile_x11 = 1; then
34509 with_x11=yes
34513 if test "$with_rfb" != yes; then
34514 can_compile_rfb=1
34515 case $target in
34516 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
34517 if test "${ac_cv_header_winsock_h+set}" = set; then
34518 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34519 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34520 if test "${ac_cv_header_winsock_h+set}" = set; then
34521 echo $ECHO_N "(cached) $ECHO_C" >&6
34523 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34524 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34525 else
34526 # Is the header compilable?
34527 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
34528 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
34529 cat >conftest.$ac_ext <<_ACEOF
34530 /* confdefs.h. */
34531 _ACEOF
34532 cat confdefs.h >>conftest.$ac_ext
34533 cat >>conftest.$ac_ext <<_ACEOF
34534 /* end confdefs.h. */
34535 $ac_includes_default
34536 #include <winsock.h>
34537 _ACEOF
34538 rm -f conftest.$ac_objext
34539 if { (ac_try="$ac_compile"
34540 case "(($ac_try" in
34541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34542 *) ac_try_echo=$ac_try;;
34543 esac
34544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34545 (eval "$ac_compile") 2>conftest.er1
34546 ac_status=$?
34547 grep -v '^ *+' conftest.er1 >conftest.err
34548 rm -f conftest.er1
34549 cat conftest.err >&5
34550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34551 (exit $ac_status); } &&
34552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34553 { (case "(($ac_try" in
34554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34555 *) ac_try_echo=$ac_try;;
34556 esac
34557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34558 (eval "$ac_try") 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; } &&
34562 { ac_try='test -s conftest.$ac_objext'
34563 { (case "(($ac_try" in
34564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34565 *) ac_try_echo=$ac_try;;
34566 esac
34567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34568 (eval "$ac_try") 2>&5
34569 ac_status=$?
34570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34571 (exit $ac_status); }; }; then
34572 ac_header_compiler=yes
34573 else
34574 echo "$as_me: failed program was:" >&5
34575 sed 's/^/| /' conftest.$ac_ext >&5
34577 ac_header_compiler=no
34580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34582 echo "${ECHO_T}$ac_header_compiler" >&6; }
34584 # Is the header present?
34585 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
34586 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
34587 cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h. */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h. */
34593 #include <winsock.h>
34594 _ACEOF
34595 if { (ac_try="$ac_cpp conftest.$ac_ext"
34596 case "(($ac_try" in
34597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34598 *) ac_try_echo=$ac_try;;
34599 esac
34600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34602 ac_status=$?
34603 grep -v '^ *+' conftest.er1 >conftest.err
34604 rm -f conftest.er1
34605 cat conftest.err >&5
34606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34607 (exit $ac_status); } >/dev/null; then
34608 if test -s conftest.err; then
34609 ac_cpp_err=$ac_c_preproc_warn_flag
34610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34611 else
34612 ac_cpp_err=
34614 else
34615 ac_cpp_err=yes
34617 if test -z "$ac_cpp_err"; then
34618 ac_header_preproc=yes
34619 else
34620 echo "$as_me: failed program was:" >&5
34621 sed 's/^/| /' conftest.$ac_ext >&5
34623 ac_header_preproc=no
34626 rm -f conftest.err conftest.$ac_ext
34627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34628 echo "${ECHO_T}$ac_header_preproc" >&6; }
34630 # So? What about this header?
34631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34632 yes:no: )
34633 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
34634 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34635 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
34636 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
34637 ac_header_preproc=yes
34639 no:yes:* )
34640 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
34641 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
34642 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
34643 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
34644 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
34645 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
34646 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
34647 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
34648 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
34649 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
34650 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
34651 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
34654 esac
34655 { echo "$as_me:$LINENO: checking for winsock.h" >&5
34656 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
34657 if test "${ac_cv_header_winsock_h+set}" = set; then
34658 echo $ECHO_N "(cached) $ECHO_C" >&6
34659 else
34660 ac_cv_header_winsock_h=$ac_header_preproc
34662 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
34663 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
34666 if test $ac_cv_header_winsock_h = yes; then
34668 else
34669 can_compile_rfb=0
34673 if test "${ac_cv_header_process_h+set}" = set; then
34674 { echo "$as_me:$LINENO: checking for process.h" >&5
34675 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34676 if test "${ac_cv_header_process_h+set}" = set; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34679 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34680 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34681 else
34682 # Is the header compilable?
34683 { echo "$as_me:$LINENO: checking process.h usability" >&5
34684 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
34685 cat >conftest.$ac_ext <<_ACEOF
34686 /* confdefs.h. */
34687 _ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h. */
34691 $ac_includes_default
34692 #include <process.h>
34693 _ACEOF
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698 *) ac_try_echo=$ac_try;;
34699 esac
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701 (eval "$ac_compile") 2>conftest.er1
34702 ac_status=$?
34703 grep -v '^ *+' conftest.er1 >conftest.err
34704 rm -f conftest.er1
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } &&
34708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34709 { (case "(($ac_try" in
34710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34711 *) ac_try_echo=$ac_try;;
34712 esac
34713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34714 (eval "$ac_try") 2>&5
34715 ac_status=$?
34716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34717 (exit $ac_status); }; } &&
34718 { ac_try='test -s conftest.$ac_objext'
34719 { (case "(($ac_try" in
34720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34721 *) ac_try_echo=$ac_try;;
34722 esac
34723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34724 (eval "$ac_try") 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; }; then
34728 ac_header_compiler=yes
34729 else
34730 echo "$as_me: failed program was:" >&5
34731 sed 's/^/| /' conftest.$ac_ext >&5
34733 ac_header_compiler=no
34736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34738 echo "${ECHO_T}$ac_header_compiler" >&6; }
34740 # Is the header present?
34741 { echo "$as_me:$LINENO: checking process.h presence" >&5
34742 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
34743 cat >conftest.$ac_ext <<_ACEOF
34744 /* confdefs.h. */
34745 _ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h. */
34749 #include <process.h>
34750 _ACEOF
34751 if { (ac_try="$ac_cpp conftest.$ac_ext"
34752 case "(($ac_try" in
34753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34754 *) ac_try_echo=$ac_try;;
34755 esac
34756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34758 ac_status=$?
34759 grep -v '^ *+' conftest.er1 >conftest.err
34760 rm -f conftest.er1
34761 cat conftest.err >&5
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); } >/dev/null; then
34764 if test -s conftest.err; then
34765 ac_cpp_err=$ac_c_preproc_warn_flag
34766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34767 else
34768 ac_cpp_err=
34770 else
34771 ac_cpp_err=yes
34773 if test -z "$ac_cpp_err"; then
34774 ac_header_preproc=yes
34775 else
34776 echo "$as_me: failed program was:" >&5
34777 sed 's/^/| /' conftest.$ac_ext >&5
34779 ac_header_preproc=no
34782 rm -f conftest.err conftest.$ac_ext
34783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34784 echo "${ECHO_T}$ac_header_preproc" >&6; }
34786 # So? What about this header?
34787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34788 yes:no: )
34789 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
34790 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34791 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
34792 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
34793 ac_header_preproc=yes
34795 no:yes:* )
34796 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
34797 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
34798 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
34799 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
34800 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
34801 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
34802 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
34803 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
34804 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
34805 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
34806 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
34807 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
34810 esac
34811 { echo "$as_me:$LINENO: checking for process.h" >&5
34812 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
34813 if test "${ac_cv_header_process_h+set}" = set; then
34814 echo $ECHO_N "(cached) $ECHO_C" >&6
34815 else
34816 ac_cv_header_process_h=$ac_header_preproc
34818 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
34819 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
34822 if test $ac_cv_header_process_h = yes; then
34824 else
34825 can_compile_rfb=0
34831 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34832 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34833 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34834 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34837 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34838 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34839 else
34840 # Is the header compilable?
34841 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
34842 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
34843 cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h. */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 $ac_includes_default
34850 #include <sys/socket.h>
34851 _ACEOF
34852 rm -f conftest.$ac_objext
34853 if { (ac_try="$ac_compile"
34854 case "(($ac_try" in
34855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34856 *) ac_try_echo=$ac_try;;
34857 esac
34858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34859 (eval "$ac_compile") 2>conftest.er1
34860 ac_status=$?
34861 grep -v '^ *+' conftest.er1 >conftest.err
34862 rm -f conftest.er1
34863 cat conftest.err >&5
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); } &&
34866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34867 { (case "(($ac_try" in
34868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34869 *) ac_try_echo=$ac_try;;
34870 esac
34871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34872 (eval "$ac_try") 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; } &&
34876 { ac_try='test -s conftest.$ac_objext'
34877 { (case "(($ac_try" in
34878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34879 *) ac_try_echo=$ac_try;;
34880 esac
34881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34882 (eval "$ac_try") 2>&5
34883 ac_status=$?
34884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34885 (exit $ac_status); }; }; then
34886 ac_header_compiler=yes
34887 else
34888 echo "$as_me: failed program was:" >&5
34889 sed 's/^/| /' conftest.$ac_ext >&5
34891 ac_header_compiler=no
34894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34896 echo "${ECHO_T}$ac_header_compiler" >&6; }
34898 # Is the header present?
34899 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
34900 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
34901 cat >conftest.$ac_ext <<_ACEOF
34902 /* confdefs.h. */
34903 _ACEOF
34904 cat confdefs.h >>conftest.$ac_ext
34905 cat >>conftest.$ac_ext <<_ACEOF
34906 /* end confdefs.h. */
34907 #include <sys/socket.h>
34908 _ACEOF
34909 if { (ac_try="$ac_cpp conftest.$ac_ext"
34910 case "(($ac_try" in
34911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912 *) ac_try_echo=$ac_try;;
34913 esac
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34916 ac_status=$?
34917 grep -v '^ *+' conftest.er1 >conftest.err
34918 rm -f conftest.er1
34919 cat conftest.err >&5
34920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); } >/dev/null; then
34922 if test -s conftest.err; then
34923 ac_cpp_err=$ac_c_preproc_warn_flag
34924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34925 else
34926 ac_cpp_err=
34928 else
34929 ac_cpp_err=yes
34931 if test -z "$ac_cpp_err"; then
34932 ac_header_preproc=yes
34933 else
34934 echo "$as_me: failed program was:" >&5
34935 sed 's/^/| /' conftest.$ac_ext >&5
34937 ac_header_preproc=no
34940 rm -f conftest.err conftest.$ac_ext
34941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34942 echo "${ECHO_T}$ac_header_preproc" >&6; }
34944 # So? What about this header?
34945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34946 yes:no: )
34947 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
34948 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34949 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
34950 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
34951 ac_header_preproc=yes
34953 no:yes:* )
34954 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
34955 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
34956 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
34957 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
34958 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
34959 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
34960 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
34961 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
34962 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
34963 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
34964 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
34965 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
34968 esac
34969 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
34970 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
34971 if test "${ac_cv_header_sys_socket_h+set}" = set; then
34972 echo $ECHO_N "(cached) $ECHO_C" >&6
34973 else
34974 ac_cv_header_sys_socket_h=$ac_header_preproc
34976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
34977 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
34980 if test $ac_cv_header_sys_socket_h = yes; then
34982 else
34983 can_compile_rfb=0
34987 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34988 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
34989 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
34990 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
34991 echo $ECHO_N "(cached) $ECHO_C" >&6
34993 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
34994 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
34995 else
34996 # Is the header compilable?
34997 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
34998 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
34999 cat >conftest.$ac_ext <<_ACEOF
35000 /* confdefs.h. */
35001 _ACEOF
35002 cat confdefs.h >>conftest.$ac_ext
35003 cat >>conftest.$ac_ext <<_ACEOF
35004 /* end confdefs.h. */
35005 $ac_includes_default
35006 #include <netinet/tcp.h>
35007 _ACEOF
35008 rm -f conftest.$ac_objext
35009 if { (ac_try="$ac_compile"
35010 case "(($ac_try" in
35011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35012 *) ac_try_echo=$ac_try;;
35013 esac
35014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35015 (eval "$ac_compile") 2>conftest.er1
35016 ac_status=$?
35017 grep -v '^ *+' conftest.er1 >conftest.err
35018 rm -f conftest.er1
35019 cat conftest.err >&5
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); } &&
35022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35023 { (case "(($ac_try" in
35024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35025 *) ac_try_echo=$ac_try;;
35026 esac
35027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35028 (eval "$ac_try") 2>&5
35029 ac_status=$?
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; } &&
35032 { ac_try='test -s conftest.$ac_objext'
35033 { (case "(($ac_try" in
35034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35035 *) ac_try_echo=$ac_try;;
35036 esac
35037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35038 (eval "$ac_try") 2>&5
35039 ac_status=$?
35040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041 (exit $ac_status); }; }; then
35042 ac_header_compiler=yes
35043 else
35044 echo "$as_me: failed program was:" >&5
35045 sed 's/^/| /' conftest.$ac_ext >&5
35047 ac_header_compiler=no
35050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35052 echo "${ECHO_T}$ac_header_compiler" >&6; }
35054 # Is the header present?
35055 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
35056 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
35057 cat >conftest.$ac_ext <<_ACEOF
35058 /* confdefs.h. */
35059 _ACEOF
35060 cat confdefs.h >>conftest.$ac_ext
35061 cat >>conftest.$ac_ext <<_ACEOF
35062 /* end confdefs.h. */
35063 #include <netinet/tcp.h>
35064 _ACEOF
35065 if { (ac_try="$ac_cpp conftest.$ac_ext"
35066 case "(($ac_try" in
35067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35068 *) ac_try_echo=$ac_try;;
35069 esac
35070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35072 ac_status=$?
35073 grep -v '^ *+' conftest.er1 >conftest.err
35074 rm -f conftest.er1
35075 cat conftest.err >&5
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); } >/dev/null; then
35078 if test -s conftest.err; then
35079 ac_cpp_err=$ac_c_preproc_warn_flag
35080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35081 else
35082 ac_cpp_err=
35084 else
35085 ac_cpp_err=yes
35087 if test -z "$ac_cpp_err"; then
35088 ac_header_preproc=yes
35089 else
35090 echo "$as_me: failed program was:" >&5
35091 sed 's/^/| /' conftest.$ac_ext >&5
35093 ac_header_preproc=no
35096 rm -f conftest.err conftest.$ac_ext
35097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35098 echo "${ECHO_T}$ac_header_preproc" >&6; }
35100 # So? What about this header?
35101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35102 yes:no: )
35103 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
35104 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35105 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
35106 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
35107 ac_header_preproc=yes
35109 no:yes:* )
35110 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
35111 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
35112 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
35113 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
35115 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
35116 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
35117 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
35118 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
35119 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
35120 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
35121 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
35124 esac
35125 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
35126 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
35127 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
35128 echo $ECHO_N "(cached) $ECHO_C" >&6
35129 else
35130 ac_cv_header_netinet_tcp_h=$ac_header_preproc
35132 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
35133 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
35136 if test $ac_cv_header_netinet_tcp_h = yes; then
35138 else
35139 can_compile_rfb=0
35143 if test "${ac_cv_header_pthread_h+set}" = set; then
35144 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35145 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35146 if test "${ac_cv_header_pthread_h+set}" = set; then
35147 echo $ECHO_N "(cached) $ECHO_C" >&6
35149 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35150 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35151 else
35152 # Is the header compilable?
35153 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
35154 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
35155 cat >conftest.$ac_ext <<_ACEOF
35156 /* confdefs.h. */
35157 _ACEOF
35158 cat confdefs.h >>conftest.$ac_ext
35159 cat >>conftest.$ac_ext <<_ACEOF
35160 /* end confdefs.h. */
35161 $ac_includes_default
35162 #include <pthread.h>
35163 _ACEOF
35164 rm -f conftest.$ac_objext
35165 if { (ac_try="$ac_compile"
35166 case "(($ac_try" in
35167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168 *) ac_try_echo=$ac_try;;
35169 esac
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171 (eval "$ac_compile") 2>conftest.er1
35172 ac_status=$?
35173 grep -v '^ *+' conftest.er1 >conftest.err
35174 rm -f conftest.er1
35175 cat conftest.err >&5
35176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35177 (exit $ac_status); } &&
35178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35179 { (case "(($ac_try" in
35180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35181 *) ac_try_echo=$ac_try;;
35182 esac
35183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35184 (eval "$ac_try") 2>&5
35185 ac_status=$?
35186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35187 (exit $ac_status); }; } &&
35188 { ac_try='test -s conftest.$ac_objext'
35189 { (case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35192 esac
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194 (eval "$ac_try") 2>&5
35195 ac_status=$?
35196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35197 (exit $ac_status); }; }; then
35198 ac_header_compiler=yes
35199 else
35200 echo "$as_me: failed program was:" >&5
35201 sed 's/^/| /' conftest.$ac_ext >&5
35203 ac_header_compiler=no
35206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35208 echo "${ECHO_T}$ac_header_compiler" >&6; }
35210 # Is the header present?
35211 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
35212 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
35213 cat >conftest.$ac_ext <<_ACEOF
35214 /* confdefs.h. */
35215 _ACEOF
35216 cat confdefs.h >>conftest.$ac_ext
35217 cat >>conftest.$ac_ext <<_ACEOF
35218 /* end confdefs.h. */
35219 #include <pthread.h>
35220 _ACEOF
35221 if { (ac_try="$ac_cpp conftest.$ac_ext"
35222 case "(($ac_try" in
35223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35224 *) ac_try_echo=$ac_try;;
35225 esac
35226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35228 ac_status=$?
35229 grep -v '^ *+' conftest.er1 >conftest.err
35230 rm -f conftest.er1
35231 cat conftest.err >&5
35232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35233 (exit $ac_status); } >/dev/null; then
35234 if test -s conftest.err; then
35235 ac_cpp_err=$ac_c_preproc_warn_flag
35236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35237 else
35238 ac_cpp_err=
35240 else
35241 ac_cpp_err=yes
35243 if test -z "$ac_cpp_err"; then
35244 ac_header_preproc=yes
35245 else
35246 echo "$as_me: failed program was:" >&5
35247 sed 's/^/| /' conftest.$ac_ext >&5
35249 ac_header_preproc=no
35252 rm -f conftest.err conftest.$ac_ext
35253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35254 echo "${ECHO_T}$ac_header_preproc" >&6; }
35256 # So? What about this header?
35257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35258 yes:no: )
35259 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
35260 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35261 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
35262 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
35263 ac_header_preproc=yes
35265 no:yes:* )
35266 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
35267 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
35268 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
35269 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
35270 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
35271 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
35272 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
35273 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
35274 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
35275 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
35276 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
35277 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
35280 esac
35281 { echo "$as_me:$LINENO: checking for pthread.h" >&5
35282 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
35283 if test "${ac_cv_header_pthread_h+set}" = set; then
35284 echo $ECHO_N "(cached) $ECHO_C" >&6
35285 else
35286 ac_cv_header_pthread_h=$ac_header_preproc
35288 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
35289 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
35292 if test $ac_cv_header_pthread_h = yes; then
35294 else
35295 can_compile_rfb=0
35300 esac
35301 if test $can_compile_rfb = 1; then
35302 with_rfb=yes
35306 if test "$with_term" != yes; then
35307 can_compile_term=1
35308 if test "${ac_cv_header_curses_h+set}" = set; then
35309 { echo "$as_me:$LINENO: checking for curses.h" >&5
35310 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35311 if test "${ac_cv_header_curses_h+set}" = set; then
35312 echo $ECHO_N "(cached) $ECHO_C" >&6
35314 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35315 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35316 else
35317 # Is the header compilable?
35318 { echo "$as_me:$LINENO: checking curses.h usability" >&5
35319 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
35320 cat >conftest.$ac_ext <<_ACEOF
35321 /* confdefs.h. */
35322 _ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h. */
35326 $ac_includes_default
35327 #include <curses.h>
35328 _ACEOF
35329 rm -f conftest.$ac_objext
35330 if { (ac_try="$ac_compile"
35331 case "(($ac_try" in
35332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35333 *) ac_try_echo=$ac_try;;
35334 esac
35335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35336 (eval "$ac_compile") 2>conftest.er1
35337 ac_status=$?
35338 grep -v '^ *+' conftest.er1 >conftest.err
35339 rm -f conftest.er1
35340 cat conftest.err >&5
35341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342 (exit $ac_status); } &&
35343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35344 { (case "(($ac_try" in
35345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346 *) ac_try_echo=$ac_try;;
35347 esac
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349 (eval "$ac_try") 2>&5
35350 ac_status=$?
35351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 (exit $ac_status); }; } &&
35353 { ac_try='test -s conftest.$ac_objext'
35354 { (case "(($ac_try" in
35355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35356 *) ac_try_echo=$ac_try;;
35357 esac
35358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35359 (eval "$ac_try") 2>&5
35360 ac_status=$?
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; }; then
35363 ac_header_compiler=yes
35364 else
35365 echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35368 ac_header_compiler=no
35371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35373 echo "${ECHO_T}$ac_header_compiler" >&6; }
35375 # Is the header present?
35376 { echo "$as_me:$LINENO: checking curses.h presence" >&5
35377 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
35378 cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h. */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h. */
35384 #include <curses.h>
35385 _ACEOF
35386 if { (ac_try="$ac_cpp conftest.$ac_ext"
35387 case "(($ac_try" in
35388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35389 *) ac_try_echo=$ac_try;;
35390 esac
35391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35393 ac_status=$?
35394 grep -v '^ *+' conftest.er1 >conftest.err
35395 rm -f conftest.er1
35396 cat conftest.err >&5
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); } >/dev/null; then
35399 if test -s conftest.err; then
35400 ac_cpp_err=$ac_c_preproc_warn_flag
35401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35402 else
35403 ac_cpp_err=
35405 else
35406 ac_cpp_err=yes
35408 if test -z "$ac_cpp_err"; then
35409 ac_header_preproc=yes
35410 else
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35414 ac_header_preproc=no
35417 rm -f conftest.err conftest.$ac_ext
35418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35419 echo "${ECHO_T}$ac_header_preproc" >&6; }
35421 # So? What about this header?
35422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35423 yes:no: )
35424 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
35425 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35426 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
35427 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
35428 ac_header_preproc=yes
35430 no:yes:* )
35431 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
35432 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
35433 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
35434 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
35435 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
35436 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
35437 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
35438 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
35439 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
35440 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
35441 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
35442 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
35445 esac
35446 { echo "$as_me:$LINENO: checking for curses.h" >&5
35447 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
35448 if test "${ac_cv_header_curses_h+set}" = set; then
35449 echo $ECHO_N "(cached) $ECHO_C" >&6
35450 else
35451 ac_cv_header_curses_h=$ac_header_preproc
35453 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
35454 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
35457 if test $ac_cv_header_curses_h = yes; then
35459 else
35460 can_compile_term=0
35464 if test "${ac_cv_header_signal_h+set}" = set; then
35465 { echo "$as_me:$LINENO: checking for signal.h" >&5
35466 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35467 if test "${ac_cv_header_signal_h+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35470 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35471 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35472 else
35473 # Is the header compilable?
35474 { echo "$as_me:$LINENO: checking signal.h usability" >&5
35475 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
35476 cat >conftest.$ac_ext <<_ACEOF
35477 /* confdefs.h. */
35478 _ACEOF
35479 cat confdefs.h >>conftest.$ac_ext
35480 cat >>conftest.$ac_ext <<_ACEOF
35481 /* end confdefs.h. */
35482 $ac_includes_default
35483 #include <signal.h>
35484 _ACEOF
35485 rm -f conftest.$ac_objext
35486 if { (ac_try="$ac_compile"
35487 case "(($ac_try" in
35488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35489 *) ac_try_echo=$ac_try;;
35490 esac
35491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35492 (eval "$ac_compile") 2>conftest.er1
35493 ac_status=$?
35494 grep -v '^ *+' conftest.er1 >conftest.err
35495 rm -f conftest.er1
35496 cat conftest.err >&5
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); } &&
35499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35500 { (case "(($ac_try" in
35501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35502 *) ac_try_echo=$ac_try;;
35503 esac
35504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35505 (eval "$ac_try") 2>&5
35506 ac_status=$?
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); }; } &&
35509 { ac_try='test -s conftest.$ac_objext'
35510 { (case "(($ac_try" in
35511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35512 *) ac_try_echo=$ac_try;;
35513 esac
35514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35515 (eval "$ac_try") 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; }; then
35519 ac_header_compiler=yes
35520 else
35521 echo "$as_me: failed program was:" >&5
35522 sed 's/^/| /' conftest.$ac_ext >&5
35524 ac_header_compiler=no
35527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35529 echo "${ECHO_T}$ac_header_compiler" >&6; }
35531 # Is the header present?
35532 { echo "$as_me:$LINENO: checking signal.h presence" >&5
35533 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
35534 cat >conftest.$ac_ext <<_ACEOF
35535 /* confdefs.h. */
35536 _ACEOF
35537 cat confdefs.h >>conftest.$ac_ext
35538 cat >>conftest.$ac_ext <<_ACEOF
35539 /* end confdefs.h. */
35540 #include <signal.h>
35541 _ACEOF
35542 if { (ac_try="$ac_cpp conftest.$ac_ext"
35543 case "(($ac_try" in
35544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35545 *) ac_try_echo=$ac_try;;
35546 esac
35547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35549 ac_status=$?
35550 grep -v '^ *+' conftest.er1 >conftest.err
35551 rm -f conftest.er1
35552 cat conftest.err >&5
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); } >/dev/null; then
35555 if test -s conftest.err; then
35556 ac_cpp_err=$ac_c_preproc_warn_flag
35557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35558 else
35559 ac_cpp_err=
35561 else
35562 ac_cpp_err=yes
35564 if test -z "$ac_cpp_err"; then
35565 ac_header_preproc=yes
35566 else
35567 echo "$as_me: failed program was:" >&5
35568 sed 's/^/| /' conftest.$ac_ext >&5
35570 ac_header_preproc=no
35573 rm -f conftest.err conftest.$ac_ext
35574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35575 echo "${ECHO_T}$ac_header_preproc" >&6; }
35577 # So? What about this header?
35578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35579 yes:no: )
35580 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
35581 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35582 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
35583 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
35584 ac_header_preproc=yes
35586 no:yes:* )
35587 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
35588 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
35589 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
35590 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
35591 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
35592 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
35593 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
35594 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
35595 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
35596 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
35597 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
35598 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
35601 esac
35602 { echo "$as_me:$LINENO: checking for signal.h" >&5
35603 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
35604 if test "${ac_cv_header_signal_h+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606 else
35607 ac_cv_header_signal_h=$ac_header_preproc
35609 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
35610 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
35613 if test $ac_cv_header_signal_h = yes; then
35615 else
35616 can_compile_term=0
35620 if test $can_compile_term = 1; then
35621 with_term=yes
35625 if test "$with_nogui" != yes; then
35626 with_nogui=yes
35628 fi # end of if $with_all_libs = yes
35630 { echo "$as_me:$LINENO: checking for idle hack" >&5
35631 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
35632 # Check whether --enable-idle-hack was given.
35633 if test "${enable_idle_hack+set}" = set; then
35634 enableval=$enable_idle_hack; if test "$enableval" = yes; then
35635 { echo "$as_me:$LINENO: result: yes" >&5
35636 echo "${ECHO_T}yes" >&6; }
35637 cat >>confdefs.h <<\_ACEOF
35638 #define BX_USE_IDLE_HACK 1
35639 _ACEOF
35641 else
35642 { echo "$as_me:$LINENO: result: no" >&5
35643 echo "${ECHO_T}no" >&6; }
35644 cat >>confdefs.h <<\_ACEOF
35645 #define BX_USE_IDLE_HACK 0
35646 _ACEOF
35649 else
35651 { echo "$as_me:$LINENO: result: no" >&5
35652 echo "${ECHO_T}no" >&6; }
35653 cat >>confdefs.h <<\_ACEOF
35654 #define BX_USE_IDLE_HACK 0
35655 _ACEOF
35663 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35664 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35665 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35666 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35667 echo $ECHO_N "(cached) $ECHO_C" >&6
35669 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35670 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35671 else
35672 # Is the header compilable?
35673 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
35674 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
35675 cat >conftest.$ac_ext <<_ACEOF
35676 /* confdefs.h. */
35677 _ACEOF
35678 cat confdefs.h >>conftest.$ac_ext
35679 cat >>conftest.$ac_ext <<_ACEOF
35680 /* end confdefs.h. */
35681 $ac_includes_default
35682 #include <dlfcn.h>
35683 _ACEOF
35684 rm -f conftest.$ac_objext
35685 if { (ac_try="$ac_compile"
35686 case "(($ac_try" in
35687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35688 *) ac_try_echo=$ac_try;;
35689 esac
35690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35691 (eval "$ac_compile") 2>conftest.er1
35692 ac_status=$?
35693 grep -v '^ *+' conftest.er1 >conftest.err
35694 rm -f conftest.er1
35695 cat conftest.err >&5
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); } &&
35698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35699 { (case "(($ac_try" in
35700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35701 *) ac_try_echo=$ac_try;;
35702 esac
35703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35704 (eval "$ac_try") 2>&5
35705 ac_status=$?
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; } &&
35708 { ac_try='test -s conftest.$ac_objext'
35709 { (case "(($ac_try" in
35710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35711 *) ac_try_echo=$ac_try;;
35712 esac
35713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35714 (eval "$ac_try") 2>&5
35715 ac_status=$?
35716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35717 (exit $ac_status); }; }; then
35718 ac_header_compiler=yes
35719 else
35720 echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35723 ac_header_compiler=no
35726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6; }
35730 # Is the header present?
35731 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
35732 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
35733 cat >conftest.$ac_ext <<_ACEOF
35734 /* confdefs.h. */
35735 _ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h. */
35739 #include <dlfcn.h>
35740 _ACEOF
35741 if { (ac_try="$ac_cpp conftest.$ac_ext"
35742 case "(($ac_try" in
35743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744 *) ac_try_echo=$ac_try;;
35745 esac
35746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35748 ac_status=$?
35749 grep -v '^ *+' conftest.er1 >conftest.err
35750 rm -f conftest.er1
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } >/dev/null; then
35754 if test -s conftest.err; then
35755 ac_cpp_err=$ac_c_preproc_warn_flag
35756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35757 else
35758 ac_cpp_err=
35760 else
35761 ac_cpp_err=yes
35763 if test -z "$ac_cpp_err"; then
35764 ac_header_preproc=yes
35765 else
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35769 ac_header_preproc=no
35772 rm -f conftest.err conftest.$ac_ext
35773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35774 echo "${ECHO_T}$ac_header_preproc" >&6; }
35776 # So? What about this header?
35777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35778 yes:no: )
35779 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
35780 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35781 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
35782 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
35783 ac_header_preproc=yes
35785 no:yes:* )
35786 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
35787 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
35789 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
35790 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
35791 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
35792 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
35793 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
35794 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
35795 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
35796 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
35797 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
35800 esac
35801 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
35802 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
35803 if test "${ac_cv_header_dlfcn_h+set}" = set; then
35804 echo $ECHO_N "(cached) $ECHO_C" >&6
35805 else
35806 ac_cv_header_dlfcn_h=$ac_header_preproc
35808 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
35809 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
35812 if test $ac_cv_header_dlfcn_h = yes; then
35813 cat >>confdefs.h <<\_ACEOF
35814 #define BX_HAVE_DLFCN_H 1
35815 _ACEOF
35820 if test "${ac_cv_header_assert_h+set}" = set; then
35821 { echo "$as_me:$LINENO: checking for assert.h" >&5
35822 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35823 if test "${ac_cv_header_assert_h+set}" = set; then
35824 echo $ECHO_N "(cached) $ECHO_C" >&6
35826 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35827 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35828 else
35829 # Is the header compilable?
35830 { echo "$as_me:$LINENO: checking assert.h usability" >&5
35831 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
35832 cat >conftest.$ac_ext <<_ACEOF
35833 /* confdefs.h. */
35834 _ACEOF
35835 cat confdefs.h >>conftest.$ac_ext
35836 cat >>conftest.$ac_ext <<_ACEOF
35837 /* end confdefs.h. */
35838 $ac_includes_default
35839 #include <assert.h>
35840 _ACEOF
35841 rm -f conftest.$ac_objext
35842 if { (ac_try="$ac_compile"
35843 case "(($ac_try" in
35844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35845 *) ac_try_echo=$ac_try;;
35846 esac
35847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35848 (eval "$ac_compile") 2>conftest.er1
35849 ac_status=$?
35850 grep -v '^ *+' conftest.er1 >conftest.err
35851 rm -f conftest.er1
35852 cat conftest.err >&5
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); } &&
35855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35856 { (case "(($ac_try" in
35857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35858 *) ac_try_echo=$ac_try;;
35859 esac
35860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35861 (eval "$ac_try") 2>&5
35862 ac_status=$?
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; } &&
35865 { ac_try='test -s conftest.$ac_objext'
35866 { (case "(($ac_try" in
35867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35868 *) ac_try_echo=$ac_try;;
35869 esac
35870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35871 (eval "$ac_try") 2>&5
35872 ac_status=$?
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); }; }; then
35875 ac_header_compiler=yes
35876 else
35877 echo "$as_me: failed program was:" >&5
35878 sed 's/^/| /' conftest.$ac_ext >&5
35880 ac_header_compiler=no
35883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35885 echo "${ECHO_T}$ac_header_compiler" >&6; }
35887 # Is the header present?
35888 { echo "$as_me:$LINENO: checking assert.h presence" >&5
35889 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
35890 cat >conftest.$ac_ext <<_ACEOF
35891 /* confdefs.h. */
35892 _ACEOF
35893 cat confdefs.h >>conftest.$ac_ext
35894 cat >>conftest.$ac_ext <<_ACEOF
35895 /* end confdefs.h. */
35896 #include <assert.h>
35897 _ACEOF
35898 if { (ac_try="$ac_cpp conftest.$ac_ext"
35899 case "(($ac_try" in
35900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35901 *) ac_try_echo=$ac_try;;
35902 esac
35903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35905 ac_status=$?
35906 grep -v '^ *+' conftest.er1 >conftest.err
35907 rm -f conftest.er1
35908 cat conftest.err >&5
35909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910 (exit $ac_status); } >/dev/null; then
35911 if test -s conftest.err; then
35912 ac_cpp_err=$ac_c_preproc_warn_flag
35913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35914 else
35915 ac_cpp_err=
35917 else
35918 ac_cpp_err=yes
35920 if test -z "$ac_cpp_err"; then
35921 ac_header_preproc=yes
35922 else
35923 echo "$as_me: failed program was:" >&5
35924 sed 's/^/| /' conftest.$ac_ext >&5
35926 ac_header_preproc=no
35929 rm -f conftest.err conftest.$ac_ext
35930 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35931 echo "${ECHO_T}$ac_header_preproc" >&6; }
35933 # So? What about this header?
35934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35935 yes:no: )
35936 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
35937 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35938 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
35939 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
35940 ac_header_preproc=yes
35942 no:yes:* )
35943 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
35944 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
35945 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
35946 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
35947 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
35948 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
35949 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
35950 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
35951 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
35952 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
35953 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
35954 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
35957 esac
35958 { echo "$as_me:$LINENO: checking for assert.h" >&5
35959 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
35960 if test "${ac_cv_header_assert_h+set}" = set; then
35961 echo $ECHO_N "(cached) $ECHO_C" >&6
35962 else
35963 ac_cv_header_assert_h=$ac_header_preproc
35965 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
35966 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
35969 if test $ac_cv_header_assert_h = yes; then
35970 cat >>confdefs.h <<\_ACEOF
35971 #define HAVE_ASSERT_H 1
35972 _ACEOF
35978 { echo "$as_me:$LINENO: checking for plugins support" >&5
35979 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
35980 # Check whether --enable-plugins was given.
35981 if test "${enable_plugins+set}" = set; then
35982 enableval=$enable_plugins; if test "$enableval" = yes; then
35983 bx_plugins=1
35984 else
35985 bx_plugins=0
35987 else
35989 bx_plugins=0
35995 if test "$bx_plugins" = 1; then
35996 { echo "$as_me:$LINENO: result: yes" >&5
35997 echo "${ECHO_T}yes" >&6; }
35998 cat >>confdefs.h <<\_ACEOF
35999 #define BX_PLUGINS 1
36000 _ACEOF
36002 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
36003 GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
36004 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
36005 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
36006 # by special link rules for the plugins that they support.
36007 LIBS="$LIBS $LIBADD_DL"
36008 PLUGIN_VAR='ltdl.o'
36009 PLUGIN_TARGET=bochs_plugins
36010 INSTALL_PLUGINS_VAR=install_libtool_plugins
36011 NONPLUGIN_GUI_LINK_OPTS=''
36012 else
36013 { echo "$as_me:$LINENO: result: no" >&5
36014 echo "${ECHO_T}no" >&6; }
36015 bx_plugins=0
36016 cat >>confdefs.h <<\_ACEOF
36017 #define BX_PLUGINS 0
36018 _ACEOF
36020 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
36021 GUI_PLUGIN_OBJS=''
36022 NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
36027 # copy gui variables into iodev variables. Later, we will add to the gui
36028 # objs list, according to which display libraries are enabled.
36029 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
36030 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
36032 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
36033 # It is provided by a library called dlcompat.
36034 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
36035 have_dlopen=0
36036 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
36038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36040 else
36041 ac_check_lib_save_LIBS=$LIBS
36042 LIBS="-ldl $LIBS"
36043 cat >conftest.$ac_ext <<_ACEOF
36044 /* confdefs.h. */
36045 _ACEOF
36046 cat confdefs.h >>conftest.$ac_ext
36047 cat >>conftest.$ac_ext <<_ACEOF
36048 /* end confdefs.h. */
36050 /* Override any GCC internal prototype to avoid an error.
36051 Use char because int might match the return type of a GCC
36052 builtin and then its argument prototype would still apply. */
36053 #ifdef __cplusplus
36054 extern "C"
36055 #endif
36056 char dlopen ();
36058 main ()
36060 return dlopen ();
36062 return 0;
36064 _ACEOF
36065 rm -f conftest.$ac_objext conftest$ac_exeext
36066 if { (ac_try="$ac_link"
36067 case "(($ac_try" in
36068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36069 *) ac_try_echo=$ac_try;;
36070 esac
36071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36072 (eval "$ac_link") 2>conftest.er1
36073 ac_status=$?
36074 grep -v '^ *+' conftest.er1 >conftest.err
36075 rm -f conftest.er1
36076 cat conftest.err >&5
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } &&
36079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36080 { (case "(($ac_try" in
36081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36082 *) ac_try_echo=$ac_try;;
36083 esac
36084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36085 (eval "$ac_try") 2>&5
36086 ac_status=$?
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; } &&
36089 { ac_try='test -s conftest$ac_exeext'
36090 { (case "(($ac_try" in
36091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092 *) ac_try_echo=$ac_try;;
36093 esac
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_try") 2>&5
36096 ac_status=$?
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; }; then
36099 ac_cv_lib_dl_dlopen=yes
36100 else
36101 echo "$as_me: failed program was:" >&5
36102 sed 's/^/| /' conftest.$ac_ext >&5
36104 ac_cv_lib_dl_dlopen=no
36107 rm -f core conftest.err conftest.$ac_objext \
36108 conftest$ac_exeext conftest.$ac_ext
36109 LIBS=$ac_check_lib_save_LIBS
36111 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36112 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
36113 if test $ac_cv_lib_dl_dlopen = yes; then
36114 have_dlopen=1
36117 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
36118 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
36119 if test "$have_dlopen" = 0; then
36120 { echo "$as_me:$LINENO: result: no" >&5
36121 echo "${ECHO_T}no" >&6; }
36122 { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&5
36123 echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&2;}
36124 { (exit 1); exit 1; }; }
36125 else
36126 { echo "$as_me:$LINENO: result: yes" >&5
36127 echo "${ECHO_T}yes" >&6; }
36131 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
36132 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
36133 cat >conftest.$ac_ext <<_ACEOF
36134 /* confdefs.h. */
36135 _ACEOF
36136 cat confdefs.h >>conftest.$ac_ext
36137 cat >>conftest.$ac_ext <<_ACEOF
36138 /* end confdefs.h. */
36141 main ()
36143 { label1: }
36145 return 0;
36147 _ACEOF
36148 rm -f conftest.$ac_objext
36149 if { (ac_try="$ac_compile"
36150 case "(($ac_try" in
36151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36152 *) ac_try_echo=$ac_try;;
36153 esac
36154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36155 (eval "$ac_compile") 2>conftest.er1
36156 ac_status=$?
36157 grep -v '^ *+' conftest.er1 >conftest.err
36158 rm -f conftest.er1
36159 cat conftest.err >&5
36160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36161 (exit $ac_status); } &&
36162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36163 { (case "(($ac_try" in
36164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36165 *) ac_try_echo=$ac_try;;
36166 esac
36167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36168 (eval "$ac_try") 2>&5
36169 ac_status=$?
36170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36171 (exit $ac_status); }; } &&
36172 { ac_try='test -s conftest.$ac_objext'
36173 { (case "(($ac_try" in
36174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36175 *) ac_try_echo=$ac_try;;
36176 esac
36177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36178 (eval "$ac_try") 2>&5
36179 ac_status=$?
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; }; then
36182 { echo "$as_me:$LINENO: result: yes" >&5
36183 echo "${ECHO_T}yes" >&6; }
36184 else
36185 echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.$ac_ext >&5
36189 { echo "$as_me:$LINENO: result: no" >&5
36190 echo "${ECHO_T}no" >&6; }
36191 cat >>confdefs.h <<\_ACEOF
36192 #define BX_NO_BLANK_LABELS 1
36193 _ACEOF
36198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36200 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
36201 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
36202 cat >conftest.$ac_ext <<_ACEOF
36203 /* confdefs.h. */
36204 _ACEOF
36205 cat confdefs.h >>conftest.$ac_ext
36206 cat >>conftest.$ac_ext <<_ACEOF
36207 /* end confdefs.h. */
36210 main ()
36212 { 42LL; }
36214 return 0;
36216 _ACEOF
36217 rm -f conftest.$ac_objext
36218 if { (ac_try="$ac_compile"
36219 case "(($ac_try" in
36220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36221 *) ac_try_echo=$ac_try;;
36222 esac
36223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36224 (eval "$ac_compile") 2>conftest.er1
36225 ac_status=$?
36226 grep -v '^ *+' conftest.er1 >conftest.err
36227 rm -f conftest.er1
36228 cat conftest.err >&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
36231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36232 { (case "(($ac_try" in
36233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36234 *) ac_try_echo=$ac_try;;
36235 esac
36236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36237 (eval "$ac_try") 2>&5
36238 ac_status=$?
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); }; } &&
36241 { ac_try='test -s conftest.$ac_objext'
36242 { (case "(($ac_try" in
36243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244 *) ac_try_echo=$ac_try;;
36245 esac
36246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36247 (eval "$ac_try") 2>&5
36248 ac_status=$?
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); }; }; then
36251 { echo "$as_me:$LINENO: result: yes" >&5
36252 echo "${ECHO_T}yes" >&6; }
36253 else
36254 echo "$as_me: failed program was:" >&5
36255 sed 's/^/| /' conftest.$ac_ext >&5
36258 { echo "$as_me:$LINENO: result: no" >&5
36259 echo "${ECHO_T}no" >&6; }
36260 cat >>confdefs.h <<\_ACEOF
36261 #define BX_64BIT_CONSTANTS_USE_LL 0
36262 _ACEOF
36267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36269 use_x86_64=0
36270 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
36271 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
36272 # Check whether --enable-x86-64 was given.
36273 if test "${enable_x86_64+set}" = set; then
36274 enableval=$enable_x86_64; if test "$enableval" = yes; then
36275 { echo "$as_me:$LINENO: result: yes" >&5
36276 echo "${ECHO_T}yes" >&6; }
36277 OBJS64='$(OBJS64)'
36278 cat >>confdefs.h <<\_ACEOF
36279 #define BX_SUPPORT_X86_64 1
36280 _ACEOF
36282 use_x86_64=1
36283 else
36284 { echo "$as_me:$LINENO: result: no" >&5
36285 echo "${ECHO_T}no" >&6; }
36286 OBJS64=''
36287 cat >>confdefs.h <<\_ACEOF
36288 #define BX_SUPPORT_X86_64 0
36289 _ACEOF
36293 else
36295 { echo "$as_me:$LINENO: result: no" >&5
36296 echo "${ECHO_T}no" >&6; }
36297 OBJS64=''
36298 cat >>confdefs.h <<\_ACEOF
36299 #define BX_SUPPORT_X86_64 0
36300 _ACEOF
36308 use_smp=0
36309 { echo "$as_me:$LINENO: checking for SMP support" >&5
36310 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
36311 # Check whether --enable-smp was given.
36312 if test "${enable_smp+set}" = set; then
36313 enableval=$enable_smp; if test "$enableval" = yes; then
36314 { echo "$as_me:$LINENO: result: yes" >&5
36315 echo "${ECHO_T}yes" >&6; }
36316 cat >>confdefs.h <<\_ACEOF
36317 #define BX_SUPPORT_SMP 1
36318 _ACEOF
36320 cat >>confdefs.h <<\_ACEOF
36321 #define BX_USE_CPU_SMF 0
36322 _ACEOF
36324 use_smp=1
36325 else
36326 { echo "$as_me:$LINENO: result: no" >&5
36327 echo "${ECHO_T}no" >&6; }
36328 cat >>confdefs.h <<\_ACEOF
36329 #define BX_SUPPORT_SMP 0
36330 _ACEOF
36334 else
36336 { echo "$as_me:$LINENO: result: no" >&5
36337 echo "${ECHO_T}no" >&6; }
36338 cat >>confdefs.h <<\_ACEOF
36339 #define BX_SUPPORT_SMP 0
36340 _ACEOF
36347 { echo "$as_me:$LINENO: checking for cpu level" >&5
36348 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
36349 # Check whether --enable-cpu-level was given.
36350 if test "${enable_cpu_level+set}" = set; then
36351 enableval=$enable_cpu_level; case "$enableval" in
36353 { echo "$as_me:$LINENO: result: 3" >&5
36354 echo "${ECHO_T}3" >&6; }
36355 cat >>confdefs.h <<\_ACEOF
36356 #define BX_CPU_LEVEL 3
36357 _ACEOF
36359 cat >>confdefs.h <<\_ACEOF
36360 #define BX_CPU_LEVEL_HACKED 3
36361 _ACEOF
36365 { echo "$as_me:$LINENO: result: 4" >&5
36366 echo "${ECHO_T}4" >&6; }
36367 cat >>confdefs.h <<\_ACEOF
36368 #define BX_CPU_LEVEL 4
36369 _ACEOF
36371 cat >>confdefs.h <<\_ACEOF
36372 #define BX_CPU_LEVEL_HACKED 4
36373 _ACEOF
36377 { echo "$as_me:$LINENO: result: 5" >&5
36378 echo "${ECHO_T}5" >&6; }
36379 cat >>confdefs.h <<\_ACEOF
36380 #define BX_CPU_LEVEL 5
36381 _ACEOF
36383 cat >>confdefs.h <<\_ACEOF
36384 #define BX_CPU_LEVEL_HACKED 5
36385 _ACEOF
36389 { echo "$as_me:$LINENO: result: 6" >&5
36390 echo "${ECHO_T}6" >&6; }
36391 cat >>confdefs.h <<\_ACEOF
36392 #define BX_CPU_LEVEL 6
36393 _ACEOF
36395 cat >>confdefs.h <<\_ACEOF
36396 #define BX_CPU_LEVEL_HACKED 6
36397 _ACEOF
36401 echo " "
36402 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
36403 exit 1
36405 esac
36406 bx_cpu_level=$enableval
36407 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
36408 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
36409 exit 1
36412 else
36414 # for multiprocessors or x86-64, cpu level must be 6
36415 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
36416 { echo "$as_me:$LINENO: result: 6" >&5
36417 echo "${ECHO_T}6" >&6; }
36418 cat >>confdefs.h <<\_ACEOF
36419 #define BX_CPU_LEVEL 6
36420 _ACEOF
36422 cat >>confdefs.h <<\_ACEOF
36423 #define BX_CPU_LEVEL_HACKED 6
36424 _ACEOF
36426 bx_cpu_level=6
36427 else
36428 { echo "$as_me:$LINENO: result: 5" >&5
36429 echo "${ECHO_T}5" >&6; }
36430 cat >>confdefs.h <<\_ACEOF
36431 #define BX_CPU_LEVEL 5
36432 _ACEOF
36434 cat >>confdefs.h <<\_ACEOF
36435 #define BX_CPU_LEVEL_HACKED 5
36436 _ACEOF
36438 bx_cpu_level=5
36446 { echo "$as_me:$LINENO: checking for APIC support" >&5
36447 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
36448 # Check whether --enable-apic was given.
36449 if test "${enable_apic+set}" = set; then
36450 enableval=$enable_apic; if test "$enableval" = yes; then
36451 { echo "$as_me:$LINENO: result: yes" >&5
36452 echo "${ECHO_T}yes" >&6; }
36453 cat >>confdefs.h <<\_ACEOF
36454 #define BX_SUPPORT_APIC 1
36455 _ACEOF
36457 IOAPIC_OBJS='ioapic.o'
36458 else
36459 { echo "$as_me:$LINENO: result: no" >&5
36460 echo "${ECHO_T}no" >&6; }
36461 if test "$use_smp" = 1; then
36462 echo "ERROR: With SMP configuration you must use --enable-apic"
36463 exit 1
36465 cat >>confdefs.h <<\_ACEOF
36466 #define BX_SUPPORT_APIC 0
36467 _ACEOF
36469 IOAPIC_OBJS=''
36472 else
36474 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
36475 # enable APIC by default, if SMP configuration or if cpulevel>5
36476 { echo "$as_me:$LINENO: result: yes" >&5
36477 echo "${ECHO_T}yes" >&6; }
36478 cat >>confdefs.h <<\_ACEOF
36479 #define BX_SUPPORT_APIC 1
36480 _ACEOF
36482 IOAPIC_OBJS='ioapic.o'
36483 else
36484 { echo "$as_me:$LINENO: result: no" >&5
36485 echo "${ECHO_T}no" >&6; }
36486 cat >>confdefs.h <<\_ACEOF
36487 #define BX_SUPPORT_APIC 0
36488 _ACEOF
36490 IOAPIC_OBJS=''
36498 if test "${ac_cv_header_zlib_h+set}" = set; then
36499 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36500 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36501 if test "${ac_cv_header_zlib_h+set}" = set; then
36502 echo $ECHO_N "(cached) $ECHO_C" >&6
36504 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36505 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36506 else
36507 # Is the header compilable?
36508 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
36509 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
36510 cat >conftest.$ac_ext <<_ACEOF
36511 /* confdefs.h. */
36512 _ACEOF
36513 cat confdefs.h >>conftest.$ac_ext
36514 cat >>conftest.$ac_ext <<_ACEOF
36515 /* end confdefs.h. */
36516 $ac_includes_default
36517 #include <zlib.h>
36518 _ACEOF
36519 rm -f conftest.$ac_objext
36520 if { (ac_try="$ac_compile"
36521 case "(($ac_try" in
36522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523 *) ac_try_echo=$ac_try;;
36524 esac
36525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36526 (eval "$ac_compile") 2>conftest.er1
36527 ac_status=$?
36528 grep -v '^ *+' conftest.er1 >conftest.err
36529 rm -f conftest.er1
36530 cat conftest.err >&5
36531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); } &&
36533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36534 { (case "(($ac_try" in
36535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536 *) ac_try_echo=$ac_try;;
36537 esac
36538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36539 (eval "$ac_try") 2>&5
36540 ac_status=$?
36541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542 (exit $ac_status); }; } &&
36543 { ac_try='test -s conftest.$ac_objext'
36544 { (case "(($ac_try" in
36545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36546 *) ac_try_echo=$ac_try;;
36547 esac
36548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36549 (eval "$ac_try") 2>&5
36550 ac_status=$?
36551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552 (exit $ac_status); }; }; then
36553 ac_header_compiler=yes
36554 else
36555 echo "$as_me: failed program was:" >&5
36556 sed 's/^/| /' conftest.$ac_ext >&5
36558 ac_header_compiler=no
36561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36563 echo "${ECHO_T}$ac_header_compiler" >&6; }
36565 # Is the header present?
36566 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
36567 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
36568 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h. */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h. */
36574 #include <zlib.h>
36575 _ACEOF
36576 if { (ac_try="$ac_cpp conftest.$ac_ext"
36577 case "(($ac_try" in
36578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36579 *) ac_try_echo=$ac_try;;
36580 esac
36581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36583 ac_status=$?
36584 grep -v '^ *+' conftest.er1 >conftest.err
36585 rm -f conftest.er1
36586 cat conftest.err >&5
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); } >/dev/null; then
36589 if test -s conftest.err; then
36590 ac_cpp_err=$ac_c_preproc_warn_flag
36591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36592 else
36593 ac_cpp_err=
36595 else
36596 ac_cpp_err=yes
36598 if test -z "$ac_cpp_err"; then
36599 ac_header_preproc=yes
36600 else
36601 echo "$as_me: failed program was:" >&5
36602 sed 's/^/| /' conftest.$ac_ext >&5
36604 ac_header_preproc=no
36607 rm -f conftest.err conftest.$ac_ext
36608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36609 echo "${ECHO_T}$ac_header_preproc" >&6; }
36611 # So? What about this header?
36612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36613 yes:no: )
36614 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36615 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36616 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36617 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36618 ac_header_preproc=yes
36620 no:yes:* )
36621 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36622 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36623 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36624 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36625 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36626 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36627 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36628 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36629 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36630 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36631 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36632 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36635 esac
36636 { echo "$as_me:$LINENO: checking for zlib.h" >&5
36637 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
36638 if test "${ac_cv_header_zlib_h+set}" = set; then
36639 echo $ECHO_N "(cached) $ECHO_C" >&6
36640 else
36641 ac_cv_header_zlib_h=$ac_header_preproc
36643 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36644 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
36647 if test $ac_cv_header_zlib_h = yes; then
36648 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
36649 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
36650 if test "${ac_cv_lib_z_gzopen+set}" = set; then
36651 echo $ECHO_N "(cached) $ECHO_C" >&6
36652 else
36653 ac_check_lib_save_LIBS=$LIBS
36654 LIBS="-lz $LIBS"
36655 cat >conftest.$ac_ext <<_ACEOF
36656 /* confdefs.h. */
36657 _ACEOF
36658 cat confdefs.h >>conftest.$ac_ext
36659 cat >>conftest.$ac_ext <<_ACEOF
36660 /* end confdefs.h. */
36662 /* Override any GCC internal prototype to avoid an error.
36663 Use char because int might match the return type of a GCC
36664 builtin and then its argument prototype would still apply. */
36665 #ifdef __cplusplus
36666 extern "C"
36667 #endif
36668 char gzopen ();
36670 main ()
36672 return gzopen ();
36674 return 0;
36676 _ACEOF
36677 rm -f conftest.$ac_objext conftest$ac_exeext
36678 if { (ac_try="$ac_link"
36679 case "(($ac_try" in
36680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36681 *) ac_try_echo=$ac_try;;
36682 esac
36683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36684 (eval "$ac_link") 2>conftest.er1
36685 ac_status=$?
36686 grep -v '^ *+' conftest.er1 >conftest.err
36687 rm -f conftest.er1
36688 cat conftest.err >&5
36689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36690 (exit $ac_status); } &&
36691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36692 { (case "(($ac_try" in
36693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36694 *) ac_try_echo=$ac_try;;
36695 esac
36696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36697 (eval "$ac_try") 2>&5
36698 ac_status=$?
36699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36700 (exit $ac_status); }; } &&
36701 { ac_try='test -s conftest$ac_exeext'
36702 { (case "(($ac_try" in
36703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36704 *) ac_try_echo=$ac_try;;
36705 esac
36706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36707 (eval "$ac_try") 2>&5
36708 ac_status=$?
36709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36710 (exit $ac_status); }; }; then
36711 ac_cv_lib_z_gzopen=yes
36712 else
36713 echo "$as_me: failed program was:" >&5
36714 sed 's/^/| /' conftest.$ac_ext >&5
36716 ac_cv_lib_z_gzopen=no
36719 rm -f core conftest.err conftest.$ac_objext \
36720 conftest$ac_exeext conftest.$ac_ext
36721 LIBS=$ac_check_lib_save_LIBS
36723 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
36724 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
36725 if test $ac_cv_lib_z_gzopen = yes; then
36726 cat >>confdefs.h <<\_ACEOF
36727 #define BX_HAVE_ZLIB 1
36728 _ACEOF
36736 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
36737 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
36738 # Check whether --enable-compressed-hd was given.
36739 if test "${enable_compressed_hd+set}" = set; then
36740 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
36741 { echo "$as_me:$LINENO: result: yes" >&5
36742 echo "${ECHO_T}yes" >&6; }
36743 cat >>confdefs.h <<\_ACEOF
36744 #define BX_COMPRESSED_HD_SUPPORT 1
36745 _ACEOF
36747 LIBS="$LIBS -lz"
36748 else
36749 { echo "$as_me:$LINENO: result: no" >&5
36750 echo "${ECHO_T}no" >&6; }
36751 cat >>confdefs.h <<\_ACEOF
36752 #define BX_COMPRESSED_HD_SUPPORT 0
36753 _ACEOF
36756 else
36758 { echo "$as_me:$LINENO: result: no" >&5
36759 echo "${ECHO_T}no" >&6; }
36760 cat >>confdefs.h <<\_ACEOF
36761 #define BX_COMPRESSED_HD_SUPPORT 0
36762 _ACEOF
36770 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
36771 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
36772 # Check whether --enable-ne2000 was given.
36773 if test "${enable_ne2000+set}" = set; then
36774 enableval=$enable_ne2000; if test "$enableval" = yes; then
36775 { echo "$as_me:$LINENO: result: yes" >&5
36776 echo "${ECHO_T}yes" >&6; }
36777 cat >>confdefs.h <<\_ACEOF
36778 #define BX_SUPPORT_NE2K 1
36779 _ACEOF
36781 NE2K_OBJS='ne2k.o'
36782 networking=yes
36783 else
36784 { echo "$as_me:$LINENO: result: no" >&5
36785 echo "${ECHO_T}no" >&6; }
36786 cat >>confdefs.h <<\_ACEOF
36787 #define BX_SUPPORT_NE2K 0
36788 _ACEOF
36790 NE2K_OBJS=''
36791 networking=no
36793 else
36795 { echo "$as_me:$LINENO: result: no" >&5
36796 echo "${ECHO_T}no" >&6; }
36797 cat >>confdefs.h <<\_ACEOF
36798 #define BX_SUPPORT_NE2K 0
36799 _ACEOF
36801 NE2K_OBJS=''
36802 networking=no
36809 { echo "$as_me:$LINENO: checking for ACPI support" >&5
36810 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
36811 # Check whether --enable-acpi was given.
36812 if test "${enable_acpi+set}" = set; then
36813 enableval=$enable_acpi; if test "$enableval" = yes; then
36814 { echo "$as_me:$LINENO: result: yes" >&5
36815 echo "${ECHO_T}yes" >&6; }
36816 cat >>confdefs.h <<\_ACEOF
36817 #define BX_SUPPORT_ACPI 1
36818 _ACEOF
36820 else
36821 { echo "$as_me:$LINENO: result: no" >&5
36822 echo "${ECHO_T}no" >&6; }
36823 cat >>confdefs.h <<\_ACEOF
36824 #define BX_SUPPORT_ACPI 0
36825 _ACEOF
36828 else
36830 { echo "$as_me:$LINENO: result: no" >&5
36831 echo "${ECHO_T}no" >&6; }
36832 cat >>confdefs.h <<\_ACEOF
36833 #define BX_SUPPORT_ACPI 0
36834 _ACEOF
36842 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
36843 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
36844 # Check whether --enable-pci was given.
36845 if test "${enable_pci+set}" = set; then
36846 enableval=$enable_pci; if test "$enableval" = yes; then
36847 { echo "$as_me:$LINENO: result: yes" >&5
36848 echo "${ECHO_T}yes" >&6; }
36849 cat >>confdefs.h <<\_ACEOF
36850 #define BX_SUPPORT_PCI 1
36851 _ACEOF
36853 pci=1
36854 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
36855 else
36856 { echo "$as_me:$LINENO: result: no" >&5
36857 echo "${ECHO_T}no" >&6; }
36858 cat >>confdefs.h <<\_ACEOF
36859 #define BX_SUPPORT_PCI 0
36860 _ACEOF
36862 pci=0
36863 PCI_OBJ=''
36865 else
36867 { echo "$as_me:$LINENO: result: no" >&5
36868 echo "${ECHO_T}no" >&6; }
36869 cat >>confdefs.h <<\_ACEOF
36870 #define BX_SUPPORT_PCI 0
36871 _ACEOF
36873 pci=0
36874 PCI_OBJ=''
36882 # PCI host device support
36884 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
36885 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
36886 # Check whether --enable-pcidev was given.
36887 if test "${enable_pcidev+set}" = set; then
36888 enableval=$enable_pcidev;
36889 if test "$enableval" = "yes"; then
36890 { echo "$as_me:$LINENO: result: yes" >&5
36891 echo "${ECHO_T}yes" >&6; }
36892 if test "$pci" != "1"; then
36893 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
36894 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
36895 { (exit 1); exit 1; }; }
36897 case "$target" in
36898 *-linux*)
36899 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
36900 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
36901 linux_version=`uname -r`
36902 case "$linux_version" in
36903 2.4*)
36904 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
36905 KERNEL_MODULE_SUFFIX="o"
36907 2.6*)
36908 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
36909 KERNEL_MODULE_SUFFIX="ko"
36912 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
36913 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
36914 { (exit 1); exit 1; }; }
36916 esac
36917 KERNELDIR="/lib/modules/$linux_version/build"
36918 LSMOD="lsmod"
36919 INSMOD="insmod"
36920 RMMOD="rmmod"
36921 DEPMOD="depmod"
36931 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
36932 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
36933 { (exit 1); exit 1; }; }
36935 esac
36936 cat >>confdefs.h <<\_ACEOF
36937 #define BX_SUPPORT_PCIDEV 1
36938 _ACEOF
36940 PCI_OBJ="$PCI_OBJ pcidev.o"
36941 else
36942 { echo "$as_me:$LINENO: result: no" >&5
36943 echo "${ECHO_T}no" >&6; }
36944 cat >>confdefs.h <<\_ACEOF
36945 #define BX_SUPPORT_PCIDEV 0
36946 _ACEOF
36950 else
36952 { echo "$as_me:$LINENO: result: no" >&5
36953 echo "${ECHO_T}no" >&6; }
36954 cat >>confdefs.h <<\_ACEOF
36955 #define BX_SUPPORT_PCIDEV 0
36956 _ACEOF
36963 USBDEV_OBJS=''
36964 SCSI_OBJS=''
36965 { echo "$as_me:$LINENO: checking for limited USB support" >&5
36966 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
36967 # Check whether --enable-usb was given.
36968 if test "${enable_usb+set}" = set; then
36969 enableval=$enable_usb; if test "$enableval" = yes; then
36970 { echo "$as_me:$LINENO: result: yes" >&5
36971 echo "${ECHO_T}yes" >&6; }
36972 cat >>confdefs.h <<\_ACEOF
36973 #define BX_SUPPORT_PCIUSB 1
36974 _ACEOF
36976 PCI_OBJ="$PCI_OBJ pciusb.o"
36977 USBDEV_OBJS="usb_hid.o usb_msd.o"
36978 SCSI_OBJS="scsi_device.o"
36979 else
36980 { echo "$as_me:$LINENO: result: no" >&5
36981 echo "${ECHO_T}no" >&6; }
36982 cat >>confdefs.h <<\_ACEOF
36983 #define BX_SUPPORT_PCIUSB 0
36984 _ACEOF
36987 else
36989 { echo "$as_me:$LINENO: result: no" >&5
36990 echo "${ECHO_T}no" >&6; }
36991 cat >>confdefs.h <<\_ACEOF
36992 #define BX_SUPPORT_PCIUSB 0
36993 _ACEOF
37003 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
37004 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
37005 # Check whether --enable-pnic was given.
37006 if test "${enable_pnic+set}" = set; then
37007 enableval=$enable_pnic; if test "$enableval" = yes; then
37008 { echo "$as_me:$LINENO: result: yes" >&5
37009 echo "${ECHO_T}yes" >&6; }
37010 cat >>confdefs.h <<\_ACEOF
37011 #define BX_SUPPORT_PCIPNIC 1
37012 _ACEOF
37014 PCI_OBJ="$PCI_OBJ pcipnic.o"
37015 networking=yes
37016 else
37017 { echo "$as_me:$LINENO: result: no" >&5
37018 echo "${ECHO_T}no" >&6; }
37019 cat >>confdefs.h <<\_ACEOF
37020 #define BX_SUPPORT_PCIPNIC 0
37021 _ACEOF
37024 else
37026 { echo "$as_me:$LINENO: result: no" >&5
37027 echo "${ECHO_T}no" >&6; }
37028 cat >>confdefs.h <<\_ACEOF
37029 #define BX_SUPPORT_PCIPNIC 0
37030 _ACEOF
37037 NETLOW_OBJS=''
37038 if test "$networking" = yes; then
37039 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
37040 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37041 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37042 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37043 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
37046 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37047 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37048 else
37049 # Is the header compilable?
37050 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
37051 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
37052 cat >conftest.$ac_ext <<_ACEOF
37053 /* confdefs.h. */
37054 _ACEOF
37055 cat confdefs.h >>conftest.$ac_ext
37056 cat >>conftest.$ac_ext <<_ACEOF
37057 /* end confdefs.h. */
37058 $ac_includes_default
37059 #include <net/bpf.h>
37060 _ACEOF
37061 rm -f conftest.$ac_objext
37062 if { (ac_try="$ac_compile"
37063 case "(($ac_try" in
37064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37065 *) ac_try_echo=$ac_try;;
37066 esac
37067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37068 (eval "$ac_compile") 2>conftest.er1
37069 ac_status=$?
37070 grep -v '^ *+' conftest.er1 >conftest.err
37071 rm -f conftest.er1
37072 cat conftest.err >&5
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); } &&
37075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37076 { (case "(($ac_try" in
37077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37078 *) ac_try_echo=$ac_try;;
37079 esac
37080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37081 (eval "$ac_try") 2>&5
37082 ac_status=$?
37083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37084 (exit $ac_status); }; } &&
37085 { ac_try='test -s conftest.$ac_objext'
37086 { (case "(($ac_try" in
37087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37088 *) ac_try_echo=$ac_try;;
37089 esac
37090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37091 (eval "$ac_try") 2>&5
37092 ac_status=$?
37093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37094 (exit $ac_status); }; }; then
37095 ac_header_compiler=yes
37096 else
37097 echo "$as_me: failed program was:" >&5
37098 sed 's/^/| /' conftest.$ac_ext >&5
37100 ac_header_compiler=no
37103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37105 echo "${ECHO_T}$ac_header_compiler" >&6; }
37107 # Is the header present?
37108 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
37109 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
37110 cat >conftest.$ac_ext <<_ACEOF
37111 /* confdefs.h. */
37112 _ACEOF
37113 cat confdefs.h >>conftest.$ac_ext
37114 cat >>conftest.$ac_ext <<_ACEOF
37115 /* end confdefs.h. */
37116 #include <net/bpf.h>
37117 _ACEOF
37118 if { (ac_try="$ac_cpp conftest.$ac_ext"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37122 esac
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37125 ac_status=$?
37126 grep -v '^ *+' conftest.er1 >conftest.err
37127 rm -f conftest.er1
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } >/dev/null; then
37131 if test -s conftest.err; then
37132 ac_cpp_err=$ac_c_preproc_warn_flag
37133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37134 else
37135 ac_cpp_err=
37137 else
37138 ac_cpp_err=yes
37140 if test -z "$ac_cpp_err"; then
37141 ac_header_preproc=yes
37142 else
37143 echo "$as_me: failed program was:" >&5
37144 sed 's/^/| /' conftest.$ac_ext >&5
37146 ac_header_preproc=no
37149 rm -f conftest.err conftest.$ac_ext
37150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37151 echo "${ECHO_T}$ac_header_preproc" >&6; }
37153 # So? What about this header?
37154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37155 yes:no: )
37156 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
37157 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37158 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
37159 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
37160 ac_header_preproc=yes
37162 no:yes:* )
37163 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
37164 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
37165 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
37166 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
37167 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
37168 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
37169 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
37170 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
37171 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
37172 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
37173 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
37174 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
37177 esac
37178 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
37179 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
37180 if test "${ac_cv_header_net_bpf_h+set}" = set; then
37181 echo $ECHO_N "(cached) $ECHO_C" >&6
37182 else
37183 ac_cv_header_net_bpf_h=$ac_header_preproc
37185 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
37186 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
37189 if test $ac_cv_header_net_bpf_h = yes; then
37190 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
37194 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37195 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37196 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37197 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37198 echo $ECHO_N "(cached) $ECHO_C" >&6
37200 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37201 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37202 else
37203 # Is the header compilable?
37204 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
37205 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
37206 cat >conftest.$ac_ext <<_ACEOF
37207 /* confdefs.h. */
37208 _ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h. */
37212 $ac_includes_default
37213 #include <netpacket/packet.h>
37214 _ACEOF
37215 rm -f conftest.$ac_objext
37216 if { (ac_try="$ac_compile"
37217 case "(($ac_try" in
37218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37219 *) ac_try_echo=$ac_try;;
37220 esac
37221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37222 (eval "$ac_compile") 2>conftest.er1
37223 ac_status=$?
37224 grep -v '^ *+' conftest.er1 >conftest.err
37225 rm -f conftest.er1
37226 cat conftest.err >&5
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); } &&
37229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37230 { (case "(($ac_try" in
37231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37232 *) ac_try_echo=$ac_try;;
37233 esac
37234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37235 (eval "$ac_try") 2>&5
37236 ac_status=$?
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; } &&
37239 { ac_try='test -s conftest.$ac_objext'
37240 { (case "(($ac_try" in
37241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37242 *) ac_try_echo=$ac_try;;
37243 esac
37244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37245 (eval "$ac_try") 2>&5
37246 ac_status=$?
37247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37248 (exit $ac_status); }; }; then
37249 ac_header_compiler=yes
37250 else
37251 echo "$as_me: failed program was:" >&5
37252 sed 's/^/| /' conftest.$ac_ext >&5
37254 ac_header_compiler=no
37257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37259 echo "${ECHO_T}$ac_header_compiler" >&6; }
37261 # Is the header present?
37262 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
37263 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
37264 cat >conftest.$ac_ext <<_ACEOF
37265 /* confdefs.h. */
37266 _ACEOF
37267 cat confdefs.h >>conftest.$ac_ext
37268 cat >>conftest.$ac_ext <<_ACEOF
37269 /* end confdefs.h. */
37270 #include <netpacket/packet.h>
37271 _ACEOF
37272 if { (ac_try="$ac_cpp conftest.$ac_ext"
37273 case "(($ac_try" in
37274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37275 *) ac_try_echo=$ac_try;;
37276 esac
37277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37279 ac_status=$?
37280 grep -v '^ *+' conftest.er1 >conftest.err
37281 rm -f conftest.er1
37282 cat conftest.err >&5
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); } >/dev/null; then
37285 if test -s conftest.err; then
37286 ac_cpp_err=$ac_c_preproc_warn_flag
37287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37288 else
37289 ac_cpp_err=
37291 else
37292 ac_cpp_err=yes
37294 if test -z "$ac_cpp_err"; then
37295 ac_header_preproc=yes
37296 else
37297 echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37300 ac_header_preproc=no
37303 rm -f conftest.err conftest.$ac_ext
37304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37305 echo "${ECHO_T}$ac_header_preproc" >&6; }
37307 # So? What about this header?
37308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37309 yes:no: )
37310 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
37311 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37312 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
37313 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
37314 ac_header_preproc=yes
37316 no:yes:* )
37317 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
37318 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
37319 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
37320 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
37321 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
37322 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
37323 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
37324 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
37325 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
37326 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
37327 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
37328 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
37331 esac
37332 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
37333 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
37334 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
37335 echo $ECHO_N "(cached) $ECHO_C" >&6
37336 else
37337 ac_cv_header_netpacket_packet_h=$ac_header_preproc
37339 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
37340 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
37343 if test $ac_cv_header_netpacket_packet_h = yes; then
37344 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
37348 case "$target" in
37349 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
37350 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
37352 *-macosx* | *-darwin*)
37353 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37354 cat >>confdefs.h <<\_ACEOF
37355 #define HAVE_TUNTAP 1
37356 _ACEOF
37360 { echo "$as_me:$LINENO: checking for net/if.h" >&5
37361 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
37362 if test "${ac_cv_header_net_if_h+set}" = set; then
37363 echo $ECHO_N "(cached) $ECHO_C" >&6
37364 else
37365 cat >conftest.$ac_ext <<_ACEOF
37366 /* confdefs.h. */
37367 _ACEOF
37368 cat confdefs.h >>conftest.$ac_ext
37369 cat >>conftest.$ac_ext <<_ACEOF
37370 /* end confdefs.h. */
37372 #include <sys/types.h>
37373 #include <sys/socket.h>
37376 #include <net/if.h>
37377 _ACEOF
37378 rm -f conftest.$ac_objext
37379 if { (ac_try="$ac_compile"
37380 case "(($ac_try" in
37381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37382 *) ac_try_echo=$ac_try;;
37383 esac
37384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37385 (eval "$ac_compile") 2>conftest.er1
37386 ac_status=$?
37387 grep -v '^ *+' conftest.er1 >conftest.err
37388 rm -f conftest.er1
37389 cat conftest.err >&5
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
37392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37393 { (case "(($ac_try" in
37394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37395 *) ac_try_echo=$ac_try;;
37396 esac
37397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37398 (eval "$ac_try") 2>&5
37399 ac_status=$?
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; } &&
37402 { ac_try='test -s conftest.$ac_objext'
37403 { (case "(($ac_try" in
37404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37405 *) ac_try_echo=$ac_try;;
37406 esac
37407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37408 (eval "$ac_try") 2>&5
37409 ac_status=$?
37410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411 (exit $ac_status); }; }; then
37412 ac_cv_header_net_if_h=yes
37413 else
37414 echo "$as_me: failed program was:" >&5
37415 sed 's/^/| /' conftest.$ac_ext >&5
37417 ac_cv_header_net_if_h=no
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37422 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
37423 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
37424 if test $ac_cv_header_net_if_h = yes; then
37426 use_ethertap=yes
37427 cat >>confdefs.h <<\_ACEOF
37428 #define BX_HAVE_NET_IF_H 1
37429 _ACEOF
37435 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
37436 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
37437 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
37438 echo $ECHO_N "(cached) $ECHO_C" >&6
37439 else
37440 cat >conftest.$ac_ext <<_ACEOF
37441 /* confdefs.h. */
37442 _ACEOF
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h. */
37447 #include <asm/types.h>
37448 #include <sys/socket.h>
37451 #include <linux/netlink.h>
37452 _ACEOF
37453 rm -f conftest.$ac_objext
37454 if { (ac_try="$ac_compile"
37455 case "(($ac_try" in
37456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37457 *) ac_try_echo=$ac_try;;
37458 esac
37459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37460 (eval "$ac_compile") 2>conftest.er1
37461 ac_status=$?
37462 grep -v '^ *+' conftest.er1 >conftest.err
37463 rm -f conftest.er1
37464 cat conftest.err >&5
37465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466 (exit $ac_status); } &&
37467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37468 { (case "(($ac_try" in
37469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37470 *) ac_try_echo=$ac_try;;
37471 esac
37472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37473 (eval "$ac_try") 2>&5
37474 ac_status=$?
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; } &&
37477 { ac_try='test -s conftest.$ac_objext'
37478 { (case "(($ac_try" in
37479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480 *) ac_try_echo=$ac_try;;
37481 esac
37482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37483 (eval "$ac_try") 2>&5
37484 ac_status=$?
37485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37486 (exit $ac_status); }; }; then
37487 ac_cv_header_linux_netlink_h=yes
37488 else
37489 echo "$as_me: failed program was:" >&5
37490 sed 's/^/| /' conftest.$ac_ext >&5
37492 ac_cv_header_linux_netlink_h=no
37495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37497 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
37498 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
37499 if test $ac_cv_header_linux_netlink_h = yes; then
37501 use_ethertap=yes
37507 if test "$use_ethertap" = yes; then
37508 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
37509 cat >>confdefs.h <<\_ACEOF
37510 #define HAVE_ETHERTAP 1
37511 _ACEOF
37513 cat >>confdefs.h <<\_ACEOF
37514 #define HAVE_VDE 1
37515 _ACEOF
37519 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
37520 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
37521 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
37522 echo $ECHO_N "(cached) $ECHO_C" >&6
37523 else
37524 cat >conftest.$ac_ext <<_ACEOF
37525 /* confdefs.h. */
37526 _ACEOF
37527 cat confdefs.h >>conftest.$ac_ext
37528 cat >>conftest.$ac_ext <<_ACEOF
37529 /* end confdefs.h. */
37531 #include <sys/types.h>
37532 #include <sys/socket.h>
37533 #include <net/if.h>
37536 #include <net/if_tun.h>
37537 _ACEOF
37538 rm -f conftest.$ac_objext
37539 if { (ac_try="$ac_compile"
37540 case "(($ac_try" in
37541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37542 *) ac_try_echo=$ac_try;;
37543 esac
37544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37545 (eval "$ac_compile") 2>conftest.er1
37546 ac_status=$?
37547 grep -v '^ *+' conftest.er1 >conftest.err
37548 rm -f conftest.er1
37549 cat conftest.err >&5
37550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37551 (exit $ac_status); } &&
37552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37553 { (case "(($ac_try" in
37554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37555 *) ac_try_echo=$ac_try;;
37556 esac
37557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37558 (eval "$ac_try") 2>&5
37559 ac_status=$?
37560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561 (exit $ac_status); }; } &&
37562 { ac_try='test -s conftest.$ac_objext'
37563 { (case "(($ac_try" in
37564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37565 *) ac_try_echo=$ac_try;;
37566 esac
37567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37568 (eval "$ac_try") 2>&5
37569 ac_status=$?
37570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571 (exit $ac_status); }; }; then
37572 ac_cv_header_net_if_tun_h=yes
37573 else
37574 echo "$as_me: failed program was:" >&5
37575 sed 's/^/| /' conftest.$ac_ext >&5
37577 ac_cv_header_net_if_tun_h=no
37580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37582 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
37583 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
37584 if test $ac_cv_header_net_if_tun_h = yes; then
37586 use_tuntap=yes
37591 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
37592 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
37593 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
37594 echo $ECHO_N "(cached) $ECHO_C" >&6
37595 else
37596 cat >conftest.$ac_ext <<_ACEOF
37597 /* confdefs.h. */
37598 _ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h. */
37603 #include <asm/types.h>
37604 #include <sys/socket.h>
37607 #include <linux/if_tun.h>
37608 _ACEOF
37609 rm -f conftest.$ac_objext
37610 if { (ac_try="$ac_compile"
37611 case "(($ac_try" in
37612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37613 *) ac_try_echo=$ac_try;;
37614 esac
37615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37616 (eval "$ac_compile") 2>conftest.er1
37617 ac_status=$?
37618 grep -v '^ *+' conftest.er1 >conftest.err
37619 rm -f conftest.er1
37620 cat conftest.err >&5
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
37623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37624 { (case "(($ac_try" in
37625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37626 *) ac_try_echo=$ac_try;;
37627 esac
37628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37629 (eval "$ac_try") 2>&5
37630 ac_status=$?
37631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37632 (exit $ac_status); }; } &&
37633 { ac_try='test -s conftest.$ac_objext'
37634 { (case "(($ac_try" in
37635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636 *) ac_try_echo=$ac_try;;
37637 esac
37638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37639 (eval "$ac_try") 2>&5
37640 ac_status=$?
37641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642 (exit $ac_status); }; }; then
37643 ac_cv_header_linux_if_tun_h=yes
37644 else
37645 echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37648 ac_cv_header_linux_if_tun_h=no
37651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37653 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
37654 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
37655 if test $ac_cv_header_linux_if_tun_h = yes; then
37657 use_tuntap=yes
37662 if test "$use_tuntap" = yes; then
37663 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
37664 cat >>confdefs.h <<\_ACEOF
37665 #define HAVE_TUNTAP 1
37666 _ACEOF
37671 esac
37672 cat >>confdefs.h <<\_ACEOF
37673 #define BX_NETWORKING 1
37674 _ACEOF
37676 else
37677 cat >>confdefs.h <<\_ACEOF
37678 #define BX_NETWORKING 0
37679 _ACEOF
37686 { echo "$as_me:$LINENO: checking for large pages support" >&5
37687 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
37688 # Check whether --enable-large-pages was given.
37689 if test "${enable_large_pages+set}" = set; then
37690 enableval=$enable_large_pages; if test "$enableval" = yes; then
37691 { echo "$as_me:$LINENO: result: yes" >&5
37692 echo "${ECHO_T}yes" >&6; }
37693 cat >>confdefs.h <<\_ACEOF
37694 #define BX_SUPPORT_LARGE_PAGES 1
37695 _ACEOF
37697 support_large_pages=1
37698 else
37699 { echo "$as_me:$LINENO: result: no" >&5
37700 echo "${ECHO_T}no" >&6; }
37701 cat >>confdefs.h <<\_ACEOF
37702 #define BX_SUPPORT_LARGE_PAGES 0
37703 _ACEOF
37705 support_large_pages=0
37707 else
37709 if test "$bx_cpu_level" -gt 4; then
37710 { echo "$as_me:$LINENO: result: yes" >&5
37711 echo "${ECHO_T}yes" >&6; }
37712 cat >>confdefs.h <<\_ACEOF
37713 #define BX_SUPPORT_LARGE_PAGES 1
37714 _ACEOF
37716 support_large_pages=1
37717 else
37718 { echo "$as_me:$LINENO: result: no" >&5
37719 echo "${ECHO_T}no" >&6; }
37720 cat >>confdefs.h <<\_ACEOF
37721 #define BX_SUPPORT_LARGE_PAGES 0
37722 _ACEOF
37724 support_large_pages=0
37732 { echo "$as_me:$LINENO: checking for PAE support" >&5
37733 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
37734 # Check whether --enable-pae was given.
37735 if test "${enable_pae+set}" = set; then
37736 enableval=$enable_pae; if test "$enableval" = yes; then
37737 { echo "$as_me:$LINENO: result: yes" >&5
37738 echo "${ECHO_T}yes" >&6; }
37739 cat >>confdefs.h <<\_ACEOF
37740 #define BX_SUPPORT_PAE 1
37741 _ACEOF
37743 support_pae=1
37744 else
37745 { echo "$as_me:$LINENO: result: no" >&5
37746 echo "${ECHO_T}no" >&6; }
37747 cat >>confdefs.h <<\_ACEOF
37748 #define BX_SUPPORT_PAE 0
37749 _ACEOF
37751 support_pae=0
37753 else
37755 if test "$bx_cpu_level" -gt 5; then
37756 { echo "$as_me:$LINENO: result: yes" >&5
37757 echo "${ECHO_T}yes" >&6; }
37758 cat >>confdefs.h <<\_ACEOF
37759 #define BX_SUPPORT_PAE 1
37760 _ACEOF
37762 support_pae=1
37763 else
37764 { echo "$as_me:$LINENO: result: no" >&5
37765 echo "${ECHO_T}no" >&6; }
37766 cat >>confdefs.h <<\_ACEOF
37767 #define BX_SUPPORT_PAE 0
37768 _ACEOF
37770 support_pae=0
37777 { echo "$as_me:$LINENO: checking for global pages support" >&5
37778 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
37779 # Check whether --enable-global-pages was given.
37780 if test "${enable_global_pages+set}" = set; then
37781 enableval=$enable_global_pages; if test "$enableval" = yes; then
37782 { echo "$as_me:$LINENO: result: yes" >&5
37783 echo "${ECHO_T}yes" >&6; }
37784 cat >>confdefs.h <<\_ACEOF
37785 #define BX_SUPPORT_GLOBAL_PAGES 1
37786 _ACEOF
37788 support_global_pages=1
37789 else
37790 { echo "$as_me:$LINENO: result: no" >&5
37791 echo "${ECHO_T}no" >&6; }
37792 cat >>confdefs.h <<\_ACEOF
37793 #define BX_SUPPORT_GLOBAL_PAGES 0
37794 _ACEOF
37796 support_global_pages=0
37798 else
37800 if test "$bx_cpu_level" -gt 5; then
37801 # enable by default
37802 { echo "$as_me:$LINENO: result: yes" >&5
37803 echo "${ECHO_T}yes" >&6; }
37804 cat >>confdefs.h <<\_ACEOF
37805 #define BX_SUPPORT_GLOBAL_PAGES 1
37806 _ACEOF
37808 support_global_pages=1
37809 else
37810 { echo "$as_me:$LINENO: result: no" >&5
37811 echo "${ECHO_T}no" >&6; }
37812 cat >>confdefs.h <<\_ACEOF
37813 #define BX_SUPPORT_GLOBAL_PAGES 0
37814 _ACEOF
37816 support_global_pages=0
37823 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
37824 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
37825 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
37826 { (exit 1); exit 1; }; }
37829 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
37830 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
37831 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
37832 { (exit 1); exit 1; }; }
37835 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
37836 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
37837 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
37838 { (exit 1); exit 1; }; }
37841 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
37842 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
37843 # Check whether --enable-mtrr was given.
37844 if test "${enable_mtrr+set}" = set; then
37845 enableval=$enable_mtrr; if test "$enableval" = yes; then
37846 { echo "$as_me:$LINENO: result: yes" >&5
37847 echo "${ECHO_T}yes" >&6; }
37848 cat >>confdefs.h <<\_ACEOF
37849 #define BX_SUPPORT_MTRR 1
37850 _ACEOF
37852 else
37853 { echo "$as_me:$LINENO: result: no" >&5
37854 echo "${ECHO_T}no" >&6; }
37855 cat >>confdefs.h <<\_ACEOF
37856 #define BX_SUPPORT_MTRR 0
37857 _ACEOF
37860 else
37862 if test "$bx_cpu_level" -gt 5; then
37863 # enable by default
37864 { echo "$as_me:$LINENO: result: yes" >&5
37865 echo "${ECHO_T}yes" >&6; }
37866 cat >>confdefs.h <<\_ACEOF
37867 #define BX_SUPPORT_MTRR 1
37868 _ACEOF
37870 else
37871 { echo "$as_me:$LINENO: result: no" >&5
37872 echo "${ECHO_T}no" >&6; }
37873 cat >>confdefs.h <<\_ACEOF
37874 #define BX_SUPPORT_MTRR 0
37875 _ACEOF
37883 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
37884 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
37885 # Check whether --enable-guest2host-tlb was given.
37886 if test "${enable_guest2host_tlb+set}" = set; then
37887 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
37888 { echo "$as_me:$LINENO: result: yes" >&5
37889 echo "${ECHO_T}yes" >&6; }
37890 speedup_guest2host_tlb=1
37891 else
37892 { echo "$as_me:$LINENO: result: no" >&5
37893 echo "${ECHO_T}no" >&6; }
37894 speedup_guest2host_tlb=0
37896 else
37898 { echo "$as_me:$LINENO: result: no" >&5
37899 echo "${ECHO_T}no" >&6; }
37900 speedup_guest2host_tlb=0
37906 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
37907 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
37908 # Check whether --enable-repeat-speedups was given.
37909 if test "${enable_repeat_speedups+set}" = set; then
37910 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
37911 { echo "$as_me:$LINENO: result: yes" >&5
37912 echo "${ECHO_T}yes" >&6; }
37913 speedup_repeat=1
37914 else
37915 { echo "$as_me:$LINENO: result: no" >&5
37916 echo "${ECHO_T}no" >&6; }
37917 speedup_repeat=0
37919 else
37921 { echo "$as_me:$LINENO: result: no" >&5
37922 echo "${ECHO_T}no" >&6; }
37923 speedup_repeat=0
37929 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
37930 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
37931 # Check whether --enable-icache was given.
37932 if test "${enable_icache+set}" = set; then
37933 enableval=$enable_icache; if test "$enableval" = yes; then
37934 { echo "$as_me:$LINENO: result: yes" >&5
37935 echo "${ECHO_T}yes" >&6; }
37936 speedup_iCache=1
37937 else
37938 { echo "$as_me:$LINENO: result: no" >&5
37939 echo "${ECHO_T}no" >&6; }
37940 speedup_iCache=0
37942 else
37944 { echo "$as_me:$LINENO: result: no" >&5
37945 echo "${ECHO_T}no" >&6; }
37946 speedup_iCache=0
37952 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
37953 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
37954 # Check whether --enable-fast-function-calls was given.
37955 if test "${enable_fast_function_calls+set}" = set; then
37956 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
37957 { echo "$as_me:$LINENO: result: yes" >&5
37958 echo "${ECHO_T}yes" >&6; }
37959 speedup_fastcall=1
37960 else
37961 { echo "$as_me:$LINENO: result: no" >&5
37962 echo "${ECHO_T}no" >&6; }
37963 speedup_fastcall=0
37965 else
37967 { echo "$as_me:$LINENO: result: no" >&5
37968 echo "${ECHO_T}no" >&6; }
37969 speedup_fastcall=0
37975 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
37976 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
37977 # Check whether --enable-host-specific-asms was given.
37978 if test "${enable_host_specific_asms+set}" = set; then
37979 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
37980 { echo "$as_me:$LINENO: result: yes" >&5
37981 echo "${ECHO_T}yes" >&6; }
37982 speedup_host_specific_asms=1
37983 else
37984 { echo "$as_me:$LINENO: result: no" >&5
37985 echo "${ECHO_T}no" >&6; }
37986 speedup_host_specific_asms=0
37988 else
37990 { echo "$as_me:$LINENO: result: no" >&5
37991 echo "${ECHO_T}no" >&6; }
37992 speedup_host_specific_asms=0
37998 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
37999 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
38000 # Check whether --enable-ignore-bad-msr was given.
38001 if test "${enable_ignore_bad_msr+set}" = set; then
38002 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
38003 { echo "$as_me:$LINENO: result: yes" >&5
38004 echo "${ECHO_T}yes" >&6; }
38005 cat >>confdefs.h <<\_ACEOF
38006 #define BX_IGNORE_BAD_MSR 1
38007 _ACEOF
38009 else
38010 { echo "$as_me:$LINENO: result: no" >&5
38011 echo "${ECHO_T}no" >&6; }
38012 cat >>confdefs.h <<\_ACEOF
38013 #define BX_IGNORE_BAD_MSR 0
38014 _ACEOF
38017 else
38019 { echo "$as_me:$LINENO: result: yes" >&5
38020 echo "${ECHO_T}yes" >&6; }
38021 cat >>confdefs.h <<\_ACEOF
38022 #define BX_IGNORE_BAD_MSR 1
38023 _ACEOF
38030 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
38031 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
38032 # Check whether --enable-port-e9-hack was given.
38033 if test "${enable_port_e9_hack+set}" = set; then
38034 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
38035 { echo "$as_me:$LINENO: result: yes" >&5
38036 echo "${ECHO_T}yes" >&6; }
38037 cat >>confdefs.h <<\_ACEOF
38038 #define BX_PORT_E9_HACK 1
38039 _ACEOF
38041 else
38042 { echo "$as_me:$LINENO: result: no" >&5
38043 echo "${ECHO_T}no" >&6; }
38044 cat >>confdefs.h <<\_ACEOF
38045 #define BX_PORT_E9_HACK 0
38046 _ACEOF
38049 else
38051 { echo "$as_me:$LINENO: result: yes" >&5
38052 echo "${ECHO_T}yes" >&6; }
38053 cat >>confdefs.h <<\_ACEOF
38054 #define BX_PORT_E9_HACK 1
38055 _ACEOF
38062 { echo "$as_me:$LINENO: checking show IPS" >&5
38063 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
38064 # Check whether --enable-show-ips was given.
38065 if test "${enable_show_ips+set}" = set; then
38066 enableval=$enable_show_ips; if test "$enableval" = yes; then
38067 { echo "$as_me:$LINENO: result: yes" >&5
38068 echo "${ECHO_T}yes" >&6; }
38069 cat >>confdefs.h <<\_ACEOF
38070 #define BX_SHOW_IPS 1
38071 _ACEOF
38073 else
38074 { echo "$as_me:$LINENO: result: no" >&5
38075 echo "${ECHO_T}no" >&6; }
38076 cat >>confdefs.h <<\_ACEOF
38077 #define BX_SHOW_IPS 0
38078 _ACEOF
38081 else
38083 { echo "$as_me:$LINENO: result: no" >&5
38084 echo "${ECHO_T}no" >&6; }
38085 cat >>confdefs.h <<\_ACEOF
38086 #define BX_SHOW_IPS 0
38087 _ACEOF
38094 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
38095 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
38096 # Check whether --enable-cpp was given.
38097 if test "${enable_cpp+set}" = set; then
38098 enableval=$enable_cpp; if test "$enableval" = yes; then
38099 { echo "$as_me:$LINENO: result: yes" >&5
38100 echo "${ECHO_T}yes" >&6; }
38101 SUFFIX_LINE='.SUFFIXES: .cpp'
38102 CPP_SUFFIX='cpp'
38103 else
38104 { echo "$as_me:$LINENO: result: no" >&5
38105 echo "${ECHO_T}no" >&6; }
38106 SUFFIX_LINE='.SUFFIXES: .cc'
38107 CPP_SUFFIX='cc'
38109 else
38111 { echo "$as_me:$LINENO: result: no" >&5
38112 echo "${ECHO_T}no" >&6; }
38113 SUFFIX_LINE='.SUFFIXES: .cc'
38114 CPP_SUFFIX='cc'
38122 if test "$enable_cpp" = yes; then
38123 echo "moving .cc source files to .cpp"
38124 sourcefiles=`find . -name "*.cc" -print`
38125 if test "$sourcefiles" != ""; then
38126 for ccname in $sourcefiles
38128 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
38129 echo "mv $ccname $cppname"
38130 mv $ccname $cppname
38131 done
38132 else
38133 echo "no more .cc source files to rename"
38139 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
38140 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
38141 # Check whether --enable-debugger was given.
38142 if test "${enable_debugger+set}" = set; then
38143 enableval=$enable_debugger; if test "$enableval" = yes; then
38144 { echo "$as_me:$LINENO: result: yes" >&5
38145 echo "${ECHO_T}yes" >&6; }
38146 cat >>confdefs.h <<\_ACEOF
38147 #define BX_DEBUGGER 1
38148 _ACEOF
38150 DEBUGGER_VAR='$(DEBUGGER_LIB)'
38151 bx_debugger=1
38152 else
38153 { echo "$as_me:$LINENO: result: no" >&5
38154 echo "${ECHO_T}no" >&6; }
38155 cat >>confdefs.h <<\_ACEOF
38156 #define BX_DEBUGGER 0
38157 _ACEOF
38159 DEBUGGER_VAR=''
38160 bx_debugger=0
38163 else
38165 { echo "$as_me:$LINENO: result: no" >&5
38166 echo "${ECHO_T}no" >&6; }
38167 cat >>confdefs.h <<\_ACEOF
38168 #define BX_DEBUGGER 0
38169 _ACEOF
38171 DEBUGGER_VAR=''
38172 bx_debugger=0
38179 { echo "$as_me:$LINENO: checking for external debugger" >&5
38180 echo $ECHO_N "checking for external debugger... $ECHO_C" >&6; }
38181 EXT_DEBUG_OBJS=''
38182 # Check whether --enable-external-debugger was given.
38183 if test "${enable_external_debugger+set}" = set; then
38184 enableval=$enable_external_debugger; if test "$enableval" = yes; then
38185 case $target in
38186 *-pc-windows* | *-cygwin* | *-mingw32*)
38187 { echo "$as_me:$LINENO: result: yes" >&5
38188 echo "${ECHO_T}yes" >&6; }
38189 cat >>confdefs.h <<\_ACEOF
38190 #define BX_EXTERNAL_DEBUGGER 1
38191 _ACEOF
38193 EXT_DEBUG_OBJS=extdb.o
38196 echo "ERROR: external debugger is currently supported on win32 only"
38197 exit 1
38199 esac
38200 else
38201 { echo "$as_me:$LINENO: result: no" >&5
38202 echo "${ECHO_T}no" >&6; }
38204 else
38206 { echo "$as_me:$LINENO: result: no" >&5
38207 echo "${ECHO_T}no" >&6; }
38213 { echo "$as_me:$LINENO: checking for magic breakpoints" >&5
38214 echo $ECHO_N "checking for magic breakpoints... $ECHO_C" >&6; }
38215 # Check whether --enable-magic-breakpoints was given.
38216 if test "${enable_magic_breakpoints+set}" = set; then
38217 enableval=$enable_magic_breakpoints; if test "$enableval" = yes; then
38218 { echo "$as_me:$LINENO: result: yes" >&5
38219 echo "${ECHO_T}yes" >&6; }
38220 cat >>confdefs.h <<\_ACEOF
38221 #define BX_MAGIC_BREAKPOINT 1
38222 _ACEOF
38224 else
38225 { echo "$as_me:$LINENO: result: no" >&5
38226 echo "${ECHO_T}no" >&6; }
38227 cat >>confdefs.h <<\_ACEOF
38228 #define BX_MAGIC_BREAKPOINT 0
38229 _ACEOF
38232 else
38234 if test "$bx_debugger" = 1; then
38235 { echo "$as_me:$LINENO: result: yes" >&5
38236 echo "${ECHO_T}yes" >&6; }
38237 cat >>confdefs.h <<\_ACEOF
38238 #define BX_MAGIC_BREAKPOINT 1
38239 _ACEOF
38241 else
38242 { echo "$as_me:$LINENO: result: no" >&5
38243 echo "${ECHO_T}no" >&6; }
38244 cat >>confdefs.h <<\_ACEOF
38245 #define BX_MAGIC_BREAKPOINT 0
38246 _ACEOF
38254 { echo "$as_me:$LINENO: checking for disassembler support" >&5
38255 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
38256 # Check whether --enable-disasm was given.
38257 if test "${enable_disasm+set}" = set; then
38258 enableval=$enable_disasm; if test "$enableval" = yes; then
38259 { echo "$as_me:$LINENO: result: yes" >&5
38260 echo "${ECHO_T}yes" >&6; }
38261 cat >>confdefs.h <<\_ACEOF
38262 #define BX_DISASM 1
38263 _ACEOF
38265 DISASM_VAR='$(DISASM_LIB)'
38266 else
38267 { echo "$as_me:$LINENO: result: no" >&5
38268 echo "${ECHO_T}no" >&6; }
38269 if test "$bx_debugger" = 1; then
38270 echo "ERROR: debugger is enabled, so --enable-disasm is required"
38271 exit 1
38273 cat >>confdefs.h <<\_ACEOF
38274 #define BX_DISASM 0
38275 _ACEOF
38277 DISASM_VAR=''
38279 else
38281 { echo "$as_me:$LINENO: result: yes" >&5
38282 echo "${ECHO_T}yes" >&6; }
38283 cat >>confdefs.h <<\_ACEOF
38284 #define BX_DISASM 1
38285 _ACEOF
38287 DISASM_VAR='$(DISASM_LIB)'
38293 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
38294 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
38295 # Check whether --enable-all-optimizations was given.
38296 if test "${enable_all_optimizations+set}" = set; then
38297 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
38298 { echo "$as_me:$LINENO: result: yes" >&5
38299 echo "${ECHO_T}yes" >&6; }
38300 speedups_all=1
38301 else
38302 { echo "$as_me:$LINENO: result: no" >&5
38303 echo "${ECHO_T}no" >&6; }
38304 speedups_all=0
38307 else
38309 { echo "$as_me:$LINENO: result: no" >&5
38310 echo "${ECHO_T}no" >&6; }
38311 speedups_all=0
38318 # Optimizations section. Decide what the status of various optimizations
38319 # should be based on configure choices and other factors.
38322 if test "$speedups_all" = 1; then
38323 # Configure requested to force all options enabled.
38324 speedup_guest2host_tlb=1
38325 speedup_repeat=1
38326 speedup_iCache=1
38327 speedup_fastcall=1
38330 if test "$speedup_guest2host_tlb" = 1; then
38331 cat >>confdefs.h <<\_ACEOF
38332 #define BX_SupportGuest2HostTLB 1
38333 _ACEOF
38335 else
38336 cat >>confdefs.h <<\_ACEOF
38337 #define BX_SupportGuest2HostTLB 0
38338 _ACEOF
38342 if test "$speedup_repeat" = 1; then
38343 cat >>confdefs.h <<\_ACEOF
38344 #define BX_SupportRepeatSpeedups 1
38345 _ACEOF
38347 else
38348 cat >>confdefs.h <<\_ACEOF
38349 #define BX_SupportRepeatSpeedups 0
38350 _ACEOF
38354 if test "$speedup_iCache" = 1; then
38355 cat >>confdefs.h <<\_ACEOF
38356 #define BX_SUPPORT_ICACHE 1
38357 _ACEOF
38359 else
38360 cat >>confdefs.h <<\_ACEOF
38361 #define BX_SUPPORT_ICACHE 0
38362 _ACEOF
38366 if test "$speedup_host_specific_asms" = 1; then
38367 cat >>confdefs.h <<\_ACEOF
38368 #define BX_SupportHostAsms 1
38369 _ACEOF
38371 else
38372 cat >>confdefs.h <<\_ACEOF
38373 #define BX_SupportHostAsms 0
38374 _ACEOF
38378 if test "$speedup_fastcall" = 1; then
38379 cat >>confdefs.h <<\_ACEOF
38380 #define BX_FAST_FUNC_CALL 1
38381 _ACEOF
38383 else
38384 cat >>confdefs.h <<\_ACEOF
38385 #define BX_FAST_FUNC_CALL 0
38386 _ACEOF
38391 READLINE_LIB=""
38392 rl_without_curses_ok=no
38393 rl_with_curses_ok=no
38395 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
38396 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
38397 # Check whether --enable-readline was given.
38398 if test "${enable_readline+set}" = set; then
38399 enableval=$enable_readline; if test "$enableval" = yes; then
38400 { echo "$as_me:$LINENO: result: yes" >&5
38401 echo "${ECHO_T}yes" >&6; }
38402 want_readline=yes
38403 else
38404 { echo "$as_me:$LINENO: result: no" >&5
38405 echo "${ECHO_T}no" >&6; }
38406 want_readline=no
38408 else
38410 { echo "$as_me:$LINENO: result: yes" >&5
38411 echo "${ECHO_T}yes" >&6; }
38412 want_readline=yes
38418 use_readline=0
38419 { echo "$as_me:$LINENO: checking whether to use readline" >&5
38420 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
38421 if test "$want_readline" = yes; then
38422 if test "$bx_debugger" = 1; then
38424 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
38425 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
38426 OLD_LIBS=$LIBS
38427 LIBS="$LIBS -lreadline"
38428 if test "$cross_compiling" = yes; then
38429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38430 See \`config.log' for more details." >&5
38431 echo "$as_me: error: cannot run test program while cross compiling
38432 See \`config.log' for more details." >&2;}
38433 { (exit 1); exit 1; }; }
38434 else
38435 cat >conftest.$ac_ext <<_ACEOF
38436 /* confdefs.h. */
38437 _ACEOF
38438 cat confdefs.h >>conftest.$ac_ext
38439 cat >>conftest.$ac_ext <<_ACEOF
38440 /* end confdefs.h. */
38442 #include <stdio.h>
38443 #include <readline/readline.h>
38444 int main() { rl_initialize(); exit(0); }
38446 _ACEOF
38447 rm -f conftest$ac_exeext
38448 if { (ac_try="$ac_link"
38449 case "(($ac_try" in
38450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38451 *) ac_try_echo=$ac_try;;
38452 esac
38453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38454 (eval "$ac_link") 2>&5
38455 ac_status=$?
38456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38458 { (case "(($ac_try" in
38459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38460 *) ac_try_echo=$ac_try;;
38461 esac
38462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38463 (eval "$ac_try") 2>&5
38464 ac_status=$?
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; }; then
38467 { echo "$as_me:$LINENO: result: yes" >&5
38468 echo "${ECHO_T}yes" >&6; }
38469 rl_without_curses_ok=yes
38470 else
38471 echo "$as_me: program exited with status $ac_status" >&5
38472 echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38475 ( exit $ac_status )
38476 { echo "$as_me:$LINENO: result: no" >&5
38477 echo "${ECHO_T}no" >&6; }
38480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38484 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
38485 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
38486 LIBS="$LIBS -lcurses"
38487 if test "$cross_compiling" = yes; then
38488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38489 See \`config.log' for more details." >&5
38490 echo "$as_me: error: cannot run test program while cross compiling
38491 See \`config.log' for more details." >&2;}
38492 { (exit 1); exit 1; }; }
38493 else
38494 cat >conftest.$ac_ext <<_ACEOF
38495 /* confdefs.h. */
38496 _ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h. */
38501 #include <stdio.h>
38502 #include <readline/readline.h>
38503 int main() { rl_initialize(); exit(0); }
38505 _ACEOF
38506 rm -f conftest$ac_exeext
38507 if { (ac_try="$ac_link"
38508 case "(($ac_try" in
38509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38510 *) ac_try_echo=$ac_try;;
38511 esac
38512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38513 (eval "$ac_link") 2>&5
38514 ac_status=$?
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38517 { (case "(($ac_try" in
38518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38519 *) ac_try_echo=$ac_try;;
38520 esac
38521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38522 (eval "$ac_try") 2>&5
38523 ac_status=$?
38524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38525 (exit $ac_status); }; }; then
38526 { echo "$as_me:$LINENO: result: yes" >&5
38527 echo "${ECHO_T}yes" >&6; }
38528 rl_with_curses_ok=yes
38529 else
38530 echo "$as_me: program exited with status $ac_status" >&5
38531 echo "$as_me: failed program was:" >&5
38532 sed 's/^/| /' conftest.$ac_ext >&5
38534 ( exit $ac_status )
38535 { echo "$as_me:$LINENO: result: no" >&5
38536 echo "${ECHO_T}no" >&6; }
38539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38543 LIBS=$OLD_LIBS
38545 if test "$rl_without_curses_ok" = yes; then
38546 { echo "$as_me:$LINENO: result: yes" >&5
38547 echo "${ECHO_T}yes" >&6; }
38548 cat >>confdefs.h <<\_ACEOF
38549 #define HAVE_LIBREADLINE 1
38550 _ACEOF
38552 READLINE_LIB="-lreadline"
38553 use_readline=1
38554 elif test "$rl_with_curses_ok" = yes; then
38555 { echo "$as_me:$LINENO: result: yes" >&5
38556 echo "${ECHO_T}yes" >&6; }
38557 cat >>confdefs.h <<\_ACEOF
38558 #define HAVE_LIBREADLINE 1
38559 _ACEOF
38561 READLINE_LIB="-lreadline -lcurses"
38562 use_readline=1
38563 else
38564 { echo "$as_me:$LINENO: result: no" >&5
38565 echo "${ECHO_T}no" >&6; }
38566 echo WARNING: The readline library was disabled because it was not found.
38568 else
38569 { echo "$as_me:$LINENO: result: no" >&5
38570 echo "${ECHO_T}no" >&6; }
38572 else
38573 { echo "$as_me:$LINENO: result: no" >&5
38574 echo "${ECHO_T}no" >&6; }
38578 if test "${ac_cv_header_readline_history_h+set}" = set; then
38579 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
38580 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
38581 if test "${ac_cv_header_readline_history_h+set}" = set; then
38582 echo $ECHO_N "(cached) $ECHO_C" >&6
38584 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
38585 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38586 else
38587 # Is the header compilable?
38588 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
38589 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
38590 cat >conftest.$ac_ext <<_ACEOF
38591 /* confdefs.h. */
38592 _ACEOF
38593 cat confdefs.h >>conftest.$ac_ext
38594 cat >>conftest.$ac_ext <<_ACEOF
38595 /* end confdefs.h. */
38596 $ac_includes_default
38597 #include <readline/history.h>
38598 _ACEOF
38599 rm -f conftest.$ac_objext
38600 if { (ac_try="$ac_compile"
38601 case "(($ac_try" in
38602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38603 *) ac_try_echo=$ac_try;;
38604 esac
38605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38606 (eval "$ac_compile") 2>conftest.er1
38607 ac_status=$?
38608 grep -v '^ *+' conftest.er1 >conftest.err
38609 rm -f conftest.er1
38610 cat conftest.err >&5
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); } &&
38613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38614 { (case "(($ac_try" in
38615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38616 *) ac_try_echo=$ac_try;;
38617 esac
38618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38619 (eval "$ac_try") 2>&5
38620 ac_status=$?
38621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38622 (exit $ac_status); }; } &&
38623 { ac_try='test -s conftest.$ac_objext'
38624 { (case "(($ac_try" in
38625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38626 *) ac_try_echo=$ac_try;;
38627 esac
38628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38629 (eval "$ac_try") 2>&5
38630 ac_status=$?
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); }; }; then
38633 ac_header_compiler=yes
38634 else
38635 echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38638 ac_header_compiler=no
38641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38643 echo "${ECHO_T}$ac_header_compiler" >&6; }
38645 # Is the header present?
38646 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
38647 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
38648 cat >conftest.$ac_ext <<_ACEOF
38649 /* confdefs.h. */
38650 _ACEOF
38651 cat confdefs.h >>conftest.$ac_ext
38652 cat >>conftest.$ac_ext <<_ACEOF
38653 /* end confdefs.h. */
38654 #include <readline/history.h>
38655 _ACEOF
38656 if { (ac_try="$ac_cpp conftest.$ac_ext"
38657 case "(($ac_try" in
38658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38659 *) ac_try_echo=$ac_try;;
38660 esac
38661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38663 ac_status=$?
38664 grep -v '^ *+' conftest.er1 >conftest.err
38665 rm -f conftest.er1
38666 cat conftest.err >&5
38667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38668 (exit $ac_status); } >/dev/null; then
38669 if test -s conftest.err; then
38670 ac_cpp_err=$ac_c_preproc_warn_flag
38671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38672 else
38673 ac_cpp_err=
38675 else
38676 ac_cpp_err=yes
38678 if test -z "$ac_cpp_err"; then
38679 ac_header_preproc=yes
38680 else
38681 echo "$as_me: failed program was:" >&5
38682 sed 's/^/| /' conftest.$ac_ext >&5
38684 ac_header_preproc=no
38687 rm -f conftest.err conftest.$ac_ext
38688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38689 echo "${ECHO_T}$ac_header_preproc" >&6; }
38691 # So? What about this header?
38692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38693 yes:no: )
38694 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
38695 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38696 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
38697 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
38698 ac_header_preproc=yes
38700 no:yes:* )
38701 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
38702 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
38703 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
38704 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
38705 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
38706 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
38707 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
38708 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
38709 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
38710 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
38711 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
38712 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
38715 esac
38716 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
38717 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
38718 if test "${ac_cv_header_readline_history_h+set}" = set; then
38719 echo $ECHO_N "(cached) $ECHO_C" >&6
38720 else
38721 ac_cv_header_readline_history_h=$ac_header_preproc
38723 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
38724 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
38727 if test $ac_cv_header_readline_history_h = yes; then
38728 cat >>confdefs.h <<\_ACEOF
38729 #define HAVE_READLINE_HISTORY_H 1
38730 _ACEOF
38737 INSTRUMENT_DIR='instrument/stubs'
38739 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
38740 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
38741 # Check whether --enable-instrumentation was given.
38742 if test "${enable_instrumentation+set}" = set; then
38743 enableval=$enable_instrumentation; if test "$enableval" = yes; then
38744 { echo "$as_me:$LINENO: result: yes" >&5
38745 echo "${ECHO_T}yes" >&6; }
38746 cat >>confdefs.h <<\_ACEOF
38747 #define BX_INSTRUMENTATION 1
38748 _ACEOF
38750 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38751 elif test "$enableval" = no; then
38752 { echo "$as_me:$LINENO: result: no" >&5
38753 echo "${ECHO_T}no" >&6; }
38754 cat >>confdefs.h <<\_ACEOF
38755 #define BX_INSTRUMENTATION 0
38756 _ACEOF
38758 INSTRUMENT_VAR=''
38759 else
38760 { echo "$as_me:$LINENO: result: yes" >&5
38761 echo "${ECHO_T}yes" >&6; }
38762 cat >>confdefs.h <<\_ACEOF
38763 #define BX_INSTRUMENTATION 1
38764 _ACEOF
38766 INSTRUMENT_DIR=$enableval
38767 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
38769 else
38771 { echo "$as_me:$LINENO: result: no" >&5
38772 echo "${ECHO_T}no" >&6; }
38773 cat >>confdefs.h <<\_ACEOF
38774 #define BX_INSTRUMENTATION 0
38775 _ACEOF
38777 INSTRUMENT_VAR=''
38785 if test "$bx_plugins" = 0; then
38786 case $target in
38787 *-pc-windows*)
38788 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
38790 *-cygwin* | *-mingw32*)
38791 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
38793 esac
38796 { echo "$as_me:$LINENO: checking enable logging" >&5
38797 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
38798 # Check whether --enable-logging was given.
38799 if test "${enable_logging+set}" = set; then
38800 enableval=$enable_logging; if test "$enableval" = yes; then
38801 { echo "$as_me:$LINENO: result: yes" >&5
38802 echo "${ECHO_T}yes" >&6; }
38803 cat >>confdefs.h <<\_ACEOF
38804 #define BX_NO_LOGGING 0
38805 _ACEOF
38807 else
38808 { echo "$as_me:$LINENO: result: no" >&5
38809 echo "${ECHO_T}no" >&6; }
38810 cat >>confdefs.h <<\_ACEOF
38811 #define BX_NO_LOGGING 1
38812 _ACEOF
38815 else
38817 { echo "$as_me:$LINENO: result: yes" >&5
38818 echo "${ECHO_T}yes" >&6; }
38819 cat >>confdefs.h <<\_ACEOF
38820 #define BX_NO_LOGGING 0
38821 _ACEOF
38828 { echo "$as_me:$LINENO: checking for raw serial support" >&5
38829 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
38830 # Check whether --enable-raw-serial was given.
38831 if test "${enable_raw_serial+set}" = set; then
38832 enableval=$enable_raw_serial; if test "$enableval" = yes; then
38833 { echo "$as_me:$LINENO: result: yes" >&5
38834 echo "${ECHO_T}yes" >&6; }
38835 cat >>confdefs.h <<\_ACEOF
38836 #define USE_RAW_SERIAL 1
38837 _ACEOF
38839 else
38840 { echo "$as_me:$LINENO: result: no" >&5
38841 echo "${ECHO_T}no" >&6; }
38842 cat >>confdefs.h <<\_ACEOF
38843 #define USE_RAW_SERIAL 0
38844 _ACEOF
38847 else
38849 { echo "$as_me:$LINENO: result: no" >&5
38850 echo "${ECHO_T}no" >&6; }
38851 cat >>confdefs.h <<\_ACEOF
38852 #define USE_RAW_SERIAL 0
38853 _ACEOF
38860 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
38861 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
38862 # Check whether --enable-vbe was given.
38863 if test "${enable_vbe+set}" = set; then
38864 enableval=$enable_vbe; if test "$enableval" = yes; then
38865 { echo "$as_me:$LINENO: result: yes" >&5
38866 echo "${ECHO_T}yes" >&6; }
38867 cat >>confdefs.h <<\_ACEOF
38868 #define BX_SUPPORT_VBE 1
38869 _ACEOF
38871 if test "$pci" = 1; then
38872 cat >>confdefs.h <<\_ACEOF
38873 #define BX_SUPPORT_PCIVGA 1
38874 _ACEOF
38877 else
38878 { echo "$as_me:$LINENO: result: no" >&5
38879 echo "${ECHO_T}no" >&6; }
38880 cat >>confdefs.h <<\_ACEOF
38881 #define BX_SUPPORT_VBE 0
38882 _ACEOF
38885 else
38887 { echo "$as_me:$LINENO: result: yes" >&5
38888 echo "${ECHO_T}yes" >&6; }
38889 cat >>confdefs.h <<\_ACEOF
38890 #define BX_SUPPORT_VBE 1
38891 _ACEOF
38893 if test "$pci" = 1; then
38894 cat >>confdefs.h <<\_ACEOF
38895 #define BX_SUPPORT_PCIVGA 1
38896 _ACEOF
38904 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
38905 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
38906 # Check whether --enable-clgd54xx was given.
38907 if test "${enable_clgd54xx+set}" = set; then
38908 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
38909 { echo "$as_me:$LINENO: result: yes" >&5
38910 echo "${ECHO_T}yes" >&6; }
38911 cat >>confdefs.h <<\_ACEOF
38912 #define BX_SUPPORT_CLGD54XX 1
38913 _ACEOF
38915 if test "$pci" = 1; then
38916 cat >>confdefs.h <<\_ACEOF
38917 #define BX_SUPPORT_CLGD54XX_PCI 1
38918 _ACEOF
38921 else
38922 { echo "$as_me:$LINENO: result: no" >&5
38923 echo "${ECHO_T}no" >&6; }
38924 cat >>confdefs.h <<\_ACEOF
38925 #define BX_SUPPORT_CLGD54XX 0
38926 _ACEOF
38929 else
38931 { echo "$as_me:$LINENO: result: no" >&5
38932 echo "${ECHO_T}no" >&6; }
38933 cat >>confdefs.h <<\_ACEOF
38934 #define BX_SUPPORT_CLGD54XX 0
38935 _ACEOF
38942 support_fpu=1
38943 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
38944 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
38945 FPU_VAR=''
38946 # Check whether --enable-fpu was given.
38947 if test "${enable_fpu+set}" = set; then
38948 enableval=$enable_fpu; if test "$enableval" = yes; then
38949 { echo "$as_me:$LINENO: result: yes" >&5
38950 echo "${ECHO_T}yes" >&6; }
38951 cat >>confdefs.h <<\_ACEOF
38952 #define BX_SUPPORT_FPU 1
38953 _ACEOF
38955 FPU_VAR='$(FPU_LIB)'
38956 elif test "$enableval" = no; then
38957 { echo "$as_me:$LINENO: result: no" >&5
38958 echo "${ECHO_T}no" >&6; }
38959 cat >>confdefs.h <<\_ACEOF
38960 #define BX_SUPPORT_FPU 0
38961 _ACEOF
38963 support_fpu=0
38964 else
38965 echo " "
38966 echo "ERROR: --enable-fpu does not accept a path"
38967 exit 1
38970 else
38972 { echo "$as_me:$LINENO: result: yes" >&5
38973 echo "${ECHO_T}yes" >&6; }
38974 cat >>confdefs.h <<\_ACEOF
38975 #define BX_SUPPORT_FPU 1
38976 _ACEOF
38978 FPU_VAR='$(FPU_LIB)'
38985 { echo "$as_me:$LINENO: checking for VME support" >&5
38986 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
38987 # Check whether --enable-vme was given.
38988 if test "${enable_vme+set}" = set; then
38989 enableval=$enable_vme; if test "$enableval" = yes; then
38990 { echo "$as_me:$LINENO: result: yes" >&5
38991 echo "${ECHO_T}yes" >&6; }
38992 cat >>confdefs.h <<\_ACEOF
38993 #define BX_SUPPORT_VME 1
38994 _ACEOF
38996 elif test "$enableval" = no; then
38997 { echo "$as_me:$LINENO: result: no" >&5
38998 echo "${ECHO_T}no" >&6; }
38999 cat >>confdefs.h <<\_ACEOF
39000 #define BX_SUPPORT_VME 0
39001 _ACEOF
39005 else
39007 if test "$bx_cpu_level" -ge 5; then
39008 { echo "$as_me:$LINENO: result: yes" >&5
39009 echo "${ECHO_T}yes" >&6; }
39010 cat >>confdefs.h <<\_ACEOF
39011 #define BX_SUPPORT_VME 1
39012 _ACEOF
39020 support_mmx=1
39021 { echo "$as_me:$LINENO: checking for MMX support" >&5
39022 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
39023 # Check whether --enable-mmx was given.
39024 if test "${enable_mmx+set}" = set; then
39025 enableval=$enable_mmx; if test "$enableval" = yes; then
39026 { echo "$as_me:$LINENO: result: yes" >&5
39027 echo "${ECHO_T}yes" >&6; }
39028 cat >>confdefs.h <<\_ACEOF
39029 #define BX_SUPPORT_MMX 1
39030 _ACEOF
39032 elif test "$enableval" = no; then
39033 { echo "$as_me:$LINENO: result: no" >&5
39034 echo "${ECHO_T}no" >&6; }
39035 cat >>confdefs.h <<\_ACEOF
39036 #define BX_SUPPORT_MMX 0
39037 _ACEOF
39039 support_mmx=0
39042 else
39044 if test "$bx_cpu_level" -ge 5; then
39045 { echo "$as_me:$LINENO: result: yes" >&5
39046 echo "${ECHO_T}yes" >&6; }
39047 cat >>confdefs.h <<\_ACEOF
39048 #define BX_SUPPORT_MMX 1
39049 _ACEOF
39057 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
39058 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
39059 # Check whether --enable-3dnow was given.
39060 if test "${enable_3dnow+set}" = set; then
39061 enableval=$enable_3dnow; if test "$enableval" = yes; then
39062 { echo "$as_me:$LINENO: result: yes" >&5
39063 echo "${ECHO_T}yes" >&6; }
39064 cat >>confdefs.h <<\_ACEOF
39065 #define BX_SUPPORT_3DNOW 1
39066 _ACEOF
39068 elif test "$enableval" = no; then
39069 { echo "$as_me:$LINENO: result: no" >&5
39070 echo "${ECHO_T}no" >&6; }
39071 cat >>confdefs.h <<\_ACEOF
39072 #define BX_SUPPORT_3DNOW 0
39073 _ACEOF
39077 else
39079 { echo "$as_me:$LINENO: result: no" >&5
39080 echo "${ECHO_T}no" >&6; }
39081 cat >>confdefs.h <<\_ACEOF
39082 #define BX_SUPPORT_3DNOW 0
39083 _ACEOF
39090 support_sse=0
39091 { echo "$as_me:$LINENO: checking for SSE support" >&5
39092 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
39093 # Check whether --enable-sse was given.
39094 if test "${enable_sse+set}" = set; then
39095 enableval=$enable_sse; case "$enableval" in
39096 no | 0)
39097 support_sse=0
39098 { echo "$as_me:$LINENO: result: no" >&5
39099 echo "${ECHO_T}no" >&6; }
39101 yes | 1)
39102 support_sse=1
39103 { echo "$as_me:$LINENO: result: SSE1" >&5
39104 echo "${ECHO_T}SSE1" >&6; }
39107 support_sse=2
39108 { echo "$as_me:$LINENO: result: SSE2" >&5
39109 echo "${ECHO_T}SSE2" >&6; }
39112 support_sse=3
39113 { echo "$as_me:$LINENO: result: SSE3" >&5
39114 echo "${ECHO_T}SSE3" >&6; }
39117 support_sse=4
39118 { echo "$as_me:$LINENO: result: SSE4" >&5
39119 echo "${ECHO_T}SSE4" >&6; }
39122 echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
39123 exit 1
39125 esac
39127 else
39129 if test "$use_x86_64" = 1; then
39130 support_sse=2
39131 { echo "$as_me:$LINENO: result: SSE2" >&5
39132 echo "${ECHO_T}SSE2" >&6; }
39133 else
39134 { echo "$as_me:$LINENO: result: no" >&5
39135 echo "${ECHO_T}no" >&6; }
39142 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
39143 { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
39144 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
39145 { (exit 1); exit 1; }; }
39148 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
39149 { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
39150 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
39151 { (exit 1); exit 1; }; }
39154 if test "$support_sse" = 4; then
39155 cat >>confdefs.h <<\_ACEOF
39156 #define BX_SUPPORT_SSE 4
39157 _ACEOF
39159 elif test "$support_sse" = 3; then
39160 cat >>confdefs.h <<\_ACEOF
39161 #define BX_SUPPORT_SSE 3
39162 _ACEOF
39164 elif test "$support_sse" = 2; then
39165 cat >>confdefs.h <<\_ACEOF
39166 #define BX_SUPPORT_SSE 2
39167 _ACEOF
39169 elif test "$support_sse" = 1; then
39170 cat >>confdefs.h <<\_ACEOF
39171 #define BX_SUPPORT_SSE 1
39172 _ACEOF
39174 else
39175 cat >>confdefs.h <<\_ACEOF
39176 #define BX_SUPPORT_SSE 0
39177 _ACEOF
39181 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
39182 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
39183 # Check whether --enable-sse-extension was given.
39184 if test "${enable_sse_extension+set}" = set; then
39185 enableval=$enable_sse_extension; if test "$enableval" = yes; then
39186 { echo "$as_me:$LINENO: result: yes" >&5
39187 echo "${ECHO_T}yes" >&6; }
39188 cat >>confdefs.h <<\_ACEOF
39189 #define BX_SUPPORT_SSE_EXTENSION 1
39190 _ACEOF
39192 elif test "$enableval" = no; then
39193 { echo "$as_me:$LINENO: result: no" >&5
39194 echo "${ECHO_T}no" >&6; }
39195 cat >>confdefs.h <<\_ACEOF
39196 #define BX_SUPPORT_SSE_EXTENSION 0
39197 _ACEOF
39201 else
39203 { echo "$as_me:$LINENO: result: no" >&5
39204 echo "${ECHO_T}no" >&6; }
39205 cat >>confdefs.h <<\_ACEOF
39206 #define BX_SUPPORT_SSE_EXTENSION 0
39207 _ACEOF
39214 { echo "$as_me:$LINENO: checking for DAZ support" >&5
39215 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
39216 # Check whether --enable-daz was given.
39217 if test "${enable_daz+set}" = set; then
39218 enableval=$enable_daz; if test "$enableval" = yes; then
39219 { echo "$as_me:$LINENO: result: yes" >&5
39220 echo "${ECHO_T}yes" >&6; }
39221 cat >>confdefs.h <<\_ACEOF
39222 #define BX_SUPPORT_DAZ 1
39223 _ACEOF
39225 elif test "$enableval" = no; then
39226 { echo "$as_me:$LINENO: result: no" >&5
39227 echo "${ECHO_T}no" >&6; }
39228 cat >>confdefs.h <<\_ACEOF
39229 #define BX_SUPPORT_DAZ 0
39230 _ACEOF
39234 else
39236 if test "$support_sse" -ge 2; then
39237 { echo "$as_me:$LINENO: result: yes" >&5
39238 echo "${ECHO_T}yes" >&6; }
39239 cat >>confdefs.h <<\_ACEOF
39240 #define BX_SUPPORT_DAZ 1
39241 _ACEOF
39243 else
39244 { echo "$as_me:$LINENO: result: no" >&5
39245 echo "${ECHO_T}no" >&6; }
39246 cat >>confdefs.h <<\_ACEOF
39247 #define BX_SUPPORT_DAZ 0
39248 _ACEOF
39256 { echo "$as_me:$LINENO: checking for alignment check support" >&5
39257 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
39258 # Check whether --enable-alignment-check was given.
39259 if test "${enable_alignment_check+set}" = set; then
39260 enableval=$enable_alignment_check; if test "$enableval" = yes; then
39261 { echo "$as_me:$LINENO: result: yes" >&5
39262 echo "${ECHO_T}yes" >&6; }
39263 cat >>confdefs.h <<\_ACEOF
39264 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39265 _ACEOF
39267 elif test "$enableval" = no; then
39268 { echo "$as_me:$LINENO: result: no" >&5
39269 echo "${ECHO_T}no" >&6; }
39270 cat >>confdefs.h <<\_ACEOF
39271 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39272 _ACEOF
39276 else
39278 if test "$bx_cpu_level" -gt 3; then
39279 { echo "$as_me:$LINENO: result: yes" >&5
39280 echo "${ECHO_T}yes" >&6; }
39281 cat >>confdefs.h <<\_ACEOF
39282 #define BX_SUPPORT_ALIGNMENT_CHECK 1
39283 _ACEOF
39285 else
39286 { echo "$as_me:$LINENO: result: no" >&5
39287 echo "${ECHO_T}no" >&6; }
39288 cat >>confdefs.h <<\_ACEOF
39289 #define BX_SUPPORT_ALIGNMENT_CHECK 0
39290 _ACEOF
39298 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
39299 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
39300 # Check whether --enable-misaligned-sse was given.
39301 if test "${enable_misaligned_sse+set}" = set; then
39302 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
39303 { echo "$as_me:$LINENO: result: yes" >&5
39304 echo "${ECHO_T}yes" >&6; }
39305 cat >>confdefs.h <<\_ACEOF
39306 #define BX_SUPPORT_MISALIGNED_SSE 1
39307 _ACEOF
39309 elif test "$enableval" = no; then
39310 { echo "$as_me:$LINENO: result: no" >&5
39311 echo "${ECHO_T}no" >&6; }
39312 cat >>confdefs.h <<\_ACEOF
39313 #define BX_SUPPORT_MISALIGNED_SSE 0
39314 _ACEOF
39318 else
39320 { echo "$as_me:$LINENO: result: no" >&5
39321 echo "${ECHO_T}no" >&6; }
39322 cat >>confdefs.h <<\_ACEOF
39323 #define BX_SUPPORT_MISALIGNED_SSE 0
39324 _ACEOF
39331 { echo "$as_me:$LINENO: checking for SEP support" >&5
39332 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
39333 # Check whether --enable-sep was given.
39334 if test "${enable_sep+set}" = set; then
39335 enableval=$enable_sep; if test "$enableval" = yes; then
39336 { echo "$as_me:$LINENO: result: yes" >&5
39337 echo "${ECHO_T}yes" >&6; }
39338 cat >>confdefs.h <<\_ACEOF
39339 #define BX_SUPPORT_SEP 1
39340 _ACEOF
39342 elif test "$enableval" = no; then
39343 { echo "$as_me:$LINENO: result: no" >&5
39344 echo "${ECHO_T}no" >&6; }
39345 cat >>confdefs.h <<\_ACEOF
39346 #define BX_SUPPORT_SEP 0
39347 _ACEOF
39351 else
39353 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
39354 { echo "$as_me:$LINENO: result: yes" >&5
39355 echo "${ECHO_T}yes" >&6; }
39356 cat >>confdefs.h <<\_ACEOF
39357 #define BX_SUPPORT_SEP 1
39358 _ACEOF
39360 else
39361 { echo "$as_me:$LINENO: result: no" >&5
39362 echo "${ECHO_T}no" >&6; }
39363 cat >>confdefs.h <<\_ACEOF
39364 #define BX_SUPPORT_SEP 0
39365 _ACEOF
39373 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
39374 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
39375 # Check whether --enable-popcnt was given.
39376 if test "${enable_popcnt+set}" = set; then
39377 enableval=$enable_popcnt; if test "$enableval" = yes; then
39378 { echo "$as_me:$LINENO: result: yes" >&5
39379 echo "${ECHO_T}yes" >&6; }
39380 cat >>confdefs.h <<\_ACEOF
39381 #define BX_SUPPORT_POPCNT 1
39382 _ACEOF
39384 elif test "$enableval" = no; then
39385 { echo "$as_me:$LINENO: result: no" >&5
39386 echo "${ECHO_T}no" >&6; }
39387 cat >>confdefs.h <<\_ACEOF
39388 #define BX_SUPPORT_POPCNT 0
39389 _ACEOF
39393 else
39395 { echo "$as_me:$LINENO: result: no" >&5
39396 echo "${ECHO_T}no" >&6; }
39397 cat >>confdefs.h <<\_ACEOF
39398 #define BX_SUPPORT_POPCNT 0
39399 _ACEOF
39406 { echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
39407 echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
39408 # Check whether --enable-monitor_mwait was given.
39409 if test "${enable_monitor_mwait+set}" = set; then
39410 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
39411 { echo "$as_me:$LINENO: result: yes" >&5
39412 echo "${ECHO_T}yes" >&6; }
39413 cat >>confdefs.h <<\_ACEOF
39414 #define BX_SUPPORT_MONITOR_MWAIT 1
39415 _ACEOF
39417 elif test "$enableval" = no; then
39418 { echo "$as_me:$LINENO: result: no" >&5
39419 echo "${ECHO_T}no" >&6; }
39420 cat >>confdefs.h <<\_ACEOF
39421 #define BX_SUPPORT_MONITOR_MWAIT 0
39422 _ACEOF
39426 else
39428 { echo "$as_me:$LINENO: result: no" >&5
39429 echo "${ECHO_T}no" >&6; }
39430 cat >>confdefs.h <<\_ACEOF
39431 #define BX_SUPPORT_MONITOR_MWAIT 0
39432 _ACEOF
39439 { echo "$as_me:$LINENO: checking for x86 debugger support" >&5
39440 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
39441 # Check whether --enable-x86-debugger was given.
39442 if test "${enable_x86_debugger+set}" = set; then
39443 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
39444 { echo "$as_me:$LINENO: result: yes" >&5
39445 echo "${ECHO_T}yes" >&6; }
39446 cat >>confdefs.h <<\_ACEOF
39447 #define BX_X86_DEBUGGER 1
39448 _ACEOF
39450 elif test "$enableval" = no; then
39451 { echo "$as_me:$LINENO: result: no" >&5
39452 echo "${ECHO_T}no" >&6; }
39453 cat >>confdefs.h <<\_ACEOF
39454 #define BX_X86_DEBUGGER 0
39455 _ACEOF
39457 else
39458 { echo "$as_me:$LINENO: result: yes" >&5
39459 echo "${ECHO_T}yes" >&6; }
39460 cat >>confdefs.h <<\_ACEOF
39461 #define BX_X86_DEBUGGER 1
39462 _ACEOF
39465 else
39467 { echo "$as_me:$LINENO: result: no" >&5
39468 echo "${ECHO_T}no" >&6; }
39469 cat >>confdefs.h <<\_ACEOF
39470 #define BX_X86_DEBUGGER 0
39471 _ACEOF
39478 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39479 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
39480 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
39481 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39482 echo $ECHO_N "(cached) $ECHO_C" >&6
39484 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39485 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39486 else
39487 # Is the header compilable?
39488 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
39489 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
39490 cat >conftest.$ac_ext <<_ACEOF
39491 /* confdefs.h. */
39492 _ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h. */
39496 $ac_includes_default
39497 #include <IOKit/storage/IOCDMedia.h>
39498 _ACEOF
39499 rm -f conftest.$ac_objext
39500 if { (ac_try="$ac_compile"
39501 case "(($ac_try" in
39502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39503 *) ac_try_echo=$ac_try;;
39504 esac
39505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39506 (eval "$ac_compile") 2>conftest.er1
39507 ac_status=$?
39508 grep -v '^ *+' conftest.er1 >conftest.err
39509 rm -f conftest.er1
39510 cat conftest.err >&5
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); } &&
39513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39514 { (case "(($ac_try" in
39515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516 *) ac_try_echo=$ac_try;;
39517 esac
39518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39519 (eval "$ac_try") 2>&5
39520 ac_status=$?
39521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); }; } &&
39523 { ac_try='test -s conftest.$ac_objext'
39524 { (case "(($ac_try" in
39525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39526 *) ac_try_echo=$ac_try;;
39527 esac
39528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39529 (eval "$ac_try") 2>&5
39530 ac_status=$?
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); }; }; then
39533 ac_header_compiler=yes
39534 else
39535 echo "$as_me: failed program was:" >&5
39536 sed 's/^/| /' conftest.$ac_ext >&5
39538 ac_header_compiler=no
39541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39543 echo "${ECHO_T}$ac_header_compiler" >&6; }
39545 # Is the header present?
39546 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
39547 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
39548 cat >conftest.$ac_ext <<_ACEOF
39549 /* confdefs.h. */
39550 _ACEOF
39551 cat confdefs.h >>conftest.$ac_ext
39552 cat >>conftest.$ac_ext <<_ACEOF
39553 /* end confdefs.h. */
39554 #include <IOKit/storage/IOCDMedia.h>
39555 _ACEOF
39556 if { (ac_try="$ac_cpp conftest.$ac_ext"
39557 case "(($ac_try" in
39558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39559 *) ac_try_echo=$ac_try;;
39560 esac
39561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39563 ac_status=$?
39564 grep -v '^ *+' conftest.er1 >conftest.err
39565 rm -f conftest.er1
39566 cat conftest.err >&5
39567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39568 (exit $ac_status); } >/dev/null; then
39569 if test -s conftest.err; then
39570 ac_cpp_err=$ac_c_preproc_warn_flag
39571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39572 else
39573 ac_cpp_err=
39575 else
39576 ac_cpp_err=yes
39578 if test -z "$ac_cpp_err"; then
39579 ac_header_preproc=yes
39580 else
39581 echo "$as_me: failed program was:" >&5
39582 sed 's/^/| /' conftest.$ac_ext >&5
39584 ac_header_preproc=no
39587 rm -f conftest.err conftest.$ac_ext
39588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39589 echo "${ECHO_T}$ac_header_preproc" >&6; }
39591 # So? What about this header?
39592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39593 yes:no: )
39594 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
39595 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39596 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
39597 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
39598 ac_header_preproc=yes
39600 no:yes:* )
39601 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
39602 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
39603 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&5
39604 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&2;}
39605 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
39606 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
39607 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&5
39608 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&2;}
39609 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
39610 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
39611 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
39612 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
39615 esac
39616 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
39617 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
39618 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
39619 echo $ECHO_N "(cached) $ECHO_C" >&6
39620 else
39621 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
39623 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
39624 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
39627 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
39628 can_use_osx_cdrom=yes
39634 { echo "$as_me:$LINENO: checking for CDROM support" >&5
39635 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
39636 # Check whether --enable-cdrom was given.
39637 if test "${enable_cdrom+set}" = set; then
39638 enableval=$enable_cdrom; if test "$enableval" = no; then
39639 bx_cdrom=0
39640 else
39641 bx_cdrom=1
39643 else
39644 bx_cdrom=1
39649 if test "$bx_cdrom" = 1; then
39650 { echo "$as_me:$LINENO: result: yes" >&5
39651 echo "${ECHO_T}yes" >&6; }
39652 CDROM_OBJS='cdrom.o'
39653 if test "$with_amigaos" = yes; then
39654 # use the amiga cdrom file instead.
39655 CDROM_OBJS="cdrom_amigaos.o"
39656 elif test "$can_use_osx_cdrom" = yes; then
39657 # use cdrom_osx
39658 { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
39659 echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
39660 CDROM_OBJS="cdrom.o"
39661 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
39663 case $target in
39664 *-beos*)
39665 # use the beos cdrom file instead
39666 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
39667 esac
39668 cat >>confdefs.h <<\_ACEOF
39669 #define BX_SUPPORT_CDROM 1
39670 _ACEOF
39672 else
39673 { echo "$as_me:$LINENO: result: no" >&5
39674 echo "${ECHO_T}no" >&6; }
39675 CDROM_OBJS=''
39676 cat >>confdefs.h <<\_ACEOF
39677 #define BX_SUPPORT_CDROM 0
39678 _ACEOF
39685 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
39686 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
39687 SB16_OBJS=''
39688 SOUNDLOW_OBJS=''
39689 GAME_OBJS=''
39690 gameport_present=0
39691 # Check whether --enable-sb16 was given.
39692 if test "${enable_sb16+set}" = set; then
39693 enableval=$enable_sb16; if test "$enableval" = no; then
39694 { echo "$as_me:$LINENO: result: no" >&5
39695 echo "${ECHO_T}no" >&6; }
39696 cat >>confdefs.h <<\_ACEOF
39697 #define BX_SUPPORT_SB16 0
39698 _ACEOF
39700 else
39701 case "$enableval" in
39702 dummy)
39703 SOUNDLOW_OBJS=''
39704 cat >>confdefs.h <<\_ACEOF
39705 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39706 _ACEOF
39708 { echo "$as_me:$LINENO: result: dummy" >&5
39709 echo "${ECHO_T}dummy" >&6; }
39711 freebsd|linux)
39712 SOUNDLOW_OBJS='soundlnx.o'
39713 cat >>confdefs.h <<\_ACEOF
39714 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39715 _ACEOF
39717 { echo "$as_me:$LINENO: result: linux" >&5
39718 echo "${ECHO_T}linux" >&6; }
39720 win)
39721 SOUNDLOW_OBJS='soundwin.o'
39722 cat >>confdefs.h <<\_ACEOF
39723 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39724 _ACEOF
39726 { echo "$as_me:$LINENO: result: win" >&5
39727 echo "${ECHO_T}win" >&6; }
39728 case $target in
39729 *-pc-windows*)
39730 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
39733 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39735 esac
39737 osx)
39738 SOUNDLOW_OBJS='soundosx.o'
39739 cat >>confdefs.h <<\_ACEOF
39740 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39741 _ACEOF
39743 { echo "$as_me:$LINENO: result: osx" >&5
39744 echo "${ECHO_T}osx" >&6; }
39745 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
39747 yes)
39748 case "$target" in
39749 *-linux* | *-freebsd*)
39750 SOUNDLOW_OBJS='soundlnx.o'
39751 cat >>confdefs.h <<\_ACEOF
39752 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
39753 _ACEOF
39755 { echo "$as_me:$LINENO: result: linux" >&5
39756 echo "${ECHO_T}linux" >&6; }
39758 *-pc-windows*)
39759 SOUNDLOW_OBJS='soundwin.o'
39760 cat >>confdefs.h <<\_ACEOF
39761 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39762 _ACEOF
39764 { echo "$as_me:$LINENO: result: win" >&5
39765 echo "${ECHO_T}win" >&6; }
39766 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
39768 *-cygwin* | *-mingw32*)
39769 SOUNDLOW_OBJS='soundwin.o'
39770 cat >>confdefs.h <<\_ACEOF
39771 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
39772 _ACEOF
39774 { echo "$as_me:$LINENO: result: win" >&5
39775 echo "${ECHO_T}win" >&6; }
39776 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39778 *-macosx* | *-macos*)
39779 SOUNDLOW_OBJS='soundosx.o'
39780 cat >>confdefs.h <<\_ACEOF
39781 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
39782 _ACEOF
39784 { echo "$as_me:$LINENO: result: osx" >&5
39785 echo "${ECHO_T}osx" >&6; }
39786 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
39789 SOUNDLOW_OBJS=''
39790 cat >>confdefs.h <<\_ACEOF
39791 #define BX_SOUND_OUTPUT_C bx_sound_output_c
39792 _ACEOF
39794 { echo "$as_me:$LINENO: result: dummy" >&5
39795 echo "${ECHO_T}dummy" >&6; }
39797 esac
39800 echo " "
39801 echo \!\!\!Error\!\!\!
39802 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
39803 exit 1 ;;
39804 esac
39805 SB16_OBJS='sb16.o'
39806 cat >>confdefs.h <<\_ACEOF
39807 #define BX_SUPPORT_SB16 1
39808 _ACEOF
39810 GAME_OBJS='gameport.o'
39811 gameport_present=1
39813 else
39815 { echo "$as_me:$LINENO: result: no" >&5
39816 echo "${ECHO_T}no" >&6; }
39817 cat >>confdefs.h <<\_ACEOF
39818 #define BX_SUPPORT_SB16 0
39819 _ACEOF
39829 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
39830 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
39831 # Check whether --enable-gameport was given.
39832 if test "${enable_gameport+set}" = set; then
39833 enableval=$enable_gameport; if test "$enableval" = yes; then
39834 { echo "$as_me:$LINENO: result: yes" >&5
39835 echo "${ECHO_T}yes" >&6; }
39836 cat >>confdefs.h <<\_ACEOF
39837 #define BX_SUPPORT_GAMEPORT 1
39838 _ACEOF
39840 if test "$gameport_present" = 0; then
39841 GAME_OBJS='gameport.o'
39842 case $target in
39843 *-cygwin* | *-mingw32*)
39844 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
39846 esac
39848 else
39849 { echo "$as_me:$LINENO: result: no" >&5
39850 echo "${ECHO_T}no" >&6; }
39851 GAME_OBJS=''
39852 cat >>confdefs.h <<\_ACEOF
39853 #define BX_SUPPORT_GAMEPORT 0
39854 _ACEOF
39857 else
39859 if test "$gameport_present" = 1; then
39860 cat >>confdefs.h <<\_ACEOF
39861 #define BX_SUPPORT_GAMEPORT 1
39862 _ACEOF
39864 { echo "$as_me:$LINENO: result: yes" >&5
39865 echo "${ECHO_T}yes" >&6; }
39866 else
39867 cat >>confdefs.h <<\_ACEOF
39868 #define BX_SUPPORT_GAMEPORT 0
39869 _ACEOF
39871 { echo "$as_me:$LINENO: result: no" >&5
39872 echo "${ECHO_T}no" >&6; }
39880 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
39881 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
39882 # Check whether --enable-gdb-stub was given.
39883 if test "${enable_gdb_stub+set}" = set; then
39884 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
39885 { echo "$as_me:$LINENO: result: yes" >&5
39886 echo "${ECHO_T}yes" >&6; }
39887 cat >>confdefs.h <<\_ACEOF
39888 #define BX_GDBSTUB 1
39889 _ACEOF
39891 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
39892 if test "$bx_debugger" = 1; then
39893 { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
39894 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
39895 { (exit 1); exit 1; }; }
39897 else
39898 { echo "$as_me:$LINENO: result: no" >&5
39899 echo "${ECHO_T}no" >&6; }
39900 cat >>confdefs.h <<\_ACEOF
39901 #define BX_GDBSTUB 0
39902 _ACEOF
39904 GDBSTUB_VAR=''
39906 else
39908 { echo "$as_me:$LINENO: result: no" >&5
39909 echo "${ECHO_T}no" >&6; }
39910 cat >>confdefs.h <<\_ACEOF
39911 #define BX_GDBSTUB 0
39912 _ACEOF
39914 GDBSTUB_VAR=''
39922 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
39923 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
39924 IODEBUG_OBJS=''
39925 # Check whether --enable-iodebug was given.
39926 if test "${enable_iodebug+set}" = set; then
39927 enableval=$enable_iodebug; if test "$enableval" = yes; then
39928 { echo "$as_me:$LINENO: result: yes" >&5
39929 echo "${ECHO_T}yes" >&6; }
39930 cat >>confdefs.h <<\_ACEOF
39931 #define BX_SUPPORT_IODEBUG 1
39932 _ACEOF
39934 IODEBUG_OBJS='iodebug.o'
39935 else
39936 { echo "$as_me:$LINENO: result: no" >&5
39937 echo "${ECHO_T}no" >&6; }
39938 cat >>confdefs.h <<\_ACEOF
39939 #define BX_SUPPORT_IODEBUG 0
39940 _ACEOF
39944 else
39946 if test "" = 1; then
39947 # enable by default if debugger is on
39948 { echo "$as_me:$LINENO: result: yes" >&5
39949 echo "${ECHO_T}yes" >&6; }
39950 cat >>confdefs.h <<\_ACEOF
39951 #define BX_SUPPORT_IODEBUG 1
39952 _ACEOF
39954 IODEBUG_OBJS='iodebug.o'
39955 else
39956 { echo "$as_me:$LINENO: result: no" >&5
39957 echo "${ECHO_T}no" >&6; }
39966 # Extract the first word of "docbook2html", so it can be a program name with args.
39967 set dummy docbook2html; ac_word=$2
39968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39970 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
39971 echo $ECHO_N "(cached) $ECHO_C" >&6
39972 else
39973 case $DOCBOOK2HTML in
39974 [\\/]* | ?:[\\/]*)
39975 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
39978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39979 for as_dir in $PATH
39981 IFS=$as_save_IFS
39982 test -z "$as_dir" && as_dir=.
39983 for ac_exec_ext in '' $ac_executable_extensions; do
39984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
39985 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
39986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39987 break 2
39989 done
39990 done
39991 IFS=$as_save_IFS
39993 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
39995 esac
39997 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
39998 if test -n "$DOCBOOK2HTML"; then
39999 { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
40000 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
40001 else
40002 { echo "$as_me:$LINENO: result: no" >&5
40003 echo "${ECHO_T}no" >&6; }
40007 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
40008 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
40009 build_docbook=0
40010 # Check whether --enable-docbook was given.
40011 if test "${enable_docbook+set}" = set; then
40012 enableval=$enable_docbook;
40013 if test "$enableval" = yes; then build_docbook=1; fi
40015 else
40017 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
40023 if test $build_docbook = 1; then
40024 { echo "$as_me:$LINENO: result: yes" >&5
40025 echo "${ECHO_T}yes" >&6; }
40026 BUILD_DOCBOOK_VAR=build_docbook
40027 INSTALL_DOCBOOK_VAR=install_docbook
40028 if test "$DOCBOOK2HTML" = not_found; then
40029 echo "ERROR: docbook2html must be installed to build the documentation"
40030 exit 1
40032 else
40033 { echo "$as_me:$LINENO: result: no" >&5
40034 echo "${ECHO_T}no" >&6; }
40040 PRIMARY_TARGET='bochs'
40041 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
40043 cat >>confdefs.h <<\_ACEOF
40044 #define BX_PROVIDE_DEVICE_MODELS 1
40045 _ACEOF
40047 IODEV_LIB_VAR='iodev/libiodev.a'
40048 cat >>confdefs.h <<\_ACEOF
40049 #define BX_PROVIDE_CPU_MEMORY 1
40050 _ACEOF
40052 NONINLINE_VAR='$(NONINLINE_OBJS)'
40064 # Check whether --with-x11 was given.
40065 if test "${with_x11+set}" = set; then
40066 withval=$with_x11;
40071 # Check whether --with-beos was given.
40072 if test "${with_beos+set}" = set; then
40073 withval=$with_beos;
40078 # Check whether --with-win32 was given.
40079 if test "${with_win32+set}" = set; then
40080 withval=$with_win32;
40085 # Check whether --with-macos was given.
40086 if test "${with_macos+set}" = set; then
40087 withval=$with_macos;
40092 # Check whether --with-carbon was given.
40093 if test "${with_carbon+set}" = set; then
40094 withval=$with_carbon;
40099 # Check whether --with-nogui was given.
40100 if test "${with_nogui+set}" = set; then
40101 withval=$with_nogui;
40106 # Check whether --with-term was given.
40107 if test "${with_term+set}" = set; then
40108 withval=$with_term;
40113 # Check whether --with-rfb was given.
40114 if test "${with_rfb+set}" = set; then
40115 withval=$with_rfb;
40120 # Check whether --with-amigaos was given.
40121 if test "${with_amigaos+set}" = set; then
40122 withval=$with_amigaos;
40127 # Check whether --with-sdl was given.
40128 if test "${with_sdl+set}" = set; then
40129 withval=$with_sdl;
40134 # Check whether --with-svga was given.
40135 if test "${with_svga+set}" = set; then
40136 withval=$with_svga;
40141 # Check whether --with-wx was given.
40142 if test "${with_wx+set}" = set; then
40143 withval=$with_wx;
40148 # Check whether --with-all-libs was given.
40149 if test "${with_all_libs+set}" = set; then
40150 withval=$with_all_libs;
40154 DASH="-"
40155 SLASH="/"
40156 CXXFP=""
40157 CFP=""
40158 OFP="-o "
40159 MAKELIB="ar rv \$@"
40160 RMCOMMAND="rm -f "
40161 # first define link variables without libtool
40162 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
40163 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
40164 # unless NO_LT is set, add libtool to the front of the link command
40165 if test "$NO_LT" != 1; then
40166 LINK="\$(LIBTOOL) --mode=link $LINK"
40167 LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
40169 EXE=""
40170 COMMAND_SEPARATOR="&& \\"
40171 CD_UP_ONE="echo done"
40172 CD_UP_TWO="echo done"
40173 CD_UP_THREE="echo done"
40175 INSTALL_TARGET=install_unix
40176 INSTALL_LIST_FOR_PLATFORM=
40178 # check for existence of and usable version of wxWidgets. This comes
40179 # early so that it could affect which one gets chosen.
40180 if test x$WX_CONFIG = x; then
40181 # Extract the first word of " wx-config --version ", so it can be a program name with args.
40182 set dummy wx-config --version ; ac_word=$2
40183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40185 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
40186 echo $ECHO_N "(cached) $ECHO_C" >&6
40187 else
40188 if test -n "$WX_CONFIG"; then
40189 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
40190 else
40191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40192 for as_dir in $PATH
40194 IFS=$as_save_IFS
40195 test -z "$as_dir" && as_dir=.
40196 for ac_exec_ext in '' $ac_executable_extensions; do
40197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40198 ac_cv_prog_WX_CONFIG="wx-config"
40199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40200 break 2
40202 done
40203 done
40204 IFS=$as_save_IFS
40206 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
40209 WX_CONFIG=$ac_cv_prog_WX_CONFIG
40210 if test -n "$WX_CONFIG"; then
40211 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
40212 echo "${ECHO_T}$WX_CONFIG" >&6; }
40213 else
40214 { echo "$as_me:$LINENO: result: no" >&5
40215 echo "${ECHO_T}no" >&6; }
40220 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
40221 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
40222 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
40223 echo "${ECHO_T}$WX_CONFIG" >&6; }
40225 ok_wx_version=0
40226 wx_multi_lib=0
40227 wx_needs_gtk2=0
40228 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
40229 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
40230 if test x$WX_CONFIG != xnot_found; then
40231 WX_VERSION=`$WX_CONFIG --version`
40232 WX_BASENAME=`$WX_CONFIG --basename`
40234 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
40235 case x$WX_VERSION in
40236 x2.[012]*) ;; # less than version 2.3.x
40237 x2.3.[01]) ;; # less than version 2.3.2
40238 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
40239 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
40240 x2.[6-9]*) # version 2.6 or greater
40241 ok_wx_version=1
40242 wx_multi_lib=1
40243 case x$WX_BASENAME in
40244 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
40245 *) ;;
40246 esac
40248 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
40249 *) ;; # who knows?
40250 esac
40253 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
40254 echo "${ECHO_T}$WX_VERSION" >&6; }
40255 if test "$cross_configure" = 0; then
40256 if test "$ok_wx_version" = 1; then
40257 # detected a usable version
40258 if test "$with_all_libs" = yes; then
40259 with_wx=yes
40261 else
40262 if test "$with_wx" = yes; then
40263 { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
40264 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
40266 with_wx=no
40270 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
40271 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
40272 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
40273 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
40275 display_libs=""
40277 # the $with_* variable tells the gui library to use, but does NOT necessarily
40278 # indicate the platform. Settings that depend on the platform should be
40279 # handled later.
40281 XPM_LIB=''
40282 if test "$with_x11" = yes; then
40283 display_libs="$display_libs X11"
40284 if test "$no_x" = yes; then
40285 echo ERROR: X windows gui was selected, but X windows libraries were not found.
40286 exit 1
40288 cat >>confdefs.h <<\_ACEOF
40289 #define BX_WITH_X11 1
40290 _ACEOF
40292 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
40293 GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
40294 GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
40295 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
40296 check_xpm=0
40297 { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
40298 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
40299 # Check whether --enable-xpm was given.
40300 if test "${enable_xpm+set}" = set; then
40301 enableval=$enable_xpm; if test "$enableval" = yes; then
40302 check_xpm=0
40303 { echo "$as_me:$LINENO: result: yes" >&5
40304 echo "${ECHO_T}yes" >&6; }
40305 check_xpm=1
40306 else
40307 { echo "$as_me:$LINENO: result: no" >&5
40308 echo "${ECHO_T}no" >&6; }
40309 check_xpm=0
40311 else
40313 { echo "$as_me:$LINENO: result: yes" >&5
40314 echo "${ECHO_T}yes" >&6; }
40315 check_xpm=1
40320 if test $check_xpm = 1; then
40321 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40322 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
40323 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
40324 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40325 echo $ECHO_N "(cached) $ECHO_C" >&6
40327 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
40328 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40329 else
40330 # Is the header compilable?
40331 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
40332 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
40333 cat >conftest.$ac_ext <<_ACEOF
40334 /* confdefs.h. */
40335 _ACEOF
40336 cat confdefs.h >>conftest.$ac_ext
40337 cat >>conftest.$ac_ext <<_ACEOF
40338 /* end confdefs.h. */
40339 $ac_includes_default
40340 #include <X11/xpm.h>
40341 _ACEOF
40342 rm -f conftest.$ac_objext
40343 if { (ac_try="$ac_compile"
40344 case "(($ac_try" in
40345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40346 *) ac_try_echo=$ac_try;;
40347 esac
40348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40349 (eval "$ac_compile") 2>conftest.er1
40350 ac_status=$?
40351 grep -v '^ *+' conftest.er1 >conftest.err
40352 rm -f conftest.er1
40353 cat conftest.err >&5
40354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40355 (exit $ac_status); } &&
40356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40357 { (case "(($ac_try" in
40358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40359 *) ac_try_echo=$ac_try;;
40360 esac
40361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40362 (eval "$ac_try") 2>&5
40363 ac_status=$?
40364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365 (exit $ac_status); }; } &&
40366 { ac_try='test -s conftest.$ac_objext'
40367 { (case "(($ac_try" in
40368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40369 *) ac_try_echo=$ac_try;;
40370 esac
40371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40372 (eval "$ac_try") 2>&5
40373 ac_status=$?
40374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40375 (exit $ac_status); }; }; then
40376 ac_header_compiler=yes
40377 else
40378 echo "$as_me: failed program was:" >&5
40379 sed 's/^/| /' conftest.$ac_ext >&5
40381 ac_header_compiler=no
40384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40386 echo "${ECHO_T}$ac_header_compiler" >&6; }
40388 # Is the header present?
40389 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
40390 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
40391 cat >conftest.$ac_ext <<_ACEOF
40392 /* confdefs.h. */
40393 _ACEOF
40394 cat confdefs.h >>conftest.$ac_ext
40395 cat >>conftest.$ac_ext <<_ACEOF
40396 /* end confdefs.h. */
40397 #include <X11/xpm.h>
40398 _ACEOF
40399 if { (ac_try="$ac_cpp conftest.$ac_ext"
40400 case "(($ac_try" in
40401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40402 *) ac_try_echo=$ac_try;;
40403 esac
40404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40406 ac_status=$?
40407 grep -v '^ *+' conftest.er1 >conftest.err
40408 rm -f conftest.er1
40409 cat conftest.err >&5
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); } >/dev/null; then
40412 if test -s conftest.err; then
40413 ac_cpp_err=$ac_c_preproc_warn_flag
40414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40415 else
40416 ac_cpp_err=
40418 else
40419 ac_cpp_err=yes
40421 if test -z "$ac_cpp_err"; then
40422 ac_header_preproc=yes
40423 else
40424 echo "$as_me: failed program was:" >&5
40425 sed 's/^/| /' conftest.$ac_ext >&5
40427 ac_header_preproc=no
40430 rm -f conftest.err conftest.$ac_ext
40431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40432 echo "${ECHO_T}$ac_header_preproc" >&6; }
40434 # So? What about this header?
40435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40436 yes:no: )
40437 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
40438 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40439 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
40440 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
40441 ac_header_preproc=yes
40443 no:yes:* )
40444 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
40445 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
40446 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
40447 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
40448 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
40449 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
40450 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
40451 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
40452 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
40453 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
40454 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
40455 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
40458 esac
40459 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
40460 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
40461 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
40462 echo $ECHO_N "(cached) $ECHO_C" >&6
40463 else
40464 ac_cv_header_X11_xpm_h=$ac_header_preproc
40466 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
40467 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
40470 if test $ac_cv_header_X11_xpm_h = yes; then
40472 cat >>confdefs.h <<\_ACEOF
40473 #define BX_HAVE_XPM_H 1
40474 _ACEOF
40476 XPM_LIB='-lXpm'
40485 if test "$with_beos" = yes; then
40486 display_libs="$display_libs beos"
40487 cat >>confdefs.h <<\_ACEOF
40488 #define BX_WITH_BEOS 1
40489 _ACEOF
40491 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
40492 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
40495 if test "$with_sdl" = yes; then
40496 display_libs="$display_libs sdl"
40497 cat >>confdefs.h <<\_ACEOF
40498 #define BX_WITH_SDL 1
40499 _ACEOF
40501 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
40502 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40503 # the files in gui/*.cc.
40504 SDL_CFLAGS=`sdl-config --cflags`
40505 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
40506 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
40507 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
40508 if test "$with_win32" != yes -a "$with_wx" != yes; then
40509 case $target in
40510 *-pc-windows*)
40511 RC_CMD="rc /fo"
40512 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40514 *-cygwin* | *-mingw32*)
40515 RC_CMD="windres -o "
40516 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40518 esac
40522 if test "$with_svga" = yes; then
40523 display_libs="$display_libs svga"
40524 cat >>confdefs.h <<\_ACEOF
40525 #define BX_WITH_SVGA 1
40526 _ACEOF
40528 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
40529 # GUI_*FLAGS are added to the compilation of every bochs file, not just
40530 # the files in gui/*.cc.
40531 GUI_CFLAGS="$GUI_CFLAGS"
40532 GUI_CXXFLAGS="$GUI_CXXFLAGS"
40533 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
40536 if test "$with_rfb" = yes; then
40537 display_libs="$display_libs rfb"
40538 cat >>confdefs.h <<\_ACEOF
40539 #define BX_WITH_RFB 1
40540 _ACEOF
40542 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
40543 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
40546 if test "$with_amigaos" = yes; then
40547 display_libs="$display_libs amigaos"
40548 cat >>confdefs.h <<\_ACEOF
40549 #define BX_WITH_AMIGAOS 1
40550 _ACEOF
40552 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
40553 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
40556 if test "$with_win32" = yes; then
40557 display_libs="$display_libs win32"
40558 cat >>confdefs.h <<\_ACEOF
40559 #define BX_WITH_WIN32 1
40560 _ACEOF
40562 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
40563 case $target in
40564 *-pc-windows*)
40565 if test "$with_wx" != yes; then
40566 RC_CMD="rc /fo"
40567 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40569 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
40571 *-cygwin* | *-mingw32*)
40572 if test "$with_wx" != yes; then
40573 RC_CMD="windres -o "
40574 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
40576 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
40578 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
40580 esac
40583 if test "$with_macos" = yes; then
40584 display_libs="$display_libs macos"
40585 cat >>confdefs.h <<\_ACEOF
40586 #define BX_WITH_MACOS 1
40587 _ACEOF
40589 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
40590 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
40593 if test "$with_carbon" = yes; then
40594 display_libs="$display_libs carbon"
40595 cat >>confdefs.h <<\_ACEOF
40596 #define BX_WITH_CARBON 1
40597 _ACEOF
40599 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
40600 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
40601 if test "$bx_plugins" = 1; then
40602 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
40603 else
40604 PRIMARY_TARGET=bochs.app/.build # only for carbon application
40606 INSTALL_TARGET='install_macosx'
40609 if test "$with_term" = yes; then
40610 display_libs="$display_libs term"
40611 cat >>confdefs.h <<\_ACEOF
40612 #define BX_WITH_TERM 1
40613 _ACEOF
40615 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
40616 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
40617 use_curses=yes
40620 if test "$with_wx" = yes; then
40621 display_libs="$display_libs wxWidgets"
40622 if test "$cross_configure" = 1; then
40623 true # do not insist, if configuring for another machine
40624 else
40625 if test x$ok_wx_version != x1; then
40626 echo ERROR: A usable version of wxWidgets was not found.
40627 echo Upgrade the library or choose another gui.
40628 exit 1
40631 cat >>confdefs.h <<\_ACEOF
40632 #define BX_WITH_WX 1
40633 _ACEOF
40635 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
40636 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
40637 WX_CFLAGS="`$WX_CONFIG --cflags`"
40638 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
40639 if test "$wx_multi_lib" = 1; then
40640 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
40641 else
40642 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
40644 if test "$wx_needs_gtk2" = 1; then
40647 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
40648 if test -n "$ac_tool_prefix"; then
40649 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40650 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40653 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40654 echo $ECHO_N "(cached) $ECHO_C" >&6
40655 else
40656 case $PKG_CONFIG in
40657 [\\/]* | ?:[\\/]*)
40658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40662 for as_dir in $PATH
40664 IFS=$as_save_IFS
40665 test -z "$as_dir" && as_dir=.
40666 for ac_exec_ext in '' $ac_executable_extensions; do
40667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40670 break 2
40672 done
40673 done
40674 IFS=$as_save_IFS
40677 esac
40679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40680 if test -n "$PKG_CONFIG"; then
40681 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40682 echo "${ECHO_T}$PKG_CONFIG" >&6; }
40683 else
40684 { echo "$as_me:$LINENO: result: no" >&5
40685 echo "${ECHO_T}no" >&6; }
40690 if test -z "$ac_cv_path_PKG_CONFIG"; then
40691 ac_pt_PKG_CONFIG=$PKG_CONFIG
40692 # Extract the first word of "pkg-config", so it can be a program name with args.
40693 set dummy pkg-config; ac_word=$2
40694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40696 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
40697 echo $ECHO_N "(cached) $ECHO_C" >&6
40698 else
40699 case $ac_pt_PKG_CONFIG in
40700 [\\/]* | ?:[\\/]*)
40701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
40704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40705 for as_dir in $PATH
40707 IFS=$as_save_IFS
40708 test -z "$as_dir" && as_dir=.
40709 for ac_exec_ext in '' $ac_executable_extensions; do
40710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40711 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40713 break 2
40715 done
40716 done
40717 IFS=$as_save_IFS
40720 esac
40722 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
40723 if test -n "$ac_pt_PKG_CONFIG"; then
40724 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
40725 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
40726 else
40727 { echo "$as_me:$LINENO: result: no" >&5
40728 echo "${ECHO_T}no" >&6; }
40731 if test "x$ac_pt_PKG_CONFIG" = x; then
40732 PKG_CONFIG=""
40733 else
40734 case $cross_compiling:$ac_tool_warned in
40735 yes:)
40736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
40737 whose name does not start with the host triplet. If you think this
40738 configuration is useful to you, please write to autoconf@gnu.org." >&5
40739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
40740 whose name does not start with the host triplet. If you think this
40741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
40742 ac_tool_warned=yes ;;
40743 esac
40744 PKG_CONFIG=$ac_pt_PKG_CONFIG
40746 else
40747 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
40751 if test -n "$PKG_CONFIG"; then
40752 _pkg_min_version=0.9.0
40753 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
40754 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
40755 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
40756 { echo "$as_me:$LINENO: result: yes" >&5
40757 echo "${ECHO_T}yes" >&6; }
40758 else
40759 { echo "$as_me:$LINENO: result: no" >&5
40760 echo "${ECHO_T}no" >&6; }
40761 PKG_CONFIG=""
40766 pkg_failed=no
40767 { echo "$as_me:$LINENO: checking for GTK" >&5
40768 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
40770 if test -n "$PKG_CONFIG"; then
40771 if test -n "$GTK_CFLAGS"; then
40772 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
40773 else
40774 if test -n "$PKG_CONFIG" && \
40775 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
40776 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
40777 ac_status=$?
40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779 (exit $ac_status); }; then
40780 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
40781 else
40782 pkg_failed=yes
40785 else
40786 pkg_failed=untried
40788 if test -n "$PKG_CONFIG"; then
40789 if test -n "$GTK_LIBS"; then
40790 pkg_cv_GTK_LIBS="$GTK_LIBS"
40791 else
40792 if test -n "$PKG_CONFIG" && \
40793 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
40794 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
40795 ac_status=$?
40796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40797 (exit $ac_status); }; then
40798 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
40799 else
40800 pkg_failed=yes
40803 else
40804 pkg_failed=untried
40809 if test $pkg_failed = yes; then
40811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40812 _pkg_short_errors_supported=yes
40813 else
40814 _pkg_short_errors_supported=no
40816 if test $_pkg_short_errors_supported = yes; then
40817 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
40818 else
40819 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
40821 # Put the nasty error message in config.log where it belongs
40822 echo "$GTK_PKG_ERRORS" >&5
40824 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
40826 $GTK_PKG_ERRORS
40828 Consider adjusting the PKG_CONFIG_PATH environment variable if you
40829 installed software in a non-standard prefix.
40831 Alternatively, you may set the environment variables GTK_CFLAGS
40832 and GTK_LIBS to avoid the need to call pkg-config.
40833 See the pkg-config man page for more details.
40834 " >&5
40835 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
40837 $GTK_PKG_ERRORS
40839 Consider adjusting the PKG_CONFIG_PATH environment variable if you
40840 installed software in a non-standard prefix.
40842 Alternatively, you may set the environment variables GTK_CFLAGS
40843 and GTK_LIBS to avoid the need to call pkg-config.
40844 See the pkg-config man page for more details.
40845 " >&2;}
40846 { (exit 1); exit 1; }; }
40847 elif test $pkg_failed = untried; then
40848 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
40849 is in your PATH or set the PKG_CONFIG environment variable to the full
40850 path to pkg-config.
40852 Alternatively, you may set the environment variables GTK_CFLAGS
40853 and GTK_LIBS to avoid the need to call pkg-config.
40854 See the pkg-config man page for more details.
40856 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
40857 See \`config.log' for more details." >&5
40858 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
40859 is in your PATH or set the PKG_CONFIG environment variable to the full
40860 path to pkg-config.
40862 Alternatively, you may set the environment variables GTK_CFLAGS
40863 and GTK_LIBS to avoid the need to call pkg-config.
40864 See the pkg-config man page for more details.
40866 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
40867 See \`config.log' for more details." >&2;}
40868 { (exit 1); exit 1; }; }
40869 else
40870 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
40871 GTK_LIBS=$pkg_cv_GTK_LIBS
40872 { echo "$as_me:$LINENO: result: yes" >&5
40873 echo "${ECHO_T}yes" >&6; }
40875 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
40876 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
40879 else
40880 # if gtk-config exists, then add it to the cflags.
40881 gtkconf=`gtk-config --cflags`
40882 if test $? = 0; then
40883 # gtk-config was found and returned 0, so it must return valid output
40884 WX_CFLAGS="$WX_CFLAGS $gtkconf"
40885 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
40888 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
40889 # the files in gui/*.cc. They are not used when building other things
40890 # such as bximage.
40891 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
40892 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
40893 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
40894 # using debugger with readline is failing due to thread/signal handler
40895 # problems.
40896 case $target in
40897 *-pc-windows* | *-cygwin* | *-mingw32*)
40898 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
40899 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
40901 esac
40904 if test "$with_nogui" = yes; then
40905 display_libs="$display_libs nogui"
40906 cat >>confdefs.h <<\_ACEOF
40907 #define BX_WITH_NOGUI 1
40908 _ACEOF
40910 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
40913 { echo "$as_me:$LINENO: checking for display libraries" >&5
40914 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
40915 { echo "$as_me:$LINENO: result: $display_libs" >&5
40916 echo "${ECHO_T}$display_libs" >&6; }
40918 if test "$display_libs" = ""; then
40919 echo "No display libraries were selected. Use --with-* options to enable"
40920 echo "individual display libraries, or --with-all-libs to detect the ones"
40921 echo "that Bochs supports."
40922 exit 1
40925 if test "$display_libs" = " wxWidgets"; then
40926 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
40927 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
40928 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40929 echo "${ECHO_T}wxWidgets" >&6; }
40930 { echo "$as_me:$LINENO: checking for default display library" >&5
40931 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
40932 { echo "$as_me:$LINENO: result: wxWidgets" >&5
40933 echo "${ECHO_T}wxWidgets" >&6; }
40934 cat >>confdefs.h <<\_ACEOF
40935 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
40936 _ACEOF
40938 cat >>confdefs.h <<\_ACEOF
40939 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
40940 _ACEOF
40942 cat >>confdefs.h <<\_ACEOF
40943 #define BX_USE_TEXTCONFIG 0
40944 _ACEOF
40946 else
40947 cat >>confdefs.h <<\_ACEOF
40948 #define BX_USE_TEXTCONFIG 1
40949 _ACEOF
40953 if test "$bx_plugins" = 1; then
40954 # every item in this list will be compiled as a plugin. Do not include
40955 # support objs; they will be mentioned in plugin-specific makefile rules.
40956 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
40957 else
40958 # include support objs
40959 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
40968 for ac_prog in wget curl fetch
40970 # Extract the first word of "$ac_prog", so it can be a program name with args.
40971 set dummy $ac_prog; ac_word=$2
40972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
40973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40974 if test "${ac_cv_prog_WGET+set}" = set; then
40975 echo $ECHO_N "(cached) $ECHO_C" >&6
40976 else
40977 if test -n "$WGET"; then
40978 ac_cv_prog_WGET="$WGET" # Let the user override the test.
40979 else
40980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40981 for as_dir in $PATH
40983 IFS=$as_save_IFS
40984 test -z "$as_dir" && as_dir=.
40985 for ac_exec_ext in '' $ac_executable_extensions; do
40986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40987 ac_cv_prog_WGET="$ac_prog"
40988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40989 break 2
40991 done
40992 done
40993 IFS=$as_save_IFS
40997 WGET=$ac_cv_prog_WGET
40998 if test -n "$WGET"; then
40999 { echo "$as_me:$LINENO: result: $WGET" >&5
41000 echo "${ECHO_T}$WGET" >&6; }
41001 else
41002 { echo "$as_me:$LINENO: result: no" >&5
41003 echo "${ECHO_T}no" >&6; }
41007 test -n "$WGET" && break
41008 done
41009 test -n "$WGET" || WGET="not_found"
41011 if test "$WGET" = not_found; then
41012 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
41013 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
41015 # everybody has to re-invent the wheel. differently.
41016 test "${WGET}" = "curl" && WGET="curl -O"
41018 # modify settings based on target platform
41019 case "$target" in
41020 *-macosx*)
41021 cat >>confdefs.h <<\_ACEOF
41022 #define BX_HAVE_STRDUP 0
41023 _ACEOF
41026 *-macos*)
41027 cat >>confdefs.h <<\_ACEOF
41028 #define BX_HAVE_STRDUP 0
41029 _ACEOF
41031 cat >>confdefs.h <<\_ACEOF
41032 #define BX_PLUGINS 0
41033 _ACEOF
41035 cat >>confdefs.h <<\_ACEOF
41036 #define BX_HAVE_DLFCN_H 0
41037 _ACEOF
41039 cat >>confdefs.h <<\_ACEOF
41040 #define BX_HAVE_SOCKLEN_T 0
41041 _ACEOF
41043 cat >>confdefs.h <<\_ACEOF
41044 #define BX_HAVE_SELECT 0
41045 _ACEOF
41047 cat >>confdefs.h <<\_ACEOF
41048 #define BX_HAVE_GETTIMEOFDAY 0
41049 _ACEOF
41051 cat >>confdefs.h <<\_ACEOF
41052 #define BX_NO_ATTRIBUTES 1
41053 _ACEOF
41055 cat >>confdefs.h <<\_ACEOF
41056 #define HAVE_TUNTAP 0
41057 _ACEOF
41059 cat >>confdefs.h <<\_ACEOF
41060 #define HAVE_ETHERTAP 0
41061 _ACEOF
41063 cat >>confdefs.h <<\_ACEOF
41064 #define BX_HAVE_HASH_MAP 0
41065 _ACEOF
41068 *-pc-windows*)
41069 INSTALL_TARGET='install_win32'
41070 CC="cl"
41071 CXX="$CC"
41072 #C_OPT="/Zi" # for debugging
41073 C_OPT="/Ox" # optimize for speed
41074 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
41075 CXXFLAGS="$CFLAGS"
41076 DASH="/"
41077 SLASH="\\"
41078 CXXFP="/Tp"
41079 CFP="/Tc"
41080 OFP="/Fo"
41081 MAKE=nmake
41082 MAKELIB="lib /nologo /subsystem:console /machine:I386 /verbose /out:\$@"
41083 RMCOMMAND="-del"
41084 RANLIB="echo"
41085 #L_OPT="/debug" # for debugging
41086 L_OPT="" # no debug info
41087 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /machine:I386 /out:\$@ "
41088 LINK_CONSOLE=$LINK
41089 EXE=".exe"
41090 PRIMARY_TARGET="bochs.exe"
41091 BXIMAGE_LINK_OPTS="user32.lib"
41092 # also compile niclist if networking is on
41093 if test "$networking" = yes; then
41094 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41096 COMMAND_SEPARATOR=""
41097 CD_UP_ONE="cd .."
41098 CD_UP_TWO="cd ..\.."
41099 CD_UP_THREE="cd ..\..\.."
41100 have_gettimeofday=0 # even though it may exist in build environment
41101 cat >>confdefs.h <<\_ACEOF
41102 #define BX_64BIT_CONSTANTS_USE_LL 0
41103 _ACEOF
41105 cat >>confdefs.h <<\_ACEOF
41106 #define inline __inline
41107 _ACEOF
41109 cat >>confdefs.h <<\_ACEOF
41110 #define BX_NO_EMPTY_STRUCTS 1
41111 _ACEOF
41113 cat >>confdefs.h <<\_ACEOF
41114 #define BX_NO_ATTRIBUTES 1
41115 _ACEOF
41117 cat >>confdefs.h <<\_ACEOF
41118 #define BX_HAVE_HASH_MAP 0
41119 _ACEOF
41121 cat >>confdefs.h <<\_ACEOF
41122 #define BX_HAVE_HASH_MAP_H 0
41123 _ACEOF
41125 cat >>confdefs.h <<\_ACEOF
41126 #define BX_HAVE_STRTOULL 0
41127 _ACEOF
41129 cat >>confdefs.h <<\_ACEOF
41130 #define BX_HAVE_STRTOUQ 0
41131 _ACEOF
41133 cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_LIBREADLINE 0
41135 _ACEOF
41137 cat >>confdefs.h <<\_ACEOF
41138 #define BX_HAVE_GETTIMEOFDAY 0
41139 _ACEOF
41141 cat >>confdefs.h <<\_ACEOF
41142 #define BX_HAVE_DLFCN_H 0
41143 _ACEOF
41145 cat >>confdefs.h <<\_ACEOF
41146 #define BX_HAVE_MKSTEMP 0
41147 _ACEOF
41149 cat >>confdefs.h <<\_ACEOF
41150 #define BX_HAVE_SYS_MMAN_H 0
41151 _ACEOF
41153 cat >>confdefs.h <<\_ACEOF
41154 #define BX_HAVE_USLEEP 0
41155 _ACEOF
41157 cat >>confdefs.h <<\_ACEOF
41158 #define HAVE_ETHERTAP 0
41159 _ACEOF
41161 cat >>confdefs.h <<\_ACEOF
41162 #define BX_HAVE_SELECT 1
41163 _ACEOF
41165 cat >>confdefs.h <<\_ACEOF
41166 #define BX_HAVE_SOCKLEN_T 0
41167 _ACEOF
41170 *-pc-cygwin*)
41171 EXE=".exe"
41172 PRIMARY_TARGET="bochs.exe"
41173 BXIMAGE_LINK_OPTS="-luser32"
41174 if test "$networking" = yes; then
41175 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
41177 cat >>confdefs.h <<\_ACEOF
41178 #define BX_HAVE_SELECT 1
41179 _ACEOF
41182 *-pc-mingw*)
41183 BXIMAGE_LINK_OPTS="-luser32"
41184 if test "$networking" = yes; then
41185 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
41187 cat >>confdefs.h <<\_ACEOF
41188 #define BX_HAVE_SELECT 1
41189 _ACEOF
41192 *-beos*)
41193 PRIMARY_TARGET=.bochs_beos_target
41195 esac
41197 DIALOG_OBJS=""
41198 EXPORT_DYNAMIC="-export-dynamic"
41199 case $target in
41200 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
41201 if test "$bx_plugins" = 1; then
41202 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
41203 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
41204 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
41205 echo $ECHO_N "(cached) $ECHO_C" >&6
41206 else
41207 ac_check_lib_save_LIBS=$LIBS
41208 LIBS="-lmingwex $LIBS"
41209 cat >conftest.$ac_ext <<_ACEOF
41210 /* confdefs.h. */
41211 _ACEOF
41212 cat confdefs.h >>conftest.$ac_ext
41213 cat >>conftest.$ac_ext <<_ACEOF
41214 /* end confdefs.h. */
41216 /* Override any GCC internal prototype to avoid an error.
41217 Use char because int might match the return type of a GCC
41218 builtin and then its argument prototype would still apply. */
41219 #ifdef __cplusplus
41220 extern "C"
41221 #endif
41222 char opendir ();
41224 main ()
41226 return opendir ();
41228 return 0;
41230 _ACEOF
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (ac_try="$ac_link"
41233 case "(($ac_try" in
41234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41235 *) ac_try_echo=$ac_try;;
41236 esac
41237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41238 (eval "$ac_link") 2>conftest.er1
41239 ac_status=$?
41240 grep -v '^ *+' conftest.er1 >conftest.err
41241 rm -f conftest.er1
41242 cat conftest.err >&5
41243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244 (exit $ac_status); } &&
41245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41246 { (case "(($ac_try" in
41247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41248 *) ac_try_echo=$ac_try;;
41249 esac
41250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41251 (eval "$ac_try") 2>&5
41252 ac_status=$?
41253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41254 (exit $ac_status); }; } &&
41255 { ac_try='test -s conftest$ac_exeext'
41256 { (case "(($ac_try" in
41257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41258 *) ac_try_echo=$ac_try;;
41259 esac
41260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41261 (eval "$ac_try") 2>&5
41262 ac_status=$?
41263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41264 (exit $ac_status); }; }; then
41265 ac_cv_lib_mingwex_opendir=yes
41266 else
41267 echo "$as_me: failed program was:" >&5
41268 sed 's/^/| /' conftest.$ac_ext >&5
41270 ac_cv_lib_mingwex_opendir=no
41273 rm -f core conftest.err conftest.$ac_objext \
41274 conftest$ac_exeext conftest.$ac_ext
41275 LIBS=$ac_check_lib_save_LIBS
41277 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
41278 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
41279 if test $ac_cv_lib_mingwex_opendir = yes; then
41280 LIBS="$LIBS -lmingwex"
41283 # set variables for building DLL plugins
41284 PRIMARY_TARGET=".win32_dll_plugin_target"
41285 PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
41286 INSTALL_PLUGINS_VAR=install_dll_plugins
41287 else
41288 if test "$with_win32" != yes; then
41289 LIBS="$LIBS -lcomctl32"
41292 DIALOG_OBJS="win32dialog.o"
41293 EXPORT_DYNAMIC=""
41295 esac
41299 if test "$use_curses" = yes -a "$cross_configure" = 0; then
41300 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
41301 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
41302 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
41303 echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305 ac_check_lib_save_LIBS=$LIBS
41306 LIBS="-lcurses $LIBS"
41307 cat >conftest.$ac_ext <<_ACEOF
41308 /* confdefs.h. */
41309 _ACEOF
41310 cat confdefs.h >>conftest.$ac_ext
41311 cat >>conftest.$ac_ext <<_ACEOF
41312 /* end confdefs.h. */
41314 /* Override any GCC internal prototype to avoid an error.
41315 Use char because int might match the return type of a GCC
41316 builtin and then its argument prototype would still apply. */
41317 #ifdef __cplusplus
41318 extern "C"
41319 #endif
41320 char mvaddch ();
41322 main ()
41324 return mvaddch ();
41326 return 0;
41328 _ACEOF
41329 rm -f conftest.$ac_objext conftest$ac_exeext
41330 if { (ac_try="$ac_link"
41331 case "(($ac_try" in
41332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41333 *) ac_try_echo=$ac_try;;
41334 esac
41335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41336 (eval "$ac_link") 2>conftest.er1
41337 ac_status=$?
41338 grep -v '^ *+' conftest.er1 >conftest.err
41339 rm -f conftest.er1
41340 cat conftest.err >&5
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); } &&
41343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41344 { (case "(($ac_try" in
41345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41346 *) ac_try_echo=$ac_try;;
41347 esac
41348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41349 (eval "$ac_try") 2>&5
41350 ac_status=$?
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); }; } &&
41353 { ac_try='test -s conftest$ac_exeext'
41354 { (case "(($ac_try" in
41355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41356 *) ac_try_echo=$ac_try;;
41357 esac
41358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41359 (eval "$ac_try") 2>&5
41360 ac_status=$?
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_lib_curses_mvaddch=yes
41364 else
41365 echo "$as_me: failed program was:" >&5
41366 sed 's/^/| /' conftest.$ac_ext >&5
41368 ac_cv_lib_curses_mvaddch=no
41371 rm -f core conftest.err conftest.$ac_objext \
41372 conftest$ac_exeext conftest.$ac_ext
41373 LIBS=$ac_check_lib_save_LIBS
41375 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
41376 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
41377 if test $ac_cv_lib_curses_mvaddch = yes; then
41378 GUI_LINK_OPTS_TERM='-lcurses'
41381 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
41382 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
41383 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
41384 echo $ECHO_N "(cached) $ECHO_C" >&6
41385 else
41386 ac_check_lib_save_LIBS=$LIBS
41387 LIBS="-lncurses $LIBS"
41388 cat >conftest.$ac_ext <<_ACEOF
41389 /* confdefs.h. */
41390 _ACEOF
41391 cat confdefs.h >>conftest.$ac_ext
41392 cat >>conftest.$ac_ext <<_ACEOF
41393 /* end confdefs.h. */
41395 /* Override any GCC internal prototype to avoid an error.
41396 Use char because int might match the return type of a GCC
41397 builtin and then its argument prototype would still apply. */
41398 #ifdef __cplusplus
41399 extern "C"
41400 #endif
41401 char mvaddch ();
41403 main ()
41405 return mvaddch ();
41407 return 0;
41409 _ACEOF
41410 rm -f conftest.$ac_objext conftest$ac_exeext
41411 if { (ac_try="$ac_link"
41412 case "(($ac_try" in
41413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41414 *) ac_try_echo=$ac_try;;
41415 esac
41416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41417 (eval "$ac_link") 2>conftest.er1
41418 ac_status=$?
41419 grep -v '^ *+' conftest.er1 >conftest.err
41420 rm -f conftest.er1
41421 cat conftest.err >&5
41422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423 (exit $ac_status); } &&
41424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41425 { (case "(($ac_try" in
41426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41427 *) ac_try_echo=$ac_try;;
41428 esac
41429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41430 (eval "$ac_try") 2>&5
41431 ac_status=$?
41432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41433 (exit $ac_status); }; } &&
41434 { ac_try='test -s conftest$ac_exeext'
41435 { (case "(($ac_try" in
41436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41437 *) ac_try_echo=$ac_try;;
41438 esac
41439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41440 (eval "$ac_try") 2>&5
41441 ac_status=$?
41442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41443 (exit $ac_status); }; }; then
41444 ac_cv_lib_ncurses_mvaddch=yes
41445 else
41446 echo "$as_me: failed program was:" >&5
41447 sed 's/^/| /' conftest.$ac_ext >&5
41449 ac_cv_lib_ncurses_mvaddch=no
41452 rm -f core conftest.err conftest.$ac_objext \
41453 conftest$ac_exeext conftest.$ac_ext
41454 LIBS=$ac_check_lib_save_LIBS
41456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
41457 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
41458 if test $ac_cv_lib_ncurses_mvaddch = yes; then
41459 GUI_LINK_OPTS_TERM='-lncurses'
41462 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
41463 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
41464 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
41465 echo $ECHO_N "(cached) $ECHO_C" >&6
41466 else
41467 ac_check_lib_save_LIBS=$LIBS
41468 LIBS="-ltermlib $LIBS"
41469 cat >conftest.$ac_ext <<_ACEOF
41470 /* confdefs.h. */
41471 _ACEOF
41472 cat confdefs.h >>conftest.$ac_ext
41473 cat >>conftest.$ac_ext <<_ACEOF
41474 /* end confdefs.h. */
41476 /* Override any GCC internal prototype to avoid an error.
41477 Use char because int might match the return type of a GCC
41478 builtin and then its argument prototype would still apply. */
41479 #ifdef __cplusplus
41480 extern "C"
41481 #endif
41482 char mvaddch ();
41484 main ()
41486 return mvaddch ();
41488 return 0;
41490 _ACEOF
41491 rm -f conftest.$ac_objext conftest$ac_exeext
41492 if { (ac_try="$ac_link"
41493 case "(($ac_try" in
41494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41495 *) ac_try_echo=$ac_try;;
41496 esac
41497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41498 (eval "$ac_link") 2>conftest.er1
41499 ac_status=$?
41500 grep -v '^ *+' conftest.er1 >conftest.err
41501 rm -f conftest.er1
41502 cat conftest.err >&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } &&
41505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41506 { (case "(($ac_try" in
41507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41508 *) ac_try_echo=$ac_try;;
41509 esac
41510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41511 (eval "$ac_try") 2>&5
41512 ac_status=$?
41513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41514 (exit $ac_status); }; } &&
41515 { ac_try='test -s conftest$ac_exeext'
41516 { (case "(($ac_try" in
41517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41518 *) ac_try_echo=$ac_try;;
41519 esac
41520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41521 (eval "$ac_try") 2>&5
41522 ac_status=$?
41523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41524 (exit $ac_status); }; }; then
41525 ac_cv_lib_termlib_mvaddch=yes
41526 else
41527 echo "$as_me: failed program was:" >&5
41528 sed 's/^/| /' conftest.$ac_ext >&5
41530 ac_cv_lib_termlib_mvaddch=no
41533 rm -f core conftest.err conftest.$ac_objext \
41534 conftest$ac_exeext conftest.$ac_ext
41535 LIBS=$ac_check_lib_save_LIBS
41537 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
41538 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
41539 if test $ac_cv_lib_termlib_mvaddch = yes; then
41540 GUI_LINK_OPTS_TERM='-ltermlib'
41543 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
41544 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
41545 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
41546 echo $ECHO_N "(cached) $ECHO_C" >&6
41547 else
41548 ac_check_lib_save_LIBS=$LIBS
41549 LIBS="-lpdcurses $LIBS"
41550 cat >conftest.$ac_ext <<_ACEOF
41551 /* confdefs.h. */
41552 _ACEOF
41553 cat confdefs.h >>conftest.$ac_ext
41554 cat >>conftest.$ac_ext <<_ACEOF
41555 /* end confdefs.h. */
41557 /* Override any GCC internal prototype to avoid an error.
41558 Use char because int might match the return type of a GCC
41559 builtin and then its argument prototype would still apply. */
41560 #ifdef __cplusplus
41561 extern "C"
41562 #endif
41563 char mvaddch ();
41565 main ()
41567 return mvaddch ();
41569 return 0;
41571 _ACEOF
41572 rm -f conftest.$ac_objext conftest$ac_exeext
41573 if { (ac_try="$ac_link"
41574 case "(($ac_try" in
41575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41576 *) ac_try_echo=$ac_try;;
41577 esac
41578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41579 (eval "$ac_link") 2>conftest.er1
41580 ac_status=$?
41581 grep -v '^ *+' conftest.er1 >conftest.err
41582 rm -f conftest.er1
41583 cat conftest.err >&5
41584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41585 (exit $ac_status); } &&
41586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41587 { (case "(($ac_try" in
41588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41589 *) ac_try_echo=$ac_try;;
41590 esac
41591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41592 (eval "$ac_try") 2>&5
41593 ac_status=$?
41594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595 (exit $ac_status); }; } &&
41596 { ac_try='test -s conftest$ac_exeext'
41597 { (case "(($ac_try" in
41598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41599 *) ac_try_echo=$ac_try;;
41600 esac
41601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41602 (eval "$ac_try") 2>&5
41603 ac_status=$?
41604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41605 (exit $ac_status); }; }; then
41606 ac_cv_lib_pdcurses_mvaddch=yes
41607 else
41608 echo "$as_me: failed program was:" >&5
41609 sed 's/^/| /' conftest.$ac_ext >&5
41611 ac_cv_lib_pdcurses_mvaddch=no
41614 rm -f core conftest.err conftest.$ac_objext \
41615 conftest$ac_exeext conftest.$ac_ext
41616 LIBS=$ac_check_lib_save_LIBS
41618 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
41619 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
41620 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
41621 GUI_LINK_OPTS_TERM='-lpdcurses'
41624 if test "$GUI_LINK_OPTS_TERM" = ""; then
41625 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
41626 exit 1
41630 if test "$with_term" = yes; then
41631 old_LIBS="$LIBS"
41632 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
41634 for ac_func in color_set
41636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41640 echo $ECHO_N "(cached) $ECHO_C" >&6
41641 else
41642 cat >conftest.$ac_ext <<_ACEOF
41643 /* confdefs.h. */
41644 _ACEOF
41645 cat confdefs.h >>conftest.$ac_ext
41646 cat >>conftest.$ac_ext <<_ACEOF
41647 /* end confdefs.h. */
41648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41650 #define $ac_func innocuous_$ac_func
41652 /* System header to define __stub macros and hopefully few prototypes,
41653 which can conflict with char $ac_func (); below.
41654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41655 <limits.h> exists even on freestanding compilers. */
41657 #ifdef __STDC__
41658 # include <limits.h>
41659 #else
41660 # include <assert.h>
41661 #endif
41663 #undef $ac_func
41665 /* Override any GCC internal prototype to avoid an error.
41666 Use char because int might match the return type of a GCC
41667 builtin and then its argument prototype would still apply. */
41668 #ifdef __cplusplus
41669 extern "C"
41670 #endif
41671 char $ac_func ();
41672 /* The GNU C library defines this for functions which it implements
41673 to always fail with ENOSYS. Some functions are actually named
41674 something starting with __ and the normal name is an alias. */
41675 #if defined __stub_$ac_func || defined __stub___$ac_func
41676 choke me
41677 #endif
41680 main ()
41682 return $ac_func ();
41684 return 0;
41686 _ACEOF
41687 rm -f conftest.$ac_objext conftest$ac_exeext
41688 if { (ac_try="$ac_link"
41689 case "(($ac_try" in
41690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41691 *) ac_try_echo=$ac_try;;
41692 esac
41693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41694 (eval "$ac_link") 2>conftest.er1
41695 ac_status=$?
41696 grep -v '^ *+' conftest.er1 >conftest.err
41697 rm -f conftest.er1
41698 cat conftest.err >&5
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); } &&
41701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41702 { (case "(($ac_try" in
41703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41704 *) ac_try_echo=$ac_try;;
41705 esac
41706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41707 (eval "$ac_try") 2>&5
41708 ac_status=$?
41709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41710 (exit $ac_status); }; } &&
41711 { ac_try='test -s conftest$ac_exeext'
41712 { (case "(($ac_try" in
41713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41714 *) ac_try_echo=$ac_try;;
41715 esac
41716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41717 (eval "$ac_try") 2>&5
41718 ac_status=$?
41719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41720 (exit $ac_status); }; }; then
41721 eval "$as_ac_var=yes"
41722 else
41723 echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41726 eval "$as_ac_var=no"
41729 rm -f core conftest.err conftest.$ac_objext \
41730 conftest$ac_exeext conftest.$ac_ext
41732 ac_res=`eval echo '${'$as_ac_var'}'`
41733 { echo "$as_me:$LINENO: result: $ac_res" >&5
41734 echo "${ECHO_T}$ac_res" >&6; }
41735 if test `eval echo '${'$as_ac_var'}'` = yes; then
41736 cat >>confdefs.h <<_ACEOF
41737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41738 _ACEOF
41739 cat >>confdefs.h <<\_ACEOF
41740 #define BX_HAVE_COLOR_SET 1
41741 _ACEOF
41744 done
41747 for ac_func in mvhline
41749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41753 echo $ECHO_N "(cached) $ECHO_C" >&6
41754 else
41755 cat >conftest.$ac_ext <<_ACEOF
41756 /* confdefs.h. */
41757 _ACEOF
41758 cat confdefs.h >>conftest.$ac_ext
41759 cat >>conftest.$ac_ext <<_ACEOF
41760 /* end confdefs.h. */
41761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41763 #define $ac_func innocuous_$ac_func
41765 /* System header to define __stub macros and hopefully few prototypes,
41766 which can conflict with char $ac_func (); below.
41767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41768 <limits.h> exists even on freestanding compilers. */
41770 #ifdef __STDC__
41771 # include <limits.h>
41772 #else
41773 # include <assert.h>
41774 #endif
41776 #undef $ac_func
41778 /* Override any GCC internal prototype to avoid an error.
41779 Use char because int might match the return type of a GCC
41780 builtin and then its argument prototype would still apply. */
41781 #ifdef __cplusplus
41782 extern "C"
41783 #endif
41784 char $ac_func ();
41785 /* The GNU C library defines this for functions which it implements
41786 to always fail with ENOSYS. Some functions are actually named
41787 something starting with __ and the normal name is an alias. */
41788 #if defined __stub_$ac_func || defined __stub___$ac_func
41789 choke me
41790 #endif
41793 main ()
41795 return $ac_func ();
41797 return 0;
41799 _ACEOF
41800 rm -f conftest.$ac_objext conftest$ac_exeext
41801 if { (ac_try="$ac_link"
41802 case "(($ac_try" in
41803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41804 *) ac_try_echo=$ac_try;;
41805 esac
41806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41807 (eval "$ac_link") 2>conftest.er1
41808 ac_status=$?
41809 grep -v '^ *+' conftest.er1 >conftest.err
41810 rm -f conftest.er1
41811 cat conftest.err >&5
41812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813 (exit $ac_status); } &&
41814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41815 { (case "(($ac_try" in
41816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41817 *) ac_try_echo=$ac_try;;
41818 esac
41819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41820 (eval "$ac_try") 2>&5
41821 ac_status=$?
41822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823 (exit $ac_status); }; } &&
41824 { ac_try='test -s conftest$ac_exeext'
41825 { (case "(($ac_try" in
41826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41827 *) ac_try_echo=$ac_try;;
41828 esac
41829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41830 (eval "$ac_try") 2>&5
41831 ac_status=$?
41832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41833 (exit $ac_status); }; }; then
41834 eval "$as_ac_var=yes"
41835 else
41836 echo "$as_me: failed program was:" >&5
41837 sed 's/^/| /' conftest.$ac_ext >&5
41839 eval "$as_ac_var=no"
41842 rm -f core conftest.err conftest.$ac_objext \
41843 conftest$ac_exeext conftest.$ac_ext
41845 ac_res=`eval echo '${'$as_ac_var'}'`
41846 { echo "$as_me:$LINENO: result: $ac_res" >&5
41847 echo "${ECHO_T}$ac_res" >&6; }
41848 if test `eval echo '${'$as_ac_var'}'` = yes; then
41849 cat >>confdefs.h <<_ACEOF
41850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41851 _ACEOF
41852 cat >>confdefs.h <<\_ACEOF
41853 #define BX_HAVE_MVHLINE 1
41854 _ACEOF
41857 done
41860 for ac_func in mvvline
41862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41866 echo $ECHO_N "(cached) $ECHO_C" >&6
41867 else
41868 cat >conftest.$ac_ext <<_ACEOF
41869 /* confdefs.h. */
41870 _ACEOF
41871 cat confdefs.h >>conftest.$ac_ext
41872 cat >>conftest.$ac_ext <<_ACEOF
41873 /* end confdefs.h. */
41874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41876 #define $ac_func innocuous_$ac_func
41878 /* System header to define __stub macros and hopefully few prototypes,
41879 which can conflict with char $ac_func (); below.
41880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41881 <limits.h> exists even on freestanding compilers. */
41883 #ifdef __STDC__
41884 # include <limits.h>
41885 #else
41886 # include <assert.h>
41887 #endif
41889 #undef $ac_func
41891 /* Override any GCC internal prototype to avoid an error.
41892 Use char because int might match the return type of a GCC
41893 builtin and then its argument prototype would still apply. */
41894 #ifdef __cplusplus
41895 extern "C"
41896 #endif
41897 char $ac_func ();
41898 /* The GNU C library defines this for functions which it implements
41899 to always fail with ENOSYS. Some functions are actually named
41900 something starting with __ and the normal name is an alias. */
41901 #if defined __stub_$ac_func || defined __stub___$ac_func
41902 choke me
41903 #endif
41906 main ()
41908 return $ac_func ();
41910 return 0;
41912 _ACEOF
41913 rm -f conftest.$ac_objext conftest$ac_exeext
41914 if { (ac_try="$ac_link"
41915 case "(($ac_try" in
41916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41917 *) ac_try_echo=$ac_try;;
41918 esac
41919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41920 (eval "$ac_link") 2>conftest.er1
41921 ac_status=$?
41922 grep -v '^ *+' conftest.er1 >conftest.err
41923 rm -f conftest.er1
41924 cat conftest.err >&5
41925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41926 (exit $ac_status); } &&
41927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41928 { (case "(($ac_try" in
41929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41930 *) ac_try_echo=$ac_try;;
41931 esac
41932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41933 (eval "$ac_try") 2>&5
41934 ac_status=$?
41935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41936 (exit $ac_status); }; } &&
41937 { ac_try='test -s conftest$ac_exeext'
41938 { (case "(($ac_try" in
41939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41940 *) ac_try_echo=$ac_try;;
41941 esac
41942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41943 (eval "$ac_try") 2>&5
41944 ac_status=$?
41945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41946 (exit $ac_status); }; }; then
41947 eval "$as_ac_var=yes"
41948 else
41949 echo "$as_me: failed program was:" >&5
41950 sed 's/^/| /' conftest.$ac_ext >&5
41952 eval "$as_ac_var=no"
41955 rm -f core conftest.err conftest.$ac_objext \
41956 conftest$ac_exeext conftest.$ac_ext
41958 ac_res=`eval echo '${'$as_ac_var'}'`
41959 { echo "$as_me:$LINENO: result: $ac_res" >&5
41960 echo "${ECHO_T}$ac_res" >&6; }
41961 if test `eval echo '${'$as_ac_var'}'` = yes; then
41962 cat >>confdefs.h <<_ACEOF
41963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41964 _ACEOF
41965 cat >>confdefs.h <<\_ACEOF
41966 #define BX_HAVE_MVVLINE 1
41967 _ACEOF
41970 done
41972 LIBS="$old_LIBS"
41975 if test "$with_rfb" = yes; then
41976 # we need the socket function
41977 case $target in
41978 *-pc-windows*)
41979 # is this okay without a check ?
41980 RFB_LIBS="$RFB_LIBS wsock32.lib"
41981 have_socket=yes
41983 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
41984 # is this okay without a check ?
41985 RFB_LIBS="$RFB_LIBS -lwsock32"
41986 have_socket=yes
41990 for ac_func in socket
41992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41993 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41995 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41996 echo $ECHO_N "(cached) $ECHO_C" >&6
41997 else
41998 cat >conftest.$ac_ext <<_ACEOF
41999 /* confdefs.h. */
42000 _ACEOF
42001 cat confdefs.h >>conftest.$ac_ext
42002 cat >>conftest.$ac_ext <<_ACEOF
42003 /* end confdefs.h. */
42004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42006 #define $ac_func innocuous_$ac_func
42008 /* System header to define __stub macros and hopefully few prototypes,
42009 which can conflict with char $ac_func (); below.
42010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42011 <limits.h> exists even on freestanding compilers. */
42013 #ifdef __STDC__
42014 # include <limits.h>
42015 #else
42016 # include <assert.h>
42017 #endif
42019 #undef $ac_func
42021 /* Override any GCC internal prototype to avoid an error.
42022 Use char because int might match the return type of a GCC
42023 builtin and then its argument prototype would still apply. */
42024 #ifdef __cplusplus
42025 extern "C"
42026 #endif
42027 char $ac_func ();
42028 /* The GNU C library defines this for functions which it implements
42029 to always fail with ENOSYS. Some functions are actually named
42030 something starting with __ and the normal name is an alias. */
42031 #if defined __stub_$ac_func || defined __stub___$ac_func
42032 choke me
42033 #endif
42036 main ()
42038 return $ac_func ();
42040 return 0;
42042 _ACEOF
42043 rm -f conftest.$ac_objext conftest$ac_exeext
42044 if { (ac_try="$ac_link"
42045 case "(($ac_try" in
42046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42047 *) ac_try_echo=$ac_try;;
42048 esac
42049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42050 (eval "$ac_link") 2>conftest.er1
42051 ac_status=$?
42052 grep -v '^ *+' conftest.er1 >conftest.err
42053 rm -f conftest.er1
42054 cat conftest.err >&5
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); } &&
42057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42058 { (case "(($ac_try" in
42059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42060 *) ac_try_echo=$ac_try;;
42061 esac
42062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42063 (eval "$ac_try") 2>&5
42064 ac_status=$?
42065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42066 (exit $ac_status); }; } &&
42067 { ac_try='test -s conftest$ac_exeext'
42068 { (case "(($ac_try" in
42069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42070 *) ac_try_echo=$ac_try;;
42071 esac
42072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42073 (eval "$ac_try") 2>&5
42074 ac_status=$?
42075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42076 (exit $ac_status); }; }; then
42077 eval "$as_ac_var=yes"
42078 else
42079 echo "$as_me: failed program was:" >&5
42080 sed 's/^/| /' conftest.$ac_ext >&5
42082 eval "$as_ac_var=no"
42085 rm -f core conftest.err conftest.$ac_objext \
42086 conftest$ac_exeext conftest.$ac_ext
42088 ac_res=`eval echo '${'$as_ac_var'}'`
42089 { echo "$as_me:$LINENO: result: $ac_res" >&5
42090 echo "${ECHO_T}$ac_res" >&6; }
42091 if test `eval echo '${'$as_ac_var'}'` = yes; then
42092 cat >>confdefs.h <<_ACEOF
42093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42094 _ACEOF
42095 have_socket=yes
42097 done
42099 if test "$have_socket" != yes; then
42100 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42101 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
42102 if test "${ac_cv_lib_socket_socket+set}" = set; then
42103 echo $ECHO_N "(cached) $ECHO_C" >&6
42104 else
42105 ac_check_lib_save_LIBS=$LIBS
42106 LIBS="-lsocket $LIBS"
42107 cat >conftest.$ac_ext <<_ACEOF
42108 /* confdefs.h. */
42109 _ACEOF
42110 cat confdefs.h >>conftest.$ac_ext
42111 cat >>conftest.$ac_ext <<_ACEOF
42112 /* end confdefs.h. */
42114 /* Override any GCC internal prototype to avoid an error.
42115 Use char because int might match the return type of a GCC
42116 builtin and then its argument prototype would still apply. */
42117 #ifdef __cplusplus
42118 extern "C"
42119 #endif
42120 char socket ();
42122 main ()
42124 return socket ();
42126 return 0;
42128 _ACEOF
42129 rm -f conftest.$ac_objext conftest$ac_exeext
42130 if { (ac_try="$ac_link"
42131 case "(($ac_try" in
42132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42133 *) ac_try_echo=$ac_try;;
42134 esac
42135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42136 (eval "$ac_link") 2>conftest.er1
42137 ac_status=$?
42138 grep -v '^ *+' conftest.er1 >conftest.err
42139 rm -f conftest.er1
42140 cat conftest.err >&5
42141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 (exit $ac_status); } &&
42143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42144 { (case "(($ac_try" in
42145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42146 *) ac_try_echo=$ac_try;;
42147 esac
42148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42149 (eval "$ac_try") 2>&5
42150 ac_status=$?
42151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42152 (exit $ac_status); }; } &&
42153 { ac_try='test -s conftest$ac_exeext'
42154 { (case "(($ac_try" in
42155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42156 *) ac_try_echo=$ac_try;;
42157 esac
42158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42159 (eval "$ac_try") 2>&5
42160 ac_status=$?
42161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162 (exit $ac_status); }; }; then
42163 ac_cv_lib_socket_socket=yes
42164 else
42165 echo "$as_me: failed program was:" >&5
42166 sed 's/^/| /' conftest.$ac_ext >&5
42168 ac_cv_lib_socket_socket=no
42171 rm -f core conftest.err conftest.$ac_objext \
42172 conftest$ac_exeext conftest.$ac_ext
42173 LIBS=$ac_check_lib_save_LIBS
42175 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42176 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
42177 if test $ac_cv_lib_socket_socket = yes; then
42179 RFB_LIBS="$RFB_LIBS -lsocket"
42180 have_socket=yes
42186 esac
42187 if test "$have_socket" != yes; then
42188 echo 'ERROR: socket function required for RFB compile'
42189 exit 1
42193 # The ACX_PTHREAD function was written by
42194 # Steven G. Johnson <stevenj@alum.mit.edu> and
42195 # Alejandro Forero Cuervo <bachue@bachue.com>
42196 # I found it in the ac-archive project on Source Forge.
42199 pthread_ok=no
42202 acx_pthread_ok=no
42204 # First, check if the POSIX threads header, pthread.h, is available.
42205 # If it isn't, don't bother looking for the threads libraries.
42206 if test "${ac_cv_header_pthread_h+set}" = set; then
42207 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42208 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42209 if test "${ac_cv_header_pthread_h+set}" = set; then
42210 echo $ECHO_N "(cached) $ECHO_C" >&6
42212 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42213 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42214 else
42215 # Is the header compilable?
42216 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
42217 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
42218 cat >conftest.$ac_ext <<_ACEOF
42219 /* confdefs.h. */
42220 _ACEOF
42221 cat confdefs.h >>conftest.$ac_ext
42222 cat >>conftest.$ac_ext <<_ACEOF
42223 /* end confdefs.h. */
42224 $ac_includes_default
42225 #include <pthread.h>
42226 _ACEOF
42227 rm -f conftest.$ac_objext
42228 if { (ac_try="$ac_compile"
42229 case "(($ac_try" in
42230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42231 *) ac_try_echo=$ac_try;;
42232 esac
42233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42234 (eval "$ac_compile") 2>conftest.er1
42235 ac_status=$?
42236 grep -v '^ *+' conftest.er1 >conftest.err
42237 rm -f conftest.er1
42238 cat conftest.err >&5
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } &&
42241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42242 { (case "(($ac_try" in
42243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42244 *) ac_try_echo=$ac_try;;
42245 esac
42246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42247 (eval "$ac_try") 2>&5
42248 ac_status=$?
42249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42250 (exit $ac_status); }; } &&
42251 { ac_try='test -s conftest.$ac_objext'
42252 { (case "(($ac_try" in
42253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42254 *) ac_try_echo=$ac_try;;
42255 esac
42256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42257 (eval "$ac_try") 2>&5
42258 ac_status=$?
42259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260 (exit $ac_status); }; }; then
42261 ac_header_compiler=yes
42262 else
42263 echo "$as_me: failed program was:" >&5
42264 sed 's/^/| /' conftest.$ac_ext >&5
42266 ac_header_compiler=no
42269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42271 echo "${ECHO_T}$ac_header_compiler" >&6; }
42273 # Is the header present?
42274 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
42275 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
42276 cat >conftest.$ac_ext <<_ACEOF
42277 /* confdefs.h. */
42278 _ACEOF
42279 cat confdefs.h >>conftest.$ac_ext
42280 cat >>conftest.$ac_ext <<_ACEOF
42281 /* end confdefs.h. */
42282 #include <pthread.h>
42283 _ACEOF
42284 if { (ac_try="$ac_cpp conftest.$ac_ext"
42285 case "(($ac_try" in
42286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42287 *) ac_try_echo=$ac_try;;
42288 esac
42289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42291 ac_status=$?
42292 grep -v '^ *+' conftest.er1 >conftest.err
42293 rm -f conftest.er1
42294 cat conftest.err >&5
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); } >/dev/null; then
42297 if test -s conftest.err; then
42298 ac_cpp_err=$ac_c_preproc_warn_flag
42299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
42300 else
42301 ac_cpp_err=
42303 else
42304 ac_cpp_err=yes
42306 if test -z "$ac_cpp_err"; then
42307 ac_header_preproc=yes
42308 else
42309 echo "$as_me: failed program was:" >&5
42310 sed 's/^/| /' conftest.$ac_ext >&5
42312 ac_header_preproc=no
42315 rm -f conftest.err conftest.$ac_ext
42316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42317 echo "${ECHO_T}$ac_header_preproc" >&6; }
42319 # So? What about this header?
42320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42321 yes:no: )
42322 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
42323 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42324 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
42325 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
42326 ac_header_preproc=yes
42328 no:yes:* )
42329 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
42330 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
42331 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
42332 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
42333 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
42334 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
42335 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
42336 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
42337 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
42338 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
42339 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
42340 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
42343 esac
42344 { echo "$as_me:$LINENO: checking for pthread.h" >&5
42345 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
42346 if test "${ac_cv_header_pthread_h+set}" = set; then
42347 echo $ECHO_N "(cached) $ECHO_C" >&6
42348 else
42349 ac_cv_header_pthread_h=$ac_header_preproc
42351 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
42352 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
42355 if test $ac_cv_header_pthread_h = yes; then
42357 else
42358 acx_pthread_ok=noheader
42363 # We must check for the threads library under a number of different
42364 # names; the ordering is very important because some systems
42365 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
42366 # libraries is broken (non-POSIX).
42368 # First of all, check if the user has set any of the PTHREAD_LIBS,
42369 # etcetera environment variables, and if threads linking works using
42370 # them:
42371 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
42372 save_CFLAGS="$CFLAGS"
42373 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42374 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42375 save_LIBS="$LIBS"
42376 LIBS="$PTHREAD_LIBS $LIBS"
42377 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
42378 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
42379 cat >conftest.$ac_ext <<_ACEOF
42380 /* confdefs.h. */
42381 _ACEOF
42382 cat confdefs.h >>conftest.$ac_ext
42383 cat >>conftest.$ac_ext <<_ACEOF
42384 /* end confdefs.h. */
42386 /* Override any GCC internal prototype to avoid an error.
42387 Use char because int might match the return type of a GCC
42388 builtin and then its argument prototype would still apply. */
42389 #ifdef __cplusplus
42390 extern "C"
42391 #endif
42392 char pthread_join ();
42394 main ()
42396 return pthread_join ();
42398 return 0;
42400 _ACEOF
42401 rm -f conftest.$ac_objext conftest$ac_exeext
42402 if { (ac_try="$ac_link"
42403 case "(($ac_try" in
42404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42405 *) ac_try_echo=$ac_try;;
42406 esac
42407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42408 (eval "$ac_link") 2>conftest.er1
42409 ac_status=$?
42410 grep -v '^ *+' conftest.er1 >conftest.err
42411 rm -f conftest.er1
42412 cat conftest.err >&5
42413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414 (exit $ac_status); } &&
42415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42416 { (case "(($ac_try" in
42417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42418 *) ac_try_echo=$ac_try;;
42419 esac
42420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42421 (eval "$ac_try") 2>&5
42422 ac_status=$?
42423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42424 (exit $ac_status); }; } &&
42425 { ac_try='test -s conftest$ac_exeext'
42426 { (case "(($ac_try" in
42427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42428 *) ac_try_echo=$ac_try;;
42429 esac
42430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42431 (eval "$ac_try") 2>&5
42432 ac_status=$?
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); }; }; then
42435 acx_pthread_ok=yes
42436 else
42437 echo "$as_me: failed program was:" >&5
42438 sed 's/^/| /' conftest.$ac_ext >&5
42443 rm -f core conftest.err conftest.$ac_objext \
42444 conftest$ac_exeext conftest.$ac_ext
42445 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42446 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42447 if test x"$acx_pthread_ok" = xno; then
42448 PTHREAD_LIBS=""
42449 PTHREAD_CFLAGS=""
42451 LIBS="$save_LIBS"
42452 CFLAGS="$save_CFLAGS"
42455 # Create a list of thread flags to try. Items starting with a "-" are
42456 # C compiler flags, and other items are library names, except for "none"
42457 # which indicates that we try without any flags at all.
42459 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
42461 # The ordering *is* (sometimes) important. Some notes on the
42462 # individual items follow:
42464 # pthreads: AIX (must check this before -lpthread)
42465 # none: in case threads are in libc; should be tried before -Kthread and
42466 # other compiler flags to prevent continual compiler warnings
42467 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
42468 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
42469 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
42470 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
42471 # -pthreads: Solaris/gcc
42472 # -mthreads: Mingw32/gcc, Lynx/gcc
42473 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
42474 # doesn't hurt to check since this sometimes defines pthreads too;
42475 # also defines -D_REENTRANT)
42476 # pthread: Linux, etcetera
42477 # --thread-safe: KAI C++
42479 case "${host_cpu}-${host_os}" in
42480 *solaris*)
42482 # On Solaris (at least, for some versions), libc contains stubbed
42483 # (non-functional) versions of the pthreads routines, so link-based
42484 # tests will erroneously succeed. (We need to link with -pthread or
42485 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
42486 # a function called by this macro, so we could check for that, but
42487 # who knows whether they'll stub that too in a future libc.) So,
42488 # we'll just look for -pthreads and -lpthread first:
42490 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
42492 esac
42494 if test x"$acx_pthread_ok" = xno; then
42495 for flag in $acx_pthread_flags; do
42497 case $flag in
42498 none)
42499 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
42500 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
42504 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
42505 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
42506 PTHREAD_CFLAGS="$flag"
42510 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
42511 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
42512 PTHREAD_LIBS="-l$flag"
42514 esac
42516 save_LIBS="$LIBS"
42517 save_CFLAGS="$CFLAGS"
42518 LIBS="$PTHREAD_LIBS $LIBS"
42519 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42521 # Check for various functions. We must include pthread.h,
42522 # since some functions may be macros. (On the Sequent, we
42523 # need a special flag -Kthread to make this header compile.)
42524 # We check for pthread_join because it is in -lpthread on IRIX
42525 # while pthread_create is in libc. We check for pthread_attr_init
42526 # due to DEC craziness with -lpthreads. We check for
42527 # pthread_cleanup_push because it is one of the few pthread
42528 # functions on Solaris that doesn't have a non-functional libc stub.
42529 # We try pthread_create on general principles.
42530 cat >conftest.$ac_ext <<_ACEOF
42531 /* confdefs.h. */
42532 _ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h. */
42536 #include <pthread.h>
42538 main ()
42540 pthread_t th; pthread_join(th, 0);
42541 pthread_attr_init(0); pthread_cleanup_push(0, 0);
42542 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
42544 return 0;
42546 _ACEOF
42547 rm -f conftest.$ac_objext conftest$ac_exeext
42548 if { (ac_try="$ac_link"
42549 case "(($ac_try" in
42550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551 *) ac_try_echo=$ac_try;;
42552 esac
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554 (eval "$ac_link") 2>conftest.er1
42555 ac_status=$?
42556 grep -v '^ *+' conftest.er1 >conftest.err
42557 rm -f conftest.er1
42558 cat conftest.err >&5
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } &&
42561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42562 { (case "(($ac_try" in
42563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42564 *) ac_try_echo=$ac_try;;
42565 esac
42566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42567 (eval "$ac_try") 2>&5
42568 ac_status=$?
42569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570 (exit $ac_status); }; } &&
42571 { ac_try='test -s conftest$ac_exeext'
42572 { (case "(($ac_try" in
42573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42574 *) ac_try_echo=$ac_try;;
42575 esac
42576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42577 (eval "$ac_try") 2>&5
42578 ac_status=$?
42579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42580 (exit $ac_status); }; }; then
42581 acx_pthread_ok=yes
42582 else
42583 echo "$as_me: failed program was:" >&5
42584 sed 's/^/| /' conftest.$ac_ext >&5
42589 rm -f core conftest.err conftest.$ac_objext \
42590 conftest$ac_exeext conftest.$ac_ext
42592 LIBS="$save_LIBS"
42593 CFLAGS="$save_CFLAGS"
42595 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
42596 echo "${ECHO_T}$acx_pthread_ok" >&6; }
42597 if test "x$acx_pthread_ok" = xyes; then
42598 break;
42601 PTHREAD_LIBS=""
42602 PTHREAD_CFLAGS=""
42603 done
42606 # Various other checks:
42607 if test "x$acx_pthread_ok" = xyes; then
42608 save_LIBS="$LIBS"
42609 LIBS="$PTHREAD_LIBS $LIBS"
42610 save_CFLAGS="$CFLAGS"
42611 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42613 # Detect AIX lossage: threads are created detached by default
42614 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
42615 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
42616 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
42617 cat >conftest.$ac_ext <<_ACEOF
42618 /* confdefs.h. */
42619 _ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h. */
42623 #include <pthread.h>
42625 main ()
42627 int attr=PTHREAD_CREATE_JOINABLE;
42629 return 0;
42631 _ACEOF
42632 rm -f conftest.$ac_objext conftest$ac_exeext
42633 if { (ac_try="$ac_link"
42634 case "(($ac_try" in
42635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42636 *) ac_try_echo=$ac_try;;
42637 esac
42638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42639 (eval "$ac_link") 2>conftest.er1
42640 ac_status=$?
42641 grep -v '^ *+' conftest.er1 >conftest.err
42642 rm -f conftest.er1
42643 cat conftest.err >&5
42644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645 (exit $ac_status); } &&
42646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42647 { (case "(($ac_try" in
42648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42649 *) ac_try_echo=$ac_try;;
42650 esac
42651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42652 (eval "$ac_try") 2>&5
42653 ac_status=$?
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); }; } &&
42656 { ac_try='test -s conftest$ac_exeext'
42657 { (case "(($ac_try" in
42658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42659 *) ac_try_echo=$ac_try;;
42660 esac
42661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42662 (eval "$ac_try") 2>&5
42663 ac_status=$?
42664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); }; }; then
42666 ok=PTHREAD_CREATE_JOINABLE
42667 else
42668 echo "$as_me: failed program was:" >&5
42669 sed 's/^/| /' conftest.$ac_ext >&5
42671 ok=unknown
42674 rm -f core conftest.err conftest.$ac_objext \
42675 conftest$ac_exeext conftest.$ac_ext
42676 if test x"$ok" = xunknown; then
42677 cat >conftest.$ac_ext <<_ACEOF
42678 /* confdefs.h. */
42679 _ACEOF
42680 cat confdefs.h >>conftest.$ac_ext
42681 cat >>conftest.$ac_ext <<_ACEOF
42682 /* end confdefs.h. */
42683 #include <pthread.h>
42685 main ()
42687 int attr=PTHREAD_CREATE_UNDETACHED;
42689 return 0;
42691 _ACEOF
42692 rm -f conftest.$ac_objext conftest$ac_exeext
42693 if { (ac_try="$ac_link"
42694 case "(($ac_try" in
42695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42696 *) ac_try_echo=$ac_try;;
42697 esac
42698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42699 (eval "$ac_link") 2>conftest.er1
42700 ac_status=$?
42701 grep -v '^ *+' conftest.er1 >conftest.err
42702 rm -f conftest.er1
42703 cat conftest.err >&5
42704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705 (exit $ac_status); } &&
42706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42707 { (case "(($ac_try" in
42708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42709 *) ac_try_echo=$ac_try;;
42710 esac
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712 (eval "$ac_try") 2>&5
42713 ac_status=$?
42714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42715 (exit $ac_status); }; } &&
42716 { ac_try='test -s conftest$ac_exeext'
42717 { (case "(($ac_try" in
42718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42719 *) ac_try_echo=$ac_try;;
42720 esac
42721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42722 (eval "$ac_try") 2>&5
42723 ac_status=$?
42724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42725 (exit $ac_status); }; }; then
42726 ok=PTHREAD_CREATE_UNDETACHED
42727 else
42728 echo "$as_me: failed program was:" >&5
42729 sed 's/^/| /' conftest.$ac_ext >&5
42731 ok=unknown
42734 rm -f core conftest.err conftest.$ac_objext \
42735 conftest$ac_exeext conftest.$ac_ext
42737 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
42739 cat >>confdefs.h <<\_ACEOF
42740 #define PTHREAD_CREATE_JOINABLE $ok
42741 _ACEOF
42744 { echo "$as_me:$LINENO: result: ${ok}" >&5
42745 echo "${ECHO_T}${ok}" >&6; }
42746 if test x"$ok" = xunknown; then
42747 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
42748 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
42751 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
42752 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
42753 flag=no
42754 case "${host_cpu}-${host_os}" in
42755 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
42756 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
42757 esac
42758 { echo "$as_me:$LINENO: result: ${flag}" >&5
42759 echo "${ECHO_T}${flag}" >&6; }
42760 if test "x$flag" != xno; then
42761 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
42764 LIBS="$save_LIBS"
42765 CFLAGS="$save_CFLAGS"
42767 # More AIX lossage: must compile with cc_r
42768 # Extract the first word of "cc_r", so it can be a program name with args.
42769 set dummy cc_r; ac_word=$2
42770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42772 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
42773 echo $ECHO_N "(cached) $ECHO_C" >&6
42774 else
42775 if test -n "$PTHREAD_CC"; then
42776 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
42777 else
42778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42779 for as_dir in $PATH
42781 IFS=$as_save_IFS
42782 test -z "$as_dir" && as_dir=.
42783 for ac_exec_ext in '' $ac_executable_extensions; do
42784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
42785 ac_cv_prog_PTHREAD_CC="cc_r"
42786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42787 break 2
42789 done
42790 done
42791 IFS=$as_save_IFS
42793 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
42796 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
42797 if test -n "$PTHREAD_CC"; then
42798 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
42799 echo "${ECHO_T}$PTHREAD_CC" >&6; }
42800 else
42801 { echo "$as_me:$LINENO: result: no" >&5
42802 echo "${ECHO_T}no" >&6; }
42806 else
42807 PTHREAD_CC="$CC"
42814 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
42815 if test x"$acx_pthread_ok" = xyes; then
42817 pthread_ok=yes
42818 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
42819 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
42820 #echo Using PTHREAD_CC=$PTHREAD_CC
42823 else
42824 acx_pthread_ok=no
42831 # since RFB (usually) needs pthread library, check that it was found.
42832 # But on win32 platforms, the pthread library is not needed.
42833 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
42834 if test "$pthread_ok" = yes; then
42835 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
42836 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
42837 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
42838 CC="$PTHREAD_CC"
42839 else
42840 case "$target" in
42841 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
42842 # pthread not needed for win32 platform
42845 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
42846 esac
42851 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
42852 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
42853 # Check whether --enable-save-restore was given.
42854 if test "${enable_save_restore+set}" = set; then
42855 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
42856 echo "${ECHO_T}$enableval" >&6; }
42857 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
42858 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
42859 { (exit 1); exit 1; }; }
42861 else
42863 { echo "$as_me:$LINENO: result: no" >&5
42864 echo "${ECHO_T}no" >&6; }
42869 { echo "$as_me:$LINENO: checking for number of processors (deprecated)" >&5
42870 echo $ECHO_N "checking for number of processors (deprecated)... $ECHO_C" >&6; }
42871 # Check whether --enable-processors was given.
42872 if test "${enable_processors+set}" = set; then
42873 enableval=$enable_processors; { echo "$as_me:$LINENO: result: $enableval" >&5
42874 echo "${ECHO_T}$enableval" >&6; }
42875 { { echo "$as_me:$LINENO: error: DEPRECATED - use option --enable-smp instead" >&5
42876 echo "$as_me: error: DEPRECATED - use option --enable-smp instead" >&2;}
42877 { (exit 1); exit 1; }; }
42879 else
42881 { echo "$as_me:$LINENO: result: no" >&5
42882 echo "${ECHO_T}no" >&6; }
42887 { echo "$as_me:$LINENO: checking whether to reset on triple fault (deprecated)" >&5
42888 echo $ECHO_N "checking whether to reset on triple fault (deprecated)... $ECHO_C" >&6; }
42889 # Check whether --enable-reset-on-triple-fault was given.
42890 if test "${enable_reset_on_triple_fault+set}" = set; then
42891 enableval=$enable_reset_on_triple_fault; { echo "$as_me:$LINENO: result: $enableval" >&5
42892 echo "${ECHO_T}$enableval" >&6; }
42893 { { echo "$as_me:$LINENO: error: DEPRECATED - could be configured directly from .bochsrc instead" >&5
42894 echo "$as_me: error: DEPRECATED - could be configured directly from .bochsrc instead" >&2;}
42895 { (exit 1); exit 1; }; }
42897 else
42899 { echo "$as_me:$LINENO: result: no" >&5
42900 echo "${ECHO_T}no" >&6; }
42905 { echo "$as_me:$LINENO: checking PNI support (deprecated)" >&5
42906 echo $ECHO_N "checking PNI support (deprecated)... $ECHO_C" >&6; }
42907 # Check whether --enable---enable-pni was given.
42908 if test "${enable___enable_pni+set}" = set; then
42909 enableval=$enable___enable_pni; { echo "$as_me:$LINENO: result: $enableval" >&5
42910 echo "${ECHO_T}$enableval" >&6; }
42911 { { echo "$as_me:$LINENO: error: DEPRECATED - use --enable-sse=3 instead" >&5
42912 echo "$as_me: error: DEPRECATED - use --enable-sse=3 instead" >&2;}
42913 { (exit 1); exit 1; }; }
42915 else
42917 { echo "$as_me:$LINENO: result: no" >&5
42918 echo "${ECHO_T}no" >&6; }
42923 { echo "$as_me:$LINENO: checking for new PIT model (deprecated)" >&5
42924 echo $ECHO_N "checking for new PIT model (deprecated)... $ECHO_C" >&6; }
42925 # Check whether --enable-new-pit was given.
42926 if test "${enable_new_pit+set}" = set; then
42927 enableval=$enable_new_pit; { echo "$as_me:$LINENO: result: $enableval" >&5
42928 echo "${ECHO_T}$enableval" >&6; }
42929 { { echo "$as_me:$LINENO: error: DEPRECATED - the new PIT model is always present and the old one has been removed" >&5
42930 echo "$as_me: error: DEPRECATED - the new PIT model is always present and the old one has been removed" >&2;}
42931 { (exit 1); exit 1; }; }
42933 else
42935 { echo "$as_me:$LINENO: result: no" >&5
42936 echo "${ECHO_T}no" >&6; }
42941 # Create some subdirectories for when you run configure from some other
42942 # directory.
42943 if test ! -d instrument; then mkdir instrument; fi
42944 if test ! -d build; then mkdir build; fi
42945 if test ! -d build/linux; then mkdir build/linux; fi
42946 if test ! -d build/win32; then mkdir build/win32; fi
42947 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
42986 # Extract the first word of "gzip", so it can be a program name with args.
42987 set dummy gzip; ac_word=$2
42988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42990 if test "${ac_cv_path_GZIP+set}" = set; then
42991 echo $ECHO_N "(cached) $ECHO_C" >&6
42992 else
42993 case $GZIP in
42994 [\\/]* | ?:[\\/]*)
42995 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
42998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42999 for as_dir in $PATH
43001 IFS=$as_save_IFS
43002 test -z "$as_dir" && as_dir=.
43003 for ac_exec_ext in '' $ac_executable_extensions; do
43004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
43005 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
43006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43007 break 2
43009 done
43010 done
43011 IFS=$as_save_IFS
43014 esac
43016 GZIP=$ac_cv_path_GZIP
43017 if test -n "$GZIP"; then
43018 { echo "$as_me:$LINENO: result: $GZIP" >&5
43019 echo "${ECHO_T}$GZIP" >&6; }
43020 else
43021 { echo "$as_me:$LINENO: result: no" >&5
43022 echo "${ECHO_T}no" >&6; }
43026 # Extract the first word of "tar", so it can be a program name with args.
43027 set dummy tar; ac_word=$2
43028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
43029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
43030 if test "${ac_cv_path_TAR+set}" = set; then
43031 echo $ECHO_N "(cached) $ECHO_C" >&6
43032 else
43033 case $TAR in
43034 [\\/]* | ?:[\\/]*)
43035 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
43038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43039 for as_dir in $PATH
43041 IFS=$as_save_IFS
43042 test -z "$as_dir" && as_dir=.
43043 for ac_exec_ext in '' $ac_executable_extensions; do
43044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
43045 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
43046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43047 break 2
43049 done
43050 done
43051 IFS=$as_save_IFS
43054 esac
43056 TAR=$ac_cv_path_TAR
43057 if test -n "$TAR"; then
43058 { echo "$as_me:$LINENO: result: $TAR" >&5
43059 echo "${ECHO_T}$TAR" >&6; }
43060 else
43061 { echo "$as_me:$LINENO: result: no" >&5
43062 echo "${ECHO_T}no" >&6; }
43067 ac_config_files="$ac_config_files Makefile iodev/Makefile bx_debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx bxversion.h build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
43069 cat >confcache <<\_ACEOF
43070 # This file is a shell script that caches the results of configure
43071 # tests run on this system so they can be shared between configure
43072 # scripts and configure runs, see configure's option --config-cache.
43073 # It is not useful on other systems. If it contains results you don't
43074 # want to keep, you may remove or edit it.
43076 # config.status only pays attention to the cache file if you give it
43077 # the --recheck option to rerun configure.
43079 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43080 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43081 # following values.
43083 _ACEOF
43085 # The following way of writing the cache mishandles newlines in values,
43086 # but we know of no workaround that is simple, portable, and efficient.
43087 # So, we kill variables containing newlines.
43088 # Ultrix sh set writes to stderr and can't be redirected directly,
43089 # and sets the high bit in the cache file unless we assign to the vars.
43091 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43092 eval ac_val=\$$ac_var
43093 case $ac_val in #(
43094 *${as_nl}*)
43095 case $ac_var in #(
43096 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43097 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43098 esac
43099 case $ac_var in #(
43100 _ | IFS | as_nl) ;; #(
43101 *) $as_unset $ac_var ;;
43102 esac ;;
43103 esac
43104 done
43106 (set) 2>&1 |
43107 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43108 *${as_nl}ac_space=\ *)
43109 # `set' does not quote correctly, so add quotes (double-quote
43110 # substitution turns \\\\ into \\, and sed turns \\ into \).
43111 sed -n \
43112 "s/'/'\\\\''/g;
43113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43114 ;; #(
43116 # `set' quotes correctly as required by POSIX, so do not add quotes.
43117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43119 esac |
43120 sort
43122 sed '
43123 /^ac_cv_env_/b end
43124 t clear
43125 :clear
43126 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43127 t end
43128 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43129 :end' >>confcache
43130 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43131 if test -w "$cache_file"; then
43132 test "x$cache_file" != "x/dev/null" &&
43133 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43134 echo "$as_me: updating cache $cache_file" >&6;}
43135 cat confcache >$cache_file
43136 else
43137 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43138 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43141 rm -f confcache
43143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43144 # Let make expand exec_prefix.
43145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43147 DEFS=-DHAVE_CONFIG_H
43149 ac_libobjs=
43150 ac_ltlibobjs=
43151 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43152 # 1. Remove the extension, and $U if already installed.
43153 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43154 ac_i=`echo "$ac_i" | sed "$ac_script"`
43155 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43156 # will be set to the directory where LIBOBJS objects are built.
43157 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43158 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43159 done
43160 LIBOBJS=$ac_libobjs
43162 LTLIBOBJS=$ac_ltlibobjs
43166 : ${CONFIG_STATUS=./config.status}
43167 ac_clean_files_save=$ac_clean_files
43168 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43169 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43170 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43171 cat >$CONFIG_STATUS <<_ACEOF
43172 #! $SHELL
43173 # Generated by $as_me.
43174 # Run this file to recreate the current configuration.
43175 # Compiler output produced by configure, useful for debugging
43176 # configure, is in config.log if it exists.
43178 debug=false
43179 ac_cs_recheck=false
43180 ac_cs_silent=false
43181 SHELL=\${CONFIG_SHELL-$SHELL}
43182 _ACEOF
43184 cat >>$CONFIG_STATUS <<\_ACEOF
43185 ## --------------------- ##
43186 ## M4sh Initialization. ##
43187 ## --------------------- ##
43189 # Be Bourne compatible
43190 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43191 emulate sh
43192 NULLCMD=:
43193 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43194 # is contrary to our usage. Disable this feature.
43195 alias -g '${1+"$@"}'='"$@"'
43196 setopt NO_GLOB_SUBST
43197 else
43198 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
43200 BIN_SH=xpg4; export BIN_SH # for Tru64
43201 DUALCASE=1; export DUALCASE # for MKS sh
43204 # PATH needs CR
43205 # Avoid depending upon Character Ranges.
43206 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43207 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43208 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43209 as_cr_digits='0123456789'
43210 as_cr_alnum=$as_cr_Letters$as_cr_digits
43212 # The user is always right.
43213 if test "${PATH_SEPARATOR+set}" != set; then
43214 echo "#! /bin/sh" >conf$$.sh
43215 echo "exit 0" >>conf$$.sh
43216 chmod +x conf$$.sh
43217 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43218 PATH_SEPARATOR=';'
43219 else
43220 PATH_SEPARATOR=:
43222 rm -f conf$$.sh
43225 # Support unset when possible.
43226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43227 as_unset=unset
43228 else
43229 as_unset=false
43233 # IFS
43234 # We need space, tab and new line, in precisely that order. Quoting is
43235 # there to prevent editors from complaining about space-tab.
43236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43237 # splitting by setting IFS to empty value.)
43238 as_nl='
43240 IFS=" "" $as_nl"
43242 # Find who we are. Look in the path if we contain no directory separator.
43243 case $0 in
43244 *[\\/]* ) as_myself=$0 ;;
43245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43246 for as_dir in $PATH
43248 IFS=$as_save_IFS
43249 test -z "$as_dir" && as_dir=.
43250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43251 done
43252 IFS=$as_save_IFS
43255 esac
43256 # We did not find ourselves, most probably we were run as `sh COMMAND'
43257 # in which case we are not to be found in the path.
43258 if test "x$as_myself" = x; then
43259 as_myself=$0
43261 if test ! -f "$as_myself"; then
43262 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43263 { (exit 1); exit 1; }
43266 # Work around bugs in pre-3.0 UWIN ksh.
43267 for as_var in ENV MAIL MAILPATH
43268 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43269 done
43270 PS1='$ '
43271 PS2='> '
43272 PS4='+ '
43274 # NLS nuisances.
43275 for as_var in \
43276 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43277 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43278 LC_TELEPHONE LC_TIME
43280 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43281 eval $as_var=C; export $as_var
43282 else
43283 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43285 done
43287 # Required to use basename.
43288 if expr a : '\(a\)' >/dev/null 2>&1 &&
43289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43290 as_expr=expr
43291 else
43292 as_expr=false
43295 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43296 as_basename=basename
43297 else
43298 as_basename=false
43302 # Name of the executable.
43303 as_me=`$as_basename -- "$0" ||
43304 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43305 X"$0" : 'X\(//\)$' \| \
43306 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43307 echo X/"$0" |
43308 sed '/^.*\/\([^/][^/]*\)\/*$/{
43309 s//\1/
43312 /^X\/\(\/\/\)$/{
43313 s//\1/
43316 /^X\/\(\/\).*/{
43317 s//\1/
43320 s/.*/./; q'`
43322 # CDPATH.
43323 $as_unset CDPATH
43327 as_lineno_1=$LINENO
43328 as_lineno_2=$LINENO
43329 test "x$as_lineno_1" != "x$as_lineno_2" &&
43330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43332 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43333 # uniformly replaced by the line number. The first 'sed' inserts a
43334 # line-number line after each line using $LINENO; the second 'sed'
43335 # does the real work. The second script uses 'N' to pair each
43336 # line-number line with the line containing $LINENO, and appends
43337 # trailing '-' during substitution so that $LINENO is not a special
43338 # case at line end.
43339 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43340 # scripts with optimization help from Paolo Bonzini. Blame Lee
43341 # E. McMahon (1931-1989) for sed's syntax. :-)
43342 sed -n '
43344 /[$]LINENO/=
43345 ' <$as_myself |
43346 sed '
43347 s/[$]LINENO.*/&-/
43348 t lineno
43350 :lineno
43352 :loop
43353 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43354 t loop
43355 s/-\n.*//
43356 ' >$as_me.lineno &&
43357 chmod +x "$as_me.lineno" ||
43358 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43359 { (exit 1); exit 1; }; }
43361 # Don't try to exec as it changes $[0], causing all sort of problems
43362 # (the dirname of $[0] is not the place where we might find the
43363 # original and so on. Autoconf is especially sensitive to this).
43364 . "./$as_me.lineno"
43365 # Exit status is that of the last command.
43366 exit
43370 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43371 as_dirname=dirname
43372 else
43373 as_dirname=false
43376 ECHO_C= ECHO_N= ECHO_T=
43377 case `echo -n x` in
43378 -n*)
43379 case `echo 'x\c'` in
43380 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43381 *) ECHO_C='\c';;
43382 esac;;
43384 ECHO_N='-n';;
43385 esac
43387 if expr a : '\(a\)' >/dev/null 2>&1 &&
43388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43389 as_expr=expr
43390 else
43391 as_expr=false
43394 rm -f conf$$ conf$$.exe conf$$.file
43395 if test -d conf$$.dir; then
43396 rm -f conf$$.dir/conf$$.file
43397 else
43398 rm -f conf$$.dir
43399 mkdir conf$$.dir
43401 echo >conf$$.file
43402 if ln -s conf$$.file conf$$ 2>/dev/null; then
43403 as_ln_s='ln -s'
43404 # ... but there are two gotchas:
43405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43407 # In both cases, we have to default to `cp -p'.
43408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43409 as_ln_s='cp -p'
43410 elif ln conf$$.file conf$$ 2>/dev/null; then
43411 as_ln_s=ln
43412 else
43413 as_ln_s='cp -p'
43415 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43416 rmdir conf$$.dir 2>/dev/null
43418 if mkdir -p . 2>/dev/null; then
43419 as_mkdir_p=:
43420 else
43421 test -d ./-p && rmdir ./-p
43422 as_mkdir_p=false
43425 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
43426 # systems may use methods other than mode bits to determine executability.
43427 cat >conf$$.file <<_ASEOF
43428 #! /bin/sh
43429 exit 0
43430 _ASEOF
43431 chmod +x conf$$.file
43432 if test -x conf$$.file >/dev/null 2>&1; then
43433 as_executable_p="test -x"
43434 else
43435 as_executable_p=:
43437 rm -f conf$$.file
43439 # Sed expression to map a string onto a valid CPP name.
43440 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43442 # Sed expression to map a string onto a valid variable name.
43443 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43446 exec 6>&1
43448 # Save the log message, to keep $[0] and so on meaningful, and to
43449 # report actual input values of CONFIG_FILES etc. instead of their
43450 # values after options handling.
43451 ac_log="
43452 This file was extended by $as_me, which was
43453 generated by GNU Autoconf 2.60. Invocation command line was
43455 CONFIG_FILES = $CONFIG_FILES
43456 CONFIG_HEADERS = $CONFIG_HEADERS
43457 CONFIG_LINKS = $CONFIG_LINKS
43458 CONFIG_COMMANDS = $CONFIG_COMMANDS
43459 $ $0 $@
43461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43464 _ACEOF
43466 cat >>$CONFIG_STATUS <<_ACEOF
43467 # Files that config.status was made for.
43468 config_files="$ac_config_files"
43469 config_headers="$ac_config_headers"
43471 _ACEOF
43473 cat >>$CONFIG_STATUS <<\_ACEOF
43474 ac_cs_usage="\
43475 \`$as_me' instantiates files from templates according to the
43476 current configuration.
43478 Usage: $0 [OPTIONS] [FILE]...
43480 -h, --help print this help, then exit
43481 -V, --version print version number, then exit
43482 -q, --quiet do not print progress messages
43483 -d, --debug don't remove temporary files
43484 --recheck update $as_me by reconfiguring in the same conditions
43485 --file=FILE[:TEMPLATE]
43486 instantiate the configuration file FILE
43487 --header=FILE[:TEMPLATE]
43488 instantiate the configuration header FILE
43490 Configuration files:
43491 $config_files
43493 Configuration headers:
43494 $config_headers
43496 Report bugs to <bug-autoconf@gnu.org>."
43498 _ACEOF
43499 cat >>$CONFIG_STATUS <<_ACEOF
43500 ac_cs_version="\\
43501 config.status
43502 configured by $0, generated by GNU Autoconf 2.60,
43503 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43505 Copyright (C) 2006 Free Software Foundation, Inc.
43506 This config.status script is free software; the Free Software Foundation
43507 gives unlimited permission to copy, distribute and modify it."
43509 ac_pwd='$ac_pwd'
43510 srcdir='$srcdir'
43511 _ACEOF
43513 cat >>$CONFIG_STATUS <<\_ACEOF
43514 # If no file are specified by the user, then we need to provide default
43515 # value. By we need to know if files were specified by the user.
43516 ac_need_defaults=:
43517 while test $# != 0
43519 case $1 in
43520 --*=*)
43521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43523 ac_shift=:
43526 ac_option=$1
43527 ac_optarg=$2
43528 ac_shift=shift
43530 esac
43532 case $ac_option in
43533 # Handling of the options.
43534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43535 ac_cs_recheck=: ;;
43536 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43537 echo "$ac_cs_version"; exit ;;
43538 --debug | --debu | --deb | --de | --d | -d )
43539 debug=: ;;
43540 --file | --fil | --fi | --f )
43541 $ac_shift
43542 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43543 ac_need_defaults=false;;
43544 --header | --heade | --head | --hea )
43545 $ac_shift
43546 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43547 ac_need_defaults=false;;
43548 --he | --h)
43549 # Conflict between --help and --header
43550 { echo "$as_me: error: ambiguous option: $1
43551 Try \`$0 --help' for more information." >&2
43552 { (exit 1); exit 1; }; };;
43553 --help | --hel | -h )
43554 echo "$ac_cs_usage"; exit ;;
43555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43556 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43557 ac_cs_silent=: ;;
43559 # This is an error.
43560 -*) { echo "$as_me: error: unrecognized option: $1
43561 Try \`$0 --help' for more information." >&2
43562 { (exit 1); exit 1; }; } ;;
43564 *) ac_config_targets="$ac_config_targets $1"
43565 ac_need_defaults=false ;;
43567 esac
43568 shift
43569 done
43571 ac_configure_extra_args=
43573 if $ac_cs_silent; then
43574 exec 6>/dev/null
43575 ac_configure_extra_args="$ac_configure_extra_args --silent"
43578 _ACEOF
43579 cat >>$CONFIG_STATUS <<_ACEOF
43580 if \$ac_cs_recheck; then
43581 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43582 CONFIG_SHELL=$SHELL
43583 export CONFIG_SHELL
43584 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43587 _ACEOF
43588 cat >>$CONFIG_STATUS <<\_ACEOF
43589 exec 5>>config.log
43591 echo
43592 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43593 ## Running $as_me. ##
43594 _ASBOX
43595 echo "$ac_log"
43596 } >&5
43598 _ACEOF
43599 cat >>$CONFIG_STATUS <<_ACEOF
43600 _ACEOF
43602 cat >>$CONFIG_STATUS <<\_ACEOF
43604 # Handling of arguments.
43605 for ac_config_target in $ac_config_targets
43607 case $ac_config_target in
43608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
43609 "ltdlconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
43610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43611 "iodev/Makefile") CONFIG_FILES="$CONFIG_FILES iodev/Makefile" ;;
43612 "bx_debug/Makefile") CONFIG_FILES="$CONFIG_FILES bx_debug/Makefile" ;;
43613 "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
43614 "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
43615 "memory/Makefile") CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
43616 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
43617 "disasm/Makefile") CONFIG_FILES="$CONFIG_FILES disasm/Makefile" ;;
43618 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
43619 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
43620 "fpu/Makefile") CONFIG_FILES="$CONFIG_FILES fpu/Makefile" ;;
43621 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
43622 "build/linux/bochs-dlx") CONFIG_FILES="$CONFIG_FILES build/linux/bochs-dlx" ;;
43623 "bxversion.h") CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
43624 "build/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
43625 "build/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/Makefile" ;;
43626 "build/win32/nsis/bochs.nsi") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
43627 "host/linux/pcidev/Makefile") CONFIG_FILES="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
43629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43630 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43631 { (exit 1); exit 1; }; };;
43632 esac
43633 done
43636 # If the user did not use the arguments to specify the items to instantiate,
43637 # then the envvar interface is used. Set only those that are not.
43638 # We use the long form for the default assignment because of an extremely
43639 # bizarre bug on SunOS 4.1.3.
43640 if $ac_need_defaults; then
43641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43645 # Have a temporary directory for convenience. Make it in the build tree
43646 # simply because there is no reason against having it here, and in addition,
43647 # creating and moving files from /tmp can sometimes cause problems.
43648 # Hook for its removal unless debugging.
43649 # Note that there is a small window in which the directory will not be cleaned:
43650 # after its creation but before its name has been assigned to `$tmp'.
43651 $debug ||
43653 tmp=
43654 trap 'exit_status=$?
43655 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43657 trap '{ (exit 1); exit 1; }' 1 2 13 15
43659 # Create a (secure) tmp directory for tmp files.
43662 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43663 test -n "$tmp" && test -d "$tmp"
43664 } ||
43666 tmp=./conf$$-$RANDOM
43667 (umask 077 && mkdir "$tmp")
43668 } ||
43670 echo "$me: cannot create a temporary directory in ." >&2
43671 { (exit 1); exit 1; }
43675 # Set up the sed scripts for CONFIG_FILES section.
43678 # No need to generate the scripts if there are no CONFIG_FILES.
43679 # This happens for instance when ./config.status config.h
43680 if test -n "$CONFIG_FILES"; then
43682 _ACEOF
43686 ac_delim='%!_!# '
43687 for ac_last_try in false false false false false :; do
43688 cat >conf$$subs.sed <<_ACEOF
43689 SHELL!$SHELL$ac_delim
43690 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43691 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43692 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43693 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43694 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43695 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43696 exec_prefix!$exec_prefix$ac_delim
43697 prefix!$prefix$ac_delim
43698 program_transform_name!$program_transform_name$ac_delim
43699 bindir!$bindir$ac_delim
43700 sbindir!$sbindir$ac_delim
43701 libexecdir!$libexecdir$ac_delim
43702 datarootdir!$datarootdir$ac_delim
43703 datadir!$datadir$ac_delim
43704 sysconfdir!$sysconfdir$ac_delim
43705 sharedstatedir!$sharedstatedir$ac_delim
43706 localstatedir!$localstatedir$ac_delim
43707 includedir!$includedir$ac_delim
43708 oldincludedir!$oldincludedir$ac_delim
43709 docdir!$docdir$ac_delim
43710 infodir!$infodir$ac_delim
43711 htmldir!$htmldir$ac_delim
43712 dvidir!$dvidir$ac_delim
43713 pdfdir!$pdfdir$ac_delim
43714 psdir!$psdir$ac_delim
43715 libdir!$libdir$ac_delim
43716 localedir!$localedir$ac_delim
43717 mandir!$mandir$ac_delim
43718 DEFS!$DEFS$ac_delim
43719 ECHO_C!$ECHO_C$ac_delim
43720 ECHO_N!$ECHO_N$ac_delim
43721 ECHO_T!$ECHO_T$ac_delim
43722 LIBS!$LIBS$ac_delim
43723 build_alias!$build_alias$ac_delim
43724 host_alias!$host_alias$ac_delim
43725 target_alias!$target_alias$ac_delim
43726 build!$build$ac_delim
43727 build_cpu!$build_cpu$ac_delim
43728 build_vendor!$build_vendor$ac_delim
43729 build_os!$build_os$ac_delim
43730 host!$host$ac_delim
43731 host_cpu!$host_cpu$ac_delim
43732 host_vendor!$host_vendor$ac_delim
43733 host_os!$host_os$ac_delim
43734 target!$target$ac_delim
43735 target_cpu!$target_cpu$ac_delim
43736 target_vendor!$target_vendor$ac_delim
43737 target_os!$target_os$ac_delim
43738 CC!$CC$ac_delim
43739 CFLAGS!$CFLAGS$ac_delim
43740 LDFLAGS!$LDFLAGS$ac_delim
43741 CPPFLAGS!$CPPFLAGS$ac_delim
43742 ac_ct_CC!$ac_ct_CC$ac_delim
43743 EXEEXT!$EXEEXT$ac_delim
43744 OBJEXT!$OBJEXT$ac_delim
43745 CXX!$CXX$ac_delim
43746 CXXFLAGS!$CXXFLAGS$ac_delim
43747 ac_ct_CXX!$ac_ct_CXX$ac_delim
43748 SET_MAKE!$SET_MAKE$ac_delim
43749 GREP!$GREP$ac_delim
43750 EGREP!$EGREP$ac_delim
43751 LN_S!$LN_S$ac_delim
43752 ECHO!$ECHO$ac_delim
43753 AR!$AR$ac_delim
43754 RANLIB!$RANLIB$ac_delim
43755 STRIP!$STRIP$ac_delim
43756 CPP!$CPP$ac_delim
43757 CXXCPP!$CXXCPP$ac_delim
43758 F77!$F77$ac_delim
43759 FFLAGS!$FFLAGS$ac_delim
43760 ac_ct_F77!$ac_ct_F77$ac_delim
43761 LIBTOOL!$LIBTOOL$ac_delim
43762 LIBADD_DL!$LIBADD_DL$ac_delim
43763 XMKMF!$XMKMF$ac_delim
43764 X_CFLAGS!$X_CFLAGS$ac_delim
43765 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
43766 X_LIBS!$X_LIBS$ac_delim
43767 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
43768 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
43769 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
43770 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
43771 OBJS64!$OBJS64$ac_delim
43772 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
43773 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
43774 NE2K_OBJS!$NE2K_OBJS$ac_delim
43775 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
43776 PCI_OBJ!$PCI_OBJ$ac_delim
43777 KERNELDIR!$KERNELDIR$ac_delim
43778 LSMOD!$LSMOD$ac_delim
43779 INSMOD!$INSMOD$ac_delim
43780 RMMOD!$RMMOD$ac_delim
43781 DEPMOD!$DEPMOD$ac_delim
43782 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
43783 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
43784 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
43785 SCSI_OBJS!$SCSI_OBJS$ac_delim
43786 _ACEOF
43788 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
43789 break
43790 elif $ac_last_try; then
43791 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43792 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43793 { (exit 1); exit 1; }; }
43794 else
43795 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43797 done
43799 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43800 if test -n "$ac_eof"; then
43801 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43802 ac_eof=`expr $ac_eof + 1`
43805 cat >>$CONFIG_STATUS <<_ACEOF
43806 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
43807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43808 _ACEOF
43809 sed '
43810 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43811 s/^/s,@/; s/!/@,|#_!!_#|/
43814 s/'"$ac_delim"'$/,g/; t
43815 s/$/\\/; p
43816 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43817 ' >>$CONFIG_STATUS <conf$$subs.sed
43818 rm -f conf$$subs.sed
43819 cat >>$CONFIG_STATUS <<_ACEOF
43820 CEOF$ac_eof
43821 _ACEOF
43824 ac_delim='%!_!# '
43825 for ac_last_try in false false false false false :; do
43826 cat >conf$$subs.sed <<_ACEOF
43827 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
43828 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
43829 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
43830 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
43831 BX_EXTERNAL_DEBUGGER!$BX_EXTERNAL_DEBUGGER$ac_delim
43832 BX_MAGIC_BREAKPOINT!$BX_MAGIC_BREAKPOINT$ac_delim
43833 DISASM_VAR!$DISASM_VAR$ac_delim
43834 READLINE_LIB!$READLINE_LIB$ac_delim
43835 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
43836 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
43837 FPU_VAR!$FPU_VAR$ac_delim
43838 CDROM_OBJS!$CDROM_OBJS$ac_delim
43839 SB16_OBJS!$SB16_OBJS$ac_delim
43840 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
43841 GAME_OBJS!$GAME_OBJS$ac_delim
43842 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
43843 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
43844 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
43845 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
43846 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
43847 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
43848 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
43849 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
43850 INLINE_VAR!$INLINE_VAR$ac_delim
43851 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
43852 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
43853 RC_CMD!$RC_CMD$ac_delim
43854 WX_CONFIG!$WX_CONFIG$ac_delim
43855 XPM_LIB!$XPM_LIB$ac_delim
43856 PKG_CONFIG!$PKG_CONFIG$ac_delim
43857 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
43858 GTK_LIBS!$GTK_LIBS$ac_delim
43859 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
43860 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
43861 WX_CFLAGS!$WX_CFLAGS$ac_delim
43862 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
43863 WGET!$WGET$ac_delim
43864 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
43865 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
43866 PTHREAD_CC!$PTHREAD_CC$ac_delim
43867 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
43868 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
43869 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
43870 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
43871 RFB_LIBS!$RFB_LIBS$ac_delim
43872 GUI_OBJS!$GUI_OBJS$ac_delim
43873 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
43874 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
43875 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
43876 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
43877 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
43878 DASH!$DASH$ac_delim
43879 SLASH!$SLASH$ac_delim
43880 CXXFP!$CXXFP$ac_delim
43881 CFP!$CFP$ac_delim
43882 OFP!$OFP$ac_delim
43883 MAKELIB!$MAKELIB$ac_delim
43884 RMCOMMAND!$RMCOMMAND$ac_delim
43885 LINK!$LINK$ac_delim
43886 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
43887 EXE!$EXE$ac_delim
43888 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
43889 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
43890 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
43891 CD_UP_ONE!$CD_UP_ONE$ac_delim
43892 CD_UP_TWO!$CD_UP_TWO$ac_delim
43893 CD_UP_THREE!$CD_UP_THREE$ac_delim
43894 VERSION!$VERSION$ac_delim
43895 VER_STRING!$VER_STRING$ac_delim
43896 REL_STRING!$REL_STRING$ac_delim
43897 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
43898 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
43899 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
43900 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
43901 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
43902 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
43903 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
43904 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
43905 GZIP!$GZIP$ac_delim
43906 TAR!$TAR$ac_delim
43907 LIBOBJS!$LIBOBJS$ac_delim
43908 LTLIBOBJS!$LTLIBOBJS$ac_delim
43909 _ACEOF
43911 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
43912 break
43913 elif $ac_last_try; then
43914 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
43915 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
43916 { (exit 1); exit 1; }; }
43917 else
43918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43920 done
43922 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
43923 if test -n "$ac_eof"; then
43924 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
43925 ac_eof=`expr $ac_eof + 1`
43928 cat >>$CONFIG_STATUS <<_ACEOF
43929 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
43930 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
43931 _ACEOF
43932 sed '
43933 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
43934 s/^/s,@/; s/!/@,|#_!!_#|/
43937 s/'"$ac_delim"'$/,g/; t
43938 s/$/\\/; p
43939 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
43940 ' >>$CONFIG_STATUS <conf$$subs.sed
43941 rm -f conf$$subs.sed
43942 cat >>$CONFIG_STATUS <<_ACEOF
43943 :end
43944 s/|#_!!_#|//g
43945 CEOF$ac_eof
43946 _ACEOF
43949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
43950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43951 # trailing colons and then remove the whole line if VPATH becomes empty
43952 # (actually we leave an empty line to preserve line numbers).
43953 if test "x$srcdir" = x.; then
43954 ac_vpsub='/^[ ]*VPATH[ ]*=/{
43955 s/:*\$(srcdir):*/:/
43956 s/:*\${srcdir}:*/:/
43957 s/:*@srcdir@:*/:/
43958 s/^\([^=]*=[ ]*\):*/\1/
43959 s/:*$//
43960 s/^[^=]*=[ ]*$//
43964 cat >>$CONFIG_STATUS <<\_ACEOF
43965 fi # test -n "$CONFIG_FILES"
43968 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
43970 case $ac_tag in
43971 :[FHLC]) ac_mode=$ac_tag; continue;;
43972 esac
43973 case $ac_mode$ac_tag in
43974 :[FHL]*:*);;
43975 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
43976 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
43977 { (exit 1); exit 1; }; };;
43978 :[FH]-) ac_tag=-:-;;
43979 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43980 esac
43981 ac_save_IFS=$IFS
43982 IFS=:
43983 set x $ac_tag
43984 IFS=$ac_save_IFS
43985 shift
43986 ac_file=$1
43987 shift
43989 case $ac_mode in
43990 :L) ac_source=$1;;
43991 :[FH])
43992 ac_file_inputs=
43993 for ac_f
43995 case $ac_f in
43996 -) ac_f="$tmp/stdin";;
43997 *) # Look for the file first in the build tree, then in the source tree
43998 # (if the path is not absolute). The absolute path cannot be DOS-style,
43999 # because $ac_f cannot contain `:'.
44000 test -f "$ac_f" ||
44001 case $ac_f in
44002 [\\/$]*) false;;
44003 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44004 esac ||
44005 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44006 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44007 { (exit 1); exit 1; }; };;
44008 esac
44009 ac_file_inputs="$ac_file_inputs $ac_f"
44010 done
44012 # Let's still pretend it is `configure' which instantiates (i.e., don't
44013 # use $as_me), people would be surprised to read:
44014 # /* config.h. Generated by config.status. */
44015 configure_input="Generated from "`IFS=:
44016 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44017 if test x"$ac_file" != x-; then
44018 configure_input="$ac_file. $configure_input"
44019 { echo "$as_me:$LINENO: creating $ac_file" >&5
44020 echo "$as_me: creating $ac_file" >&6;}
44023 case $ac_tag in
44024 *:-:* | *:-) cat >"$tmp/stdin";;
44025 esac
44027 esac
44029 ac_dir=`$as_dirname -- "$ac_file" ||
44030 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44031 X"$ac_file" : 'X\(//\)[^/]' \| \
44032 X"$ac_file" : 'X\(//\)$' \| \
44033 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44034 echo X"$ac_file" |
44035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44036 s//\1/
44039 /^X\(\/\/\)[^/].*/{
44040 s//\1/
44043 /^X\(\/\/\)$/{
44044 s//\1/
44047 /^X\(\/\).*/{
44048 s//\1/
44051 s/.*/./; q'`
44052 { as_dir="$ac_dir"
44053 case $as_dir in #(
44054 -*) as_dir=./$as_dir;;
44055 esac
44056 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44057 as_dirs=
44058 while :; do
44059 case $as_dir in #(
44060 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44061 *) as_qdir=$as_dir;;
44062 esac
44063 as_dirs="'$as_qdir' $as_dirs"
44064 as_dir=`$as_dirname -- "$as_dir" ||
44065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44066 X"$as_dir" : 'X\(//\)[^/]' \| \
44067 X"$as_dir" : 'X\(//\)$' \| \
44068 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44069 echo X"$as_dir" |
44070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44071 s//\1/
44074 /^X\(\/\/\)[^/].*/{
44075 s//\1/
44078 /^X\(\/\/\)$/{
44079 s//\1/
44082 /^X\(\/\).*/{
44083 s//\1/
44086 s/.*/./; q'`
44087 test -d "$as_dir" && break
44088 done
44089 test -z "$as_dirs" || eval "mkdir $as_dirs"
44090 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44091 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44092 { (exit 1); exit 1; }; }; }
44093 ac_builddir=.
44095 case "$ac_dir" in
44096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44099 # A ".." for each directory in $ac_dir_suffix.
44100 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44101 case $ac_top_builddir_sub in
44102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44104 esac ;;
44105 esac
44106 ac_abs_top_builddir=$ac_pwd
44107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44108 # for backward compatibility:
44109 ac_top_builddir=$ac_top_build_prefix
44111 case $srcdir in
44112 .) # We are building in place.
44113 ac_srcdir=.
44114 ac_top_srcdir=$ac_top_builddir_sub
44115 ac_abs_top_srcdir=$ac_pwd ;;
44116 [\\/]* | ?:[\\/]* ) # Absolute name.
44117 ac_srcdir=$srcdir$ac_dir_suffix;
44118 ac_top_srcdir=$srcdir
44119 ac_abs_top_srcdir=$srcdir ;;
44120 *) # Relative name.
44121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44122 ac_top_srcdir=$ac_top_build_prefix$srcdir
44123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44124 esac
44125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44128 case $ac_mode in
44131 # CONFIG_FILE
44134 _ACEOF
44136 cat >>$CONFIG_STATUS <<\_ACEOF
44137 # If the template does not know about datarootdir, expand it.
44138 # FIXME: This hack should be removed a few years after 2.60.
44139 ac_datarootdir_hack=; ac_datarootdir_seen=
44141 case `sed -n '/datarootdir/ {
44145 /@datadir@/p
44146 /@docdir@/p
44147 /@infodir@/p
44148 /@localedir@/p
44149 /@mandir@/p
44150 ' $ac_file_inputs` in
44151 *datarootdir*) ac_datarootdir_seen=yes;;
44152 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44153 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44154 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44155 _ACEOF
44156 cat >>$CONFIG_STATUS <<_ACEOF
44157 ac_datarootdir_hack='
44158 s&@datadir@&$datadir&g
44159 s&@docdir@&$docdir&g
44160 s&@infodir@&$infodir&g
44161 s&@localedir@&$localedir&g
44162 s&@mandir@&$mandir&g
44163 s&\\\${datarootdir}&$datarootdir&g' ;;
44164 esac
44165 _ACEOF
44167 # Neutralize VPATH when `$srcdir' = `.'.
44168 # Shell code in configure.ac might set extrasub.
44169 # FIXME: do we really want to maintain this feature?
44170 cat >>$CONFIG_STATUS <<_ACEOF
44171 sed "$ac_vpsub
44172 $extrasub
44173 _ACEOF
44174 cat >>$CONFIG_STATUS <<\_ACEOF
44176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44177 s&@configure_input@&$configure_input&;t t
44178 s&@top_builddir@&$ac_top_builddir_sub&;t t
44179 s&@srcdir@&$ac_srcdir&;t t
44180 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44181 s&@top_srcdir@&$ac_top_srcdir&;t t
44182 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44183 s&@builddir@&$ac_builddir&;t t
44184 s&@abs_builddir@&$ac_abs_builddir&;t t
44185 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44186 $ac_datarootdir_hack
44187 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
44189 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44190 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44191 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44192 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44193 which seems to be undefined. Please make sure it is defined." >&5
44194 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44195 which seems to be undefined. Please make sure it is defined." >&2;}
44197 rm -f "$tmp/stdin"
44198 case $ac_file in
44199 -) cat "$tmp/out"; rm -f "$tmp/out";;
44200 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44201 esac
44205 # CONFIG_HEADER
44207 _ACEOF
44209 # Transform confdefs.h into a sed script `conftest.defines', that
44210 # substitutes the proper values into config.h.in to produce config.h.
44211 rm -f conftest.defines conftest.tail
44212 # First, append a space to every undef/define line, to ease matching.
44213 echo 's/$/ /' >conftest.defines
44214 # Then, protect against being on the right side of a sed subst, or in
44215 # an unquoted here document, in config.status. If some macros were
44216 # called several times there might be several #defines for the same
44217 # symbol, which is useless. But do not sort them, since the last
44218 # AC_DEFINE must be honored.
44219 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44220 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44221 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44222 # PARAMS is the parameter list in the macro definition--in most cases, it's
44223 # just an empty string.
44224 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44225 ac_dB='\\)[ (].*,\\1define\\2'
44226 ac_dC=' '
44227 ac_dD=' ,'
44229 uniq confdefs.h |
44230 sed -n '
44231 t rset
44232 :rset
44233 s/^[ ]*#[ ]*define[ ][ ]*//
44234 t ok
44237 s/[\\&,]/\\&/g
44238 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44239 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44240 ' >>conftest.defines
44242 # Remove the space that was appended to ease matching.
44243 # Then replace #undef with comments. This is necessary, for
44244 # example, in the case of _POSIX_SOURCE, which is predefined and required
44245 # on some systems where configure will not decide to define it.
44246 # (The regexp can be short, since the line contains either #define or #undef.)
44247 echo 's/ $//
44248 s,^[ #]*u.*,/* & */,' >>conftest.defines
44250 # Break up conftest.defines:
44251 ac_max_sed_lines=50
44253 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44254 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44255 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44256 # et cetera.
44257 ac_in='$ac_file_inputs'
44258 ac_out='"$tmp/out1"'
44259 ac_nxt='"$tmp/out2"'
44261 while :
44263 # Write a here document:
44264 cat >>$CONFIG_STATUS <<_ACEOF
44265 # First, check the format of the line:
44266 cat >"\$tmp/defines.sed" <<\\CEOF
44267 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44268 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44270 :def
44271 _ACEOF
44272 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44273 echo 'CEOF
44274 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44275 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44276 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44277 grep . conftest.tail >/dev/null || break
44278 rm -f conftest.defines
44279 mv conftest.tail conftest.defines
44280 done
44281 rm -f conftest.defines conftest.tail
44283 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44284 cat >>$CONFIG_STATUS <<\_ACEOF
44285 if test x"$ac_file" != x-; then
44286 echo "/* $configure_input */" >"$tmp/config.h"
44287 cat "$ac_result" >>"$tmp/config.h"
44288 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44289 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44290 echo "$as_me: $ac_file is unchanged" >&6;}
44291 else
44292 rm -f $ac_file
44293 mv "$tmp/config.h" $ac_file
44295 else
44296 echo "/* $configure_input */"
44297 cat "$ac_result"
44299 rm -f "$tmp/out12"
44303 esac
44305 done # for ac_tag
44308 { (exit 0); exit 0; }
44309 _ACEOF
44310 chmod +x $CONFIG_STATUS
44311 ac_clean_files=$ac_clean_files_save
44314 # configure is writing to config.log, and then calls config.status.
44315 # config.status does its own redirection, appending to config.log.
44316 # Unfortunately, on DOS this fails, as config.log is still kept open
44317 # by configure, so config.status won't be able to write to it; its
44318 # output is simply discarded. So we exec the FD to /dev/null,
44319 # effectively closing config.log, so it can be properly (re)opened and
44320 # appended to by config.status. When coming back to configure, we
44321 # need to make the FD available again.
44322 if test "$no_create" != yes; then
44323 ac_cs_success=:
44324 ac_config_status_args=
44325 test "$silent" = yes &&
44326 ac_config_status_args="$ac_config_status_args --quiet"
44327 exec 5>/dev/null
44328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44329 exec 5>>config.log
44330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44331 # would make configure fail if this is the last instruction.
44332 $ac_cs_success || { (exit 1); exit 1; }