- removed support for old-style syntax userbutton shortcuts
[bochs-mirror.git] / configure
blobade030c8658656c9817bfc666a5488c842062102
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.365 2008/04/05 19:21:52 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
45 chmod +x conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47 PATH_SEPARATOR=';'
48 else
49 PATH_SEPARATOR=:
51 rm -f conf$$.sh
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56 as_unset=unset
57 else
58 as_unset=false
62 # IFS
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
69 IFS=" "" $as_nl"
71 # Find who we are. Look in the path if we contain no directory separator.
72 case $0 in
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
77 IFS=$as_save_IFS
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88 as_myself=$0
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92 { (exit 1); exit 1; }
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
103 # NLS nuisances.
104 for as_var in \
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 LC_TELEPHONE LC_TIME
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
111 else
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 done
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 as_expr=expr
120 else
121 as_expr=false
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125 as_basename=basename
126 else
127 as_basename=false
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
138 s//\1/
141 /^X\/\(\/\/\)$/{
142 s//\1/
145 /^X\/\(\/\).*/{
146 s//\1/
149 s/.*/./; q'`
151 # CDPATH.
152 $as_unset CDPATH
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
157 as_have_required=yes
158 else
159 as_have_required=no
162 if test $as_have_required = yes && (eval ":
163 (as_func_return () {
164 (exit \$1)
166 as_func_success () {
167 as_func_return 0
169 as_func_failure () {
170 as_func_return 1
172 as_func_ret_success () {
173 return 0
175 as_func_ret_failure () {
176 return 1
179 exitcode=0
180 if as_func_success; then
182 else
183 exitcode=1
184 echo as_func_success failed.
187 if as_func_failure; then
188 exitcode=1
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
194 else
195 exitcode=1
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
200 exitcode=1
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 else
207 exitcode=1
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
214 as_lineno_1=\$LINENO
215 as_lineno_2=\$LINENO
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
220 else
221 as_candidate_shells=
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 IFS=$as_save_IFS
226 test -z "$as_dir" && as_dir=.
227 case $as_dir in
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231 done;;
232 esac
233 done
234 IFS=$as_save_IFS
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248 else
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
251 esac
257 _ASEOF
258 }; then
259 CONFIG_SHELL=$as_shell
260 as_have_required=yes
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 emulate sh
264 NULLCMD=:
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
268 setopt NO_GLOB_SUBST
269 else
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
272 esac
278 (as_func_return () {
279 (exit $1)
281 as_func_success () {
282 as_func_return 0
284 as_func_failure () {
285 as_func_return 1
287 as_func_ret_success () {
288 return 0
290 as_func_ret_failure () {
291 return 1
294 exitcode=0
295 if as_func_success; then
297 else
298 exitcode=1
299 echo as_func_success failed.
302 if as_func_failure; then
303 exitcode=1
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
309 else
310 exitcode=1
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
315 exitcode=1
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 else
322 exitcode=1
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
329 as_lineno_1=$LINENO
330 as_lineno_2=$LINENO
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334 _ASEOF
335 }; then
336 break
341 done
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346 done
347 export CONFIG_SHELL
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
368 (exit \$1)
370 as_func_success () {
371 as_func_return 0
373 as_func_failure () {
374 as_func_return 1
376 as_func_ret_success () {
377 return 0
379 as_func_ret_failure () {
380 return 1
383 exitcode=0
384 if as_func_success; then
386 else
387 exitcode=1
388 echo as_func_success failed.
391 if as_func_failure; then
392 exitcode=1
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
398 else
399 exitcode=1
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
404 exitcode=1
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 else
411 exitcode=1
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
419 echo message
424 as_lineno_1=$LINENO
425 as_lineno_2=$LINENO
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
435 # case at line end.
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
439 sed -n '
441 /[$]LINENO/=
442 ' <$as_myself |
443 sed '
444 s/[$]LINENO.*/&-/
445 t lineno
447 :lineno
449 :loop
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 t loop
452 s/-\n.*//
453 ' >$as_me.lineno &&
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
461 . "./$as_me.lineno"
462 # Exit status is that of the last command.
463 exit
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468 as_dirname=dirname
469 else
470 as_dirname=false
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476 case `echo 'x\c'` in
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) ECHO_C='\c';;
479 esac;;
481 ECHO_N='-n';;
482 esac
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
486 as_expr=expr
487 else
488 as_expr=false
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
494 else
495 rm -f conf$$.dir
496 mkdir conf$$.dir
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 as_ln_s='ln -s'
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508 as_ln_s=ln
509 else
510 as_ln_s='cp -p'
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
516 as_mkdir_p=:
517 else
518 test -d ./-p && rmdir ./-p
519 as_mkdir_p=false
522 if test -x / >/dev/null 2>&1; then
523 as_test_x='test -x'
524 else
525 if ls -dL / >/dev/null 2>&1; then
526 as_ls_L_option=L
527 else
528 as_ls_L_option=
530 as_test_x='
531 eval sh -c '\''
532 if test -d "$1"; then
533 test -d "$1/.";
534 else
535 case $1 in
536 -*)set "./$1";;
537 esac;
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
540 '\'' sh
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 case X$ECHO in
558 X*--fallback-echo)
559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 esac
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566 # Discard the --no-reexec flag, and continue.
567 shift
568 elif test "X$1" = X--fallback-echo; then
569 # Avoid inline document here, it may be left over
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
574 else
575 # Restart under the correct shell.
576 exec $SHELL "$0" --no-reexec ${1+"$@"}
579 if test "X$1" = X--fallback-echo; then
580 # used as fallback echo
581 shift
582 cat <<EOF
585 exit 0
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
598 echo_test_string="`eval $cmd`" &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600 then
601 break
603 done
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
619 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 echo="$dir/echo"
625 break
627 done
628 IFS="$lt_save_ifs"
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 echo='print -r'
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 echo='printf %s\n'
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673 then
674 break
676 prev="$cmd"
677 done
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 echo=echo
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 tagnames=${tagnames+${tagnames},}CXX
705 tagnames=${tagnames+${tagnames},}F77
707 exec 7<&0 </dev/null 6>&1
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715 # Initializations.
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
734 ac_unique_file="bochs.h"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 build
809 build_cpu
810 build_vendor
811 build_os
812 host
813 host_cpu
814 host_vendor
815 host_os
816 target
817 target_cpu
818 target_vendor
819 target_os
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
828 CXXFLAGS
829 ac_ct_CXX
830 SET_MAKE
831 GREP
832 EGREP
833 LN_S
834 ECHO
836 RANLIB
837 STRIP
839 CXXCPP
841 FFLAGS
842 ac_ct_F77
843 LIBTOOL
844 LIBADD_DL
845 XMKMF
846 X_CFLAGS
847 X_PRE_LIBS
848 X_LIBS
849 X_EXTRA_LIBS
850 BX_USE_IDLE_HACK
851 DEFINE_PLUGIN_PATH
852 NONPLUGIN_GUI_LINK_OPTS
853 OBJS64
854 IOAPIC_OBJS
855 BX_COMPRESSED_HD_SUPPORT
856 NE2K_OBJS
857 BX_SUPPORT_ACPI
858 PCI_OBJ
859 KERNELDIR
860 LSMOD
861 INSMOD
862 RMMOD
863 DEPMOD
864 PCIDEV_MODULE_MAKE_ALL
865 KERNEL_MODULE_SUFFIX
866 USBDEV_OBJS
867 SCSI_OBJS
868 NETLOW_OBJS
869 SUFFIX_LINE
870 CPP_SUFFIX
871 DEBUGGER_VAR
872 BX_EXTERNAL_DEBUGGER
873 DISASM_VAR
874 READLINE_LIB
875 INSTRUMENT_DIR
876 INSTRUMENT_VAR
877 FPU_VAR
878 CDROM_OBJS
879 SB16_OBJS
880 SOUNDLOW_OBJS
881 GAME_OBJS
882 GDBSTUB_VAR
883 IODEBUG_OBJS
884 DOCBOOK2HTML
885 BUILD_DOCBOOK_VAR
886 INSTALL_DOCBOOK_VAR
887 IODEV_LIB_VAR
888 EXTRA_BX_OBJS
889 NONINLINE_VAR
890 INLINE_VAR
891 EXTERNAL_DEPENDENCY
892 EXT_DEBUG_OBJS
893 RC_CMD
894 WX_CONFIG
895 XPM_LIB
896 PKG_CONFIG
897 GTK_CFLAGS
898 GTK_LIBS
899 GUI_CFLAGS
900 GUI_CXXFLAGS
901 WX_CFLAGS
902 WX_CXXFLAGS
903 WGET
904 DIALOG_OBJS
905 EXPORT_DYNAMIC
906 PTHREAD_CC
907 PTHREAD_LIBS
908 PTHREAD_CFLAGS
909 INSTALL_TARGET
910 INSTALL_LIST_FOR_PLATFORM
911 RFB_LIBS
912 GUI_OBJS
913 DEVICE_LINK_OPTS
914 GUI_LINK_OPTS
915 GUI_LINK_OPTS_TERM
916 GUI_LINK_OPTS_WX
917 BXIMAGE_LINK_OPTS
918 DASH
919 SLASH
920 CXXFP
923 MAKELIB
924 RMCOMMAND
925 LINK
926 LINK_CONSOLE
928 PRIMARY_TARGET
929 PLUGIN_LIBNAME_TRANSFORMATION
930 COMMAND_SEPARATOR
931 CD_UP_ONE
932 CD_UP_TWO
933 CD_UP_THREE
934 VERSION
935 VER_STRING
936 WIN_VER_STRING
937 REL_STRING
938 EXTRA_LINK_OPTS
939 GUI_NON_PLUGIN_OBJS
940 GUI_PLUGIN_OBJS
941 IODEV_NON_PLUGIN_OBJS
942 IODEV_PLUGIN_OBJS
943 PLUGIN_VAR
944 PLUGIN_TARGET
945 INSTALL_PLUGINS_VAR
946 GZIP
948 LIBOBJS
949 LTLIBOBJS'
950 ac_subst_files=''
951 ac_precious_vars='build_alias
952 host_alias
953 target_alias
955 CFLAGS
956 LDFLAGS
957 LIBS
958 CPPFLAGS
960 CXXFLAGS
963 CXXCPP
965 FFLAGS
966 XMKMF
967 PKG_CONFIG
968 GTK_CFLAGS
969 GTK_LIBS'
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1025 ac_prev=
1026 continue
1029 case $ac_option in
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 *) ac_optarg=yes ;;
1032 esac
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1038 ac_dashdash=yes ;;
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 ac_prev=bindir ;;
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1061 ac_prev=datadir ;;
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1082 ac_prev=docdir ;;
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 ac_prev=dvidir ;;
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098 eval enable_$ac_feature=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1111 with_gas=yes ;;
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 ac_prev=htmldir ;;
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 | --ht=*)
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 ac_prev=infodir ;;
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1144 ac_prev=libdir ;;
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 ac_prev=mandir ;;
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1174 with_fp=no ;;
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1178 no_create=yes ;;
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182 no_recursion=yes ;;
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 ac_prev=prefix ;;
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 ac_prev=pdfdir ;;
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1235 ac_prev=psdir ;;
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237 psdir=$ac_optarg ;;
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1241 silent=yes ;;
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 ac_prev=sbindir ;;
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 | --sbi=* | --sb=*)
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1252 | --sha | --sh)
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 | --sha=* | --sh=*)
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1261 ac_prev=site ;;
1262 -site=* | --site=* | --sit=*)
1263 site=$ac_optarg ;;
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 ac_prev=srcdir ;;
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283 verbose=yes ;;
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1288 -with-* | --with-*)
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295 eval with_$ac_package=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_$ac_package=no ;;
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1346 esac
1347 done
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val=\$$ac_var
1362 case $ac_val in
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 esac
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1368 done
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1422 /^X\(\/\/\)$/{
1423 s//\1/
1426 /^X\(\/\).*/{
1427 s//\1/
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1435 else
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1447 pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450 srcdir=.
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1471 cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1481 Configuration:
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1496 [PREFIX]
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525 _ACEOF
1527 cat <<\_ACEOF
1529 X features:
1530 --x-includes=DIR X include files are in DIR
1531 --x-libraries=DIR X library files are in DIR
1533 System types:
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1537 _ACEOF
1540 if test -n "$ac_init_help"; then
1542 cat <<\_ACEOF
1544 Optional Features:
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-static[=PKGS] build static libraries [default=no]
1548 --enable-shared[=PKGS] build shared libraries [default=yes]
1549 --enable-fast-install[=PKGS]
1550 optimize for fast installation [default=yes]
1551 --disable-libtool-lock avoid locking (might break parallel builds)
1552 --enable-ltdl-install install libltdl
1553 --disable-largefile omit support for large files
1554 --enable-idle-hack use Roland Mainz's idle hack
1555 --enable-plugins enable plugins
1556 --enable-x86-64 compile in support for x86-64 instructions
1557 --enable-smp compile in support for SMP configurations
1558 --enable-cpu-level select cpu level (3,4,5,6)
1559 --enable-apic enable APIC support
1560 --enable-compressed-hd allows compressed (zlib) hard disk image (not implemented yet)
1561 --enable-ne2000 enable limited ne2000 support
1562 --enable-acpi enable ACPI support
1563 --enable-pci enable limited i440FX PCI support
1564 --enable-pcidev enable PCI host device mapping support (linux host only)
1565 --enable-usb enable limited USB support
1566 --enable-pnic enable PCI pseudo NIC support
1567 --enable-large-pages support for large pages (2M/4M pages)
1568 --enable-pae support Physical Address Extensions
1569 --enable-global-pages support for global pages in PDE/PTE
1570 --enable-mtrr support for MTRRs
1571 --enable-guest2host-tlb support guest to host addr TLB for speed
1572 --enable-repeat-speedups support repeated IO and mem copy speedups
1573 --enable-trace-cache support instruction trace cache
1574 --enable-icache support instruction cache
1575 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1576 --enable-host-specific-asms support for host specific inline assembly
1577 --enable-ignore-bad-msr ignore bad MSR references
1578 --enable-port-e9-hack writes to port e9 go to console
1579 --enable-show-ips show IPS in Bochs log file
1580 --enable-cpp use .cpp as C++ suffix
1581 --enable-debugger compile in support for Bochs internal debugger
1582 --enable-external-debugger enable external debugger support (win32 only)
1583 --enable-disasm compile in support for disassembler
1584 --enable-all-optimizations compile in all possible optimizations
1585 --enable-readline use readline library, if available
1586 --enable-instrumentation compile in support for instrumentation
1587 --enable-logging enable logging
1588 --enable-raw-serial use raw serial port access
1589 --enable-vbe use VESA BIOS extensions
1590 --enable-clgd54xx enable CLGD54XX emulation
1591 --enable-fpu compile in FPU emulation
1592 --enable-vme virtual 8086 mode extensions
1593 --enable-mmx MMX support
1594 --enable-3dnow 3DNow! support
1595 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1596 --enable-sse-extension support for SSE extensions
1597 --enable-daz denormals-are-zeroes support
1598 --enable-xsave support for XSAVE/XRSTOR extensions
1599 --enable-alignment-check alignment check (#AC) support
1600 --enable-misaligned-sse misaligned SSE support
1601 --enable-sep SYSENTER/SYSEXIT support
1602 --enable-popcnt support for POPCNT instruction
1603 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1604 --enable-x86-debugger x86 debugger support
1605 --enable-cdrom CDROM support
1606 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1607 --enable-gameport enable standard PC gameport support
1608 --enable-gdb-stub enable gdb stub support
1609 --enable-iodebug enable I/O interface to debugger
1610 --enable-docbook build the Docbook documentation
1611 --enable-xpm enable the check for XPM support
1612 --enable-magic-breakpoints enables magic breakpoints (deprecated)
1613 --enable-save-restore enables save/restore (deprecated)
1615 Optional Packages:
1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1619 --with-pic try to use only PIC/non-PIC objects [default=use
1620 both]
1621 --with-tags[=TAGS] include additional configurations [automatic]
1622 --with-x use the X Window System
1623 --with-x11 use X11 GUI
1624 --with-beos use BeOS GUI
1625 --with-win32 use Win32 GUI
1626 --with-macos use Macintosh/CodeWarrior environment
1627 --with-carbon compile for MacOS X with Carbon GUI
1628 --with-nogui no native GUI, just use blank stubs
1629 --with-term textmode terminal environment
1630 --with-rfb use RFB protocol, works with VNC viewer
1631 --with-amigaos use AmigaOS (or MorphOS) GUI
1632 --with-sdl use SDL libraries
1633 --with-svga use SVGALib libraries
1634 --with-wx use wxWidgets libraries
1635 --with-all-libs compile all guis that Bochs supports
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1647 CPP C preprocessor
1648 CXXCPP C++ preprocessor
1649 F77 Fortran 77 compiler command
1650 FFLAGS Fortran 77 compiler flags
1651 XMKMF Path to xmkmf, Makefile generator for X Window System
1652 PKG_CONFIG path to pkg-config utility
1653 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1654 GTK_LIBS linker flags for GTK, overriding pkg-config
1656 Use these variables to override the choices made by `configure' or to help
1657 it to find libraries and programs with nonstandard names/locations.
1659 _ACEOF
1660 ac_status=$?
1663 if test "$ac_init_help" = "recursive"; then
1664 # If there are subdirs, report their specific --help.
1665 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1666 test -d "$ac_dir" || continue
1667 ac_builddir=.
1669 case "$ac_dir" in
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1678 esac ;;
1679 esac
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1685 case $srcdir in
1686 .) # We are building in place.
1687 ac_srcdir=.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1694 *) # Relative name.
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 esac
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1707 echo &&
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1709 else
1710 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 fi || ac_status=$?
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1713 done
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1718 cat <<\_ACEOF
1719 configure
1720 generated by GNU Autoconf 2.61
1722 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1723 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1724 This configure script is free software; the Free Software Foundation
1725 gives unlimited permission to copy, distribute and modify it.
1726 _ACEOF
1727 exit
1729 cat >config.log <<_ACEOF
1730 This file contains any messages produced by compilers while
1731 running configure, to aid debugging if configure makes a mistake.
1733 It was created by $as_me, which was
1734 generated by GNU Autoconf 2.61. Invocation command line was
1736 $ $0 $@
1738 _ACEOF
1739 exec 5>>config.log
1741 cat <<_ASUNAME
1742 ## --------- ##
1743 ## Platform. ##
1744 ## --------- ##
1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1763 _ASUNAME
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1768 IFS=$as_save_IFS
1769 test -z "$as_dir" && as_dir=.
1770 echo "PATH: $as_dir"
1771 done
1772 IFS=$as_save_IFS
1774 } >&5
1776 cat >&5 <<_ACEOF
1779 ## ----------- ##
1780 ## Core tests. ##
1781 ## ----------- ##
1783 _ACEOF
1786 # Keep a trace of the command line.
1787 # Strip out --no-create and --no-recursion so they do not pile up.
1788 # Strip out --silent because we don't want to record it for future runs.
1789 # Also quote any args containing shell meta-characters.
1790 # Make two passes to allow for proper duplicate-argument suppression.
1791 ac_configure_args=
1792 ac_configure_args0=
1793 ac_configure_args1=
1794 ac_must_keep_next=false
1795 for ac_pass in 1 2
1797 for ac_arg
1799 case $ac_arg in
1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802 | -silent | --silent | --silen | --sile | --sil)
1803 continue ;;
1804 *\'*)
1805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1806 esac
1807 case $ac_pass in
1808 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1810 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1811 if test $ac_must_keep_next = true; then
1812 ac_must_keep_next=false # Got value, back to normal.
1813 else
1814 case $ac_arg in
1815 *=* | --config-cache | -C | -disable-* | --disable-* \
1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818 | -with-* | --with-* | -without-* | --without-* | --x)
1819 case "$ac_configure_args0 " in
1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1821 esac
1823 -* ) ac_must_keep_next=true ;;
1824 esac
1826 ac_configure_args="$ac_configure_args '$ac_arg'"
1828 esac
1829 done
1830 done
1831 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1832 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1834 # When interrupted or exit'd, cleanup temporary files, and complete
1835 # config.log. We remove comments because anyway the quotes in there
1836 # would cause problems or look ugly.
1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839 trap 'exit_status=$?
1840 # Save into config.log some information that might help in debugging.
1842 echo
1844 cat <<\_ASBOX
1845 ## ---------------- ##
1846 ## Cache variables. ##
1847 ## ---------------- ##
1848 _ASBOX
1849 echo
1850 # The following way of writing the cache mishandles newlines in values,
1852 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1853 eval ac_val=\$$ac_var
1854 case $ac_val in #(
1855 *${as_nl}*)
1856 case $ac_var in #(
1857 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1859 esac
1860 case $ac_var in #(
1861 _ | IFS | as_nl) ;; #(
1862 *) $as_unset $ac_var ;;
1863 esac ;;
1864 esac
1865 done
1866 (set) 2>&1 |
1867 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1868 *${as_nl}ac_space=\ *)
1869 sed -n \
1870 "s/'\''/'\''\\\\'\'''\''/g;
1871 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1872 ;; #(
1874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 esac |
1877 sort
1879 echo
1881 cat <<\_ASBOX
1882 ## ----------------- ##
1883 ## Output variables. ##
1884 ## ----------------- ##
1885 _ASBOX
1886 echo
1887 for ac_var in $ac_subst_vars
1889 eval ac_val=\$$ac_var
1890 case $ac_val in
1891 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 esac
1893 echo "$ac_var='\''$ac_val'\''"
1894 done | sort
1895 echo
1897 if test -n "$ac_subst_files"; then
1898 cat <<\_ASBOX
1899 ## ------------------- ##
1900 ## File substitutions. ##
1901 ## ------------------- ##
1902 _ASBOX
1903 echo
1904 for ac_var in $ac_subst_files
1906 eval ac_val=\$$ac_var
1907 case $ac_val in
1908 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1909 esac
1910 echo "$ac_var='\''$ac_val'\''"
1911 done | sort
1912 echo
1915 if test -s confdefs.h; then
1916 cat <<\_ASBOX
1917 ## ----------- ##
1918 ## confdefs.h. ##
1919 ## ----------- ##
1920 _ASBOX
1921 echo
1922 cat confdefs.h
1923 echo
1925 test "$ac_signal" != 0 &&
1926 echo "$as_me: caught signal $ac_signal"
1927 echo "$as_me: exit $exit_status"
1928 } >&5
1929 rm -f core *.core core.conftest.* &&
1930 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1931 exit $exit_status
1933 for ac_signal in 1 2 13 15; do
1934 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1935 done
1936 ac_signal=0
1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1939 rm -f -r conftest* confdefs.h
1941 # Predefined preprocessor variables.
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_NAME "$PACKAGE_NAME"
1945 _ACEOF
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1950 _ACEOF
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1955 _ACEOF
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_STRING "$PACKAGE_STRING"
1960 _ACEOF
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1965 _ACEOF
1968 # Let the site file select an alternate cache file if it wants to.
1969 # Prefer explicitly selected file to automatically selected ones.
1970 if test -n "$CONFIG_SITE"; then
1971 set x "$CONFIG_SITE"
1972 elif test "x$prefix" != xNONE; then
1973 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1974 else
1975 set x "$ac_default_prefix/share/config.site" \
1976 "$ac_default_prefix/etc/config.site"
1978 shift
1979 for ac_site_file
1981 if test -r "$ac_site_file"; then
1982 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1983 echo "$as_me: loading site script $ac_site_file" >&6;}
1984 sed 's/^/| /' "$ac_site_file" >&5
1985 . "$ac_site_file"
1987 done
1989 if test -r "$cache_file"; then
1990 # Some versions of bash will fail to source /dev/null (special
1991 # files actually), so we avoid doing that.
1992 if test -f "$cache_file"; then
1993 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1994 echo "$as_me: loading cache $cache_file" >&6;}
1995 case $cache_file in
1996 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1997 *) . "./$cache_file";;
1998 esac
2000 else
2001 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2002 echo "$as_me: creating cache $cache_file" >&6;}
2003 >$cache_file
2006 # Check that the precious variables saved in the cache have kept the same
2007 # value.
2008 ac_cache_corrupted=false
2009 for ac_var in $ac_precious_vars; do
2010 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2011 eval ac_new_set=\$ac_env_${ac_var}_set
2012 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2013 eval ac_new_val=\$ac_env_${ac_var}_value
2014 case $ac_old_set,$ac_new_set in
2015 set,)
2016 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2017 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2018 ac_cache_corrupted=: ;;
2019 ,set)
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2023 ,);;
2025 if test "x$ac_old_val" != "x$ac_new_val"; then
2026 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2027 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2028 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2029 echo "$as_me: former value: $ac_old_val" >&2;}
2030 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2031 echo "$as_me: current value: $ac_new_val" >&2;}
2032 ac_cache_corrupted=:
2033 fi;;
2034 esac
2035 # Pass precious variables to config.status.
2036 if test "$ac_new_set" = set; then
2037 case $ac_new_val in
2038 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 *) ac_arg=$ac_var=$ac_new_val ;;
2040 esac
2041 case " $ac_configure_args " in
2042 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2043 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2044 esac
2046 done
2047 if $ac_cache_corrupted; then
2048 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2049 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2050 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2051 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2052 { (exit 1); exit 1; }; }
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079 ac_config_headers="$ac_config_headers config.h"
2081 ac_config_headers="$ac_config_headers ltdlconf.h"
2084 VERSION="2.3.6.cvs"
2085 VER_STRING="2.3.6.cvs"
2086 WIN_VER_STRING="2, 3, 6, 1"
2087 REL_STRING="Build from CVS snapshot, after release 2.3.6"
2092 ac_aux_dir=
2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2094 if test -f "$ac_dir/install-sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install-sh -c"
2097 break
2098 elif test -f "$ac_dir/install.sh"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/install.sh -c"
2101 break
2102 elif test -f "$ac_dir/shtool"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/shtool install -c"
2105 break
2107 done
2108 if test -z "$ac_aux_dir"; then
2109 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2111 { (exit 1); exit 1; }; }
2114 # These three variables are undocumented and unsupported,
2115 # and are intended to be withdrawn in a future Autoconf release.
2116 # They can cause serious problems if a builder's source tree is in a directory
2117 # whose full name contains unusual characters.
2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2120 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2123 # Make sure we can run config.sub.
2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2125 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2127 { (exit 1); exit 1; }; }
2129 { echo "$as_me:$LINENO: checking build system type" >&5
2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_build+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 ac_build_alias=$build_alias
2135 test "x$ac_build_alias" = x &&
2136 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2137 test "x$ac_build_alias" = x &&
2138 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2140 { (exit 1); exit 1; }; }
2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2142 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2144 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2148 echo "${ECHO_T}$ac_cv_build" >&6; }
2149 case $ac_cv_build in
2150 *-*-*) ;;
2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2152 echo "$as_me: error: invalid value of canonical build" >&2;}
2153 { (exit 1); exit 1; }; };;
2154 esac
2155 build=$ac_cv_build
2156 ac_save_IFS=$IFS; IFS='-'
2157 set x $ac_cv_build
2158 shift
2159 build_cpu=$1
2160 build_vendor=$2
2161 shift; shift
2162 # Remember, the first character of IFS is used to create $*,
2163 # except with old shells:
2164 build_os=$*
2165 IFS=$ac_save_IFS
2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2169 { echo "$as_me:$LINENO: checking host system type" >&5
2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2171 if test "${ac_cv_host+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test "x$host_alias" = x; then
2175 ac_cv_host=$ac_cv_build
2176 else
2177 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2180 { (exit 1); exit 1; }; }
2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2185 echo "${ECHO_T}$ac_cv_host" >&6; }
2186 case $ac_cv_host in
2187 *-*-*) ;;
2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2189 echo "$as_me: error: invalid value of canonical host" >&2;}
2190 { (exit 1); exit 1; }; };;
2191 esac
2192 host=$ac_cv_host
2193 ac_save_IFS=$IFS; IFS='-'
2194 set x $ac_cv_host
2195 shift
2196 host_cpu=$1
2197 host_vendor=$2
2198 shift; shift
2199 # Remember, the first character of IFS is used to create $*,
2200 # except with old shells:
2201 host_os=$*
2202 IFS=$ac_save_IFS
2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 { echo "$as_me:$LINENO: checking target system type" >&5
2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2208 if test "${ac_cv_target+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test "x$target_alias" = x; then
2212 ac_cv_target=$ac_cv_host
2213 else
2214 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2215 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2217 { (exit 1); exit 1; }; }
2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2222 echo "${ECHO_T}$ac_cv_target" >&6; }
2223 case $ac_cv_target in
2224 *-*-*) ;;
2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2226 echo "$as_me: error: invalid value of canonical target" >&2;}
2227 { (exit 1); exit 1; }; };;
2228 esac
2229 target=$ac_cv_target
2230 ac_save_IFS=$IFS; IFS='-'
2231 set x $ac_cv_target
2232 shift
2233 target_cpu=$1
2234 target_vendor=$2
2235 shift; shift
2236 # Remember, the first character of IFS is used to create $*,
2237 # except with old shells:
2238 target_os=$*
2239 IFS=$ac_save_IFS
2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2243 # The aliases save the names the user supplied, while $host etc.
2244 # will get canonicalized.
2245 test -n "$target_alias" &&
2246 test "$program_prefix$program_suffix$program_transform_name" = \
2247 NONENONEs,x,x, &&
2248 program_prefix=${target_alias}-
2250 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2251 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2252 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2253 { echo "$as_me:$LINENO: result: yes" >&5
2254 echo "${ECHO_T}yes" >&6; }
2255 cross_configure=1
2256 else
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2259 cross_configure=0
2262 # this case statement defines the compile flags which are needed to
2263 # compile bochs on a platform. Don't put things like optimization settings
2264 # into the configure.in file, since people will want to be able to change
2265 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2266 NO_LT=0
2267 need_dlcompat_for_plugins=0
2268 case "$target" in
2269 *-pc-windows* | *-pc-winnt*)
2270 DEFAULT_GUI=win32 # default to win32 gui
2272 *-pc-cygwin* | *-pc-mingw32*)
2273 NO_LT=1 # do not use libtool at all on cygwin
2274 if test "$with_term" = yes; then
2275 # ncurses won't compile with -mno-cygwin or -DWIN32
2276 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2277 # see /usr/include/curses.h for details.
2278 ADD_FLAGS="-DBROKEN_LINKER=1"
2279 else
2280 # default case
2281 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2282 DEFAULT_GUI=win32 # default to win32 gui
2285 *-macosx* | *-darwin*)
2286 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2287 DEFAULT_GUI=carbon # default to carbon
2288 need_dlcompat_for_plugins=1
2290 *-macos*)
2291 DEFAULT_GUI=macos # macos defaults to macos
2293 *-beos*)
2294 ADD_FLAGS="-Wno-multichar"
2295 DEFAULT_GUI=beos # beos defaults to beos
2297 *-amigaos* | *-morphos*)
2298 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2300 *-solaris*)
2301 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2302 LIBS="$LIBS -lsocket -lnsl"
2303 DEFAULT_GUI=x11
2306 DEFAULT_GUI=x11
2308 esac
2309 if test "${ADD_FLAGS:+set}" = set; then
2310 CFLAGS="$CFLAGS $ADD_FLAGS"
2311 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2312 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2315 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2316 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2317 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2318 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2320 if (test "$with_sdl" != yes) && \
2321 (test "$with_svga" != yes) && \
2322 (test "$with_x11" != yes) && \
2323 (test "$with_beos" != yes) && \
2324 (test "$with_win32" != yes) && \
2325 (test "$with_nogui" != yes) && \
2326 (test "$with_term" != yes) && \
2327 (test "$with_rfb" != yes) && \
2328 (test "$with_amigaos" != yes) && \
2329 (test "$with_carbon" != yes) && \
2330 (test "$with_wx" != yes) && \
2331 (test "$with_macos" != yes); then
2332 # use DEFAULT_GUI. Set the appropriate variable.
2333 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2334 # valid $with_* variable will be set and who knows what will happen?
2335 eval "with_${DEFAULT_GUI}=yes"
2338 ac_ext=c
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_CC+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 break 2
2365 done
2366 done
2367 IFS=$as_save_IFS
2371 CC=$ac_cv_prog_CC
2372 if test -n "$CC"; then
2373 { echo "$as_me:$LINENO: result: $CC" >&5
2374 echo "${ECHO_T}$CC" >&6; }
2375 else
2376 { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2382 if test -z "$ac_cv_prog_CC"; then
2383 ac_ct_CC=$CC
2384 # Extract the first word of "gcc", so it can be a program name with args.
2385 set dummy gcc; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 if test -n "$ac_ct_CC"; then
2392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_ac_ct_CC="gcc"
2402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2405 done
2406 done
2407 IFS=$as_save_IFS
2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2412 if test -n "$ac_ct_CC"; then
2413 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2414 echo "${ECHO_T}$ac_ct_CC" >&6; }
2415 else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2420 if test "x$ac_ct_CC" = x; then
2421 CC=""
2422 else
2423 case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet. If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433 CC=$ac_ct_CC
2435 else
2436 CC="$ac_cv_prog_CC"
2439 if test -z "$CC"; then
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}cc; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_CC+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_CC="${ac_tool_prefix}cc"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2462 done
2463 done
2464 IFS=$as_save_IFS
2468 CC=$ac_cv_prog_CC
2469 if test -n "$CC"; then
2470 { echo "$as_me:$LINENO: result: $CC" >&5
2471 echo "${ECHO_T}$CC" >&6; }
2472 else
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2480 if test -z "$CC"; then
2481 # Extract the first word of "cc", so it can be a program name with args.
2482 set dummy cc; ac_word=$2
2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2485 if test "${ac_cv_prog_CC+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488 if test -n "$CC"; then
2489 ac_cv_prog_CC="$CC" # Let the user override the test.
2490 else
2491 ac_prog_rejected=no
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2500 ac_prog_rejected=yes
2501 continue
2503 ac_cv_prog_CC="cc"
2504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2507 done
2508 done
2509 IFS=$as_save_IFS
2511 if test $ac_prog_rejected = yes; then
2512 # We found a bogon in the path, so make sure we never use it.
2513 set dummy $ac_cv_prog_CC
2514 shift
2515 if test $# != 0; then
2516 # We chose a different compiler from the bogus one.
2517 # However, it has the same basename, so the bogon will be chosen
2518 # first if we set CC to just the basename; use the full file name.
2519 shift
2520 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2525 CC=$ac_cv_prog_CC
2526 if test -n "$CC"; then
2527 { echo "$as_me:$LINENO: result: $CC" >&5
2528 echo "${ECHO_T}$CC" >&6; }
2529 else
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 for ac_prog in cl.exe
2540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2544 if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569 { echo "$as_me:$LINENO: result: $CC" >&5
2570 echo "${ECHO_T}$CC" >&6; }
2571 else
2572 { echo "$as_me:$LINENO: result: no" >&5
2573 echo "${ECHO_T}no" >&6; }
2577 test -n "$CC" && break
2578 done
2580 if test -z "$CC"; then
2581 ac_ct_CC=$CC
2582 for ac_prog in cl.exe
2584 # Extract the first word of "$ac_prog", so it can be a program name with args.
2585 set dummy $ac_prog; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 if test -n "$ac_ct_CC"; then
2592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2593 else
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 for as_dir in $PATH
2597 IFS=$as_save_IFS
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_ac_ct_CC="$ac_prog"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 break 2
2605 done
2606 done
2607 IFS=$as_save_IFS
2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2612 if test -n "$ac_ct_CC"; then
2613 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2614 echo "${ECHO_T}$ac_ct_CC" >&6; }
2615 else
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2621 test -n "$ac_ct_CC" && break
2622 done
2624 if test "x$ac_ct_CC" = x; then
2625 CC=""
2626 else
2627 case $cross_compiling:$ac_tool_warned in
2628 yes:)
2629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2630 whose name does not start with the host triplet. If you think this
2631 configuration is useful to you, please write to autoconf@gnu.org." >&5
2632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2633 whose name does not start with the host triplet. If you think this
2634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2635 ac_tool_warned=yes ;;
2636 esac
2637 CC=$ac_ct_CC
2644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2645 See \`config.log' for more details." >&5
2646 echo "$as_me: error: no acceptable C compiler found in \$PATH
2647 See \`config.log' for more details." >&2;}
2648 { (exit 1); exit 1; }; }
2650 # Provide some information about the compiler.
2651 echo "$as_me:$LINENO: checking for C compiler version" >&5
2652 ac_compiler=`set X $ac_compile; echo $2`
2653 { (ac_try="$ac_compiler --version >&5"
2654 case "(($ac_try" in
2655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656 *) ac_try_echo=$ac_try;;
2657 esac
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659 (eval "$ac_compiler --version >&5") 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }
2663 { (ac_try="$ac_compiler -v >&5"
2664 case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2669 (eval "$ac_compiler -v >&5") 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }
2673 { (ac_try="$ac_compiler -V >&5"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compiler -V >&5") 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); }
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2692 main ()
2696 return 0;
2698 _ACEOF
2699 ac_clean_files_save=$ac_clean_files
2700 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2701 # Try to create an executable without -o first, disregard a.out.
2702 # It will help us diagnose broken compilers, and finding out an intuition
2703 # of exeext.
2704 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2705 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2706 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2708 # List of possible output files, starting from the most likely.
2709 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2710 # only as a last resort. b.out is created by i960 compilers.
2711 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2713 # The IRIX 6 linker writes into existing files which may not be
2714 # executable, retaining their permissions. Remove them first so a
2715 # subsequent execution test works.
2716 ac_rmfiles=
2717 for ac_file in $ac_files
2719 case $ac_file in
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2721 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2722 esac
2723 done
2724 rm -f $ac_rmfiles
2726 if { (ac_try="$ac_link_default"
2727 case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730 esac
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_link_default") 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; then
2736 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2738 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2739 # so that the user can short-circuit this test for compilers unknown to
2740 # Autoconf.
2741 for ac_file in $ac_files ''
2743 test -f "$ac_file" || continue
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2747 [ab].out )
2748 # We found the default executable, but exeext='' is most
2749 # certainly right.
2750 break;;
2751 *.* )
2752 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2753 then :; else
2754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2756 # We set ac_cv_exeext here because the later test for it is not
2757 # safe: cross compilers may not add the suffix if given an `-o'
2758 # argument, so we may need to know it at that point already.
2759 # Even if this section looks crufty: it has the advantage of
2760 # actually working.
2761 break;;
2763 break;;
2764 esac
2765 done
2766 test "$ac_cv_exeext" = no && ac_cv_exeext=
2768 else
2769 ac_file=''
2772 { echo "$as_me:$LINENO: result: $ac_file" >&5
2773 echo "${ECHO_T}$ac_file" >&6; }
2774 if test -z "$ac_file"; then
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: C compiler cannot create executables
2781 See \`config.log' for more details." >&2;}
2782 { (exit 77); exit 77; }; }
2785 ac_exeext=$ac_cv_exeext
2787 # Check that the compiler produces executables we can run. If not, either
2788 # the compiler is broken, or we cross compile.
2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2792 # If not cross compiling, check that we can run a simple program.
2793 if test "$cross_compiling" != yes; then
2794 if { ac_try='./$ac_file'
2795 { (case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_try") 2>&5
2801 ac_status=$?
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2804 cross_compiling=no
2805 else
2806 if test "$cross_compiling" = maybe; then
2807 cross_compiling=yes
2808 else
2809 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2810 If you meant to cross compile, use \`--host'.
2811 See \`config.log' for more details." >&5
2812 echo "$as_me: error: cannot run C compiled programs.
2813 If you meant to cross compile, use \`--host'.
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2819 { echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6; }
2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2823 ac_clean_files=$ac_clean_files_save
2824 # Check that the compiler produces executables we can run. If not, either
2825 # the compiler is broken, or we cross compile.
2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2829 echo "${ECHO_T}$cross_compiling" >&6; }
2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2833 if { (ac_try="$ac_link"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_link") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; then
2843 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2844 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2845 # work properly (i.e., refer to `conftest.exe'), while it won't with
2846 # `rm'.
2847 for ac_file in conftest.exe conftest conftest.*; do
2848 test -f "$ac_file" || continue
2849 case $ac_file in
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2851 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2852 break;;
2853 * ) break;;
2854 esac
2855 done
2856 else
2857 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2860 See \`config.log' for more details." >&2;}
2861 { (exit 1); exit 1; }; }
2864 rm -f conftest$ac_cv_exeext
2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2866 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2868 rm -f conftest.$ac_ext
2869 EXEEXT=$ac_cv_exeext
2870 ac_exeext=$EXEEXT
2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2873 if test "${ac_cv_objext+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876 cat >conftest.$ac_ext <<_ACEOF
2877 /* confdefs.h. */
2878 _ACEOF
2879 cat confdefs.h >>conftest.$ac_ext
2880 cat >>conftest.$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2884 main ()
2888 return 0;
2890 _ACEOF
2891 rm -f conftest.o conftest.obj
2892 if { (ac_try="$ac_compile"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compile") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; then
2902 for ac_file in conftest.o conftest.obj conftest.*; do
2903 test -f "$ac_file" || continue;
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2907 break;;
2908 esac
2909 done
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2915 See \`config.log' for more details." >&5
2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2917 See \`config.log' for more details." >&2;}
2918 { (exit 1); exit 1; }; }
2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2924 echo "${ECHO_T}$ac_cv_objext" >&6; }
2925 OBJEXT=$ac_cv_objext
2926 ac_objext=$OBJEXT
2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2940 main ()
2942 #ifndef __GNUC__
2943 choke me
2944 #endif
2947 return 0;
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (ac_try="$ac_compile"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compile") 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } && {
2964 test -z "$ac_c_werror_flag" ||
2965 test ! -s conftest.err
2966 } && test -s conftest.$ac_objext; then
2967 ac_compiler_gnu=yes
2968 else
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 ac_compiler_gnu=no
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2981 GCC=`test $ac_compiler_gnu = yes && echo yes`
2982 ac_test_CFLAGS=${CFLAGS+set}
2983 ac_save_CFLAGS=$CFLAGS
2984 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2985 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2986 if test "${ac_cv_prog_cc_g+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 ac_save_c_werror_flag=$ac_c_werror_flag
2990 ac_c_werror_flag=yes
2991 ac_cv_prog_cc_g=no
2992 CFLAGS="-g"
2993 cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h. */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h. */
3001 main ()
3005 return 0;
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (ac_try="$ac_compile"
3010 case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3013 esac
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_compile") 2>conftest.er1
3016 ac_status=$?
3017 grep -v '^ *+' conftest.er1 >conftest.err
3018 rm -f conftest.er1
3019 cat conftest.err >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } && {
3022 test -z "$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3024 } && test -s conftest.$ac_objext; then
3025 ac_cv_prog_cc_g=yes
3026 else
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3030 CFLAGS=""
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3039 main ()
3043 return 0;
3045 _ACEOF
3046 rm -f conftest.$ac_objext
3047 if { (ac_try="$ac_compile"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } && {
3060 test -z "$ac_c_werror_flag" ||
3061 test ! -s conftest.err
3062 } && test -s conftest.$ac_objext; then
3064 else
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 ac_c_werror_flag=$ac_save_c_werror_flag
3069 CFLAGS="-g"
3070 cat >conftest.$ac_ext <<_ACEOF
3071 /* confdefs.h. */
3072 _ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3078 main ()
3082 return 0;
3084 _ACEOF
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3087 case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3102 ac_cv_prog_cc_g=yes
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 ac_c_werror_flag=$ac_save_c_werror_flag
3119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3121 if test "$ac_test_CFLAGS" = set; then
3122 CFLAGS=$ac_save_CFLAGS
3123 elif test $ac_cv_prog_cc_g = yes; then
3124 if test "$GCC" = yes; then
3125 CFLAGS="-g -O2"
3126 else
3127 CFLAGS="-g"
3129 else
3130 if test "$GCC" = yes; then
3131 CFLAGS="-O2"
3132 else
3133 CFLAGS=
3136 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3137 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3138 if test "${ac_cv_prog_cc_c89+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 else
3141 ac_cv_prog_cc_c89=no
3142 ac_save_CC=$CC
3143 cat >conftest.$ac_ext <<_ACEOF
3144 /* confdefs.h. */
3145 _ACEOF
3146 cat confdefs.h >>conftest.$ac_ext
3147 cat >>conftest.$ac_ext <<_ACEOF
3148 /* end confdefs.h. */
3149 #include <stdarg.h>
3150 #include <stdio.h>
3151 #include <sys/types.h>
3152 #include <sys/stat.h>
3153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3154 struct buf { int x; };
3155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3156 static char *e (p, i)
3157 char **p;
3158 int i;
3160 return p[i];
3162 static char *f (char * (*g) (char **, int), char **p, ...)
3164 char *s;
3165 va_list v;
3166 va_start (v,p);
3167 s = g (p, va_arg (v,int));
3168 va_end (v);
3169 return s;
3172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3173 function prototypes and stuff, but not '\xHH' hex character constants.
3174 These don't provoke an error unfortunately, instead are silently treated
3175 as 'x'. The following induces an error, until -std is added to get
3176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3177 array size at least. It's necessary to write '\x00'==0 to get something
3178 that's true only with -std. */
3179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3182 inside strings and character constants. */
3183 #define FOO(x) 'x'
3184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3186 int test (int i, double x);
3187 struct s1 {int (*f) (int a);};
3188 struct s2 {int (*f) (double a);};
3189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3190 int argc;
3191 char **argv;
3193 main ()
3195 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3197 return 0;
3199 _ACEOF
3200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3201 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3203 CC="$ac_save_CC $ac_arg"
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } && {
3218 test -z "$ac_c_werror_flag" ||
3219 test ! -s conftest.err
3220 } && test -s conftest.$ac_objext; then
3221 ac_cv_prog_cc_c89=$ac_arg
3222 else
3223 echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3229 rm -f core conftest.err conftest.$ac_objext
3230 test "x$ac_cv_prog_cc_c89" != "xno" && break
3231 done
3232 rm -f conftest.$ac_ext
3233 CC=$ac_save_CC
3236 # AC_CACHE_VAL
3237 case "x$ac_cv_prog_cc_c89" in
3239 { echo "$as_me:$LINENO: result: none needed" >&5
3240 echo "${ECHO_T}none needed" >&6; } ;;
3241 xno)
3242 { echo "$as_me:$LINENO: result: unsupported" >&5
3243 echo "${ECHO_T}unsupported" >&6; } ;;
3245 CC="$CC $ac_cv_prog_cc_c89"
3246 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3248 esac
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 ac_ext=cpp
3258 ac_cpp='$CXXCPP $CPPFLAGS'
3259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3262 if test -z "$CXX"; then
3263 if test -n "$CCC"; then
3264 CXX=$CCC
3265 else
3266 if test -n "$ac_tool_prefix"; then
3267 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3273 if test "${ac_cv_prog_CXX+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276 if test -n "$CXX"; then
3277 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3290 done
3291 done
3292 IFS=$as_save_IFS
3296 CXX=$ac_cv_prog_CXX
3297 if test -n "$CXX"; then
3298 { echo "$as_me:$LINENO: result: $CXX" >&5
3299 echo "${ECHO_T}$CXX" >&6; }
3300 else
3301 { echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6; }
3306 test -n "$CXX" && break
3307 done
3309 if test -z "$CXX"; then
3310 ac_ct_CXX=$CXX
3311 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3313 # Extract the first word of "$ac_prog", so it can be a program name with args.
3314 set dummy $ac_prog; ac_word=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320 if test -n "$ac_ct_CXX"; then
3321 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3326 IFS=$as_save_IFS
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CXX="$ac_prog"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 break 2
3334 done
3335 done
3336 IFS=$as_save_IFS
3340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3341 if test -n "$ac_ct_CXX"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3343 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3344 else
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3350 test -n "$ac_ct_CXX" && break
3351 done
3353 if test "x$ac_ct_CXX" = x; then
3354 CXX="g++"
3355 else
3356 case $cross_compiling:$ac_tool_warned in
3357 yes:)
3358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet. If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&5
3361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3362 whose name does not start with the host triplet. If you think this
3363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366 CXX=$ac_ct_CXX
3372 # Provide some information about the compiler.
3373 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3374 ac_compiler=`set X $ac_compile; echo $2`
3375 { (ac_try="$ac_compiler --version >&5"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compiler --version >&5") 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }
3385 { (ac_try="$ac_compiler -v >&5"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compiler -v >&5") 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }
3395 { (ac_try="$ac_compiler -V >&5"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_compiler -V >&5") 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }
3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3407 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411 cat >conftest.$ac_ext <<_ACEOF
3412 /* confdefs.h. */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3419 main ()
3421 #ifndef __GNUC__
3422 choke me
3423 #endif
3426 return 0;
3428 _ACEOF
3429 rm -f conftest.$ac_objext
3430 if { (ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } && {
3443 test -z "$ac_cxx_werror_flag" ||
3444 test ! -s conftest.err
3445 } && test -s conftest.$ac_objext; then
3446 ac_compiler_gnu=yes
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 ac_compiler_gnu=no
3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3458 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3459 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3460 GXX=`test $ac_compiler_gnu = yes && echo yes`
3461 ac_test_CXXFLAGS=${CXXFLAGS+set}
3462 ac_save_CXXFLAGS=$CXXFLAGS
3463 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3464 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3465 if test "${ac_cv_prog_cxx_g+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3469 ac_cxx_werror_flag=yes
3470 ac_cv_prog_cxx_g=no
3471 CXXFLAGS="-g"
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3480 main ()
3484 return 0;
3486 _ACEOF
3487 rm -f conftest.$ac_objext
3488 if { (ac_try="$ac_compile"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_compile") 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && {
3501 test -z "$ac_cxx_werror_flag" ||
3502 test ! -s conftest.err
3503 } && test -s conftest.$ac_objext; then
3504 ac_cv_prog_cxx_g=yes
3505 else
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 CXXFLAGS=""
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3518 main ()
3522 return 0;
3524 _ACEOF
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_cxx_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3543 else
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3548 CXXFLAGS="-g"
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3557 main ()
3561 return 0;
3563 _ACEOF
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3566 case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_cxx_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3581 ac_cv_prog_cxx_g=yes
3582 else
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3600 if test "$ac_test_CXXFLAGS" = set; then
3601 CXXFLAGS=$ac_save_CXXFLAGS
3602 elif test $ac_cv_prog_cxx_g = yes; then
3603 if test "$GXX" = yes; then
3604 CXXFLAGS="-g -O2"
3605 else
3606 CXXFLAGS="-g"
3608 else
3609 if test "$GXX" = yes; then
3610 CXXFLAGS="-O2"
3611 else
3612 CXXFLAGS=
3615 ac_ext=c
3616 ac_cpp='$CPP $CPPFLAGS'
3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 cat >conftest.make <<\_ACEOF
3628 SHELL = /bin/sh
3629 all:
3630 @echo '@@@%%%=$(MAKE)=@@@%%%'
3631 _ACEOF
3632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3634 *@@@%%%=?*=@@@%%%*)
3635 eval ac_cv_prog_make_${ac_make}_set=yes;;
3637 eval ac_cv_prog_make_${ac_make}_set=no;;
3638 esac
3639 rm -f conftest.make
3641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3642 { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 SET_MAKE=
3645 else
3646 { echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6; }
3648 SET_MAKE="MAKE=${MAKE-make}"
3652 # Check whether --enable-static was given.
3653 if test "${enable_static+set}" = set; then
3654 enableval=$enable_static; p=${PACKAGE-default}
3655 case $enableval in
3656 yes) enable_static=yes ;;
3657 no) enable_static=no ;;
3659 enable_static=no
3660 # Look at the argument we got. We use all the common list separators.
3661 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3662 for pkg in $enableval; do
3663 IFS="$lt_save_ifs"
3664 if test "X$pkg" = "X$p"; then
3665 enable_static=yes
3667 done
3668 IFS="$lt_save_ifs"
3670 esac
3671 else
3672 enable_static=no
3679 # Check whether --enable-shared was given.
3680 if test "${enable_shared+set}" = set; then
3681 enableval=$enable_shared; p=${PACKAGE-default}
3682 case $enableval in
3683 yes) enable_shared=yes ;;
3684 no) enable_shared=no ;;
3686 enable_shared=no
3687 # Look at the argument we got. We use all the common list separators.
3688 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3689 for pkg in $enableval; do
3690 IFS="$lt_save_ifs"
3691 if test "X$pkg" = "X$p"; then
3692 enable_shared=yes
3694 done
3695 IFS="$lt_save_ifs"
3697 esac
3698 else
3699 enable_shared=yes
3703 # Check whether --enable-fast-install was given.
3704 if test "${enable_fast_install+set}" = set; then
3705 enableval=$enable_fast_install; p=${PACKAGE-default}
3706 case $enableval in
3707 yes) enable_fast_install=yes ;;
3708 no) enable_fast_install=no ;;
3710 enable_fast_install=no
3711 # Look at the argument we got. We use all the common list separators.
3712 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3713 for pkg in $enableval; do
3714 IFS="$lt_save_ifs"
3715 if test "X$pkg" = "X$p"; then
3716 enable_fast_install=yes
3718 done
3719 IFS="$lt_save_ifs"
3721 esac
3722 else
3723 enable_fast_install=yes
3727 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3729 if test "${lt_cv_path_SED+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732 # Loop through the user's path and test for sed and gsed.
3733 # Then use that list of sed's as ones to test for truncation.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for lt_ac_prog in sed gsed; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3744 done
3745 done
3746 done
3747 lt_ac_max=0
3748 lt_ac_count=0
3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750 # along with /bin/sed that truncates output.
3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752 test ! -f $lt_ac_sed && break
3753 cat /dev/null > conftest.in
3754 lt_ac_count=0
3755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756 # Check for GNU sed and select it if it is found.
3757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758 lt_cv_path_SED=$lt_ac_sed
3759 break
3761 while true; do
3762 cat conftest.in conftest.in >conftest.tmp
3763 mv conftest.tmp conftest.in
3764 cp conftest.in conftest.nl
3765 echo >>conftest.nl
3766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767 cmp -s conftest.out conftest.nl || break
3768 # 10000 chars as input seems more than enough
3769 test $lt_ac_count -gt 10 && break
3770 lt_ac_count=`expr $lt_ac_count + 1`
3771 if test $lt_ac_count -gt $lt_ac_max; then
3772 lt_ac_max=$lt_ac_count
3773 lt_cv_path_SED=$lt_ac_sed
3775 done
3776 done
3777 SED=$lt_cv_path_SED
3781 { echo "$as_me:$LINENO: result: $SED" >&5
3782 echo "${ECHO_T}$SED" >&6; }
3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3786 if test "${ac_cv_path_GREP+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789 # Extract the first word of "grep ggrep" to use in msg output
3790 if test -z "$GREP"; then
3791 set dummy grep ggrep; ac_prog_name=$2
3792 if test "${ac_cv_path_GREP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 ac_path_GREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in grep ggrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3805 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3806 # Check for GNU ac_path_GREP and select it if it is found.
3807 # Check for GNU $ac_path_GREP
3808 case `"$ac_path_GREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3812 ac_count=0
3813 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3814 while :
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 echo 'GREP' >> "conftest.nl"
3820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 ac_count=`expr $ac_count + 1`
3823 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_GREP="$ac_path_GREP"
3826 ac_path_GREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3835 $ac_path_GREP_found && break 3
3836 done
3837 done
3839 done
3840 IFS=$as_save_IFS
3845 GREP="$ac_cv_path_GREP"
3846 if test -z "$GREP"; then
3847 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3849 { (exit 1); exit 1; }; }
3852 else
3853 ac_cv_path_GREP=$GREP
3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3860 GREP="$ac_cv_path_GREP"
3863 { echo "$as_me:$LINENO: checking for egrep" >&5
3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3865 if test "${ac_cv_path_EGREP+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3869 then ac_cv_path_EGREP="$GREP -E"
3870 else
3871 # Extract the first word of "egrep" to use in msg output
3872 if test -z "$EGREP"; then
3873 set dummy egrep; ac_prog_name=$2
3874 if test "${ac_cv_path_EGREP+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 ac_path_EGREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in egrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3888 # Check for GNU ac_path_EGREP and select it if it is found.
3889 # Check for GNU $ac_path_EGREP
3890 case `"$ac_path_EGREP" --version 2>&1` in
3891 *GNU*)
3892 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3894 ac_count=0
3895 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3896 while :
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 echo 'EGREP' >> "conftest.nl"
3902 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 ac_count=`expr $ac_count + 1`
3905 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_EGREP="$ac_path_EGREP"
3908 ac_path_EGREP_max=$ac_count
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914 esac
3917 $ac_path_EGREP_found && break 3
3918 done
3919 done
3921 done
3922 IFS=$as_save_IFS
3927 EGREP="$ac_cv_path_EGREP"
3928 if test -z "$EGREP"; then
3929 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3931 { (exit 1); exit 1; }; }
3934 else
3935 ac_cv_path_EGREP=$EGREP
3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3943 EGREP="$ac_cv_path_EGREP"
3947 # Check whether --with-gnu-ld was given.
3948 if test "${with_gnu_ld+set}" = set; then
3949 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3950 else
3951 with_gnu_ld=no
3954 ac_prog=ld
3955 if test "$GCC" = yes; then
3956 # Check if gcc -print-prog-name=ld gives a path.
3957 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3959 case $host in
3960 *-*-mingw*)
3961 # gcc leaves a trailing carriage return which upsets mingw
3962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3965 esac
3966 case $ac_prog in
3967 # Accept absolute paths.
3968 [\\/]* | ?:[\\/]*)
3969 re_direlt='/[^/][^/]*/\.\./'
3970 # Canonicalize the pathname of ld
3971 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3972 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3973 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3974 done
3975 test -z "$LD" && LD="$ac_prog"
3978 # If it fails, then pretend we aren't using GCC.
3979 ac_prog=ld
3982 # If it is relative, then search for the first ld in PATH.
3983 with_gnu_ld=unknown
3985 esac
3986 elif test "$with_gnu_ld" = yes; then
3987 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3989 else
3990 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3993 if test "${lt_cv_path_LD+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996 if test -z "$LD"; then
3997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3998 for ac_dir in $PATH; do
3999 IFS="$lt_save_ifs"
4000 test -z "$ac_dir" && ac_dir=.
4001 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4002 lt_cv_path_LD="$ac_dir/$ac_prog"
4003 # Check to see if the program is GNU ld. I'd rather use --version,
4004 # but apparently some GNU ld's only accept -v.
4005 # Break only if it was the GNU/non-GNU ld that we prefer.
4006 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4007 *GNU* | *'with BFD'*)
4008 test "$with_gnu_ld" != no && break
4011 test "$with_gnu_ld" != yes && break
4013 esac
4015 done
4016 IFS="$lt_save_ifs"
4017 else
4018 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4022 LD="$lt_cv_path_LD"
4023 if test -n "$LD"; then
4024 { echo "$as_me:$LINENO: result: $LD" >&5
4025 echo "${ECHO_T}$LD" >&6; }
4026 else
4027 { echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6; }
4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4032 { (exit 1); exit 1; }; }
4033 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 else
4038 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4039 case `$LD -v 2>&1 </dev/null` in
4040 *GNU* | *'with BFD'*)
4041 lt_cv_prog_gnu_ld=yes
4044 lt_cv_prog_gnu_ld=no
4046 esac
4048 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4050 with_gnu_ld=$lt_cv_prog_gnu_ld
4053 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4055 if test "${lt_cv_ld_reload_flag+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058 lt_cv_ld_reload_flag='-r'
4060 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4062 reload_flag=$lt_cv_ld_reload_flag
4063 case $reload_flag in
4064 "" | " "*) ;;
4065 *) reload_flag=" $reload_flag" ;;
4066 esac
4067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4071 if test "${lt_cv_path_NM+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$NM"; then
4075 # Let the user override the test.
4076 lt_cv_path_NM="$NM"
4077 else
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4080 IFS="$lt_save_ifs"
4081 test -z "$ac_dir" && ac_dir=.
4082 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4083 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4084 # Check to see if the nm accepts a BSD-compat flag.
4085 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4086 # nm: unknown option "B" ignored
4087 # Tru64's nm complains that /dev/null is an invalid object file
4088 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4089 */dev/null* | *'Invalid file or object type'*)
4090 lt_cv_path_NM="$tmp_nm -B"
4091 break
4094 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4095 */dev/null*)
4096 lt_cv_path_NM="$tmp_nm -p"
4097 break
4100 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4101 continue # so that we can try to find one that supports BSD flags
4103 esac
4104 esac
4106 done
4107 IFS="$lt_save_ifs"
4108 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4111 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4112 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4113 NM="$lt_cv_path_NM"
4115 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4116 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4117 LN_S=$as_ln_s
4118 if test "$LN_S" = "ln -s"; then
4119 { echo "$as_me:$LINENO: result: yes" >&5
4120 echo "${ECHO_T}yes" >&6; }
4121 else
4122 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4123 echo "${ECHO_T}no, using $LN_S" >&6; }
4126 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4127 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4128 if test "${lt_cv_deplibs_check_method+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 lt_cv_file_magic_cmd='$MAGIC_CMD'
4132 lt_cv_file_magic_test_file=
4133 lt_cv_deplibs_check_method='unknown'
4134 # Need to set the preceding variable on all platforms that support
4135 # interlibrary dependencies.
4136 # 'none' -- dependencies not supported.
4137 # `unknown' -- same as none, but documents that we really don't know.
4138 # 'pass_all' -- all dependencies passed with no checks.
4139 # 'test_compile' -- check by making test program.
4140 # 'file_magic [[regex]]' -- check by looking for files in library path
4141 # which responds to the $file_magic_cmd with a given extended regex.
4142 # If you have `file' or equivalent on your system and you're not sure
4143 # whether `pass_all' will *always* work, you probably want this one.
4145 case $host_os in
4146 aix4* | aix5*)
4147 lt_cv_deplibs_check_method=pass_all
4150 beos*)
4151 lt_cv_deplibs_check_method=pass_all
4154 bsdi4*)
4155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4156 lt_cv_file_magic_cmd='/usr/bin/file -L'
4157 lt_cv_file_magic_test_file=/shlib/libc.so
4160 cygwin* | mingw* | pw32*)
4161 # win32_libid is a shell function defined in ltmain.sh
4162 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4163 lt_cv_file_magic_cmd='win32_libid'
4166 darwin* | rhapsody*)
4167 # this will be overwritten by pass_all, but leave it in just in case
4168 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4169 lt_cv_file_magic_cmd='/usr/bin/file -L'
4170 case "$host_os" in
4171 rhapsody* | darwin1.[012])
4172 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4174 *) # Darwin 1.3 on
4175 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4177 esac
4178 lt_cv_deplibs_check_method=pass_all
4181 freebsd* | kfreebsd*-gnu)
4182 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4183 case $host_cpu in
4184 i*86 )
4185 # Not sure whether the presence of OpenBSD here was a mistake.
4186 # Let's accept both of them until this is cleared up.
4187 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4188 lt_cv_file_magic_cmd=/usr/bin/file
4189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4191 esac
4192 else
4193 lt_cv_deplibs_check_method=pass_all
4197 gnu*)
4198 lt_cv_deplibs_check_method=pass_all
4201 hpux10.20* | hpux11*)
4202 lt_cv_file_magic_cmd=/usr/bin/file
4203 case "$host_cpu" in
4204 ia64*)
4205 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4206 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4208 hppa*64*)
4209 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]'
4210 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4214 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4216 esac
4219 irix5* | irix6* | nonstopux*)
4220 case $host_os in
4221 irix5* | nonstopux*)
4222 # this will be overridden with pass_all, but let us keep it just in case
4223 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4226 case $LD in
4227 *-32|*"-32 ") libmagic=32-bit;;
4228 *-n32|*"-n32 ") libmagic=N32;;
4229 *-64|*"-64 ") libmagic=64-bit;;
4230 *) libmagic=never-match;;
4231 esac
4232 # this will be overridden with pass_all, but let us keep it just in case
4233 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4235 esac
4236 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4237 lt_cv_deplibs_check_method=pass_all
4240 # This must be Linux ELF.
4241 linux*)
4242 case $host_cpu in
4243 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4244 lt_cv_deplibs_check_method=pass_all ;;
4246 # glibc up to 2.1.1 does not perform some relocations on ARM
4247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4248 esac
4249 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4252 netbsd*)
4253 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4254 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4255 else
4256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4260 newos6*)
4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4262 lt_cv_file_magic_cmd=/usr/bin/file
4263 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4266 nto-qnx*)
4267 lt_cv_deplibs_check_method=unknown
4270 openbsd*)
4271 lt_cv_file_magic_cmd=/usr/bin/file
4272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4273 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4275 else
4276 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4280 osf3* | osf4* | osf5*)
4281 # this will be overridden with pass_all, but let us keep it just in case
4282 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4283 lt_cv_file_magic_test_file=/shlib/libc.so
4284 lt_cv_deplibs_check_method=pass_all
4287 sco3.2v5*)
4288 lt_cv_deplibs_check_method=pass_all
4291 solaris*)
4292 lt_cv_deplibs_check_method=pass_all
4293 lt_cv_file_magic_test_file=/lib/libc.so
4296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4297 case $host_vendor in
4298 motorola)
4299 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]'
4300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4302 ncr)
4303 lt_cv_deplibs_check_method=pass_all
4305 sequent)
4306 lt_cv_file_magic_cmd='/bin/file'
4307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4309 sni)
4310 lt_cv_file_magic_cmd='/bin/file'
4311 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4312 lt_cv_file_magic_test_file=/lib/libc.so
4314 siemens)
4315 lt_cv_deplibs_check_method=pass_all
4317 esac
4320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4321 lt_cv_deplibs_check_method=pass_all
4323 esac
4326 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4328 file_magic_cmd=$lt_cv_file_magic_cmd
4329 deplibs_check_method=$lt_cv_deplibs_check_method
4330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4335 # If no C compiler was specified, use CC.
4336 LTCC=${LTCC-"$CC"}
4338 # Allow CC to be a program name with arguments.
4339 compiler=$CC
4342 # Check whether --enable-libtool-lock was given.
4343 if test "${enable_libtool_lock+set}" = set; then
4344 enableval=$enable_libtool_lock;
4347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4349 # Some flags need to be propagated to the compiler or linker for good
4350 # libtool support.
4351 case $host in
4352 ia64-*-hpux*)
4353 # Find out which ABI we are using.
4354 echo 'int i;' > conftest.$ac_ext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; then
4360 case `/usr/bin/file conftest.$ac_objext` in
4361 *ELF-32*)
4362 HPUX_IA64_MODE="32"
4364 *ELF-64*)
4365 HPUX_IA64_MODE="64"
4367 esac
4369 rm -rf conftest*
4371 *-*-irix6*)
4372 # Find out which ABI we are using.
4373 echo '#line 4373 "configure"' > conftest.$ac_ext
4374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; then
4379 if test "$lt_cv_prog_gnu_ld" = yes; then
4380 case `/usr/bin/file conftest.$ac_objext` in
4381 *32-bit*)
4382 LD="${LD-ld} -melf32bsmip"
4384 *N32*)
4385 LD="${LD-ld} -melf32bmipn32"
4387 *64-bit*)
4388 LD="${LD-ld} -melf64bmip"
4390 esac
4391 else
4392 case `/usr/bin/file conftest.$ac_objext` in
4393 *32-bit*)
4394 LD="${LD-ld} -32"
4396 *N32*)
4397 LD="${LD-ld} -n32"
4399 *64-bit*)
4400 LD="${LD-ld} -64"
4402 esac
4405 rm -rf conftest*
4408 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4409 # Find out which ABI we are using.
4410 echo 'int i;' > conftest.$ac_ext
4411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; then
4416 case "`/usr/bin/file conftest.o`" in
4417 *32-bit*)
4418 case $host in
4419 x86_64-*linux*)
4420 LD="${LD-ld} -m elf_i386"
4422 ppc64-*linux*|powerpc64-*linux*)
4423 LD="${LD-ld} -m elf32ppclinux"
4425 s390x-*linux*)
4426 LD="${LD-ld} -m elf_s390"
4428 sparc64-*linux*)
4429 LD="${LD-ld} -m elf32_sparc"
4431 esac
4433 *64-bit*)
4434 case $host in
4435 x86_64-*linux*)
4436 LD="${LD-ld} -m elf_x86_64"
4438 ppc*-*linux*|powerpc*-*linux*)
4439 LD="${LD-ld} -m elf64ppc"
4441 s390*-*linux*)
4442 LD="${LD-ld} -m elf64_s390"
4444 sparc*-*linux*)
4445 LD="${LD-ld} -m elf64_sparc"
4447 esac
4449 esac
4451 rm -rf conftest*
4454 *-*-sco3.2v5*)
4455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4456 SAVE_CFLAGS="$CFLAGS"
4457 CFLAGS="$CFLAGS -belf"
4458 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4460 if test "${lt_cv_cc_needs_belf+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4469 cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h. */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4477 main ()
4481 return 0;
4483 _ACEOF
4484 rm -f conftest.$ac_objext conftest$ac_exeext
4485 if { (ac_try="$ac_link"
4486 case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489 esac
4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_link") 2>conftest.er1
4492 ac_status=$?
4493 grep -v '^ *+' conftest.er1 >conftest.err
4494 rm -f conftest.er1
4495 cat conftest.err >&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && {
4498 test -z "$ac_c_werror_flag" ||
4499 test ! -s conftest.err
4500 } && test -s conftest$ac_exeext &&
4501 $as_test_x conftest$ac_exeext; then
4502 lt_cv_cc_needs_belf=yes
4503 else
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4507 lt_cv_cc_needs_belf=no
4510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4511 conftest$ac_exeext conftest.$ac_ext
4512 ac_ext=c
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523 CFLAGS="$SAVE_CFLAGS"
4527 esac
4529 need_locks="$enable_libtool_lock"
4532 ac_ext=c
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4539 # On Suns, sometimes $CPP names a directory.
4540 if test -n "$CPP" && test -d "$CPP"; then
4541 CPP=
4543 if test -z "$CPP"; then
4544 if test "${ac_cv_prog_CPP+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547 # Double quotes because CPP needs to be expanded
4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4550 ac_preproc_ok=false
4551 for ac_c_preproc_warn_flag in '' yes
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 #ifdef __STDC__
4566 # include <limits.h>
4567 #else
4568 # include <assert.h>
4569 #endif
4570 Syntax error
4571 _ACEOF
4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
4573 case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576 esac
4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } >/dev/null && {
4585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 }; then
4589 else
4590 echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 # Broken: fails on valid input.
4594 continue
4597 rm -f conftest.err conftest.$ac_ext
4599 # OK, works on sane cases. Now check whether nonexistent headers
4600 # can be detected and how.
4601 cat >conftest.$ac_ext <<_ACEOF
4602 /* confdefs.h. */
4603 _ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 #include <ac_nonexistent.h>
4608 _ACEOF
4609 if { (ac_try="$ac_cpp conftest.$ac_ext"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null && {
4622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 }; then
4625 # Broken: success on invalid input.
4626 continue
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 # Passes both tests.
4632 ac_preproc_ok=:
4633 break
4636 rm -f conftest.err conftest.$ac_ext
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then
4642 break
4645 done
4646 ac_cv_prog_CPP=$CPP
4649 CPP=$ac_cv_prog_CPP
4650 else
4651 ac_cv_prog_CPP=$CPP
4653 { echo "$as_me:$LINENO: result: $CPP" >&5
4654 echo "${ECHO_T}$CPP" >&6; }
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat >conftest.$ac_ext <<_ACEOF
4665 /* confdefs.h. */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4670 #ifdef __STDC__
4671 # include <limits.h>
4672 #else
4673 # include <assert.h>
4674 #endif
4675 Syntax error
4676 _ACEOF
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 # Broken: fails on valid input.
4699 continue
4702 rm -f conftest.err conftest.$ac_ext
4704 # OK, works on sane cases. Now check whether nonexistent headers
4705 # can be detected and how.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <ac_nonexistent.h>
4713 _ACEOF
4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null && {
4727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 }; then
4730 # Broken: success on invalid input.
4731 continue
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 # Passes both tests.
4737 ac_preproc_ok=:
4738 break
4741 rm -f conftest.err conftest.$ac_ext
4743 done
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.err conftest.$ac_ext
4746 if $ac_preproc_ok; then
4748 else
4749 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4750 See \`config.log' for more details." >&5
4751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4752 See \`config.log' for more details." >&2;}
4753 { (exit 1); exit 1; }; }
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4765 if test "${ac_cv_header_stdc+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h. */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4774 #include <stdlib.h>
4775 #include <stdarg.h>
4776 #include <string.h>
4777 #include <float.h>
4780 main ()
4784 return 0;
4786 _ACEOF
4787 rm -f conftest.$ac_objext
4788 if { (ac_try="$ac_compile"
4789 case "(($ac_try" in
4790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4791 *) ac_try_echo=$ac_try;;
4792 esac
4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4794 (eval "$ac_compile") 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } && {
4801 test -z "$ac_c_werror_flag" ||
4802 test ! -s conftest.err
4803 } && test -s conftest.$ac_objext; then
4804 ac_cv_header_stdc=yes
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4809 ac_cv_header_stdc=no
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 if test $ac_cv_header_stdc = yes; then
4815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4816 cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h. */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4822 #include <string.h>
4824 _ACEOF
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826 $EGREP "memchr" >/dev/null 2>&1; then
4828 else
4829 ac_cv_header_stdc=no
4831 rm -f conftest*
4835 if test $ac_cv_header_stdc = yes; then
4836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #include <stdlib.h>
4845 _ACEOF
4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4847 $EGREP "free" >/dev/null 2>&1; then
4849 else
4850 ac_cv_header_stdc=no
4852 rm -f conftest*
4856 if test $ac_cv_header_stdc = yes; then
4857 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4858 if test "$cross_compiling" = yes; then
4860 else
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ctype.h>
4868 #include <stdlib.h>
4869 #if ((' ' & 0x0FF) == 0x020)
4870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4872 #else
4873 # define ISLOWER(c) \
4874 (('a' <= (c) && (c) <= 'i') \
4875 || ('j' <= (c) && (c) <= 'r') \
4876 || ('s' <= (c) && (c) <= 'z'))
4877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4878 #endif
4880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4882 main ()
4884 int i;
4885 for (i = 0; i < 256; i++)
4886 if (XOR (islower (i), ISLOWER (i))
4887 || toupper (i) != TOUPPER (i))
4888 return 2;
4889 return 0;
4891 _ACEOF
4892 rm -f conftest$ac_exeext
4893 if { (ac_try="$ac_link"
4894 case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4897 esac
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_link") 2>&5
4900 ac_status=$?
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4903 { (case "(($ac_try" in
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4906 esac
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_try") 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; }; then
4913 else
4914 echo "$as_me: program exited with status $ac_status" >&5
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ( exit $ac_status )
4919 ac_cv_header_stdc=no
4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4929 if test $ac_cv_header_stdc = yes; then
4931 cat >>confdefs.h <<\_ACEOF
4932 #define STDC_HEADERS 1
4933 _ACEOF
4937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4948 inttypes.h stdint.h unistd.h
4950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h. */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4962 $ac_includes_default
4964 #include <$ac_header>
4965 _ACEOF
4966 rm -f conftest.$ac_objext
4967 if { (ac_try="$ac_compile"
4968 case "(($ac_try" in
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973 (eval "$ac_compile") 2>conftest.er1
4974 ac_status=$?
4975 grep -v '^ *+' conftest.er1 >conftest.err
4976 rm -f conftest.er1
4977 cat conftest.err >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && {
4980 test -z "$ac_c_werror_flag" ||
4981 test ! -s conftest.err
4982 } && test -s conftest.$ac_objext; then
4983 eval "$as_ac_Header=yes"
4984 else
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4988 eval "$as_ac_Header=no"
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 ac_res=`eval echo '${'$as_ac_Header'}'`
4994 { echo "$as_me:$LINENO: result: $ac_res" >&5
4995 echo "${ECHO_T}$ac_res" >&6; }
4996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4997 cat >>confdefs.h <<_ACEOF
4998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5003 done
5007 for ac_header in dlfcn.h
5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 ac_res=`eval echo '${'$as_ac_Header'}'`
5017 { echo "$as_me:$LINENO: result: $ac_res" >&5
5018 echo "${ECHO_T}$ac_res" >&6; }
5019 else
5020 # Is the header compilable?
5021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h. */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 $ac_includes_default
5030 #include <$ac_header>
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (ac_try="$ac_compile"
5034 case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_compile") 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } && {
5046 test -z "$ac_c_werror_flag" ||
5047 test ! -s conftest.err
5048 } && test -s conftest.$ac_objext; then
5049 ac_header_compiler=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 ac_header_compiler=no
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5059 echo "${ECHO_T}$ac_header_compiler" >&6; }
5061 # Is the header present?
5062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5064 cat >conftest.$ac_ext <<_ACEOF
5065 /* confdefs.h. */
5066 _ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 #include <$ac_header>
5071 _ACEOF
5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076 esac
5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 ac_status=$?
5080 grep -v '^ *+' conftest.er1 >conftest.err
5081 rm -f conftest.er1
5082 cat conftest.err >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev/null && {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5087 }; then
5088 ac_header_preproc=yes
5089 else
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_header_preproc=no
5096 rm -f conftest.err conftest.$ac_ext
5097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5098 echo "${ECHO_T}$ac_header_preproc" >&6; }
5100 # So? What about this header?
5101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5102 yes:no: )
5103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5107 ac_header_preproc=yes
5109 no:yes:* )
5110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5124 esac
5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 eval "$as_ac_Header=\$ac_header_preproc"
5132 ac_res=`eval echo '${'$as_ac_Header'}'`
5133 { echo "$as_me:$LINENO: result: $ac_res" >&5
5134 echo "${ECHO_T}$ac_res" >&6; }
5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5140 _ACEOF
5144 done
5146 ac_ext=cpp
5147 ac_cpp='$CXXCPP $CPPFLAGS'
5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5152 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5153 if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp"
5160 ac_preproc_ok=false
5161 for ac_cxx_preproc_warn_flag in '' yes
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #ifdef __STDC__
5176 # include <limits.h>
5177 #else
5178 # include <assert.h>
5179 #endif
5180 Syntax error
5181 _ACEOF
5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
5183 case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186 esac
5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196 test ! -s conftest.err
5197 }; then
5199 else
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5203 # Broken: fails on valid input.
5204 continue
5207 rm -f conftest.err conftest.$ac_ext
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <ac_nonexistent.h>
5218 _ACEOF
5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 # Broken: success on invalid input.
5236 continue
5237 else
5238 echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5241 # Passes both tests.
5242 ac_preproc_ok=:
5243 break
5246 rm -f conftest.err conftest.$ac_ext
5248 done
5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250 rm -f conftest.err conftest.$ac_ext
5251 if $ac_preproc_ok; then
5252 break
5255 done
5256 ac_cv_prog_CXXCPP=$CXXCPP
5259 CXXCPP=$ac_cv_prog_CXXCPP
5260 else
5261 ac_cv_prog_CXXCPP=$CXXCPP
5263 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5264 echo "${ECHO_T}$CXXCPP" >&6; }
5265 ac_preproc_ok=false
5266 for ac_cxx_preproc_warn_flag in '' yes
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #ifdef __STDC__
5281 # include <limits.h>
5282 #else
5283 # include <assert.h>
5284 #endif
5285 Syntax error
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 # Broken: fails on valid input.
5309 continue
5312 rm -f conftest.err conftest.$ac_ext
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input.
5341 continue
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5351 rm -f conftest.err conftest.$ac_ext
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5358 else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5360 See \`config.log' for more details." >&5
5361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5362 See \`config.log' for more details." >&2;}
5363 { (exit 1); exit 1; }; }
5366 ac_ext=cpp
5367 ac_cpp='$CXXCPP $CPPFLAGS'
5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5373 ac_ext=f
5374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5377 if test -n "$ac_tool_prefix"; then
5378 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5384 if test "${ac_cv_prog_F77+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387 if test -n "$F77"; then
5388 ac_cv_prog_F77="$F77" # Let the user override the test.
5389 else
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 for as_dir in $PATH
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5401 done
5402 done
5403 IFS=$as_save_IFS
5407 F77=$ac_cv_prog_F77
5408 if test -n "$F77"; then
5409 { echo "$as_me:$LINENO: result: $F77" >&5
5410 echo "${ECHO_T}$F77" >&6; }
5411 else
5412 { echo "$as_me:$LINENO: result: no" >&5
5413 echo "${ECHO_T}no" >&6; }
5417 test -n "$F77" && break
5418 done
5420 if test -z "$F77"; then
5421 ac_ct_F77=$F77
5422 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425 set dummy $ac_prog; ac_word=$2
5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431 if test -n "$ac_ct_F77"; then
5432 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_ac_ct_F77="$ac_prog"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5452 if test -n "$ac_ct_F77"; then
5453 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5454 echo "${ECHO_T}$ac_ct_F77" >&6; }
5455 else
5456 { echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6; }
5461 test -n "$ac_ct_F77" && break
5462 done
5464 if test "x$ac_ct_F77" = x; then
5465 F77=""
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468 yes:)
5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470 whose name does not start with the host triplet. If you think this
5471 configuration is useful to you, please write to autoconf@gnu.org." >&5
5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473 whose name does not start with the host triplet. If you think this
5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475 ac_tool_warned=yes ;;
5476 esac
5477 F77=$ac_ct_F77
5482 # Provide some information about the compiler.
5483 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5484 ac_compiler=`set X $ac_compile; echo $2`
5485 { (ac_try="$ac_compiler --version >&5"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compiler --version >&5") 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }
5495 { (ac_try="$ac_compiler -v >&5"
5496 case "(($ac_try" in
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5499 esac
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compiler -v >&5") 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }
5505 { (ac_try="$ac_compiler -V >&5"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compiler -V >&5") 2>&5
5512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }
5515 rm -f a.out
5517 # If we don't use `.F' as extension, the preprocessor is not run on the
5518 # input file. (Note that this only needs to work for GNU compilers.)
5519 ac_save_ext=$ac_ext
5520 ac_ext=F
5521 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5522 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5523 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 cat >conftest.$ac_ext <<_ACEOF
5527 program main
5528 #ifndef __GNUC__
5529 choke me
5530 #endif
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_f77_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest.$ac_objext; then
5551 ac_compiler_gnu=yes
5552 else
5553 echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5556 ac_compiler_gnu=no
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5563 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5564 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5565 ac_ext=$ac_save_ext
5566 ac_test_FFLAGS=${FFLAGS+set}
5567 ac_save_FFLAGS=$FFLAGS
5568 FFLAGS=
5569 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5570 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5571 if test "${ac_cv_prog_f77_g+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574 FFLAGS=-g
5575 cat >conftest.$ac_ext <<_ACEOF
5576 program main
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_f77_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 ac_cv_prog_f77_g=yes
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5602 ac_cv_prog_f77_g=no
5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5609 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5610 if test "$ac_test_FFLAGS" = set; then
5611 FFLAGS=$ac_save_FFLAGS
5612 elif test $ac_cv_prog_f77_g = yes; then
5613 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5614 FFLAGS="-g -O2"
5615 else
5616 FFLAGS="-g"
5618 else
5619 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5620 FFLAGS="-O2"
5621 else
5622 FFLAGS=
5626 G77=`test $ac_compiler_gnu = yes && echo yes`
5627 ac_ext=c
5628 ac_cpp='$CPP $CPPFLAGS'
5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5637 # find the maximum length of command line arguments
5638 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5639 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5640 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5644 testring="ABCD"
5646 case $build_os in
5647 msdosdjgpp*)
5648 # On DJGPP, this test can blow up pretty badly due to problems in libc
5649 # (any single argument exceeding 2000 bytes causes a buffer overrun
5650 # during glob expansion). Even if it were fixed, the result of this
5651 # check would be larger than it should be.
5652 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5655 gnu*)
5656 # Under GNU Hurd, this test is not required because there is
5657 # no limit to the length of command line arguments.
5658 # Libtool will interpret -1 as no limit whatsoever
5659 lt_cv_sys_max_cmd_len=-1;
5662 cygwin* | mingw*)
5663 # On Win9x/ME, this test blows up -- it succeeds, but takes
5664 # about 5 minutes as the teststring grows exponentially.
5665 # Worse, since 9x/ME are not pre-emptively multitasking,
5666 # you end up with a "frozen" computer, even though with patience
5667 # the test eventually succeeds (with a max line length of 256k).
5668 # Instead, let's just punt: use the minimum linelength reported by
5669 # all of the supported platforms: 8192 (on NT/2K/XP).
5670 lt_cv_sys_max_cmd_len=8192;
5673 amigaos* | morphos*)
5674 # On AmigaOS with pdksh, this test takes hours, literally.
5675 # So we just punt and use a minimum line length of 8192.
5676 lt_cv_sys_max_cmd_len=8192;
5680 # If test is not a shell built-in, we'll probably end up computing a
5681 # maximum length that is only half of the actual maximum length, but
5682 # we can't tell.
5683 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5684 = "XX$testring") >/dev/null 2>&1 &&
5685 new_result=`expr "X$testring" : ".*" 2>&1` &&
5686 lt_cv_sys_max_cmd_len=$new_result &&
5687 test $i != 17 # 1/2 MB should be enough
5689 i=`expr $i + 1`
5690 testring=$testring$testring
5691 done
5692 testring=
5693 # Add a significant safety factor because C++ compilers can tack on massive
5694 # amounts of additional arguments before passing them to the linker.
5695 # It appears as though 1/2 is a usable value.
5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5698 esac
5702 if test -n $lt_cv_sys_max_cmd_len ; then
5703 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5704 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5705 else
5706 { echo "$as_me:$LINENO: result: none" >&5
5707 echo "${ECHO_T}none" >&6; }
5713 # Check for command to grab the raw symbol name followed by C symbol from nm.
5714 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5715 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5716 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5720 # These are sane defaults that work on at least a few old systems.
5721 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5723 # Character class describing NM global symbol codes.
5724 symcode='[BCDEGRST]'
5726 # Regexp to match symbols that can be accessed directly from C.
5727 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5729 # Transform the above into a raw symbol and a C symbol.
5730 symxfrm='\1 \2\3 \3'
5732 # Transform an extracted symbol line into a proper C declaration
5733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5735 # Transform an extracted symbol line into symbol name and symbol address
5736 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'"
5738 # Define system-specific variables.
5739 case $host_os in
5740 aix*)
5741 symcode='[BCDT]'
5743 cygwin* | mingw* | pw32*)
5744 symcode='[ABCDGISTW]'
5746 hpux*) # Its linker distinguishes data from code symbols
5747 if test "$host_cpu" = ia64; then
5748 symcode='[ABCDEGRST]'
5750 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5751 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'"
5753 irix* | nonstopux*)
5754 symcode='[BCDEGRST]'
5756 osf*)
5757 symcode='[BCDEGQRST]'
5759 solaris* | sysv5*)
5760 symcode='[BDRT]'
5762 sysv4)
5763 symcode='[DFNSTU]'
5765 esac
5767 # Handle CRLF in mingw tool chain
5768 opt_cr=
5769 case $build_os in
5770 mingw*)
5771 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5773 esac
5775 # If we're using GNU nm, then use its standard symbol codes.
5776 case `$NM -V 2>&1` in
5777 *GNU* | *'with BFD'*)
5778 symcode='[ABCDGIRSTW]' ;;
5779 esac
5781 # Try without a prefix undercore, then with it.
5782 for ac_symprfx in "" "_"; do
5784 # Write the raw and C identifiers.
5785 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5787 # Check to see that the pipe works correctly.
5788 pipe_works=no
5790 rm -f conftest*
5791 cat > conftest.$ac_ext <<EOF
5792 #ifdef __cplusplus
5793 extern "C" {
5794 #endif
5795 char nm_test_var;
5796 void nm_test_func(){}
5797 #ifdef __cplusplus
5799 #endif
5800 int main(){nm_test_var='a';nm_test_func();return(0);}
5803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804 (eval $ac_compile) 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; then
5808 # Now try to grab the symbols.
5809 nlist=conftest.nm
5810 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5811 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && test -s "$nlist"; then
5815 # Try sorting and uniquifying the output.
5816 if sort "$nlist" | uniq > "$nlist"T; then
5817 mv -f "$nlist"T "$nlist"
5818 else
5819 rm -f "$nlist"T
5822 # Make sure that we snagged all the symbols we need.
5823 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5824 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5825 cat <<EOF > conftest.$ac_ext
5826 #ifdef __cplusplus
5827 extern "C" {
5828 #endif
5831 # Now generate the symbol file.
5832 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5834 cat <<EOF >> conftest.$ac_ext
5835 #if defined (__STDC__) && __STDC__
5836 # define lt_ptr_t void *
5837 #else
5838 # define lt_ptr_t char *
5839 # define const
5840 #endif
5842 /* The mapping between symbol names and symbols. */
5843 const struct {
5844 const char *name;
5845 lt_ptr_t address;
5847 lt_preloaded_symbols[] =
5850 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5851 cat <<\EOF >> conftest.$ac_ext
5852 {0, (lt_ptr_t) 0}
5855 #ifdef __cplusplus
5857 #endif
5859 # Now try linking the two files.
5860 mv conftest.$ac_objext conftstm.$ac_objext
5861 lt_save_LIBS="$LIBS"
5862 lt_save_CFLAGS="$CFLAGS"
5863 LIBS="conftstm.$ac_objext"
5864 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5870 pipe_works=yes
5872 LIBS="$lt_save_LIBS"
5873 CFLAGS="$lt_save_CFLAGS"
5874 else
5875 echo "cannot find nm_test_func in $nlist" >&5
5877 else
5878 echo "cannot find nm_test_var in $nlist" >&5
5880 else
5881 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5883 else
5884 echo "$progname: failed program was:" >&5
5885 cat conftest.$ac_ext >&5
5887 rm -f conftest* conftst*
5889 # Do not use the global_symbol_pipe unless it works.
5890 if test "$pipe_works" = yes; then
5891 break
5892 else
5893 lt_cv_sys_global_symbol_pipe=
5895 done
5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5900 lt_cv_sys_global_symbol_to_cdecl=
5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5903 { echo "$as_me:$LINENO: result: failed" >&5
5904 echo "${ECHO_T}failed" >&6; }
5905 else
5906 { echo "$as_me:$LINENO: result: ok" >&5
5907 echo "${ECHO_T}ok" >&6; }
5910 { echo "$as_me:$LINENO: checking for objdir" >&5
5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5912 if test "${lt_cv_objdir+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 rm -f .libs 2>/dev/null
5916 mkdir .libs 2>/dev/null
5917 if test -d .libs; then
5918 lt_cv_objdir=.libs
5919 else
5920 # MS-DOS does not allow filenames that begin with a dot.
5921 lt_cv_objdir=_libs
5923 rmdir .libs 2>/dev/null
5925 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5926 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5927 objdir=$lt_cv_objdir
5933 case $host_os in
5934 aix3*)
5935 # AIX sometimes has problems with the GCC collect2 program. For some
5936 # reason, if we set the COLLECT_NAMES environment variable, the problems
5937 # vanish in a puff of smoke.
5938 if test "X${COLLECT_NAMES+set}" != Xset; then
5939 COLLECT_NAMES=
5940 export COLLECT_NAMES
5943 esac
5945 # Sed substitution that helps us do robust quoting. It backslashifies
5946 # metacharacters that are still active within double-quoted strings.
5947 Xsed='sed -e s/^X//'
5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5950 # Same as above, but do not quote variable references.
5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5953 # Sed substitution to delay expansion of an escaped shell variable in a
5954 # double_quote_subst'ed string.
5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5957 # Sed substitution to avoid accidental globbing in evaled expressions
5958 no_glob_subst='s/\*/\\\*/g'
5960 # Constants:
5961 rm="rm -f"
5963 # Global variables:
5964 default_ofile=libtool
5965 can_build_shared=yes
5967 # All known linkers require a `.a' archive for static linking (except M$VC,
5968 # which needs '.lib').
5969 libext=a
5970 ltmain="$ac_aux_dir/ltmain.sh"
5971 ofile="$default_ofile"
5972 with_gnu_ld="$lt_cv_prog_gnu_ld"
5974 if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5976 set dummy ${ac_tool_prefix}ar; ac_word=$2
5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979 if test "${ac_cv_prog_AR+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982 if test -n "$AR"; then
5983 ac_cv_prog_AR="$AR" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5992 ac_cv_prog_AR="${ac_tool_prefix}ar"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5996 done
5997 done
5998 IFS=$as_save_IFS
6002 AR=$ac_cv_prog_AR
6003 if test -n "$AR"; then
6004 { echo "$as_me:$LINENO: result: $AR" >&5
6005 echo "${ECHO_T}$AR" >&6; }
6006 else
6007 { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6013 if test -z "$ac_cv_prog_AR"; then
6014 ac_ct_AR=$AR
6015 # Extract the first word of "ar", so it can be a program name with args.
6016 set dummy ar; ac_word=$2
6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022 if test -n "$ac_ct_AR"; then
6023 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_ac_ct_AR="ar"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6038 IFS=$as_save_IFS
6042 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6043 if test -n "$ac_ct_AR"; then
6044 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6045 echo "${ECHO_T}$ac_ct_AR" >&6; }
6046 else
6047 { echo "$as_me:$LINENO: result: no" >&5
6048 echo "${ECHO_T}no" >&6; }
6051 if test "x$ac_ct_AR" = x; then
6052 AR="false"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet. If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6063 esac
6064 AR=$ac_ct_AR
6066 else
6067 AR="$ac_cv_prog_AR"
6070 if test -n "$ac_tool_prefix"; then
6071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075 if test "${ac_cv_prog_RANLIB+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078 if test -n "$RANLIB"; then
6079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 RANLIB=$ac_cv_prog_RANLIB
6099 if test -n "$RANLIB"; then
6100 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6101 echo "${ECHO_T}$RANLIB" >&6; }
6102 else
6103 { echo "$as_me:$LINENO: result: no" >&5
6104 echo "${ECHO_T}no" >&6; }
6109 if test -z "$ac_cv_prog_RANLIB"; then
6110 ac_ct_RANLIB=$RANLIB
6111 # Extract the first word of "ranlib", so it can be a program name with args.
6112 set dummy ranlib; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 if test -n "$ac_ct_RANLIB"; then
6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_ac_ct_RANLIB="ranlib"
6129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6132 done
6133 done
6134 IFS=$as_save_IFS
6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6139 if test -n "$ac_ct_RANLIB"; then
6140 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6141 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6142 else
6143 { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6147 if test "x$ac_ct_RANLIB" = x; then
6148 RANLIB=":"
6149 else
6150 case $cross_compiling:$ac_tool_warned in
6151 yes:)
6152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6153 whose name does not start with the host triplet. If you think this
6154 configuration is useful to you, please write to autoconf@gnu.org." >&5
6155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6156 whose name does not start with the host triplet. If you think this
6157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6158 ac_tool_warned=yes ;;
6159 esac
6160 RANLIB=$ac_ct_RANLIB
6162 else
6163 RANLIB="$ac_cv_prog_RANLIB"
6166 if test -n "$ac_tool_prefix"; then
6167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6168 set dummy ${ac_tool_prefix}strip; ac_word=$2
6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6171 if test "${ac_cv_prog_STRIP+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 if test -n "$STRIP"; then
6175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6188 done
6189 done
6190 IFS=$as_save_IFS
6194 STRIP=$ac_cv_prog_STRIP
6195 if test -n "$STRIP"; then
6196 { echo "$as_me:$LINENO: result: $STRIP" >&5
6197 echo "${ECHO_T}$STRIP" >&6; }
6198 else
6199 { echo "$as_me:$LINENO: result: no" >&5
6200 echo "${ECHO_T}no" >&6; }
6205 if test -z "$ac_cv_prog_STRIP"; then
6206 ac_ct_STRIP=$STRIP
6207 # Extract the first word of "strip", so it can be a program name with args.
6208 set dummy strip; ac_word=$2
6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6211 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 if test -n "$ac_ct_STRIP"; then
6215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224 ac_cv_prog_ac_ct_STRIP="strip"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6228 done
6229 done
6230 IFS=$as_save_IFS
6234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6235 if test -n "$ac_ct_STRIP"; then
6236 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6237 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6238 else
6239 { echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6; }
6243 if test "x$ac_ct_STRIP" = x; then
6244 STRIP=":"
6245 else
6246 case $cross_compiling:$ac_tool_warned in
6247 yes:)
6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6249 whose name does not start with the host triplet. If you think this
6250 configuration is useful to you, please write to autoconf@gnu.org." >&5
6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet. If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6254 ac_tool_warned=yes ;;
6255 esac
6256 STRIP=$ac_ct_STRIP
6258 else
6259 STRIP="$ac_cv_prog_STRIP"
6263 old_CC="$CC"
6264 old_CFLAGS="$CFLAGS"
6266 # Set sane defaults for various variables
6267 test -z "$AR" && AR=ar
6268 test -z "$AR_FLAGS" && AR_FLAGS=cru
6269 test -z "$AS" && AS=as
6270 test -z "$CC" && CC=cc
6271 test -z "$LTCC" && LTCC=$CC
6272 test -z "$DLLTOOL" && DLLTOOL=dlltool
6273 test -z "$LD" && LD=ld
6274 test -z "$LN_S" && LN_S="ln -s"
6275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6276 test -z "$NM" && NM=nm
6277 test -z "$SED" && SED=sed
6278 test -z "$OBJDUMP" && OBJDUMP=objdump
6279 test -z "$RANLIB" && RANLIB=:
6280 test -z "$STRIP" && STRIP=:
6281 test -z "$ac_objext" && ac_objext=o
6283 # Determine commands to create old-style static archives.
6284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6285 old_postinstall_cmds='chmod 644 $oldlib'
6286 old_postuninstall_cmds=
6288 if test -n "$RANLIB"; then
6289 case $host_os in
6290 openbsd*)
6291 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6294 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6296 esac
6297 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6300 # Only perform the check for file, if the check method requires it
6301 case $deplibs_check_method in
6302 file_magic*)
6303 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6304 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6305 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309 case $MAGIC_CMD in
6310 [\\/*] | ?:[\\/]*)
6311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6314 lt_save_MAGIC_CMD="$MAGIC_CMD"
6315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6317 for ac_dir in $ac_dummy; do
6318 IFS="$lt_save_ifs"
6319 test -z "$ac_dir" && ac_dir=.
6320 if test -f $ac_dir/${ac_tool_prefix}file; then
6321 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6322 if test -n "$file_magic_test_file"; then
6323 case $deplibs_check_method in
6324 "file_magic "*)
6325 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6328 $EGREP "$file_magic_regex" > /dev/null; then
6330 else
6331 cat <<EOF 1>&2
6333 *** Warning: the command libtool uses to detect shared libraries,
6334 *** $file_magic_cmd, produces output that libtool cannot recognize.
6335 *** The result is that libtool may fail to recognize shared libraries
6336 *** as such. This will affect the creation of libtool libraries that
6337 *** depend on shared libraries, but programs linked with such libtool
6338 *** libraries will work regardless of this problem. Nevertheless, you
6339 *** may want to report the problem to your system manager and/or to
6340 *** bug-libtool@gnu.org
6343 fi ;;
6344 esac
6346 break
6348 done
6349 IFS="$lt_save_ifs"
6350 MAGIC_CMD="$lt_save_MAGIC_CMD"
6352 esac
6355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6356 if test -n "$MAGIC_CMD"; then
6357 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6358 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6359 else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361 echo "${ECHO_T}no" >&6; }
6364 if test -z "$lt_cv_path_MAGIC_CMD"; then
6365 if test -n "$ac_tool_prefix"; then
6366 { echo "$as_me:$LINENO: checking for file" >&5
6367 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 case $MAGIC_CMD in
6372 [\\/*] | ?:[\\/]*)
6373 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6376 lt_save_MAGIC_CMD="$MAGIC_CMD"
6377 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6379 for ac_dir in $ac_dummy; do
6380 IFS="$lt_save_ifs"
6381 test -z "$ac_dir" && ac_dir=.
6382 if test -f $ac_dir/file; then
6383 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6384 if test -n "$file_magic_test_file"; then
6385 case $deplibs_check_method in
6386 "file_magic "*)
6387 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6390 $EGREP "$file_magic_regex" > /dev/null; then
6392 else
6393 cat <<EOF 1>&2
6395 *** Warning: the command libtool uses to detect shared libraries,
6396 *** $file_magic_cmd, produces output that libtool cannot recognize.
6397 *** The result is that libtool may fail to recognize shared libraries
6398 *** as such. This will affect the creation of libtool libraries that
6399 *** depend on shared libraries, but programs linked with such libtool
6400 *** libraries will work regardless of this problem. Nevertheless, you
6401 *** may want to report the problem to your system manager and/or to
6402 *** bug-libtool@gnu.org
6405 fi ;;
6406 esac
6408 break
6410 done
6411 IFS="$lt_save_ifs"
6412 MAGIC_CMD="$lt_save_MAGIC_CMD"
6414 esac
6417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6418 if test -n "$MAGIC_CMD"; then
6419 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6420 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6421 else
6422 { echo "$as_me:$LINENO: result: no" >&5
6423 echo "${ECHO_T}no" >&6; }
6426 else
6427 MAGIC_CMD=:
6433 esac
6435 enable_dlopen=yes
6436 enable_win32_dll=no
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6446 # Check whether --with-pic was given.
6447 if test "${with_pic+set}" = set; then
6448 withval=$with_pic; pic_mode="$withval"
6449 else
6450 pic_mode=default
6453 test -z "$pic_mode" && pic_mode=default
6455 # Use C for the default configuration in the libtool script
6456 tagname=
6457 lt_save_CC="$CC"
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465 # Source file extension for C test sources.
6466 ac_ext=c
6468 # Object file extension for compiled C test sources.
6469 objext=o
6470 objext=$objext
6472 # Code to be used in simple compile tests
6473 lt_simple_compile_test_code="int some_variable = 0;\n"
6475 # Code to be used in simple link tests
6476 lt_simple_link_test_code='int main(){return(0);}\n'
6479 # If no C compiler was specified, use CC.
6480 LTCC=${LTCC-"$CC"}
6482 # Allow CC to be a program name with arguments.
6483 compiler=$CC
6487 # Check for any special shared library compilation flags.
6489 lt_prog_cc_shlib=
6490 if test "$GCC" = no; then
6491 case $host_os in
6492 sco3.2v5*)
6493 lt_prog_cc_shlib='-belf'
6495 esac
6497 if test -n "$lt_prog_cc_shlib"; then
6498 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6499 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6500 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6501 else
6502 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6503 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6504 lt_cv_prog_cc_can_build_shared=no
6510 # Check to make sure the static flag actually works.
6512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6513 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6514 if test "${lt_prog_compiler_static_works+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517 lt_prog_compiler_static_works=no
6518 save_LDFLAGS="$LDFLAGS"
6519 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6520 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6522 # The compiler can only warn and ignore the option if not recognized
6523 # So say no if there are warnings
6524 if test -s conftest.err; then
6525 # Append any errors to the config.log.
6526 cat conftest.err 1>&5
6527 else
6528 lt_prog_compiler_static_works=yes
6531 $rm conftest*
6532 LDFLAGS="$save_LDFLAGS"
6535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6536 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6538 if test x"$lt_prog_compiler_static_works" = xyes; then
6540 else
6541 lt_prog_compiler_static=
6546 ## CAVEAT EMPTOR:
6547 ## There is no encapsulation within the following macros, do not change
6548 ## the running order or otherwise move them around unless you know exactly
6549 ## what you are doing...
6551 lt_prog_compiler_no_builtin_flag=
6553 if test "$GCC" = yes; then
6554 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6557 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6558 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 lt_cv_prog_compiler_rtti_exceptions=no
6563 ac_outfile=conftest.$ac_objext
6564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6565 lt_compiler_flag="-fno-rtti -fno-exceptions"
6566 # Insert the option either (1) after the last *FLAGS variable, or
6567 # (2) before a word containing "conftest.", or (3) at the end.
6568 # Note that $ac_compile itself does not contain backslashes and begins
6569 # with a dollar sign (not a hyphen), so the echo should work correctly.
6570 # The option is referenced via a variable to avoid confusing sed.
6571 lt_compile=`echo "$ac_compile" | $SED \
6572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6574 -e 's:$: $lt_compiler_flag:'`
6575 (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
6576 (eval "$lt_compile" 2>conftest.err)
6577 ac_status=$?
6578 cat conftest.err >&5
6579 echo "$as_me:6579: \$? = $ac_status" >&5
6580 if (exit $ac_status) && test -s "$ac_outfile"; then
6581 # The compiler can only warn and ignore the option if not recognized
6582 # So say no if there are warnings
6583 if test ! -s conftest.err; then
6584 lt_cv_prog_compiler_rtti_exceptions=yes
6587 $rm conftest*
6590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6591 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6594 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6595 else
6601 lt_prog_compiler_wl=
6602 lt_prog_compiler_pic=
6603 lt_prog_compiler_static=
6605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6608 if test "$GCC" = yes; then
6609 lt_prog_compiler_wl='-Wl,'
6610 lt_prog_compiler_static='-static'
6612 case $host_os in
6613 aix*)
6614 # All AIX code is PIC.
6615 if test "$host_cpu" = ia64; then
6616 # AIX 5 now supports IA64 processor
6617 lt_prog_compiler_static='-Bstatic'
6621 amigaos*)
6622 # FIXME: we need at least 68020 code to build shared libraries, but
6623 # adding the `-m68020' flag to GCC prevents building anything better,
6624 # like `-m68040'.
6625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6628 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6629 # PIC is the default for these OSes.
6632 mingw* | pw32* | os2*)
6633 # This hack is so that the source file can tell whether it is being
6634 # built for inclusion in a dll (and should export symbols for example).
6635 lt_prog_compiler_pic='-DDLL_EXPORT'
6638 darwin* | rhapsody*)
6639 # PIC is the default on this platform
6640 # Common symbols not allowed in MH_DYLIB files
6641 lt_prog_compiler_pic='-fno-common'
6644 msdosdjgpp*)
6645 # Just because we use GCC doesn't mean we suddenly get shared libraries
6646 # on systems that don't support them.
6647 lt_prog_compiler_can_build_shared=no
6648 enable_shared=no
6651 sysv4*MP*)
6652 if test -d /usr/nec; then
6653 lt_prog_compiler_pic=-Kconform_pic
6657 hpux*)
6658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6659 # not for PA HP-UX.
6660 case "$host_cpu" in
6661 hppa*64*|ia64*)
6662 # +Z the default
6665 lt_prog_compiler_pic='-fPIC'
6667 esac
6671 lt_prog_compiler_pic='-fPIC'
6673 esac
6674 else
6675 # PORTME Check for flag to pass linker flags through the system compiler.
6676 case $host_os in
6677 aix*)
6678 lt_prog_compiler_wl='-Wl,'
6679 if test "$host_cpu" = ia64; then
6680 # AIX 5 now supports IA64 processor
6681 lt_prog_compiler_static='-Bstatic'
6682 else
6683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6687 mingw* | pw32* | os2*)
6688 # This hack is so that the source file can tell whether it is being
6689 # built for inclusion in a dll (and should export symbols for example).
6690 lt_prog_compiler_pic='-DDLL_EXPORT'
6693 hpux9* | hpux10* | hpux11*)
6694 lt_prog_compiler_wl='-Wl,'
6695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6696 # not for PA HP-UX.
6697 case "$host_cpu" in
6698 hppa*64*|ia64*)
6699 # +Z the default
6702 lt_prog_compiler_pic='+Z'
6704 esac
6705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6706 lt_prog_compiler_static='${wl}-a ${wl}archive'
6709 irix5* | irix6* | nonstopux*)
6710 lt_prog_compiler_wl='-Wl,'
6711 # PIC (with -KPIC) is the default.
6712 lt_prog_compiler_static='-non_shared'
6715 newsos6)
6716 lt_prog_compiler_pic='-KPIC'
6717 lt_prog_compiler_static='-Bstatic'
6720 linux*)
6721 case $CC in
6722 icc* | ecc*)
6723 lt_prog_compiler_wl='-Wl,'
6724 lt_prog_compiler_pic='-KPIC'
6725 lt_prog_compiler_static='-static'
6727 ccc*)
6728 lt_prog_compiler_wl='-Wl,'
6729 # All Alpha code is PIC.
6730 lt_prog_compiler_static='-non_shared'
6732 esac
6735 osf3* | osf4* | osf5*)
6736 lt_prog_compiler_wl='-Wl,'
6737 # All OSF/1 code is PIC.
6738 lt_prog_compiler_static='-non_shared'
6741 sco3.2v5*)
6742 lt_prog_compiler_pic='-Kpic'
6743 lt_prog_compiler_static='-dn'
6746 solaris*)
6747 lt_prog_compiler_wl='-Wl,'
6748 lt_prog_compiler_pic='-KPIC'
6749 lt_prog_compiler_static='-Bstatic'
6752 sunos4*)
6753 lt_prog_compiler_wl='-Qoption ld '
6754 lt_prog_compiler_pic='-PIC'
6755 lt_prog_compiler_static='-Bstatic'
6758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6759 lt_prog_compiler_wl='-Wl,'
6760 lt_prog_compiler_pic='-KPIC'
6761 lt_prog_compiler_static='-Bstatic'
6764 sysv4*MP*)
6765 if test -d /usr/nec ;then
6766 lt_prog_compiler_pic='-Kconform_pic'
6767 lt_prog_compiler_static='-Bstatic'
6771 uts4*)
6772 lt_prog_compiler_pic='-pic'
6773 lt_prog_compiler_static='-Bstatic'
6777 lt_prog_compiler_can_build_shared=no
6779 esac
6782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6786 # Check to make sure the PIC flag actually works.
6788 if test -n "$lt_prog_compiler_pic"; then
6790 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6792 if test "${lt_prog_compiler_pic_works+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 lt_prog_compiler_pic_works=no
6796 ac_outfile=conftest.$ac_objext
6797 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6799 # Insert the option either (1) after the last *FLAGS variable, or
6800 # (2) before a word containing "conftest.", or (3) at the end.
6801 # Note that $ac_compile itself does not contain backslashes and begins
6802 # with a dollar sign (not a hyphen), so the echo should work correctly.
6803 # The option is referenced via a variable to avoid confusing sed.
6804 lt_compile=`echo "$ac_compile" | $SED \
6805 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6807 -e 's:$: $lt_compiler_flag:'`
6808 (eval echo "\"\$as_me:6808: $lt_compile\"" >&5)
6809 (eval "$lt_compile" 2>conftest.err)
6810 ac_status=$?
6811 cat conftest.err >&5
6812 echo "$as_me:6812: \$? = $ac_status" >&5
6813 if (exit $ac_status) && test -s "$ac_outfile"; then
6814 # The compiler can only warn and ignore the option if not recognized
6815 # So say no if there are warnings
6816 if test ! -s conftest.err; then
6817 lt_prog_compiler_pic_works=yes
6820 $rm conftest*
6823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6824 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6826 if test x"$lt_prog_compiler_pic_works" = xyes; then
6827 case $lt_prog_compiler_pic in
6828 "" | " "*) ;;
6829 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6830 esac
6831 else
6832 lt_prog_compiler_pic=
6833 lt_prog_compiler_can_build_shared=no
6837 case "$host_os" in
6838 # For platforms which do not support PIC, -DPIC is meaningless:
6839 *djgpp*)
6840 lt_prog_compiler_pic=
6843 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6845 esac
6847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852 lt_cv_prog_compiler_c_o=no
6853 $rm -r conftest 2>/dev/null
6854 mkdir conftest
6855 cd conftest
6856 mkdir out
6857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6859 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6860 # that will create temporary files in the current directory regardless of
6861 # the output directory. Thus, making CWD read-only will cause this test
6862 # to fail, enabling locking or at least warning the user not to do parallel
6863 # builds.
6864 chmod -w .
6866 lt_compiler_flag="-o out/conftest2.$ac_objext"
6867 # Insert the option either (1) after the last *FLAGS variable, or
6868 # (2) before a word containing "conftest.", or (3) at the end.
6869 # Note that $ac_compile itself does not contain backslashes and begins
6870 # with a dollar sign (not a hyphen), so the echo should work correctly.
6871 lt_compile=`echo "$ac_compile" | $SED \
6872 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6874 -e 's:$: $lt_compiler_flag:'`
6875 (eval echo "\"\$as_me:6875: $lt_compile\"" >&5)
6876 (eval "$lt_compile" 2>out/conftest.err)
6877 ac_status=$?
6878 cat out/conftest.err >&5
6879 echo "$as_me:6879: \$? = $ac_status" >&5
6880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6881 then
6882 # The compiler can only warn and ignore the option if not recognized
6883 # So say no if there are warnings
6884 if test ! -s out/conftest.err; then
6885 lt_cv_prog_compiler_c_o=yes
6888 chmod u+w .
6889 $rm conftest*
6890 # SGI C++ compiler will create directory out/ii_files/ for
6891 # template instantiation
6892 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6893 $rm out/* && rmdir out
6894 cd ..
6895 rmdir conftest
6896 $rm conftest*
6899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6903 hard_links="nottested"
6904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6905 # do not overwrite the value of need_locks provided by the user
6906 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6908 hard_links=yes
6909 $rm conftest*
6910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6911 touch conftest.a
6912 ln conftest.a conftest.b 2>&5 || hard_links=no
6913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6914 { echo "$as_me:$LINENO: result: $hard_links" >&5
6915 echo "${ECHO_T}$hard_links" >&6; }
6916 if test "$hard_links" = no; then
6917 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6919 need_locks=warn
6921 else
6922 need_locks=no
6925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6928 runpath_var=
6929 allow_undefined_flag=
6930 enable_shared_with_static_runtimes=no
6931 archive_cmds=
6932 archive_expsym_cmds=
6933 old_archive_From_new_cmds=
6934 old_archive_from_expsyms_cmds=
6935 export_dynamic_flag_spec=
6936 whole_archive_flag_spec=
6937 thread_safe_flag_spec=
6938 hardcode_libdir_flag_spec=
6939 hardcode_libdir_flag_spec_ld=
6940 hardcode_libdir_separator=
6941 hardcode_direct=no
6942 hardcode_minus_L=no
6943 hardcode_shlibpath_var=unsupported
6944 link_all_deplibs=unknown
6945 hardcode_automatic=no
6946 module_cmds=
6947 module_expsym_cmds=
6948 always_export_symbols=no
6949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6950 # include_expsyms should be a list of space-separated symbols to be *always*
6951 # included in the symbol list
6952 include_expsyms=
6953 # exclude_expsyms can be an extended regexp of symbols to exclude
6954 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6955 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6956 # as well as any symbol that contains `d'.
6957 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6958 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6959 # platforms (ab)use it in PIC code, but their linkers get confused if
6960 # the symbol is explicitly referenced. Since portable code cannot
6961 # rely on this symbol name, it's probably fine to never include it in
6962 # preloaded symbol tables.
6963 extract_expsyms_cmds=
6965 case $host_os in
6966 cygwin* | mingw* | pw32*)
6967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6968 # When not using gcc, we currently assume that we are using
6969 # Microsoft Visual C++.
6970 if test "$GCC" != yes; then
6971 with_gnu_ld=no
6974 openbsd*)
6975 with_gnu_ld=no
6977 esac
6979 ld_shlibs=yes
6980 if test "$with_gnu_ld" = yes; then
6981 # If archive_cmds runs LD, not CC, wlarc should be empty
6982 wlarc='${wl}'
6984 # See if GNU ld supports shared libraries.
6985 case $host_os in
6986 aix3* | aix4* | aix5*)
6987 # On AIX/PPC, the GNU linker is very broken
6988 if test "$host_cpu" != ia64; then
6989 ld_shlibs=no
6990 cat <<EOF 1>&2
6992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6993 *** to be unable to reliably create shared libraries on AIX.
6994 *** Therefore, libtool is disabling shared libraries support. If you
6995 *** really care for shared libraries, you may want to modify your PATH
6996 *** so that a non-GNU linker is found, and then restart.
7002 amigaos*)
7003 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)'
7004 hardcode_libdir_flag_spec='-L$libdir'
7005 hardcode_minus_L=yes
7007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7008 # that the semantics of dynamic libraries on AmigaOS, at least up
7009 # to version 4, is to share data among multiple programs linked
7010 # with the same dynamic library. Since this doesn't match the
7011 # behavior of shared libraries on other platforms, we can't use
7012 # them.
7013 ld_shlibs=no
7016 beos*)
7017 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7018 allow_undefined_flag=unsupported
7019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7020 # support --undefined. This deserves some investigation. FIXME
7021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022 else
7023 ld_shlibs=no
7027 cygwin* | mingw* | pw32*)
7028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7029 # as there is no search path for DLLs.
7030 hardcode_libdir_flag_spec='-L$libdir'
7031 allow_undefined_flag=unsupported
7032 always_export_symbols=no
7033 enable_shared_with_static_runtimes=yes
7034 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7038 # If the export-symbols file already is a .def file (1st line
7039 # is EXPORTS), use it as is; otherwise, prepend...
7040 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7041 cp $export_symbols $output_objdir/$soname.def;
7042 else
7043 echo EXPORTS > $output_objdir/$soname.def;
7044 cat $export_symbols >> $output_objdir/$soname.def;
7046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7047 else
7048 ld_shlibs=no
7052 netbsd*)
7053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7054 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7055 wlarc=
7056 else
7057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7058 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7062 solaris* | sysv5*)
7063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7064 ld_shlibs=no
7065 cat <<EOF 1>&2
7067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7068 *** create shared libraries on Solaris systems. Therefore, libtool
7069 *** is disabling shared libraries support. We urge you to upgrade GNU
7070 *** binutils to release 2.9.1 or newer. Another option is to modify
7071 *** your PATH or compiler configuration so that the native linker is
7072 *** used, and then restart.
7075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7077 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7078 else
7079 ld_shlibs=no
7083 sunos4*)
7084 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7085 wlarc=
7086 hardcode_direct=yes
7087 hardcode_shlibpath_var=no
7090 linux*)
7091 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7092 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7093 archive_cmds="$tmp_archive_cmds"
7094 supports_anon_versioning=no
7095 case `$LD -v 2>/dev/null` in
7096 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7097 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7098 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7099 *\ 2.11.*) ;; # other 2.11 versions
7100 *) supports_anon_versioning=yes ;;
7101 esac
7102 if test $supports_anon_versioning = yes; then
7103 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7105 $echo "local: *; };" >> $output_objdir/$libname.ver~
7106 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7107 else
7108 archive_expsym_cmds="$tmp_archive_cmds"
7110 else
7111 ld_shlibs=no
7116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7118 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7119 else
7120 ld_shlibs=no
7123 esac
7125 if test "$ld_shlibs" = yes; then
7126 runpath_var=LD_RUN_PATH
7127 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7128 export_dynamic_flag_spec='${wl}--export-dynamic'
7129 # ancient GNU ld didn't support --whole-archive et. al.
7130 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7132 else
7133 whole_archive_flag_spec=
7136 else
7137 # PORTME fill in a description of your system's linker (not GNU ld)
7138 case $host_os in
7139 aix3*)
7140 allow_undefined_flag=unsupported
7141 always_export_symbols=yes
7142 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'
7143 # Note: this linker hardcodes the directories in LIBPATH if there
7144 # are no directories specified by -L.
7145 hardcode_minus_L=yes
7146 if test "$GCC" = yes && test -z "$link_static_flag"; then
7147 # Neither direct hardcoding nor static linking is supported with a
7148 # broken collect2.
7149 hardcode_direct=unsupported
7153 aix4* | aix5*)
7154 if test "$host_cpu" = ia64; then
7155 # On IA64, the linker does run time linking by default, so we don't
7156 # have to do anything special.
7157 aix_use_runtimelinking=no
7158 exp_sym_flag='-Bexport'
7159 no_entry_flag=""
7160 else
7161 # If we're using GNU nm, then we don't want the "-C" option.
7162 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7163 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7164 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'
7165 else
7166 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'
7168 aix_use_runtimelinking=no
7170 # Test if we are trying to use run time linking or normal
7171 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7172 # need to do runtime linking.
7173 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7174 for ld_flag in $LDFLAGS; do
7175 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7176 aix_use_runtimelinking=yes
7177 break
7179 done
7180 esac
7182 exp_sym_flag='-bexport'
7183 no_entry_flag='-bnoentry'
7186 # When large executables or shared objects are built, AIX ld can
7187 # have problems creating the table of contents. If linking a library
7188 # or program results in "error TOC overflow" add -mminimal-toc to
7189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7192 archive_cmds=''
7193 hardcode_direct=yes
7194 hardcode_libdir_separator=':'
7195 link_all_deplibs=yes
7197 if test "$GCC" = yes; then
7198 case $host_os in aix4.012|aix4.012.*)
7199 # We only want to do this on AIX 4.2 and lower, the check
7200 # below for broken collect2 doesn't work under 4.3+
7201 collect2name=`${CC} -print-prog-name=collect2`
7202 if test -f "$collect2name" && \
7203 strings "$collect2name" | grep resolve_lib_name >/dev/null
7204 then
7205 # We have reworked collect2
7206 hardcode_direct=yes
7207 else
7208 # We have old collect2
7209 hardcode_direct=unsupported
7210 # It fails to find uninstalled libraries when the uninstalled
7211 # path is not listed in the libpath. Setting hardcode_minus_L
7212 # to unsupported forces relinking
7213 hardcode_minus_L=yes
7214 hardcode_libdir_flag_spec='-L$libdir'
7215 hardcode_libdir_separator=
7217 esac
7218 shared_flag='-shared'
7219 else
7220 # not using gcc
7221 if test "$host_cpu" = ia64; then
7222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7223 # chokes on -Wl,-G. The following line is correct:
7224 shared_flag='-G'
7225 else
7226 if test "$aix_use_runtimelinking" = yes; then
7227 shared_flag='${wl}-G'
7228 else
7229 shared_flag='${wl}-bM:SRE'
7234 # It seems that -bexpall does not export symbols beginning with
7235 # underscore (_), so it is better to generate a list of symbols to export.
7236 always_export_symbols=yes
7237 if test "$aix_use_runtimelinking" = yes; then
7238 # Warning - without using the other runtime loading flags (-brtl),
7239 # -berok will link without error, but may produce a broken library.
7240 allow_undefined_flag='-berok'
7241 # Determine the default libpath from the value encoded in an empty executable.
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7250 main ()
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext conftest$ac_exeext
7258 if { (ac_try="$ac_link"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_link") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest$ac_exeext &&
7274 $as_test_x conftest$ac_exeext; then
7276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7278 # Check for a 64-bit object if we didn't find anything.
7279 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; }
7280 }'`; fi
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289 conftest$ac_exeext conftest.$ac_ext
7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7292 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7293 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"
7294 else
7295 if test "$host_cpu" = ia64; then
7296 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7297 allow_undefined_flag="-z nodefs"
7298 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"
7299 else
7300 # Determine the default libpath from the value encoded in an empty executable.
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h. */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7309 main ()
7313 return 0;
7315 _ACEOF
7316 rm -f conftest.$ac_objext conftest$ac_exeext
7317 if { (ac_try="$ac_link"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_link") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest$ac_exeext &&
7333 $as_test_x conftest$ac_exeext; then
7335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7337 # Check for a 64-bit object if we didn't find anything.
7338 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; }
7339 }'`; fi
7340 else
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7348 conftest$ac_exeext conftest.$ac_ext
7349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7352 # Warning - without using the other run time loading flags,
7353 # -berok will link without error, but may produce a broken library.
7354 no_undefined_flag=' ${wl}-bernotok'
7355 allow_undefined_flag=' ${wl}-berok'
7356 # -bexpall does not export symbols beginning with underscore (_)
7357 always_export_symbols=yes
7358 # Exported symbols can be pulled into shared objects from archives
7359 whole_archive_flag_spec=' '
7360 archive_cmds_need_lc=yes
7361 # This is similar to how AIX traditionally builds it's shared libraries.
7362 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'
7367 amigaos*)
7368 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)'
7369 hardcode_libdir_flag_spec='-L$libdir'
7370 hardcode_minus_L=yes
7371 # see comment about different semantics on the GNU ld section
7372 ld_shlibs=no
7375 bsdi4*)
7376 export_dynamic_flag_spec=-rdynamic
7379 cygwin* | mingw* | pw32*)
7380 # When not using gcc, we currently assume that we are using
7381 # Microsoft Visual C++.
7382 # hardcode_libdir_flag_spec is actually meaningless, as there is
7383 # no search path for DLLs.
7384 hardcode_libdir_flag_spec=' '
7385 allow_undefined_flag=unsupported
7386 # Tell ltmain to make .lib files, not .a files.
7387 libext=lib
7388 # Tell ltmain to make .dll files, not .so files.
7389 shrext=".dll"
7390 # FIXME: Setting linknames here is a bad hack.
7391 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7392 # The linker will automatically build a .lib file if we build a DLL.
7393 old_archive_From_new_cmds='true'
7394 # FIXME: Should let the user specify the lib program.
7395 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7396 fix_srcfile_path='`cygpath -w "$srcfile"`'
7397 enable_shared_with_static_runtimes=yes
7400 darwin* | rhapsody*)
7401 if test "$GXX" = yes ; then
7402 archive_cmds_need_lc=no
7403 case "$host_os" in
7404 rhapsody* | darwin1.[012])
7405 allow_undefined_flag='-undefined suppress'
7407 *) # Darwin 1.3 on
7408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7409 allow_undefined_flag='-flat_namespace -undefined suppress'
7410 else
7411 case ${MACOSX_DEPLOYMENT_TARGET} in
7412 10.[012])
7413 allow_undefined_flag='-flat_namespace -undefined suppress'
7415 10.*)
7416 allow_undefined_flag='-undefined dynamic_lookup'
7418 esac
7421 esac
7422 lt_int_apple_cc_single_mod=no
7423 output_verbose_link_cmd='echo'
7424 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7425 lt_int_apple_cc_single_mod=yes
7427 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7428 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7429 else
7430 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'
7432 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7434 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7435 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}'
7436 else
7437 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}'
7439 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}'
7440 hardcode_direct=no
7441 hardcode_automatic=yes
7442 hardcode_shlibpath_var=unsupported
7443 whole_archive_flag_spec='-all_load $convenience'
7444 link_all_deplibs=yes
7445 else
7446 ld_shlibs=no
7450 dgux*)
7451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7452 hardcode_libdir_flag_spec='-L$libdir'
7453 hardcode_shlibpath_var=no
7456 freebsd1*)
7457 ld_shlibs=no
7460 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7461 # support. Future versions do this automatically, but an explicit c++rt0.o
7462 # does not break anything, and helps significantly (at the cost of a little
7463 # extra space).
7464 freebsd2.2*)
7465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7466 hardcode_libdir_flag_spec='-R$libdir'
7467 hardcode_direct=yes
7468 hardcode_shlibpath_var=no
7471 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7472 freebsd2*)
7473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7474 hardcode_direct=yes
7475 hardcode_minus_L=yes
7476 hardcode_shlibpath_var=no
7479 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7480 freebsd* | kfreebsd*-gnu)
7481 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7482 hardcode_libdir_flag_spec='-R$libdir'
7483 hardcode_direct=yes
7484 hardcode_shlibpath_var=no
7487 hpux9*)
7488 if test "$GCC" = yes; then
7489 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'
7490 else
7491 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'
7493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7494 hardcode_libdir_separator=:
7495 hardcode_direct=yes
7497 # hardcode_minus_L: Not really in the search PATH,
7498 # but as the default location of the library.
7499 hardcode_minus_L=yes
7500 export_dynamic_flag_spec='${wl}-E'
7503 hpux10* | hpux11*)
7504 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7505 case "$host_cpu" in
7506 hppa*64*|ia64*)
7507 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7510 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7512 esac
7513 else
7514 case "$host_cpu" in
7515 hppa*64*|ia64*)
7516 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7521 esac
7523 if test "$with_gnu_ld" = no; then
7524 case "$host_cpu" in
7525 hppa*64*)
7526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527 hardcode_libdir_flag_spec_ld='+b $libdir'
7528 hardcode_libdir_separator=:
7529 hardcode_direct=no
7530 hardcode_shlibpath_var=no
7532 ia64*)
7533 hardcode_libdir_flag_spec='-L$libdir'
7534 hardcode_direct=no
7535 hardcode_shlibpath_var=no
7537 # hardcode_minus_L: Not really in the search PATH,
7538 # but as the default location of the library.
7539 hardcode_minus_L=yes
7542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7543 hardcode_libdir_separator=:
7544 hardcode_direct=yes
7545 export_dynamic_flag_spec='${wl}-E'
7547 # hardcode_minus_L: Not really in the search PATH,
7548 # but as the default location of the library.
7549 hardcode_minus_L=yes
7551 esac
7555 irix5* | irix6* | nonstopux*)
7556 if test "$GCC" = yes; then
7557 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'
7558 else
7559 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'
7560 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7563 hardcode_libdir_separator=:
7564 link_all_deplibs=yes
7567 netbsd*)
7568 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7570 else
7571 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7573 hardcode_libdir_flag_spec='-R$libdir'
7574 hardcode_direct=yes
7575 hardcode_shlibpath_var=no
7578 newsos6)
7579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_direct=yes
7581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7582 hardcode_libdir_separator=:
7583 hardcode_shlibpath_var=no
7586 openbsd*)
7587 hardcode_direct=yes
7588 hardcode_shlibpath_var=no
7589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7591 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7592 export_dynamic_flag_spec='${wl}-E'
7593 else
7594 case $host_os in
7595 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7597 hardcode_libdir_flag_spec='-R$libdir'
7600 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7601 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7603 esac
7607 os2*)
7608 hardcode_libdir_flag_spec='-L$libdir'
7609 hardcode_minus_L=yes
7610 allow_undefined_flag=unsupported
7611 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'
7612 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7615 osf3*)
7616 if test "$GCC" = yes; then
7617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7618 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'
7619 else
7620 allow_undefined_flag=' -expect_unresolved \*'
7621 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'
7623 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624 hardcode_libdir_separator=:
7627 osf4* | osf5*) # as osf3* with the addition of -msym flag
7628 if test "$GCC" = yes; then
7629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7630 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'
7631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7632 else
7633 allow_undefined_flag=' -expect_unresolved \*'
7634 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'
7635 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7636 $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'
7638 # Both c and cxx compiler support -rpath directly
7639 hardcode_libdir_flag_spec='-rpath $libdir'
7641 hardcode_libdir_separator=:
7644 sco3.2v5*)
7645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 hardcode_shlibpath_var=no
7647 export_dynamic_flag_spec='${wl}-Bexport'
7648 runpath_var=LD_RUN_PATH
7649 hardcode_runpath_var=yes
7652 solaris*)
7653 no_undefined_flag=' -z text'
7654 if test "$GCC" = yes; then
7655 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7656 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7657 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7658 else
7659 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7663 hardcode_libdir_flag_spec='-R$libdir'
7664 hardcode_shlibpath_var=no
7665 case $host_os in
7666 solaris2.[0-5] | solaris2.[0-5].*) ;;
7667 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7669 esac
7670 link_all_deplibs=yes
7673 sunos4*)
7674 if test "x$host_vendor" = xsequent; then
7675 # Use $CC to link under sequent, because it throws in some extra .o
7676 # files that make .init and .fini sections work.
7677 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7678 else
7679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_libdir_flag_spec='-L$libdir'
7682 hardcode_direct=yes
7683 hardcode_minus_L=yes
7684 hardcode_shlibpath_var=no
7687 sysv4)
7688 case $host_vendor in
7689 sni)
7690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7691 hardcode_direct=yes # is this really true???
7693 siemens)
7694 ## LD is ld it makes a PLAMLIB
7695 ## CC just makes a GrossModule.
7696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7697 reload_cmds='$CC -r -o $output$reload_objs'
7698 hardcode_direct=no
7700 motorola)
7701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7704 esac
7705 runpath_var='LD_RUN_PATH'
7706 hardcode_shlibpath_var=no
7709 sysv4.3*)
7710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7711 hardcode_shlibpath_var=no
7712 export_dynamic_flag_spec='-Bexport'
7715 sysv4*MP*)
7716 if test -d /usr/nec; then
7717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7718 hardcode_shlibpath_var=no
7719 runpath_var=LD_RUN_PATH
7720 hardcode_runpath_var=yes
7721 ld_shlibs=yes
7725 sysv4.2uw2*)
7726 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7727 hardcode_direct=yes
7728 hardcode_minus_L=no
7729 hardcode_shlibpath_var=no
7730 hardcode_runpath_var=yes
7731 runpath_var=LD_RUN_PATH
7734 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7735 no_undefined_flag='${wl}-z ${wl}text'
7736 if test "$GCC" = yes; then
7737 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7738 else
7739 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7741 runpath_var='LD_RUN_PATH'
7742 hardcode_shlibpath_var=no
7745 sysv5*)
7746 no_undefined_flag=' -z text'
7747 # $CC -shared without GNU ld will not create a library from C++
7748 # object files and a static libstdc++, better avoid it by now
7749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7750 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7752 hardcode_libdir_flag_spec=
7753 hardcode_shlibpath_var=no
7754 runpath_var='LD_RUN_PATH'
7757 uts4*)
7758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7759 hardcode_libdir_flag_spec='-L$libdir'
7760 hardcode_shlibpath_var=no
7764 ld_shlibs=no
7766 esac
7769 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7770 echo "${ECHO_T}$ld_shlibs" >&6; }
7771 test "$ld_shlibs" = no && can_build_shared=no
7773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7774 if test "$GCC" = yes; then
7775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7779 # Do we need to explicitly link libc?
7781 case "x$archive_cmds_need_lc" in
7782 x|xyes)
7783 # Assume -lc should be added
7784 archive_cmds_need_lc=yes
7786 if test "$enable_shared" = yes && test "$GCC" = yes; then
7787 case $archive_cmds in
7788 *'~'*)
7789 # FIXME: we may have to deal with multi-command sequences.
7791 '$CC '*)
7792 # Test whether the compiler implicitly links with -lc since on some
7793 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7794 # to ld, don't add -lc before -lgcc.
7795 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7797 $rm conftest*
7798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801 (eval $ac_compile) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } 2>conftest.err; then
7805 soname=conftest
7806 lib=conftest
7807 libobjs=conftest.$ac_objext
7808 deplibs=
7809 wl=$lt_prog_compiler_wl
7810 compiler_flags=-v
7811 linker_flags=-v
7812 verstring=
7813 output_objdir=.
7814 libname=conftest
7815 lt_save_allow_undefined_flag=$allow_undefined_flag
7816 allow_undefined_flag=
7817 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7818 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }
7822 then
7823 archive_cmds_need_lc=no
7824 else
7825 archive_cmds_need_lc=yes
7827 allow_undefined_flag=$lt_save_allow_undefined_flag
7828 else
7829 cat conftest.err 1>&5
7831 $rm conftest*
7832 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7833 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7835 esac
7838 esac
7840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7842 library_names_spec=
7843 libname_spec='lib$name'
7844 soname_spec=
7845 shrext=".so"
7846 postinstall_cmds=
7847 postuninstall_cmds=
7848 finish_cmds=
7849 finish_eval=
7850 shlibpath_var=
7851 shlibpath_overrides_runpath=unknown
7852 version_type=none
7853 dynamic_linker="$host_os ld.so"
7854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7855 if test "$GCC" = yes; then
7856 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7857 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7858 # if the path contains ";" then we assume it to be the separator
7859 # otherwise default to the standard path separator (i.e. ":") - it is
7860 # assumed that no part of a normal pathname contains ";" but that should
7861 # okay in the real world where ";" in dirpaths is itself problematic.
7862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7863 else
7864 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7866 else
7867 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7869 need_lib_prefix=unknown
7870 hardcode_into_libs=no
7872 # when you set need_version to no, make sure it does not cause -set_version
7873 # flags to be left without arguments
7874 need_version=unknown
7876 case $host_os in
7877 aix3*)
7878 version_type=linux
7879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7880 shlibpath_var=LIBPATH
7882 # AIX 3 has no versioning support, so we append a major version to the name.
7883 soname_spec='${libname}${release}${shared_ext}$major'
7886 aix4* | aix5*)
7887 version_type=linux
7888 need_lib_prefix=no
7889 need_version=no
7890 hardcode_into_libs=yes
7891 if test "$host_cpu" = ia64; then
7892 # AIX 5 supports IA64
7893 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7894 shlibpath_var=LD_LIBRARY_PATH
7895 else
7896 # With GCC up to 2.95.x, collect2 would create an import file
7897 # for dependence libraries. The import file would start with
7898 # the line `#! .'. This would cause the generated library to
7899 # depend on `.', always an invalid library. This was fixed in
7900 # development snapshots of GCC prior to 3.0.
7901 case $host_os in
7902 aix4 | aix4.[01] | aix4.[01].*)
7903 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7904 echo ' yes '
7905 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7907 else
7908 can_build_shared=no
7911 esac
7912 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7913 # soname into executable. Probably we can add versioning support to
7914 # collect2, so additional links can be useful in future.
7915 if test "$aix_use_runtimelinking" = yes; then
7916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7917 # instead of lib<name>.a to let people know that these are not
7918 # typical AIX shared libraries.
7919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7920 else
7921 # We preserve .a as extension for shared libraries through AIX4.2
7922 # and later when we are not doing run time linking.
7923 library_names_spec='${libname}${release}.a $libname.a'
7924 soname_spec='${libname}${release}${shared_ext}$major'
7926 shlibpath_var=LIBPATH
7930 amigaos*)
7931 library_names_spec='$libname.ixlibrary $libname.a'
7932 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7933 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'
7936 beos*)
7937 library_names_spec='${libname}${shared_ext}'
7938 dynamic_linker="$host_os ld.so"
7939 shlibpath_var=LIBRARY_PATH
7942 bsdi4*)
7943 version_type=linux
7944 need_version=no
7945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7946 soname_spec='${libname}${release}${shared_ext}$major'
7947 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7948 shlibpath_var=LD_LIBRARY_PATH
7949 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7950 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7951 # the default ld.so.conf also contains /usr/contrib/lib and
7952 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7953 # libtool to hard-code these into programs
7956 cygwin* | mingw* | pw32*)
7957 version_type=windows
7958 shrext=".dll"
7959 need_version=no
7960 need_lib_prefix=no
7962 case $GCC,$host_os in
7963 yes,cygwin* | yes,mingw* | yes,pw32*)
7964 library_names_spec='$libname.dll.a'
7965 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7966 postinstall_cmds='base_file=`basename \${file}`~
7967 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7968 dldir=$destdir/`dirname \$dlpath`~
7969 test -d \$dldir || mkdir -p \$dldir~
7970 $install_prog $dir/$dlname \$dldir/$dlname'
7971 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7972 dlpath=$dir/\$dldll~
7973 $rm \$dlpath'
7974 shlibpath_overrides_runpath=yes
7976 case $host_os in
7977 cygwin*)
7978 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7979 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7980 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7982 mingw*)
7983 # MinGW DLLs use traditional 'lib' prefix
7984 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7986 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7987 # It is most probably a Windows format PATH printed by
7988 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7989 # path with ; separators, and with drive letters. We can handle the
7990 # drive letters (cygwin fileutils understands them), so leave them,
7991 # especially as we might pass files found there to a mingw objdump,
7992 # which wouldn't understand a cygwinified path. Ahh.
7993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7994 else
7995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7998 pw32*)
7999 # pw32 DLLs use 'pw' prefix rather than 'lib'
8000 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8002 esac
8006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8008 esac
8009 dynamic_linker='Win32 ld.exe'
8010 # FIXME: first we should search . and the directory the executable is in
8011 shlibpath_var=PATH
8014 darwin* | rhapsody*)
8015 dynamic_linker="$host_os dyld"
8016 version_type=darwin
8017 need_lib_prefix=no
8018 need_version=no
8019 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8020 soname_spec='${libname}${release}${major}$shared_ext'
8021 shlibpath_overrides_runpath=yes
8022 shlibpath_var=DYLD_LIBRARY_PATH
8023 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8024 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8025 if test "$GCC" = yes; then
8026 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"`
8027 else
8028 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8030 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8033 dgux*)
8034 version_type=linux
8035 need_lib_prefix=no
8036 need_version=no
8037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 shlibpath_var=LD_LIBRARY_PATH
8042 freebsd1*)
8043 dynamic_linker=no
8046 kfreebsd*-gnu)
8047 version_type=linux
8048 need_lib_prefix=no
8049 need_version=no
8050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8051 soname_spec='${libname}${release}${shared_ext}$major'
8052 shlibpath_var=LD_LIBRARY_PATH
8053 shlibpath_overrides_runpath=no
8054 hardcode_into_libs=yes
8055 dynamic_linker='GNU ld.so'
8058 freebsd*)
8059 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8060 version_type=freebsd-$objformat
8061 case $version_type in
8062 freebsd-elf*)
8063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8064 need_version=no
8065 need_lib_prefix=no
8067 freebsd-*)
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8069 need_version=yes
8071 esac
8072 shlibpath_var=LD_LIBRARY_PATH
8073 case $host_os in
8074 freebsd2*)
8075 shlibpath_overrides_runpath=yes
8077 freebsd3.01* | freebsdelf3.01*)
8078 shlibpath_overrides_runpath=yes
8079 hardcode_into_libs=yes
8081 *) # from 3.2 on
8082 shlibpath_overrides_runpath=no
8083 hardcode_into_libs=yes
8085 esac
8088 gnu*)
8089 version_type=linux
8090 need_lib_prefix=no
8091 need_version=no
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 shlibpath_var=LD_LIBRARY_PATH
8095 hardcode_into_libs=yes
8098 hpux9* | hpux10* | hpux11*)
8099 # Give a soname corresponding to the major version so that dld.sl refuses to
8100 # link against other versions.
8101 version_type=sunos
8102 need_lib_prefix=no
8103 need_version=no
8104 case "$host_cpu" in
8105 ia64*)
8106 shrext='.so'
8107 hardcode_into_libs=yes
8108 dynamic_linker="$host_os dld.so"
8109 shlibpath_var=LD_LIBRARY_PATH
8110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112 soname_spec='${libname}${release}${shared_ext}$major'
8113 if test "X$HPUX_IA64_MODE" = X32; then
8114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8115 else
8116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8120 hppa*64*)
8121 shrext='.sl'
8122 hardcode_into_libs=yes
8123 dynamic_linker="$host_os dld.sl"
8124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8127 soname_spec='${libname}${release}${shared_ext}$major'
8128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8132 shrext='.sl'
8133 dynamic_linker="$host_os dld.sl"
8134 shlibpath_var=SHLIB_PATH
8135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8137 soname_spec='${libname}${release}${shared_ext}$major'
8139 esac
8140 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8141 postinstall_cmds='chmod 555 $lib'
8144 irix5* | irix6* | nonstopux*)
8145 case $host_os in
8146 nonstopux*) version_type=nonstopux ;;
8148 if test "$lt_cv_prog_gnu_ld" = yes; then
8149 version_type=linux
8150 else
8151 version_type=irix
8152 fi ;;
8153 esac
8154 need_lib_prefix=no
8155 need_version=no
8156 soname_spec='${libname}${release}${shared_ext}$major'
8157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8158 case $host_os in
8159 irix5* | nonstopux*)
8160 libsuff= shlibsuff=
8163 case $LD in # libtool.m4 will add one of these switches to LD
8164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8165 libsuff= shlibsuff= libmagic=32-bit;;
8166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8167 libsuff=32 shlibsuff=N32 libmagic=N32;;
8168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8170 *) libsuff= shlibsuff= libmagic=never-match;;
8171 esac
8173 esac
8174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8175 shlibpath_overrides_runpath=no
8176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8178 hardcode_into_libs=yes
8181 # No shared lib support for Linux oldld, aout, or coff.
8182 linux*oldld* | linux*aout* | linux*coff*)
8183 dynamic_linker=no
8186 # This must be Linux ELF.
8187 linux*)
8188 version_type=linux
8189 need_lib_prefix=no
8190 need_version=no
8191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8192 soname_spec='${libname}${release}${shared_ext}$major'
8193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8194 shlibpath_var=LD_LIBRARY_PATH
8195 shlibpath_overrides_runpath=no
8196 # This implies no fast_install, which is unacceptable.
8197 # Some rework will be needed to allow for fast_install
8198 # before this can be enabled.
8199 hardcode_into_libs=yes
8201 # We used to test for /lib/ld.so.1 and disable shared libraries on
8202 # powerpc, because MkLinux only supported shared libraries with the
8203 # GNU dynamic linker. Since this was broken with cross compilers,
8204 # most powerpc-linux boxes support dynamic linking these days and
8205 # people can always --disable-shared, the test was removed, and we
8206 # assume the GNU/Linux dynamic linker is in use.
8207 dynamic_linker='GNU/Linux ld.so'
8210 netbsd*)
8211 version_type=sunos
8212 need_lib_prefix=no
8213 need_version=no
8214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8217 dynamic_linker='NetBSD (a.out) ld.so'
8218 else
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8220 soname_spec='${libname}${release}${shared_ext}$major'
8221 dynamic_linker='NetBSD ld.elf_so'
8223 shlibpath_var=LD_LIBRARY_PATH
8224 shlibpath_overrides_runpath=yes
8225 hardcode_into_libs=yes
8228 newsos6)
8229 version_type=linux
8230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8231 shlibpath_var=LD_LIBRARY_PATH
8232 shlibpath_overrides_runpath=yes
8235 nto-qnx*)
8236 version_type=linux
8237 need_lib_prefix=no
8238 need_version=no
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 soname_spec='${libname}${release}${shared_ext}$major'
8241 shlibpath_var=LD_LIBRARY_PATH
8242 shlibpath_overrides_runpath=yes
8245 openbsd*)
8246 version_type=sunos
8247 need_lib_prefix=no
8248 need_version=no
8249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251 shlibpath_var=LD_LIBRARY_PATH
8252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8253 case $host_os in
8254 openbsd2.[89] | openbsd2.[89].*)
8255 shlibpath_overrides_runpath=no
8258 shlibpath_overrides_runpath=yes
8260 esac
8261 else
8262 shlibpath_overrides_runpath=yes
8266 os2*)
8267 libname_spec='$name'
8268 shrext=".dll"
8269 need_lib_prefix=no
8270 library_names_spec='$libname${shared_ext} $libname.a'
8271 dynamic_linker='OS/2 ld.exe'
8272 shlibpath_var=LIBPATH
8275 osf3* | osf4* | osf5*)
8276 version_type=osf
8277 need_lib_prefix=no
8278 need_version=no
8279 soname_spec='${libname}${release}${shared_ext}$major'
8280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281 shlibpath_var=LD_LIBRARY_PATH
8282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8286 sco3.2v5*)
8287 version_type=osf
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 shlibpath_var=LD_LIBRARY_PATH
8293 solaris*)
8294 version_type=linux
8295 need_lib_prefix=no
8296 need_version=no
8297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298 soname_spec='${libname}${release}${shared_ext}$major'
8299 shlibpath_var=LD_LIBRARY_PATH
8300 shlibpath_overrides_runpath=yes
8301 hardcode_into_libs=yes
8302 # ldd complains unless libraries are executable
8303 postinstall_cmds='chmod +x $lib'
8306 sunos4*)
8307 version_type=sunos
8308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8309 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8310 shlibpath_var=LD_LIBRARY_PATH
8311 shlibpath_overrides_runpath=yes
8312 if test "$with_gnu_ld" = yes; then
8313 need_lib_prefix=no
8315 need_version=yes
8318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8319 version_type=linux
8320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321 soname_spec='${libname}${release}${shared_ext}$major'
8322 shlibpath_var=LD_LIBRARY_PATH
8323 case $host_vendor in
8324 sni)
8325 shlibpath_overrides_runpath=no
8326 need_lib_prefix=no
8327 export_dynamic_flag_spec='${wl}-Blargedynsym'
8328 runpath_var=LD_RUN_PATH
8330 siemens)
8331 need_lib_prefix=no
8333 motorola)
8334 need_lib_prefix=no
8335 need_version=no
8336 shlibpath_overrides_runpath=no
8337 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8339 esac
8342 sysv4*MP*)
8343 if test -d /usr/nec ;then
8344 version_type=linux
8345 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8346 soname_spec='$libname${shared_ext}.$major'
8347 shlibpath_var=LD_LIBRARY_PATH
8351 uts4*)
8352 version_type=linux
8353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8354 soname_spec='${libname}${release}${shared_ext}$major'
8355 shlibpath_var=LD_LIBRARY_PATH
8359 dynamic_linker=no
8361 esac
8362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8363 echo "${ECHO_T}$dynamic_linker" >&6; }
8364 test "$dynamic_linker" = no && can_build_shared=no
8366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8368 hardcode_action=
8369 if test -n "$hardcode_libdir_flag_spec" || \
8370 test -n "$runpath_var " || \
8371 test "X$hardcode_automatic"="Xyes" ; then
8373 # We can hardcode non-existant directories.
8374 if test "$hardcode_direct" != no &&
8375 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8376 # have to relink, otherwise we might link with an installed library
8377 # when we should be linking with a yet-to-be-installed one
8378 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8379 test "$hardcode_minus_L" != no; then
8380 # Linking always hardcodes the temporary library directory.
8381 hardcode_action=relink
8382 else
8383 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8384 hardcode_action=immediate
8386 else
8387 # We cannot hardcode anything, or else we can only hardcode existing
8388 # directories.
8389 hardcode_action=unsupported
8391 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8392 echo "${ECHO_T}$hardcode_action" >&6; }
8394 if test "$hardcode_action" = relink; then
8395 # Fast installation is not supported
8396 enable_fast_install=no
8397 elif test "$shlibpath_overrides_runpath" = yes ||
8398 test "$enable_shared" = no; then
8399 # Fast installation is not necessary
8400 enable_fast_install=needless
8403 striplib=
8404 old_striplib=
8405 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8408 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8409 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8410 { echo "$as_me:$LINENO: result: yes" >&5
8411 echo "${ECHO_T}yes" >&6; }
8412 else
8413 # FIXME - insert some real tests, host_os isn't really good enough
8414 case $host_os in
8415 darwin*)
8416 if test -n "$STRIP" ; then
8417 striplib="$STRIP -x"
8418 { echo "$as_me:$LINENO: result: yes" >&5
8419 echo "${ECHO_T}yes" >&6; }
8420 else
8421 { echo "$as_me:$LINENO: result: no" >&5
8422 echo "${ECHO_T}no" >&6; }
8426 { echo "$as_me:$LINENO: result: no" >&5
8427 echo "${ECHO_T}no" >&6; }
8429 esac
8432 if test "x$enable_dlopen" != xyes; then
8433 enable_dlopen=unknown
8434 enable_dlopen_self=unknown
8435 enable_dlopen_self_static=unknown
8436 else
8437 lt_cv_dlopen=no
8438 lt_cv_dlopen_libs=
8440 case $host_os in
8441 beos*)
8442 lt_cv_dlopen="load_add_on"
8443 lt_cv_dlopen_libs=
8444 lt_cv_dlopen_self=yes
8447 mingw* | pw32*)
8448 lt_cv_dlopen="LoadLibrary"
8449 lt_cv_dlopen_libs=
8452 cygwin*)
8453 lt_cv_dlopen="dlopen"
8454 lt_cv_dlopen_libs=
8457 darwin*)
8458 # if libdl is installed we need to link against it
8459 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 else
8464 ac_check_lib_save_LIBS=$LIBS
8465 LIBS="-ldl $LIBS"
8466 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any GCC internal prototype to avoid an error.
8474 Use char because int might match the return type of a GCC
8475 builtin and then its argument prototype would still apply. */
8476 #ifdef __cplusplus
8477 extern "C"
8478 #endif
8479 char dlopen ();
8481 main ()
8483 return dlopen ();
8485 return 0;
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_link") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest$ac_exeext &&
8505 $as_test_x conftest$ac_exeext; then
8506 ac_cv_lib_dl_dlopen=yes
8507 else
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_cv_lib_dl_dlopen=no
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515 conftest$ac_exeext conftest.$ac_ext
8516 LIBS=$ac_check_lib_save_LIBS
8518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8520 if test $ac_cv_lib_dl_dlopen = yes; then
8521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8522 else
8524 lt_cv_dlopen="dyld"
8525 lt_cv_dlopen_libs=
8526 lt_cv_dlopen_self=yes
8533 { echo "$as_me:$LINENO: checking for shl_load" >&5
8534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8535 if test "${ac_cv_func_shl_load+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8537 else
8538 cat >conftest.$ac_ext <<_ACEOF
8539 /* confdefs.h. */
8540 _ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8546 #define shl_load innocuous_shl_load
8548 /* System header to define __stub macros and hopefully few prototypes,
8549 which can conflict with char shl_load (); below.
8550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8551 <limits.h> exists even on freestanding compilers. */
8553 #ifdef __STDC__
8554 # include <limits.h>
8555 #else
8556 # include <assert.h>
8557 #endif
8559 #undef shl_load
8561 /* Override any GCC internal prototype to avoid an error.
8562 Use char because int might match the return type of a GCC
8563 builtin and then its argument prototype would still apply. */
8564 #ifdef __cplusplus
8565 extern "C"
8566 #endif
8567 char shl_load ();
8568 /* The GNU C library defines this for functions which it implements
8569 to always fail with ENOSYS. Some functions are actually named
8570 something starting with __ and the normal name is an alias. */
8571 #if defined __stub_shl_load || defined __stub___shl_load
8572 choke me
8573 #endif
8576 main ()
8578 return shl_load ();
8580 return 0;
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (ac_try="$ac_link"
8585 case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588 esac
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_link") 2>conftest.er1
8591 ac_status=$?
8592 grep -v '^ *+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest$ac_exeext &&
8600 $as_test_x conftest$ac_exeext; then
8601 ac_cv_func_shl_load=yes
8602 else
8603 echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 ac_cv_func_shl_load=no
8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8610 conftest$ac_exeext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8614 if test $ac_cv_func_shl_load = yes; then
8615 lt_cv_dlopen="shl_load"
8616 else
8617 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 ac_check_lib_save_LIBS=$LIBS
8623 LIBS="-ldld $LIBS"
8624 cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h. */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any GCC internal prototype to avoid an error.
8632 Use char because int might match the return type of a GCC
8633 builtin and then its argument prototype would still apply. */
8634 #ifdef __cplusplus
8635 extern "C"
8636 #endif
8637 char shl_load ();
8639 main ()
8641 return shl_load ();
8643 return 0;
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (ac_try="$ac_link"
8648 case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_link") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest$ac_exeext &&
8663 $as_test_x conftest$ac_exeext; then
8664 ac_cv_lib_dld_shl_load=yes
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8669 ac_cv_lib_dld_shl_load=no
8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS=$ac_check_lib_save_LIBS
8676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8678 if test $ac_cv_lib_dld_shl_load = yes; then
8679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8680 else
8681 { echo "$as_me:$LINENO: checking for dlopen" >&5
8682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8683 if test "${ac_cv_func_dlopen+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h. */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8694 #define dlopen innocuous_dlopen
8696 /* System header to define __stub macros and hopefully few prototypes,
8697 which can conflict with char dlopen (); below.
8698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8699 <limits.h> exists even on freestanding compilers. */
8701 #ifdef __STDC__
8702 # include <limits.h>
8703 #else
8704 # include <assert.h>
8705 #endif
8707 #undef dlopen
8709 /* Override any GCC internal prototype to avoid an error.
8710 Use char because int might match the return type of a GCC
8711 builtin and then its argument prototype would still apply. */
8712 #ifdef __cplusplus
8713 extern "C"
8714 #endif
8715 char dlopen ();
8716 /* The GNU C library defines this for functions which it implements
8717 to always fail with ENOSYS. Some functions are actually named
8718 something starting with __ and the normal name is an alias. */
8719 #if defined __stub_dlopen || defined __stub___dlopen
8720 choke me
8721 #endif
8724 main ()
8726 return dlopen ();
8728 return 0;
8730 _ACEOF
8731 rm -f conftest.$ac_objext conftest$ac_exeext
8732 if { (ac_try="$ac_link"
8733 case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736 esac
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_link") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest$ac_exeext &&
8748 $as_test_x conftest$ac_exeext; then
8749 ac_cv_func_dlopen=yes
8750 else
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_cv_func_dlopen=no
8757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8758 conftest$ac_exeext conftest.$ac_ext
8760 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8762 if test $ac_cv_func_dlopen = yes; then
8763 lt_cv_dlopen="dlopen"
8764 else
8765 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-ldl $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8782 #ifdef __cplusplus
8783 extern "C"
8784 #endif
8785 char dlopen ();
8787 main ()
8789 return dlopen ();
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (ac_try="$ac_link"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_link") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest$ac_exeext &&
8811 $as_test_x conftest$ac_exeext; then
8812 ac_cv_lib_dl_dlopen=yes
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 ac_cv_lib_dl_dlopen=no
8820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8821 conftest$ac_exeext conftest.$ac_ext
8822 LIBS=$ac_check_lib_save_LIBS
8824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8826 if test $ac_cv_lib_dl_dlopen = yes; then
8827 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8828 else
8829 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lsvld $LIBS"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h. */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char dlopen ();
8851 main ()
8853 return dlopen ();
8855 return 0;
8857 _ACEOF
8858 rm -f conftest.$ac_objext conftest$ac_exeext
8859 if { (ac_try="$ac_link"
8860 case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_link") 2>conftest.er1
8866 ac_status=$?
8867 grep -v '^ *+' conftest.er1 >conftest.err
8868 rm -f conftest.er1
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } && {
8872 test -z "$ac_c_werror_flag" ||
8873 test ! -s conftest.err
8874 } && test -s conftest$ac_exeext &&
8875 $as_test_x conftest$ac_exeext; then
8876 ac_cv_lib_svld_dlopen=yes
8877 else
8878 echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_cv_lib_svld_dlopen=no
8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8890 if test $ac_cv_lib_svld_dlopen = yes; then
8891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8892 else
8893 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898 ac_check_lib_save_LIBS=$LIBS
8899 LIBS="-ldld $LIBS"
8900 cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h. */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h. */
8907 /* Override any GCC internal prototype to avoid an error.
8908 Use char because int might match the return type of a GCC
8909 builtin and then its argument prototype would still apply. */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char dld_link ();
8915 main ()
8917 return dld_link ();
8919 return 0;
8921 _ACEOF
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (ac_try="$ac_link"
8924 case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929 (eval "$ac_link") 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
8938 } && test -s conftest$ac_exeext &&
8939 $as_test_x conftest$ac_exeext; then
8940 ac_cv_lib_dld_dld_link=yes
8941 else
8942 echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8945 ac_cv_lib_dld_dld_link=no
8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8949 conftest$ac_exeext conftest.$ac_ext
8950 LIBS=$ac_check_lib_save_LIBS
8952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8954 if test $ac_cv_lib_dld_dld_link = yes; then
8955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8974 esac
8976 if test "x$lt_cv_dlopen" != xno; then
8977 enable_dlopen=yes
8978 else
8979 enable_dlopen=no
8982 case $lt_cv_dlopen in
8983 dlopen)
8984 save_CPPFLAGS="$CPPFLAGS"
8985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8987 save_LDFLAGS="$LDFLAGS"
8988 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8990 save_LIBS="$LIBS"
8991 LIBS="$lt_cv_dlopen_libs $LIBS"
8993 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8995 if test "${lt_cv_dlopen_self+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 else
8998 if test "$cross_compiling" = yes; then :
8999 lt_cv_dlopen_self=cross
9000 else
9001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9002 lt_status=$lt_dlunknown
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9004 "configure"
9005 #include "confdefs.h"
9007 #if HAVE_DLFCN_H
9008 #include <dlfcn.h>
9009 #endif
9011 #include <stdio.h>
9013 #ifdef RTLD_GLOBAL
9014 # define LT_DLGLOBAL RTLD_GLOBAL
9015 #else
9016 # ifdef DL_GLOBAL
9017 # define LT_DLGLOBAL DL_GLOBAL
9018 # else
9019 # define LT_DLGLOBAL 0
9020 # endif
9021 #endif
9023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9024 find out it does not work in some platform. */
9025 #ifndef LT_DLLAZY_OR_NOW
9026 # ifdef RTLD_LAZY
9027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9028 # else
9029 # ifdef DL_LAZY
9030 # define LT_DLLAZY_OR_NOW DL_LAZY
9031 # else
9032 # ifdef RTLD_NOW
9033 # define LT_DLLAZY_OR_NOW RTLD_NOW
9034 # else
9035 # ifdef DL_NOW
9036 # define LT_DLLAZY_OR_NOW DL_NOW
9037 # else
9038 # define LT_DLLAZY_OR_NOW 0
9039 # endif
9040 # endif
9041 # endif
9042 # endif
9043 #endif
9045 #ifdef __cplusplus
9046 extern "C" void exit (int);
9047 #endif
9049 void fnord() { int i=42;}
9050 int main ()
9052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9053 int status = $lt_dlunknown;
9055 if (self)
9057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9059 /* dlclose (self); */
9062 exit (status);
9065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9070 (./conftest; exit; ) 2>/dev/null
9071 lt_status=$?
9072 case x$lt_status in
9073 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9074 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9075 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9076 esac
9077 else :
9078 # compilation failed
9079 lt_cv_dlopen_self=no
9082 rm -fr conftest*
9086 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9089 if test "x$lt_cv_dlopen_self" = xyes; then
9090 LDFLAGS="$LDFLAGS $link_static_flag"
9091 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9093 if test "${lt_cv_dlopen_self_static+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 if test "$cross_compiling" = yes; then :
9097 lt_cv_dlopen_self_static=cross
9098 else
9099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9100 lt_status=$lt_dlunknown
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9102 "configure"
9103 #include "confdefs.h"
9105 #if HAVE_DLFCN_H
9106 #include <dlfcn.h>
9107 #endif
9109 #include <stdio.h>
9111 #ifdef RTLD_GLOBAL
9112 # define LT_DLGLOBAL RTLD_GLOBAL
9113 #else
9114 # ifdef DL_GLOBAL
9115 # define LT_DLGLOBAL DL_GLOBAL
9116 # else
9117 # define LT_DLGLOBAL 0
9118 # endif
9119 #endif
9121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9122 find out it does not work in some platform. */
9123 #ifndef LT_DLLAZY_OR_NOW
9124 # ifdef RTLD_LAZY
9125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9126 # else
9127 # ifdef DL_LAZY
9128 # define LT_DLLAZY_OR_NOW DL_LAZY
9129 # else
9130 # ifdef RTLD_NOW
9131 # define LT_DLLAZY_OR_NOW RTLD_NOW
9132 # else
9133 # ifdef DL_NOW
9134 # define LT_DLLAZY_OR_NOW DL_NOW
9135 # else
9136 # define LT_DLLAZY_OR_NOW 0
9137 # endif
9138 # endif
9139 # endif
9140 # endif
9141 #endif
9143 #ifdef __cplusplus
9144 extern "C" void exit (int);
9145 #endif
9147 void fnord() { int i=42;}
9148 int main ()
9150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9151 int status = $lt_dlunknown;
9153 if (self)
9155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9156 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9157 /* dlclose (self); */
9160 exit (status);
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>&5
9165 ac_status=$?
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9168 (./conftest; exit; ) 2>/dev/null
9169 lt_status=$?
9170 case x$lt_status in
9171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9173 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9174 esac
9175 else :
9176 # compilation failed
9177 lt_cv_dlopen_self_static=no
9180 rm -fr conftest*
9184 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9188 CPPFLAGS="$save_CPPFLAGS"
9189 LDFLAGS="$save_LDFLAGS"
9190 LIBS="$save_LIBS"
9192 esac
9194 case $lt_cv_dlopen_self in
9195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9196 *) enable_dlopen_self=unknown ;;
9197 esac
9199 case $lt_cv_dlopen_self_static in
9200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9201 *) enable_dlopen_self_static=unknown ;;
9202 esac
9206 # Report which librarie types wil actually be built
9207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9210 echo "${ECHO_T}$can_build_shared" >&6; }
9212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9214 test "$can_build_shared" = "no" && enable_shared=no
9216 # On AIX, shared libraries and static libraries use the same namespace, and
9217 # are all built from PIC.
9218 case "$host_os" in
9219 aix3*)
9220 test "$enable_shared" = yes && enable_static=no
9221 if test -n "$RANLIB"; then
9222 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9223 postinstall_cmds='$RANLIB $lib'
9227 aix4*)
9228 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9229 test "$enable_shared" = yes && enable_static=no
9232 darwin* | rhapsody*)
9233 if test "$GCC" = yes; then
9234 archive_cmds_need_lc=no
9235 case "$host_os" in
9236 rhapsody* | darwin1.[012])
9237 allow_undefined_flag='-undefined suppress'
9239 *) # Darwin 1.3 on
9240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9241 allow_undefined_flag='-flat_namespace -undefined suppress'
9242 else
9243 case ${MACOSX_DEPLOYMENT_TARGET} in
9244 10.[012])
9245 allow_undefined_flag='-flat_namespace -undefined suppress'
9247 10.*)
9248 allow_undefined_flag='-undefined dynamic_lookup'
9250 esac
9253 esac
9254 output_verbose_link_cmd='echo'
9255 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9256 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9257 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9258 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}'
9259 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}'
9260 hardcode_direct=no
9261 hardcode_automatic=yes
9262 hardcode_shlibpath_var=unsupported
9263 whole_archive_flag_spec='-all_load $convenience'
9264 link_all_deplibs=yes
9265 else
9266 ld_shlibs=no
9269 esac
9270 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9271 echo "${ECHO_T}$enable_shared" >&6; }
9273 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9274 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9275 # Make sure either enable_shared or enable_static is yes.
9276 test "$enable_shared" = yes || enable_static=yes
9277 { echo "$as_me:$LINENO: result: $enable_static" >&5
9278 echo "${ECHO_T}$enable_static" >&6; }
9280 # The else clause should only fire when bootstrapping the
9281 # libtool distribution, otherwise you forgot to ship ltmain.sh
9282 # with your package, and you will get complaints that there are
9283 # no rules to generate ltmain.sh.
9284 if test -f "$ltmain"; then
9285 # See if we are running on zsh, and set the options which allow our commands through
9286 # without removal of \ escapes.
9287 if test -n "${ZSH_VERSION+set}" ; then
9288 setopt NO_GLOB_SUBST
9290 # Now quote all the things that may contain metacharacters while being
9291 # careful not to overquote the AC_SUBSTed values. We take copies of the
9292 # variables and quote the copies for generation of the libtool script.
9293 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9296 deplibs_check_method reload_flag reload_cmds need_locks \
9297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9298 lt_cv_sys_global_symbol_to_c_name_address \
9299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9300 old_postinstall_cmds old_postuninstall_cmds \
9301 compiler \
9302 CC \
9303 LD \
9304 lt_prog_compiler_wl \
9305 lt_prog_compiler_pic \
9306 lt_prog_compiler_static \
9307 lt_prog_compiler_no_builtin_flag \
9308 export_dynamic_flag_spec \
9309 thread_safe_flag_spec \
9310 whole_archive_flag_spec \
9311 enable_shared_with_static_runtimes \
9312 old_archive_cmds \
9313 old_archive_from_new_cmds \
9314 predep_objects \
9315 postdep_objects \
9316 predeps \
9317 postdeps \
9318 compiler_lib_search_path \
9319 archive_cmds \
9320 archive_expsym_cmds \
9321 postinstall_cmds \
9322 postuninstall_cmds \
9323 old_archive_from_expsyms_cmds \
9324 allow_undefined_flag \
9325 no_undefined_flag \
9326 export_symbols_cmds \
9327 hardcode_libdir_flag_spec \
9328 hardcode_libdir_flag_spec_ld \
9329 hardcode_libdir_separator \
9330 hardcode_automatic \
9331 module_cmds \
9332 module_expsym_cmds \
9333 lt_cv_prog_compiler_c_o \
9334 exclude_expsyms \
9335 include_expsyms; do
9337 case $var in
9338 old_archive_cmds | \
9339 old_archive_from_new_cmds | \
9340 archive_cmds | \
9341 archive_expsym_cmds | \
9342 module_cmds | \
9343 module_expsym_cmds | \
9344 old_archive_from_expsyms_cmds | \
9345 export_symbols_cmds | \
9346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9347 postinstall_cmds | postuninstall_cmds | \
9348 old_postinstall_cmds | old_postuninstall_cmds | \
9349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9350 # Double-quote double-evaled strings.
9351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9356 esac
9357 done
9359 case $lt_echo in
9360 *'\$0 --fallback-echo"')
9361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9363 esac
9365 cfgfile="${ofile}T"
9366 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9367 $rm -f "$cfgfile"
9368 { echo "$as_me:$LINENO: creating $ofile" >&5
9369 echo "$as_me: creating $ofile" >&6;}
9371 cat <<__EOF__ >> "$cfgfile"
9372 #! $SHELL
9374 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9375 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9379 # Free Software Foundation, Inc.
9381 # This file is part of GNU Libtool:
9382 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9384 # This program is free software; you can redistribute it and/or modify
9385 # it under the terms of the GNU General Public License as published by
9386 # the Free Software Foundation; either version 2 of the License, or
9387 # (at your option) any later version.
9389 # This program is distributed in the hope that it will be useful, but
9390 # WITHOUT ANY WARRANTY; without even the implied warranty of
9391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9392 # General Public License for more details.
9394 # You should have received a copy of the GNU General Public License
9395 # along with this program; if not, write to the Free Software
9396 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9398 # As a special exception to the GNU General Public License, if you
9399 # distribute this file as part of a program that contains a
9400 # configuration script generated by Autoconf, you may include it under
9401 # the same distribution terms that you use for the rest of that program.
9403 # A sed program that does not truncate output.
9404 SED=$lt_SED
9406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9407 Xsed="$SED -e s/^X//"
9409 # The HP-UX ksh and POSIX shell print the target directory to stdout
9410 # if CDPATH is set.
9411 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9413 # The names of the tagged configurations supported by this script.
9414 available_tags=
9416 # ### BEGIN LIBTOOL CONFIG
9418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9420 # Shell to use when invoking shell scripts.
9421 SHELL=$lt_SHELL
9423 # Whether or not to build shared libraries.
9424 build_libtool_libs=$enable_shared
9426 # Whether or not to build static libraries.
9427 build_old_libs=$enable_static
9429 # Whether or not to add -lc for building shared libraries.
9430 build_libtool_need_lc=$archive_cmds_need_lc
9432 # Whether or not to disallow shared libs when runtime libs are static
9433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9435 # Whether or not to optimize for fast installation.
9436 fast_install=$enable_fast_install
9438 # The host system.
9439 host_alias=$host_alias
9440 host=$host
9442 # An echo program that does not interpret backslashes.
9443 echo=$lt_echo
9445 # The archiver.
9446 AR=$lt_AR
9447 AR_FLAGS=$lt_AR_FLAGS
9449 # A C compiler.
9450 LTCC=$lt_LTCC
9452 # A language-specific compiler.
9453 CC=$lt_compiler
9455 # Is the compiler the GNU C compiler?
9456 with_gcc=$GCC
9458 # An ERE matcher.
9459 EGREP=$lt_EGREP
9461 # The linker used to build libraries.
9462 LD=$lt_LD
9464 # Whether we need hard or soft links.
9465 LN_S=$lt_LN_S
9467 # A BSD-compatible nm program.
9468 NM=$lt_NM
9470 # A symbol stripping program
9471 STRIP="$STRIP"
9473 # Used to examine libraries when file_magic_cmd begins "file"
9474 MAGIC_CMD=$MAGIC_CMD
9476 # Used on cygwin: DLL creation program.
9477 DLLTOOL="$DLLTOOL"
9479 # Used on cygwin: object dumper.
9480 OBJDUMP="$OBJDUMP"
9482 # Used on cygwin: assembler.
9483 AS="$AS"
9485 # The name of the directory that contains temporary libtool files.
9486 objdir=$objdir
9488 # How to create reloadable object files.
9489 reload_flag=$lt_reload_flag
9490 reload_cmds=$lt_reload_cmds
9492 # How to pass a linker flag through the compiler.
9493 wl=$lt_lt_prog_compiler_wl
9495 # Object file suffix (normally "o").
9496 objext="$ac_objext"
9498 # Old archive suffix (normally "a").
9499 libext="$libext"
9501 # Shared library suffix (normally ".so").
9502 shrext='$shrext'
9504 # Executable file suffix (normally "").
9505 exeext="$exeext"
9507 # Additional compiler flags for building library objects.
9508 pic_flag=$lt_lt_prog_compiler_pic
9509 pic_mode=$pic_mode
9511 # What is the maximum length of a command?
9512 max_cmd_len=$lt_cv_sys_max_cmd_len
9514 # Does compiler simultaneously support -c and -o options?
9515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9517 # Must we lock files when doing compilation ?
9518 need_locks=$lt_need_locks
9520 # Do we need the lib prefix for modules?
9521 need_lib_prefix=$need_lib_prefix
9523 # Do we need a version for libraries?
9524 need_version=$need_version
9526 # Whether dlopen is supported.
9527 dlopen_support=$enable_dlopen
9529 # Whether dlopen of programs is supported.
9530 dlopen_self=$enable_dlopen_self
9532 # Whether dlopen of statically linked programs is supported.
9533 dlopen_self_static=$enable_dlopen_self_static
9535 # Compiler flag to prevent dynamic linking.
9536 link_static_flag=$lt_lt_prog_compiler_static
9538 # Compiler flag to turn off builtin functions.
9539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9541 # Compiler flag to allow reflexive dlopens.
9542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9544 # Compiler flag to generate shared objects directly from archives.
9545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9547 # Compiler flag to generate thread-safe objects.
9548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9550 # Library versioning type.
9551 version_type=$version_type
9553 # Format of library name prefix.
9554 libname_spec=$lt_libname_spec
9556 # List of archive names. First name is the real one, the rest are links.
9557 # The last name is the one that the linker finds with -lNAME.
9558 library_names_spec=$lt_library_names_spec
9560 # The coded name of the library, if different from the real name.
9561 soname_spec=$lt_soname_spec
9563 # Commands used to build and install an old-style archive.
9564 RANLIB=$lt_RANLIB
9565 old_archive_cmds=$lt_old_archive_cmds
9566 old_postinstall_cmds=$lt_old_postinstall_cmds
9567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9569 # Create an old-style archive from a shared archive.
9570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9572 # Create a temporary old-style archive to link instead of a shared archive.
9573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9575 # Commands used to build and install a shared archive.
9576 archive_cmds=$lt_archive_cmds
9577 archive_expsym_cmds=$lt_archive_expsym_cmds
9578 postinstall_cmds=$lt_postinstall_cmds
9579 postuninstall_cmds=$lt_postuninstall_cmds
9581 # Commands used to build a loadable module (assumed same as above if empty)
9582 module_cmds=$lt_module_cmds
9583 module_expsym_cmds=$lt_module_expsym_cmds
9585 # Commands to strip libraries.
9586 old_striplib=$lt_old_striplib
9587 striplib=$lt_striplib
9589 # Dependencies to place before the objects being linked to create a
9590 # shared library.
9591 predep_objects=$lt_predep_objects
9593 # Dependencies to place after the objects being linked to create a
9594 # shared library.
9595 postdep_objects=$lt_postdep_objects
9597 # Dependencies to place before the objects being linked to create a
9598 # shared library.
9599 predeps=$lt_predeps
9601 # Dependencies to place after the objects being linked to create a
9602 # shared library.
9603 postdeps=$lt_postdeps
9605 # The library search path used internally by the compiler when linking
9606 # a shared library.
9607 compiler_lib_search_path=$lt_compiler_lib_search_path
9609 # Method to check whether dependent libraries are shared objects.
9610 deplibs_check_method=$lt_deplibs_check_method
9612 # Command to use when deplibs_check_method == file_magic.
9613 file_magic_cmd=$lt_file_magic_cmd
9615 # Flag that allows shared libraries with undefined symbols to be built.
9616 allow_undefined_flag=$lt_allow_undefined_flag
9618 # Flag that forces no undefined symbols.
9619 no_undefined_flag=$lt_no_undefined_flag
9621 # Commands used to finish a libtool library installation in a directory.
9622 finish_cmds=$lt_finish_cmds
9624 # Same as above, but a single script fragment to be evaled but not shown.
9625 finish_eval=$lt_finish_eval
9627 # Take the output of nm and produce a listing of raw symbols and C names.
9628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9630 # Transform the output of nm in a proper C declaration
9631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9633 # Transform the output of nm in a C name address pair
9634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9636 # This is the shared library runtime path variable.
9637 runpath_var=$runpath_var
9639 # This is the shared library path variable.
9640 shlibpath_var=$shlibpath_var
9642 # Is shlibpath searched before the hard-coded library search path?
9643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9645 # How to hardcode a shared library path into an executable.
9646 hardcode_action=$hardcode_action
9648 # Whether we should hardcode library paths into libraries.
9649 hardcode_into_libs=$hardcode_into_libs
9651 # Flag to hardcode \$libdir into a binary during linking.
9652 # This must work even if \$libdir does not exist.
9653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9655 # If ld is used when linking, flag to hardcode \$libdir into
9656 # a binary during linking. This must work even if \$libdir does
9657 # not exist.
9658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9660 # Whether we need a single -rpath flag with a separated argument.
9661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9664 # resulting binary.
9665 hardcode_direct=$hardcode_direct
9667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9668 # resulting binary.
9669 hardcode_minus_L=$hardcode_minus_L
9671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9672 # the resulting binary.
9673 hardcode_shlibpath_var=$hardcode_shlibpath_var
9675 # Set to yes if building a shared library automatically hardcodes DIR into the library
9676 # and all subsequent libraries and executables linked against it.
9677 hardcode_automatic=$hardcode_automatic
9679 # Variables whose values should be saved in libtool wrapper scripts and
9680 # restored at relink time.
9681 variables_saved_for_relink="$variables_saved_for_relink"
9683 # Whether libtool must link a program against all its dependency libraries.
9684 link_all_deplibs=$link_all_deplibs
9686 # Compile-time system search path for libraries
9687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9689 # Run-time system search path for libraries
9690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9692 # Fix the shell variable \$srcfile for the compiler.
9693 fix_srcfile_path="$fix_srcfile_path"
9695 # Set to yes if exported symbols are required.
9696 always_export_symbols=$always_export_symbols
9698 # The commands to list exported symbols.
9699 export_symbols_cmds=$lt_export_symbols_cmds
9701 # The commands to extract the exported symbol list from a shared archive.
9702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9704 # Symbols that should not be listed in the preloaded symbols.
9705 exclude_expsyms=$lt_exclude_expsyms
9707 # Symbols that must always be exported.
9708 include_expsyms=$lt_include_expsyms
9710 # ### END LIBTOOL CONFIG
9712 __EOF__
9715 case $host_os in
9716 aix3*)
9717 cat <<\EOF >> "$cfgfile"
9719 # AIX sometimes has problems with the GCC collect2 program. For some
9720 # reason, if we set the COLLECT_NAMES environment variable, the problems
9721 # vanish in a puff of smoke.
9722 if test "X${COLLECT_NAMES+set}" != Xset; then
9723 COLLECT_NAMES=
9724 export COLLECT_NAMES
9728 esac
9730 # We use sed instead of cat because bash on DJGPP gets confused if
9731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9732 # text mode, it properly converts lines to CR/LF. This bash problem
9733 # is reportedly fixed, but why not run on old versions too?
9734 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9736 mv -f "$cfgfile" "$ofile" || \
9737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9738 chmod +x "$ofile"
9740 else
9741 # If there is no Makefile yet, we rely on a make rule to execute
9742 # `config.status --recheck' to rerun these tests and create the
9743 # libtool script then.
9744 test -f Makefile && make "$ltmain"
9748 ac_ext=c
9749 ac_cpp='$CPP $CPPFLAGS'
9750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9754 CC="$lt_save_CC"
9757 # Check whether --with-tags was given.
9758 if test "${with_tags+set}" = set; then
9759 withval=$with_tags; tagnames="$withval"
9763 if test -f "$ltmain" && test -n "$tagnames"; then
9764 if test ! -f "${ofile}"; then
9765 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9766 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9769 if test -z "$LTCC"; then
9770 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9771 if test -z "$LTCC"; then
9772 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9773 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9774 else
9775 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9776 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9780 # Extract list of available tagged configurations in $ofile.
9781 # Note that this assumes the entire list is on one line.
9782 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9785 for tagname in $tagnames; do
9786 IFS="$lt_save_ifs"
9787 # Check whether tagname contains only valid characters
9788 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9789 "") ;;
9790 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9791 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9792 { (exit 1); exit 1; }; }
9794 esac
9796 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9797 then
9798 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9799 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9800 { (exit 1); exit 1; }; }
9803 # Update the list of available tags.
9804 if test -n "$tagname"; then
9805 echo appending configuration tag \"$tagname\" to $ofile
9807 case $tagname in
9808 CXX)
9809 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9810 ac_ext=cpp
9811 ac_cpp='$CXXCPP $CPPFLAGS'
9812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9819 archive_cmds_need_lc_CXX=no
9820 allow_undefined_flag_CXX=
9821 always_export_symbols_CXX=no
9822 archive_expsym_cmds_CXX=
9823 export_dynamic_flag_spec_CXX=
9824 hardcode_direct_CXX=no
9825 hardcode_libdir_flag_spec_CXX=
9826 hardcode_libdir_flag_spec_ld_CXX=
9827 hardcode_libdir_separator_CXX=
9828 hardcode_minus_L_CXX=no
9829 hardcode_automatic_CXX=no
9830 module_cmds_CXX=
9831 module_expsym_cmds_CXX=
9832 link_all_deplibs_CXX=unknown
9833 old_archive_cmds_CXX=$old_archive_cmds
9834 no_undefined_flag_CXX=
9835 whole_archive_flag_spec_CXX=
9836 enable_shared_with_static_runtimes_CXX=no
9838 # Dependencies to place before and after the object being linked:
9839 predep_objects_CXX=
9840 postdep_objects_CXX=
9841 predeps_CXX=
9842 postdeps_CXX=
9843 compiler_lib_search_path_CXX=
9845 # Source file extension for C++ test sources.
9846 ac_ext=cc
9848 # Object file extension for compiled C++ test sources.
9849 objext=o
9850 objext_CXX=$objext
9852 # Code to be used in simple compile tests
9853 lt_simple_compile_test_code="int some_variable = 0;\n"
9855 # Code to be used in simple link tests
9856 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9860 # If no C compiler was specified, use CC.
9861 LTCC=${LTCC-"$CC"}
9863 # Allow CC to be a program name with arguments.
9864 compiler=$CC
9867 # Allow CC to be a program name with arguments.
9868 lt_save_CC=$CC
9869 lt_save_LD=$LD
9870 lt_save_GCC=$GCC
9871 GCC=$GXX
9872 lt_save_with_gnu_ld=$with_gnu_ld
9873 lt_save_path_LD=$lt_cv_path_LD
9874 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9875 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9876 else
9877 unset lt_cv_prog_gnu_ld
9879 if test -n "${lt_cv_path_LDCXX+set}"; then
9880 lt_cv_path_LD=$lt_cv_path_LDCXX
9881 else
9882 unset lt_cv_path_LD
9884 test -z "${LDCXX+set}" || LD=$LDCXX
9885 CC=${CXX-"c++"}
9886 compiler=$CC
9887 compiler_CXX=$CC
9888 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9890 # We don't want -fno-exception wen compiling C++ code, so set the
9891 # no_builtin_flag separately
9892 if test "$GXX" = yes; then
9893 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9894 else
9895 lt_prog_compiler_no_builtin_flag_CXX=
9898 if test "$GXX" = yes; then
9899 # Set up default GNU C++ configuration
9902 # Check whether --with-gnu-ld was given.
9903 if test "${with_gnu_ld+set}" = set; then
9904 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9905 else
9906 with_gnu_ld=no
9909 ac_prog=ld
9910 if test "$GCC" = yes; then
9911 # Check if gcc -print-prog-name=ld gives a path.
9912 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9913 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9914 case $host in
9915 *-*-mingw*)
9916 # gcc leaves a trailing carriage return which upsets mingw
9917 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9919 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9920 esac
9921 case $ac_prog in
9922 # Accept absolute paths.
9923 [\\/]* | ?:[\\/]*)
9924 re_direlt='/[^/][^/]*/\.\./'
9925 # Canonicalize the pathname of ld
9926 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9927 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9928 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9929 done
9930 test -z "$LD" && LD="$ac_prog"
9933 # If it fails, then pretend we aren't using GCC.
9934 ac_prog=ld
9937 # If it is relative, then search for the first ld in PATH.
9938 with_gnu_ld=unknown
9940 esac
9941 elif test "$with_gnu_ld" = yes; then
9942 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9943 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9944 else
9945 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9946 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9948 if test "${lt_cv_path_LD+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 if test -z "$LD"; then
9952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9953 for ac_dir in $PATH; do
9954 IFS="$lt_save_ifs"
9955 test -z "$ac_dir" && ac_dir=.
9956 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9957 lt_cv_path_LD="$ac_dir/$ac_prog"
9958 # Check to see if the program is GNU ld. I'd rather use --version,
9959 # but apparently some GNU ld's only accept -v.
9960 # Break only if it was the GNU/non-GNU ld that we prefer.
9961 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9962 *GNU* | *'with BFD'*)
9963 test "$with_gnu_ld" != no && break
9966 test "$with_gnu_ld" != yes && break
9968 esac
9970 done
9971 IFS="$lt_save_ifs"
9972 else
9973 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9977 LD="$lt_cv_path_LD"
9978 if test -n "$LD"; then
9979 { echo "$as_me:$LINENO: result: $LD" >&5
9980 echo "${ECHO_T}$LD" >&6; }
9981 else
9982 { echo "$as_me:$LINENO: result: no" >&5
9983 echo "${ECHO_T}no" >&6; }
9985 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9986 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9987 { (exit 1); exit 1; }; }
9988 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9989 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9990 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9994 case `$LD -v 2>&1 </dev/null` in
9995 *GNU* | *'with BFD'*)
9996 lt_cv_prog_gnu_ld=yes
9999 lt_cv_prog_gnu_ld=no
10001 esac
10003 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10004 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10005 with_gnu_ld=$lt_cv_prog_gnu_ld
10009 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10010 # archiving commands below assume that GNU ld is being used.
10011 if test "$with_gnu_ld" = yes; then
10012 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10013 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'
10015 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10018 # If archive_cmds runs LD, not CC, wlarc should be empty
10019 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10020 # investigate it a little bit more. (MM)
10021 wlarc='${wl}'
10023 # ancient GNU ld didn't support --whole-archive et. al.
10024 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10025 grep 'no-whole-archive' > /dev/null; then
10026 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10027 else
10028 whole_archive_flag_spec_CXX=
10030 else
10031 with_gnu_ld=no
10032 wlarc=
10034 # A generic and very simple default shared library creation
10035 # command for GNU C++ for the case where it uses the native
10036 # linker, instead of GNU ld. If possible, this setting should
10037 # overridden to take advantage of the native linker features on
10038 # the platform it is being used on.
10039 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10042 # Commands to make compiler produce verbose output that lists
10043 # what "hidden" libraries, object files and flags are used when
10044 # linking a shared library.
10045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10047 else
10048 GXX=no
10049 with_gnu_ld=no
10050 wlarc=
10053 # PORTME: fill in a description of your system's C++ link characteristics
10054 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10056 ld_shlibs_CXX=yes
10057 case $host_os in
10058 aix3*)
10059 # FIXME: insert proper C++ library support
10060 ld_shlibs_CXX=no
10062 aix4* | aix5*)
10063 if test "$host_cpu" = ia64; then
10064 # On IA64, the linker does run time linking by default, so we don't
10065 # have to do anything special.
10066 aix_use_runtimelinking=no
10067 exp_sym_flag='-Bexport'
10068 no_entry_flag=""
10069 else
10070 aix_use_runtimelinking=no
10072 # Test if we are trying to use run time linking or normal
10073 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10074 # need to do runtime linking.
10075 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10076 for ld_flag in $LDFLAGS; do
10077 case $ld_flag in
10078 *-brtl*)
10079 aix_use_runtimelinking=yes
10080 break
10082 esac
10083 done
10084 esac
10086 exp_sym_flag='-bexport'
10087 no_entry_flag='-bnoentry'
10090 # When large executables or shared objects are built, AIX ld can
10091 # have problems creating the table of contents. If linking a library
10092 # or program results in "error TOC overflow" add -mminimal-toc to
10093 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10094 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10096 archive_cmds_CXX=''
10097 hardcode_direct_CXX=yes
10098 hardcode_libdir_separator_CXX=':'
10099 link_all_deplibs_CXX=yes
10101 if test "$GXX" = yes; then
10102 case $host_os in aix4.012|aix4.012.*)
10103 # We only want to do this on AIX 4.2 and lower, the check
10104 # below for broken collect2 doesn't work under 4.3+
10105 collect2name=`${CC} -print-prog-name=collect2`
10106 if test -f "$collect2name" && \
10107 strings "$collect2name" | grep resolve_lib_name >/dev/null
10108 then
10109 # We have reworked collect2
10110 hardcode_direct_CXX=yes
10111 else
10112 # We have old collect2
10113 hardcode_direct_CXX=unsupported
10114 # It fails to find uninstalled libraries when the uninstalled
10115 # path is not listed in the libpath. Setting hardcode_minus_L
10116 # to unsupported forces relinking
10117 hardcode_minus_L_CXX=yes
10118 hardcode_libdir_flag_spec_CXX='-L$libdir'
10119 hardcode_libdir_separator_CXX=
10121 esac
10122 shared_flag='-shared'
10123 else
10124 # not using gcc
10125 if test "$host_cpu" = ia64; then
10126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10127 # chokes on -Wl,-G. The following line is correct:
10128 shared_flag='-G'
10129 else
10130 if test "$aix_use_runtimelinking" = yes; then
10131 shared_flag='${wl}-G'
10132 else
10133 shared_flag='${wl}-bM:SRE'
10138 # It seems that -bexpall does not export symbols beginning with
10139 # underscore (_), so it is better to generate a list of symbols to export.
10140 always_export_symbols_CXX=yes
10141 if test "$aix_use_runtimelinking" = yes; then
10142 # Warning - without using the other runtime loading flags (-brtl),
10143 # -berok will link without error, but may produce a broken library.
10144 allow_undefined_flag_CXX='-berok'
10145 # Determine the default libpath from the value encoded in an empty executable.
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h. */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10154 main ()
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_cxx_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext &&
10178 $as_test_x conftest$ac_exeext; then
10180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10182 # Check for a 64-bit object if we didn't find anything.
10183 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; }
10184 }'`; fi
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10196 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10198 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"
10199 else
10200 if test "$host_cpu" = ia64; then
10201 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10202 allow_undefined_flag_CXX="-z nodefs"
10203 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"
10204 else
10205 # Determine the default libpath from the value encoded in an empty executable.
10206 cat >conftest.$ac_ext <<_ACEOF
10207 /* confdefs.h. */
10208 _ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10214 main ()
10218 return 0;
10220 _ACEOF
10221 rm -f conftest.$ac_objext conftest$ac_exeext
10222 if { (ac_try="$ac_link"
10223 case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10226 esac
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_link") 2>conftest.er1
10229 ac_status=$?
10230 grep -v '^ *+' conftest.er1 >conftest.err
10231 rm -f conftest.er1
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && {
10235 test -z "$ac_cxx_werror_flag" ||
10236 test ! -s conftest.err
10237 } && test -s conftest$ac_exeext &&
10238 $as_test_x conftest$ac_exeext; then
10240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10242 # Check for a 64-bit object if we didn't find anything.
10243 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; }
10244 }'`; fi
10245 else
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10253 conftest$ac_exeext conftest.$ac_ext
10254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10256 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10257 # Warning - without using the other run time loading flags,
10258 # -berok will link without error, but may produce a broken library.
10259 no_undefined_flag_CXX=' ${wl}-bernotok'
10260 allow_undefined_flag_CXX=' ${wl}-berok'
10261 # -bexpall does not export symbols beginning with underscore (_)
10262 always_export_symbols_CXX=yes
10263 # Exported symbols can be pulled into shared objects from archives
10264 whole_archive_flag_spec_CXX=' '
10265 archive_cmds_need_lc_CXX=yes
10266 # This is similar to how AIX traditionally builds it's shared libraries.
10267 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'
10271 chorus*)
10272 case $cc_basename in
10274 # FIXME: insert proper C++ library support
10275 ld_shlibs_CXX=no
10277 esac
10280 cygwin* | mingw* | pw32*)
10281 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10282 # as there is no search path for DLLs.
10283 hardcode_libdir_flag_spec_CXX='-L$libdir'
10284 allow_undefined_flag_CXX=unsupported
10285 always_export_symbols_CXX=no
10286 enable_shared_with_static_runtimes_CXX=yes
10288 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10289 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'
10290 # If the export-symbols file already is a .def file (1st line
10291 # is EXPORTS), use it as is; otherwise, prepend...
10292 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10293 cp $export_symbols $output_objdir/$soname.def;
10294 else
10295 echo EXPORTS > $output_objdir/$soname.def;
10296 cat $export_symbols >> $output_objdir/$soname.def;
10298 $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'
10299 else
10300 ld_shlibs_CXX=no
10304 darwin* | rhapsody*)
10305 if test "$GXX" = yes; then
10306 archive_cmds_need_lc_CXX=no
10307 case "$host_os" in
10308 rhapsody* | darwin1.[012])
10309 allow_undefined_flag_CXX='-undefined suppress'
10311 *) # Darwin 1.3 on
10312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10313 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10314 else
10315 case ${MACOSX_DEPLOYMENT_TARGET} in
10316 10.[012])
10317 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10319 10.*)
10320 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10322 esac
10325 esac
10326 lt_int_apple_cc_single_mod=no
10327 output_verbose_link_cmd='echo'
10328 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10329 lt_int_apple_cc_single_mod=yes
10331 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10332 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10333 else
10334 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'
10336 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10338 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10339 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10340 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}'
10341 else
10342 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}'
10344 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}'
10345 hardcode_direct_CXX=no
10346 hardcode_automatic_CXX=yes
10347 hardcode_shlibpath_var_CXX=unsupported
10348 whole_archive_flag_spec_CXX='-all_load $convenience'
10349 link_all_deplibs_CXX=yes
10350 else
10351 ld_shlibs_CXX=no
10355 dgux*)
10356 case $cc_basename in
10357 ec++)
10358 # FIXME: insert proper C++ library support
10359 ld_shlibs_CXX=no
10361 ghcx)
10362 # Green Hills C++ Compiler
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10367 # FIXME: insert proper C++ library support
10368 ld_shlibs_CXX=no
10370 esac
10372 freebsd12*)
10373 # C++ shared libraries reported to be fairly broken before switch to ELF
10374 ld_shlibs_CXX=no
10376 freebsd-elf*)
10377 archive_cmds_need_lc_CXX=no
10379 freebsd* | kfreebsd*-gnu)
10380 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10381 # conventions
10382 ld_shlibs_CXX=yes
10384 gnu*)
10386 hpux9*)
10387 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10388 hardcode_libdir_separator_CXX=:
10389 export_dynamic_flag_spec_CXX='${wl}-E'
10390 hardcode_direct_CXX=yes
10391 hardcode_minus_L_CXX=yes # Not in the search PATH,
10392 # but as the default
10393 # location of the library.
10395 case $cc_basename in
10397 # FIXME: insert proper C++ library support
10398 ld_shlibs_CXX=no
10400 aCC)
10401 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'
10402 # Commands to make compiler produce verbose output that lists
10403 # what "hidden" libraries, object files and flags are used when
10404 # linking a shared library.
10406 # There doesn't appear to be a way to prevent this compiler from
10407 # explicitly linking system object files so we need to strip them
10408 # from the output so that they don't get included in the library
10409 # dependencies.
10410 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'
10413 if test "$GXX" = yes; then
10414 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'
10415 else
10416 # FIXME: insert proper C++ library support
10417 ld_shlibs_CXX=no
10420 esac
10422 hpux10*|hpux11*)
10423 if test $with_gnu_ld = no; then
10424 case "$host_cpu" in
10425 hppa*64*)
10426 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10427 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10428 hardcode_libdir_separator_CXX=:
10430 ia64*)
10431 hardcode_libdir_flag_spec_CXX='-L$libdir'
10434 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10435 hardcode_libdir_separator_CXX=:
10436 export_dynamic_flag_spec_CXX='${wl}-E'
10438 esac
10440 case "$host_cpu" in
10441 hppa*64*)
10442 hardcode_direct_CXX=no
10443 hardcode_shlibpath_var_CXX=no
10445 ia64*)
10446 hardcode_direct_CXX=no
10447 hardcode_shlibpath_var_CXX=no
10448 hardcode_minus_L_CXX=yes # Not in the search PATH,
10449 # but as the default
10450 # location of the library.
10453 hardcode_direct_CXX=yes
10454 hardcode_minus_L_CXX=yes # Not in the search PATH,
10455 # but as the default
10456 # location of the library.
10458 esac
10460 case $cc_basename in
10462 # FIXME: insert proper C++ library support
10463 ld_shlibs_CXX=no
10465 aCC)
10466 case "$host_cpu" in
10467 hppa*64*|ia64*)
10468 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10471 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10473 esac
10474 # Commands to make compiler produce verbose output that lists
10475 # what "hidden" libraries, object files and flags are used when
10476 # linking a shared library.
10478 # There doesn't appear to be a way to prevent this compiler from
10479 # explicitly linking system object files so we need to strip them
10480 # from the output so that they don't get included in the library
10481 # dependencies.
10482 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'
10485 if test "$GXX" = yes; then
10486 if test $with_gnu_ld = no; then
10487 case "$host_cpu" in
10488 ia64*|hppa*64*)
10489 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10492 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'
10494 esac
10496 else
10497 # FIXME: insert proper C++ library support
10498 ld_shlibs_CXX=no
10501 esac
10503 irix5* | irix6*)
10504 case $cc_basename in
10506 # SGI C++
10507 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'
10509 # Archives containing C++ object files must be created using
10510 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10511 # necessary to make sure instantiated templates are included
10512 # in the archive.
10513 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10516 if test "$GXX" = yes; then
10517 if test "$with_gnu_ld" = no; then
10518 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'
10519 else
10520 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'
10523 link_all_deplibs_CXX=yes
10525 esac
10526 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10527 hardcode_libdir_separator_CXX=:
10529 linux*)
10530 case $cc_basename in
10531 KCC)
10532 # Kuck and Associates, Inc. (KAI) C++ Compiler
10534 # KCC will only create a shared library if the output file
10535 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10536 # to its proper name (with version) after linking.
10537 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'
10538 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'
10539 # Commands to make compiler produce verbose output that lists
10540 # what "hidden" libraries, object files and flags are used when
10541 # linking a shared library.
10543 # There doesn't appear to be a way to prevent this compiler from
10544 # explicitly linking system object files so we need to strip them
10545 # from the output so that they don't get included in the library
10546 # dependencies.
10547 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'
10549 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10552 # Archives containing C++ object files must be created using
10553 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10554 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10556 icpc)
10557 # Intel C++
10558 with_gnu_ld=yes
10559 archive_cmds_need_lc_CXX=no
10560 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 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'
10562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10563 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10564 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10566 cxx)
10567 # Compaq C++
10568 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569 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'
10571 runpath_var=LD_RUN_PATH
10572 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10573 hardcode_libdir_separator_CXX=:
10575 # Commands to make compiler produce verbose output that lists
10576 # what "hidden" libraries, object files and flags are used when
10577 # linking a shared library.
10579 # There doesn't appear to be a way to prevent this compiler from
10580 # explicitly linking system object files so we need to strip them
10581 # from the output so that they don't get included in the library
10582 # dependencies.
10583 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'
10585 esac
10587 lynxos*)
10588 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no
10591 m88k*)
10592 # FIXME: insert proper C++ library support
10593 ld_shlibs_CXX=no
10595 mvs*)
10596 case $cc_basename in
10597 cxx)
10598 # FIXME: insert proper C++ library support
10599 ld_shlibs_CXX=no
10602 # FIXME: insert proper C++ library support
10603 ld_shlibs_CXX=no
10605 esac
10607 netbsd*)
10608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10609 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10610 wlarc=
10611 hardcode_libdir_flag_spec_CXX='-R$libdir'
10612 hardcode_direct_CXX=yes
10613 hardcode_shlibpath_var_CXX=no
10615 # Workaround some broken pre-1.5 toolchains
10616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10618 osf3*)
10619 case $cc_basename in
10620 KCC)
10621 # Kuck and Associates, Inc. (KAI) C++ Compiler
10623 # KCC will only create a shared library if the output file
10624 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10625 # to its proper name (with version) after linking.
10626 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'
10628 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10629 hardcode_libdir_separator_CXX=:
10631 # Archives containing C++ object files must be created using
10632 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10633 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10636 RCC)
10637 # Rational C++ 2.4.1
10638 # FIXME: insert proper C++ library support
10639 ld_shlibs_CXX=no
10641 cxx)
10642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10643 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'
10645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator_CXX=:
10648 # Commands to make compiler produce verbose output that lists
10649 # what "hidden" libraries, object files and flags are used when
10650 # linking a shared library.
10652 # There doesn't appear to be a way to prevent this compiler from
10653 # explicitly linking system object files so we need to strip them
10654 # from the output so that they don't get included in the library
10655 # dependencies.
10656 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'
10659 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10660 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10661 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'
10663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10664 hardcode_libdir_separator_CXX=:
10666 # Commands to make compiler produce verbose output that lists
10667 # what "hidden" libraries, object files and flags are used when
10668 # linking a shared library.
10669 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10671 else
10672 # FIXME: insert proper C++ library support
10673 ld_shlibs_CXX=no
10676 esac
10678 osf4* | osf5*)
10679 case $cc_basename in
10680 KCC)
10681 # Kuck and Associates, Inc. (KAI) C++ Compiler
10683 # KCC will only create a shared library if the output file
10684 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10685 # to its proper name (with version) after linking.
10686 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'
10688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10689 hardcode_libdir_separator_CXX=:
10691 # Archives containing C++ object files must be created using
10692 # the KAI C++ compiler.
10693 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10695 RCC)
10696 # Rational C++ 2.4.1
10697 # FIXME: insert proper C++ library support
10698 ld_shlibs_CXX=no
10700 cxx)
10701 allow_undefined_flag_CXX=' -expect_unresolved \*'
10702 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'
10703 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10704 echo "-hidden">> $lib.exp~
10705 $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~
10706 $rm $lib.exp'
10708 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10709 hardcode_libdir_separator_CXX=:
10711 # Commands to make compiler produce verbose output that lists
10712 # what "hidden" libraries, object files and flags are used when
10713 # linking a shared library.
10715 # There doesn't appear to be a way to prevent this compiler from
10716 # explicitly linking system object files so we need to strip them
10717 # from the output so that they don't get included in the library
10718 # dependencies.
10719 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'
10722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10723 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10724 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'
10726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10727 hardcode_libdir_separator_CXX=:
10729 # Commands to make compiler produce verbose output that lists
10730 # what "hidden" libraries, object files and flags are used when
10731 # linking a shared library.
10732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10734 else
10735 # FIXME: insert proper C++ library support
10736 ld_shlibs_CXX=no
10739 esac
10741 psos*)
10742 # FIXME: insert proper C++ library support
10743 ld_shlibs_CXX=no
10745 sco*)
10746 archive_cmds_need_lc_CXX=no
10747 case $cc_basename in
10749 # FIXME: insert proper C++ library support
10750 ld_shlibs_CXX=no
10753 # FIXME: insert proper C++ library support
10754 ld_shlibs_CXX=no
10756 esac
10758 sunos4*)
10759 case $cc_basename in
10761 # Sun C++ 4.x
10762 # FIXME: insert proper C++ library support
10763 ld_shlibs_CXX=no
10765 lcc)
10766 # Lucid
10767 # FIXME: insert proper C++ library support
10768 ld_shlibs_CXX=no
10771 # FIXME: insert proper C++ library support
10772 ld_shlibs_CXX=no
10774 esac
10776 solaris*)
10777 case $cc_basename in
10779 # Sun C++ 4.2, 5.x and Centerline C++
10780 no_undefined_flag_CXX=' -zdefs'
10781 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10782 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10783 $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'
10785 hardcode_libdir_flag_spec_CXX='-R$libdir'
10786 hardcode_shlibpath_var_CXX=no
10787 case $host_os in
10788 solaris2.0-5 | solaris2.0-5.*) ;;
10790 # The C++ compiler is used as linker so we must use $wl
10791 # flag to pass the commands to the underlying system
10792 # linker.
10793 # Supported since Solaris 2.6 (maybe 2.5.1?)
10794 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10796 esac
10797 link_all_deplibs_CXX=yes
10799 # Commands to make compiler produce verbose output that lists
10800 # what "hidden" libraries, object files and flags are used when
10801 # linking a shared library.
10803 # There doesn't appear to be a way to prevent this compiler from
10804 # explicitly linking system object files so we need to strip them
10805 # from the output so that they don't get included in the library
10806 # dependencies.
10807 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'
10809 # Archives containing C++ object files must be created using
10810 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10811 # necessary to make sure instantiated templates are included
10812 # in the archive.
10813 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10815 gcx)
10816 # Green Hills C++ Compiler
10817 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10819 # The C++ compiler must be used to create the archive.
10820 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10823 # GNU C++ compiler with Solaris linker
10824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10825 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10826 if $CC --version | grep -v '^2\.7' > /dev/null; then
10827 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10828 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10829 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10831 # Commands to make compiler produce verbose output that lists
10832 # what "hidden" libraries, object files and flags are used when
10833 # linking a shared library.
10834 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10835 else
10836 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10837 # platform.
10838 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10839 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10840 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10842 # Commands to make compiler produce verbose output that lists
10843 # what "hidden" libraries, object files and flags are used when
10844 # linking a shared library.
10845 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10848 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10851 esac
10853 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10854 archive_cmds_need_lc_CXX=no
10856 tandem*)
10857 case $cc_basename in
10858 NCC)
10859 # NonStop-UX NCC 3.20
10860 # FIXME: insert proper C++ library support
10861 ld_shlibs_CXX=no
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10867 esac
10869 vxworks*)
10870 # FIXME: insert proper C++ library support
10871 ld_shlibs_CXX=no
10874 # FIXME: insert proper C++ library support
10875 ld_shlibs_CXX=no
10877 esac
10878 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10879 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10880 test "$ld_shlibs_CXX" = no && can_build_shared=no
10882 GCC_CXX="$GXX"
10883 LD_CXX="$LD"
10885 ## CAVEAT EMPTOR:
10886 ## There is no encapsulation within the following macros, do not change
10887 ## the running order or otherwise move them around unless you know exactly
10888 ## what you are doing...
10890 cat > conftest.$ac_ext <<EOF
10891 class Foo
10893 public:
10894 Foo (void) { a = 0; }
10895 private:
10896 int a;
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; then
10905 # Parse the compiler output and extract the necessary
10906 # objects, libraries and library flags.
10908 # Sentinel used to keep track of whether or not we are before
10909 # the conftest object file.
10910 pre_test_object_deps_done=no
10912 # The `*' in the case matches for architectures that use `case' in
10913 # $output_verbose_cmd can trigger glob expansion during the loop
10914 # eval without this substitution.
10915 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10917 for p in `eval $output_verbose_link_cmd`; do
10918 case $p in
10920 -L* | -R* | -l*)
10921 # Some compilers place space between "-{L,R}" and the path.
10922 # Remove the space.
10923 if test $p = "-L" \
10924 || test $p = "-R"; then
10925 prev=$p
10926 continue
10927 else
10928 prev=
10931 if test "$pre_test_object_deps_done" = no; then
10932 case $p in
10933 -L* | -R*)
10934 # Internal compiler library paths should come after those
10935 # provided the user. The postdeps already come after the
10936 # user supplied libs so there is no need to process them.
10937 if test -z "$compiler_lib_search_path_CXX"; then
10938 compiler_lib_search_path_CXX="${prev}${p}"
10939 else
10940 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10943 # The "-l" case would never come before the object being
10944 # linked, so don't bother handling this case.
10945 esac
10946 else
10947 if test -z "$postdeps_CXX"; then
10948 postdeps_CXX="${prev}${p}"
10949 else
10950 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10955 *.$objext)
10956 # This assumes that the test object file only shows up
10957 # once in the compiler output.
10958 if test "$p" = "conftest.$objext"; then
10959 pre_test_object_deps_done=yes
10960 continue
10963 if test "$pre_test_object_deps_done" = no; then
10964 if test -z "$predep_objects_CXX"; then
10965 predep_objects_CXX="$p"
10966 else
10967 predep_objects_CXX="$predep_objects_CXX $p"
10969 else
10970 if test -z "$postdep_objects_CXX"; then
10971 postdep_objects_CXX="$p"
10972 else
10973 postdep_objects_CXX="$postdep_objects_CXX $p"
10978 *) ;; # Ignore the rest.
10980 esac
10981 done
10983 # Clean up.
10984 rm -f a.out a.exe
10985 else
10986 echo "libtool.m4: error: problem compiling CXX test program"
10989 $rm -f confest.$objext
10991 case " $postdeps_CXX " in
10992 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10993 esac
10995 lt_prog_compiler_wl_CXX=
10996 lt_prog_compiler_pic_CXX=
10997 lt_prog_compiler_static_CXX=
10999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11002 # C++ specific cases for pic, static, wl, etc.
11003 if test "$GXX" = yes; then
11004 lt_prog_compiler_wl_CXX='-Wl,'
11005 lt_prog_compiler_static_CXX='-static'
11007 case $host_os in
11008 aix*)
11009 # All AIX code is PIC.
11010 if test "$host_cpu" = ia64; then
11011 # AIX 5 now supports IA64 processor
11012 lt_prog_compiler_static_CXX='-Bstatic'
11015 amigaos*)
11016 # FIXME: we need at least 68020 code to build shared libraries, but
11017 # adding the `-m68020' flag to GCC prevents building anything better,
11018 # like `-m68040'.
11019 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11021 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11022 # PIC is the default for these OSes.
11024 mingw* | os2* | pw32*)
11025 # This hack is so that the source file can tell whether it is being
11026 # built for inclusion in a dll (and should export symbols for example).
11027 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11029 darwin* | rhapsody*)
11030 # PIC is the default on this platform
11031 # Common symbols not allowed in MH_DYLIB files
11032 lt_prog_compiler_pic_CXX='-fno-common'
11034 *djgpp*)
11035 # DJGPP does not support shared libraries at all
11036 lt_prog_compiler_pic_CXX=
11038 sysv4*MP*)
11039 if test -d /usr/nec; then
11040 lt_prog_compiler_pic_CXX=-Kconform_pic
11043 hpux*)
11044 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11045 # not for PA HP-UX.
11046 case "$host_cpu" in
11047 hppa*64*|ia64*)
11050 lt_prog_compiler_pic_CXX='-fPIC'
11052 esac
11055 lt_prog_compiler_pic_CXX='-fPIC'
11057 esac
11058 else
11059 case $host_os in
11060 aix4* | aix5*)
11061 # All AIX code is PIC.
11062 if test "$host_cpu" = ia64; then
11063 # AIX 5 now supports IA64 processor
11064 lt_prog_compiler_static_CXX='-Bstatic'
11065 else
11066 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11069 chorus*)
11070 case $cc_basename in
11071 cxch68)
11072 # Green Hills C++ Compiler
11073 # _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"
11075 esac
11077 dgux*)
11078 case $cc_basename in
11079 ec++)
11080 lt_prog_compiler_pic_CXX='-KPIC'
11082 ghcx)
11083 # Green Hills C++ Compiler
11084 lt_prog_compiler_pic_CXX='-pic'
11088 esac
11090 freebsd* | kfreebsd*-gnu)
11091 # FreeBSD uses GNU C++
11093 hpux9* | hpux10* | hpux11*)
11094 case $cc_basename in
11096 lt_prog_compiler_wl_CXX='-Wl,'
11097 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11098 if test "$host_cpu" != ia64; then
11099 lt_prog_compiler_pic_CXX='+Z'
11102 aCC)
11103 lt_prog_compiler_wl_CXX='-Wl,'
11104 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11105 case "$host_cpu" in
11106 hppa*64*|ia64*)
11107 # +Z the default
11110 lt_prog_compiler_pic_CXX='+Z'
11112 esac
11116 esac
11118 irix5* | irix6* | nonstopux*)
11119 case $cc_basename in
11121 lt_prog_compiler_wl_CXX='-Wl,'
11122 lt_prog_compiler_static_CXX='-non_shared'
11123 # CC pic flag -KPIC is the default.
11127 esac
11129 linux*)
11130 case $cc_basename in
11131 KCC)
11132 # KAI C++ Compiler
11133 lt_prog_compiler_wl_CXX='--backend -Wl,'
11134 lt_prog_compiler_pic_CXX='-fPIC'
11136 icpc)
11137 # Intel C++
11138 lt_prog_compiler_wl_CXX='-Wl,'
11139 lt_prog_compiler_pic_CXX='-KPIC'
11140 lt_prog_compiler_static_CXX='-static'
11142 cxx)
11143 # Compaq C++
11144 # Make sure the PIC flag is empty. It appears that all Alpha
11145 # Linux and Compaq Tru64 Unix objects are PIC.
11146 lt_prog_compiler_pic_CXX=
11147 lt_prog_compiler_static_CXX='-non_shared'
11151 esac
11153 lynxos*)
11155 m88k*)
11157 mvs*)
11158 case $cc_basename in
11159 cxx)
11160 lt_prog_compiler_pic_CXX='-W c,exportall'
11164 esac
11166 netbsd*)
11168 osf3* | osf4* | osf5*)
11169 case $cc_basename in
11170 KCC)
11171 lt_prog_compiler_wl_CXX='--backend -Wl,'
11173 RCC)
11174 # Rational C++ 2.4.1
11175 lt_prog_compiler_pic_CXX='-pic'
11177 cxx)
11178 # Digital/Compaq C++
11179 lt_prog_compiler_wl_CXX='-Wl,'
11180 # Make sure the PIC flag is empty. It appears that all Alpha
11181 # Linux and Compaq Tru64 Unix objects are PIC.
11182 lt_prog_compiler_pic_CXX=
11183 lt_prog_compiler_static_CXX='-non_shared'
11187 esac
11189 psos*)
11191 sco*)
11192 case $cc_basename in
11194 lt_prog_compiler_pic_CXX='-fPIC'
11198 esac
11200 solaris*)
11201 case $cc_basename in
11203 # Sun C++ 4.2, 5.x and Centerline C++
11204 lt_prog_compiler_pic_CXX='-KPIC'
11205 lt_prog_compiler_static_CXX='-Bstatic'
11206 lt_prog_compiler_wl_CXX='-Qoption ld '
11208 gcx)
11209 # Green Hills C++ Compiler
11210 lt_prog_compiler_pic_CXX='-PIC'
11214 esac
11216 sunos4*)
11217 case $cc_basename in
11219 # Sun C++ 4.x
11220 lt_prog_compiler_pic_CXX='-pic'
11221 lt_prog_compiler_static_CXX='-Bstatic'
11223 lcc)
11224 # Lucid
11225 lt_prog_compiler_pic_CXX='-pic'
11229 esac
11231 tandem*)
11232 case $cc_basename in
11233 NCC)
11234 # NonStop-UX NCC 3.20
11235 lt_prog_compiler_pic_CXX='-KPIC'
11239 esac
11241 unixware*)
11243 vxworks*)
11246 lt_prog_compiler_can_build_shared_CXX=no
11248 esac
11251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11255 # Check to make sure the PIC flag actually works.
11257 if test -n "$lt_prog_compiler_pic_CXX"; then
11259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11261 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264 lt_prog_compiler_pic_works_CXX=no
11265 ac_outfile=conftest.$ac_objext
11266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11267 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11268 # Insert the option either (1) after the last *FLAGS variable, or
11269 # (2) before a word containing "conftest.", or (3) at the end.
11270 # Note that $ac_compile itself does not contain backslashes and begins
11271 # with a dollar sign (not a hyphen), so the echo should work correctly.
11272 # The option is referenced via a variable to avoid confusing sed.
11273 lt_compile=`echo "$ac_compile" | $SED \
11274 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11276 -e 's:$: $lt_compiler_flag:'`
11277 (eval echo "\"\$as_me:11277: $lt_compile\"" >&5)
11278 (eval "$lt_compile" 2>conftest.err)
11279 ac_status=$?
11280 cat conftest.err >&5
11281 echo "$as_me:11281: \$? = $ac_status" >&5
11282 if (exit $ac_status) && test -s "$ac_outfile"; then
11283 # The compiler can only warn and ignore the option if not recognized
11284 # So say no if there are warnings
11285 if test ! -s conftest.err; then
11286 lt_prog_compiler_pic_works_CXX=yes
11289 $rm conftest*
11292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11293 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11295 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11296 case $lt_prog_compiler_pic_CXX in
11297 "" | " "*) ;;
11298 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11299 esac
11300 else
11301 lt_prog_compiler_pic_CXX=
11302 lt_prog_compiler_can_build_shared_CXX=no
11306 case "$host_os" in
11307 # For platforms which do not support PIC, -DPIC is meaningless:
11308 *djgpp*)
11309 lt_prog_compiler_pic_CXX=
11312 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11314 esac
11316 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11317 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11318 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321 lt_cv_prog_compiler_c_o_CXX=no
11322 $rm -r conftest 2>/dev/null
11323 mkdir conftest
11324 cd conftest
11325 mkdir out
11326 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11328 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11329 # that will create temporary files in the current directory regardless of
11330 # the output directory. Thus, making CWD read-only will cause this test
11331 # to fail, enabling locking or at least warning the user not to do parallel
11332 # builds.
11333 chmod -w .
11335 lt_compiler_flag="-o out/conftest2.$ac_objext"
11336 # Insert the option either (1) after the last *FLAGS variable, or
11337 # (2) before a word containing "conftest.", or (3) at the end.
11338 # Note that $ac_compile itself does not contain backslashes and begins
11339 # with a dollar sign (not a hyphen), so the echo should work correctly.
11340 lt_compile=`echo "$ac_compile" | $SED \
11341 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11343 -e 's:$: $lt_compiler_flag:'`
11344 (eval echo "\"\$as_me:11344: $lt_compile\"" >&5)
11345 (eval "$lt_compile" 2>out/conftest.err)
11346 ac_status=$?
11347 cat out/conftest.err >&5
11348 echo "$as_me:11348: \$? = $ac_status" >&5
11349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11350 then
11351 # The compiler can only warn and ignore the option if not recognized
11352 # So say no if there are warnings
11353 if test ! -s out/conftest.err; then
11354 lt_cv_prog_compiler_c_o_CXX=yes
11357 chmod u+w .
11358 $rm conftest*
11359 # SGI C++ compiler will create directory out/ii_files/ for
11360 # template instantiation
11361 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11362 $rm out/* && rmdir out
11363 cd ..
11364 rmdir conftest
11365 $rm conftest*
11368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11369 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11372 hard_links="nottested"
11373 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11374 # do not overwrite the value of need_locks provided by the user
11375 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11376 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11377 hard_links=yes
11378 $rm conftest*
11379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11380 touch conftest.a
11381 ln conftest.a conftest.b 2>&5 || hard_links=no
11382 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11383 { echo "$as_me:$LINENO: result: $hard_links" >&5
11384 echo "${ECHO_T}$hard_links" >&6; }
11385 if test "$hard_links" = no; then
11386 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11387 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11388 need_locks=warn
11390 else
11391 need_locks=no
11394 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11395 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11397 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11398 case $host_os in
11399 aix4* | aix5*)
11400 # If we're using GNU nm, then we don't want the "-C" option.
11401 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11402 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11403 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'
11404 else
11405 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'
11408 pw32*)
11409 export_symbols_cmds_CXX="$ltdll_cmds"
11411 cygwin* | mingw*)
11412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11417 esac
11419 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11420 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11421 test "$ld_shlibs_CXX" = no && can_build_shared=no
11423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11424 if test "$GCC" = yes; then
11425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11429 # Do we need to explicitly link libc?
11431 case "x$archive_cmds_need_lc_CXX" in
11432 x|xyes)
11433 # Assume -lc should be added
11434 archive_cmds_need_lc_CXX=yes
11436 if test "$enable_shared" = yes && test "$GCC" = yes; then
11437 case $archive_cmds_CXX in
11438 *'~'*)
11439 # FIXME: we may have to deal with multi-command sequences.
11441 '$CC '*)
11442 # Test whether the compiler implicitly links with -lc since on some
11443 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11444 # to ld, don't add -lc before -lgcc.
11445 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11447 $rm conftest*
11448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11451 (eval $ac_compile) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } 2>conftest.err; then
11455 soname=conftest
11456 lib=conftest
11457 libobjs=conftest.$ac_objext
11458 deplibs=
11459 wl=$lt_prog_compiler_wl_CXX
11460 compiler_flags=-v
11461 linker_flags=-v
11462 verstring=
11463 output_objdir=.
11464 libname=conftest
11465 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11466 allow_undefined_flag_CXX=
11467 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11468 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }
11472 then
11473 archive_cmds_need_lc_CXX=no
11474 else
11475 archive_cmds_need_lc_CXX=yes
11477 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11478 else
11479 cat conftest.err 1>&5
11481 $rm conftest*
11482 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11483 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11485 esac
11488 esac
11490 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11491 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11492 library_names_spec=
11493 libname_spec='lib$name'
11494 soname_spec=
11495 shrext=".so"
11496 postinstall_cmds=
11497 postuninstall_cmds=
11498 finish_cmds=
11499 finish_eval=
11500 shlibpath_var=
11501 shlibpath_overrides_runpath=unknown
11502 version_type=none
11503 dynamic_linker="$host_os ld.so"
11504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11505 if test "$GCC" = yes; then
11506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11507 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11508 # if the path contains ";" then we assume it to be the separator
11509 # otherwise default to the standard path separator (i.e. ":") - it is
11510 # assumed that no part of a normal pathname contains ";" but that should
11511 # okay in the real world where ";" in dirpaths is itself problematic.
11512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11513 else
11514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11516 else
11517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11519 need_lib_prefix=unknown
11520 hardcode_into_libs=no
11522 # when you set need_version to no, make sure it does not cause -set_version
11523 # flags to be left without arguments
11524 need_version=unknown
11526 case $host_os in
11527 aix3*)
11528 version_type=linux
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11530 shlibpath_var=LIBPATH
11532 # AIX 3 has no versioning support, so we append a major version to the name.
11533 soname_spec='${libname}${release}${shared_ext}$major'
11536 aix4* | aix5*)
11537 version_type=linux
11538 need_lib_prefix=no
11539 need_version=no
11540 hardcode_into_libs=yes
11541 if test "$host_cpu" = ia64; then
11542 # AIX 5 supports IA64
11543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 else
11546 # With GCC up to 2.95.x, collect2 would create an import file
11547 # for dependence libraries. The import file would start with
11548 # the line `#! .'. This would cause the generated library to
11549 # depend on `.', always an invalid library. This was fixed in
11550 # development snapshots of GCC prior to 3.0.
11551 case $host_os in
11552 aix4 | aix4.[01] | aix4.[01].*)
11553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11554 echo ' yes '
11555 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11557 else
11558 can_build_shared=no
11561 esac
11562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11563 # soname into executable. Probably we can add versioning support to
11564 # collect2, so additional links can be useful in future.
11565 if test "$aix_use_runtimelinking" = yes; then
11566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11567 # instead of lib<name>.a to let people know that these are not
11568 # typical AIX shared libraries.
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 else
11571 # We preserve .a as extension for shared libraries through AIX4.2
11572 # and later when we are not doing run time linking.
11573 library_names_spec='${libname}${release}.a $libname.a'
11574 soname_spec='${libname}${release}${shared_ext}$major'
11576 shlibpath_var=LIBPATH
11580 amigaos*)
11581 library_names_spec='$libname.ixlibrary $libname.a'
11582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11583 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'
11586 beos*)
11587 library_names_spec='${libname}${shared_ext}'
11588 dynamic_linker="$host_os ld.so"
11589 shlibpath_var=LIBRARY_PATH
11592 bsdi4*)
11593 version_type=linux
11594 need_version=no
11595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11600 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11601 # the default ld.so.conf also contains /usr/contrib/lib and
11602 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11603 # libtool to hard-code these into programs
11606 cygwin* | mingw* | pw32*)
11607 version_type=windows
11608 shrext=".dll"
11609 need_version=no
11610 need_lib_prefix=no
11612 case $GCC,$host_os in
11613 yes,cygwin* | yes,mingw* | yes,pw32*)
11614 library_names_spec='$libname.dll.a'
11615 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11616 postinstall_cmds='base_file=`basename \${file}`~
11617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11618 dldir=$destdir/`dirname \$dlpath`~
11619 test -d \$dldir || mkdir -p \$dldir~
11620 $install_prog $dir/$dlname \$dldir/$dlname'
11621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11622 dlpath=$dir/\$dldll~
11623 $rm \$dlpath'
11624 shlibpath_overrides_runpath=yes
11626 case $host_os in
11627 cygwin*)
11628 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11629 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11630 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11632 mingw*)
11633 # MinGW DLLs use traditional 'lib' prefix
11634 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11635 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11636 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11637 # It is most probably a Windows format PATH printed by
11638 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11639 # path with ; separators, and with drive letters. We can handle the
11640 # drive letters (cygwin fileutils understands them), so leave them,
11641 # especially as we might pass files found there to a mingw objdump,
11642 # which wouldn't understand a cygwinified path. Ahh.
11643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11644 else
11645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11648 pw32*)
11649 # pw32 DLLs use 'pw' prefix rather than 'lib'
11650 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11652 esac
11656 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11658 esac
11659 dynamic_linker='Win32 ld.exe'
11660 # FIXME: first we should search . and the directory the executable is in
11661 shlibpath_var=PATH
11664 darwin* | rhapsody*)
11665 dynamic_linker="$host_os dyld"
11666 version_type=darwin
11667 need_lib_prefix=no
11668 need_version=no
11669 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11670 soname_spec='${libname}${release}${major}$shared_ext'
11671 shlibpath_overrides_runpath=yes
11672 shlibpath_var=DYLD_LIBRARY_PATH
11673 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11674 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11675 if test "$GCC" = yes; then
11676 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"`
11677 else
11678 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11680 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11683 dgux*)
11684 version_type=linux
11685 need_lib_prefix=no
11686 need_version=no
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11688 soname_spec='${libname}${release}${shared_ext}$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11692 freebsd1*)
11693 dynamic_linker=no
11696 kfreebsd*-gnu)
11697 version_type=linux
11698 need_lib_prefix=no
11699 need_version=no
11700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701 soname_spec='${libname}${release}${shared_ext}$major'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11704 hardcode_into_libs=yes
11705 dynamic_linker='GNU ld.so'
11708 freebsd*)
11709 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11710 version_type=freebsd-$objformat
11711 case $version_type in
11712 freebsd-elf*)
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11714 need_version=no
11715 need_lib_prefix=no
11717 freebsd-*)
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11719 need_version=yes
11721 esac
11722 shlibpath_var=LD_LIBRARY_PATH
11723 case $host_os in
11724 freebsd2*)
11725 shlibpath_overrides_runpath=yes
11727 freebsd3.01* | freebsdelf3.01*)
11728 shlibpath_overrides_runpath=yes
11729 hardcode_into_libs=yes
11731 *) # from 3.2 on
11732 shlibpath_overrides_runpath=no
11733 hardcode_into_libs=yes
11735 esac
11738 gnu*)
11739 version_type=linux
11740 need_lib_prefix=no
11741 need_version=no
11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11743 soname_spec='${libname}${release}${shared_ext}$major'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 hardcode_into_libs=yes
11748 hpux9* | hpux10* | hpux11*)
11749 # Give a soname corresponding to the major version so that dld.sl refuses to
11750 # link against other versions.
11751 version_type=sunos
11752 need_lib_prefix=no
11753 need_version=no
11754 case "$host_cpu" in
11755 ia64*)
11756 shrext='.so'
11757 hardcode_into_libs=yes
11758 dynamic_linker="$host_os dld.so"
11759 shlibpath_var=LD_LIBRARY_PATH
11760 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 if test "X$HPUX_IA64_MODE" = X32; then
11764 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11765 else
11766 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11768 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11770 hppa*64*)
11771 shrext='.sl'
11772 hardcode_into_libs=yes
11773 dynamic_linker="$host_os dld.sl"
11774 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11777 soname_spec='${libname}${release}${shared_ext}$major'
11778 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11782 shrext='.sl'
11783 dynamic_linker="$host_os dld.sl"
11784 shlibpath_var=SHLIB_PATH
11785 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787 soname_spec='${libname}${release}${shared_ext}$major'
11789 esac
11790 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11791 postinstall_cmds='chmod 555 $lib'
11794 irix5* | irix6* | nonstopux*)
11795 case $host_os in
11796 nonstopux*) version_type=nonstopux ;;
11798 if test "$lt_cv_prog_gnu_ld" = yes; then
11799 version_type=linux
11800 else
11801 version_type=irix
11802 fi ;;
11803 esac
11804 need_lib_prefix=no
11805 need_version=no
11806 soname_spec='${libname}${release}${shared_ext}$major'
11807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11808 case $host_os in
11809 irix5* | nonstopux*)
11810 libsuff= shlibsuff=
11813 case $LD in # libtool.m4 will add one of these switches to LD
11814 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11815 libsuff= shlibsuff= libmagic=32-bit;;
11816 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11817 libsuff=32 shlibsuff=N32 libmagic=N32;;
11818 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11819 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11820 *) libsuff= shlibsuff= libmagic=never-match;;
11821 esac
11823 esac
11824 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11825 shlibpath_overrides_runpath=no
11826 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11827 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11828 hardcode_into_libs=yes
11831 # No shared lib support for Linux oldld, aout, or coff.
11832 linux*oldld* | linux*aout* | linux*coff*)
11833 dynamic_linker=no
11836 # This must be Linux ELF.
11837 linux*)
11838 version_type=linux
11839 need_lib_prefix=no
11840 need_version=no
11841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842 soname_spec='${libname}${release}${shared_ext}$major'
11843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=no
11846 # This implies no fast_install, which is unacceptable.
11847 # Some rework will be needed to allow for fast_install
11848 # before this can be enabled.
11849 hardcode_into_libs=yes
11851 # We used to test for /lib/ld.so.1 and disable shared libraries on
11852 # powerpc, because MkLinux only supported shared libraries with the
11853 # GNU dynamic linker. Since this was broken with cross compilers,
11854 # most powerpc-linux boxes support dynamic linking these days and
11855 # people can always --disable-shared, the test was removed, and we
11856 # assume the GNU/Linux dynamic linker is in use.
11857 dynamic_linker='GNU/Linux ld.so'
11860 netbsd*)
11861 version_type=sunos
11862 need_lib_prefix=no
11863 need_version=no
11864 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11867 dynamic_linker='NetBSD (a.out) ld.so'
11868 else
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11870 soname_spec='${libname}${release}${shared_ext}$major'
11871 dynamic_linker='NetBSD ld.elf_so'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath=yes
11875 hardcode_into_libs=yes
11878 newsos6)
11879 version_type=linux
11880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=yes
11885 nto-qnx*)
11886 version_type=linux
11887 need_lib_prefix=no
11888 need_version=no
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 soname_spec='${libname}${release}${shared_ext}$major'
11891 shlibpath_var=LD_LIBRARY_PATH
11892 shlibpath_overrides_runpath=yes
11895 openbsd*)
11896 version_type=sunos
11897 need_lib_prefix=no
11898 need_version=no
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11901 shlibpath_var=LD_LIBRARY_PATH
11902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11903 case $host_os in
11904 openbsd2.[89] | openbsd2.[89].*)
11905 shlibpath_overrides_runpath=no
11908 shlibpath_overrides_runpath=yes
11910 esac
11911 else
11912 shlibpath_overrides_runpath=yes
11916 os2*)
11917 libname_spec='$name'
11918 shrext=".dll"
11919 need_lib_prefix=no
11920 library_names_spec='$libname${shared_ext} $libname.a'
11921 dynamic_linker='OS/2 ld.exe'
11922 shlibpath_var=LIBPATH
11925 osf3* | osf4* | osf5*)
11926 version_type=osf
11927 need_lib_prefix=no
11928 need_version=no
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11933 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11936 sco3.2v5*)
11937 version_type=osf
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11940 shlibpath_var=LD_LIBRARY_PATH
11943 solaris*)
11944 version_type=linux
11945 need_lib_prefix=no
11946 need_version=no
11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11948 soname_spec='${libname}${release}${shared_ext}$major'
11949 shlibpath_var=LD_LIBRARY_PATH
11950 shlibpath_overrides_runpath=yes
11951 hardcode_into_libs=yes
11952 # ldd complains unless libraries are executable
11953 postinstall_cmds='chmod +x $lib'
11956 sunos4*)
11957 version_type=sunos
11958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 shlibpath_overrides_runpath=yes
11962 if test "$with_gnu_ld" = yes; then
11963 need_lib_prefix=no
11965 need_version=yes
11968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11969 version_type=linux
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 shlibpath_var=LD_LIBRARY_PATH
11973 case $host_vendor in
11974 sni)
11975 shlibpath_overrides_runpath=no
11976 need_lib_prefix=no
11977 export_dynamic_flag_spec='${wl}-Blargedynsym'
11978 runpath_var=LD_RUN_PATH
11980 siemens)
11981 need_lib_prefix=no
11983 motorola)
11984 need_lib_prefix=no
11985 need_version=no
11986 shlibpath_overrides_runpath=no
11987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11989 esac
11992 sysv4*MP*)
11993 if test -d /usr/nec ;then
11994 version_type=linux
11995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11996 soname_spec='$libname${shared_ext}.$major'
11997 shlibpath_var=LD_LIBRARY_PATH
12001 uts4*)
12002 version_type=linux
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 shlibpath_var=LD_LIBRARY_PATH
12009 dynamic_linker=no
12011 esac
12012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12013 echo "${ECHO_T}$dynamic_linker" >&6; }
12014 test "$dynamic_linker" = no && can_build_shared=no
12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12018 hardcode_action_CXX=
12019 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12020 test -n "$runpath_var CXX" || \
12021 test "X$hardcode_automatic_CXX"="Xyes" ; then
12023 # We can hardcode non-existant directories.
12024 if test "$hardcode_direct_CXX" != no &&
12025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12026 # have to relink, otherwise we might link with an installed library
12027 # when we should be linking with a yet-to-be-installed one
12028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12029 test "$hardcode_minus_L_CXX" != no; then
12030 # Linking always hardcodes the temporary library directory.
12031 hardcode_action_CXX=relink
12032 else
12033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12034 hardcode_action_CXX=immediate
12036 else
12037 # We cannot hardcode anything, or else we can only hardcode existing
12038 # directories.
12039 hardcode_action_CXX=unsupported
12041 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12042 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12044 if test "$hardcode_action_CXX" = relink; then
12045 # Fast installation is not supported
12046 enable_fast_install=no
12047 elif test "$shlibpath_overrides_runpath" = yes ||
12048 test "$enable_shared" = no; then
12049 # Fast installation is not necessary
12050 enable_fast_install=needless
12053 striplib=
12054 old_striplib=
12055 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12059 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12060 { echo "$as_me:$LINENO: result: yes" >&5
12061 echo "${ECHO_T}yes" >&6; }
12062 else
12063 # FIXME - insert some real tests, host_os isn't really good enough
12064 case $host_os in
12065 darwin*)
12066 if test -n "$STRIP" ; then
12067 striplib="$STRIP -x"
12068 { echo "$as_me:$LINENO: result: yes" >&5
12069 echo "${ECHO_T}yes" >&6; }
12070 else
12071 { echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6; }
12076 { echo "$as_me:$LINENO: result: no" >&5
12077 echo "${ECHO_T}no" >&6; }
12079 esac
12082 if test "x$enable_dlopen" != xyes; then
12083 enable_dlopen=unknown
12084 enable_dlopen_self=unknown
12085 enable_dlopen_self_static=unknown
12086 else
12087 lt_cv_dlopen=no
12088 lt_cv_dlopen_libs=
12090 case $host_os in
12091 beos*)
12092 lt_cv_dlopen="load_add_on"
12093 lt_cv_dlopen_libs=
12094 lt_cv_dlopen_self=yes
12097 mingw* | pw32*)
12098 lt_cv_dlopen="LoadLibrary"
12099 lt_cv_dlopen_libs=
12102 cygwin*)
12103 lt_cv_dlopen="dlopen"
12104 lt_cv_dlopen_libs=
12107 darwin*)
12108 # if libdl is installed we need to link against it
12109 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-ldl $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h. */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h. */
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char dlopen ();
12131 main ()
12133 return dlopen ();
12135 return 0;
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (ac_try="$ac_link"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143 esac
12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_link") 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_cxx_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest$ac_exeext &&
12155 $as_test_x conftest$ac_exeext; then
12156 ac_cv_lib_dl_dlopen=yes
12157 else
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_cv_lib_dl_dlopen=no
12164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12170 if test $ac_cv_lib_dl_dlopen = yes; then
12171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12172 else
12174 lt_cv_dlopen="dyld"
12175 lt_cv_dlopen_libs=
12176 lt_cv_dlopen_self=yes
12183 { echo "$as_me:$LINENO: checking for shl_load" >&5
12184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12185 if test "${ac_cv_func_shl_load+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12196 #define shl_load innocuous_shl_load
12198 /* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char shl_load (); below.
12200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201 <limits.h> exists even on freestanding compilers. */
12203 #ifdef __STDC__
12204 # include <limits.h>
12205 #else
12206 # include <assert.h>
12207 #endif
12209 #undef shl_load
12211 /* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
12214 #ifdef __cplusplus
12215 extern "C"
12216 #endif
12217 char shl_load ();
12218 /* The GNU C library defines this for functions which it implements
12219 to always fail with ENOSYS. Some functions are actually named
12220 something starting with __ and the normal name is an alias. */
12221 #if defined __stub_shl_load || defined __stub___shl_load
12222 choke me
12223 #endif
12226 main ()
12228 return shl_load ();
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext conftest$ac_exeext
12234 if { (ac_try="$ac_link"
12235 case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238 esac
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_cxx_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest$ac_exeext &&
12250 $as_test_x conftest$ac_exeext; then
12251 ac_cv_func_shl_load=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_cv_func_shl_load=no
12259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12260 conftest$ac_exeext conftest.$ac_ext
12262 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12264 if test $ac_cv_func_shl_load = yes; then
12265 lt_cv_dlopen="shl_load"
12266 else
12267 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-ldld $LIBS"
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char shl_load ();
12289 main ()
12291 return shl_load ();
12293 return 0;
12295 _ACEOF
12296 rm -f conftest.$ac_objext conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301 esac
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_cxx_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest$ac_exeext &&
12313 $as_test_x conftest$ac_exeext; then
12314 ac_cv_lib_dld_shl_load=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_cv_lib_dld_shl_load=no
12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12327 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12328 if test $ac_cv_lib_dld_shl_load = yes; then
12329 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12330 else
12331 { echo "$as_me:$LINENO: checking for dlopen" >&5
12332 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12333 if test "${ac_cv_func_dlopen+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 else
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12344 #define dlopen innocuous_dlopen
12346 /* System header to define __stub macros and hopefully few prototypes,
12347 which can conflict with char dlopen (); below.
12348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349 <limits.h> exists even on freestanding compilers. */
12351 #ifdef __STDC__
12352 # include <limits.h>
12353 #else
12354 # include <assert.h>
12355 #endif
12357 #undef dlopen
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12362 #ifdef __cplusplus
12363 extern "C"
12364 #endif
12365 char dlopen ();
12366 /* The GNU C library defines this for functions which it implements
12367 to always fail with ENOSYS. Some functions are actually named
12368 something starting with __ and the normal name is an alias. */
12369 #if defined __stub_dlopen || defined __stub___dlopen
12370 choke me
12371 #endif
12374 main ()
12376 return dlopen ();
12378 return 0;
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_link") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_cxx_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest$ac_exeext &&
12398 $as_test_x conftest$ac_exeext; then
12399 ac_cv_func_dlopen=yes
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12404 ac_cv_func_dlopen=no
12407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12408 conftest$ac_exeext conftest.$ac_ext
12410 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12412 if test $ac_cv_func_dlopen = yes; then
12413 lt_cv_dlopen="dlopen"
12414 else
12415 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 ac_check_lib_save_LIBS=$LIBS
12421 LIBS="-ldl $LIBS"
12422 cat >conftest.$ac_ext <<_ACEOF
12423 /* confdefs.h. */
12424 _ACEOF
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 /* Override any GCC internal prototype to avoid an error.
12430 Use char because int might match the return type of a GCC
12431 builtin and then its argument prototype would still apply. */
12432 #ifdef __cplusplus
12433 extern "C"
12434 #endif
12435 char dlopen ();
12437 main ()
12439 return dlopen ();
12441 return 0;
12443 _ACEOF
12444 rm -f conftest.$ac_objext conftest$ac_exeext
12445 if { (ac_try="$ac_link"
12446 case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449 esac
12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12451 (eval "$ac_link") 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_cxx_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest$ac_exeext &&
12461 $as_test_x conftest$ac_exeext; then
12462 ac_cv_lib_dl_dlopen=yes
12463 else
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_cv_lib_dl_dlopen=no
12470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12475 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12476 if test $ac_cv_lib_dl_dlopen = yes; then
12477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12478 else
12479 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12480 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12481 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484 ac_check_lib_save_LIBS=$LIBS
12485 LIBS="-lsvld $LIBS"
12486 cat >conftest.$ac_ext <<_ACEOF
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char dlopen ();
12501 main ()
12503 return dlopen ();
12505 return 0;
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (ac_try="$ac_link"
12510 case "(($ac_try" in
12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12513 esac
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_link") 2>conftest.er1
12516 ac_status=$?
12517 grep -v '^ *+' conftest.er1 >conftest.err
12518 rm -f conftest.er1
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_cxx_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest$ac_exeext &&
12525 $as_test_x conftest$ac_exeext; then
12526 ac_cv_lib_svld_dlopen=yes
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_lib_svld_dlopen=no
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext conftest.$ac_ext
12536 LIBS=$ac_check_lib_save_LIBS
12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12539 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12540 if test $ac_cv_lib_svld_dlopen = yes; then
12541 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12542 else
12543 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12544 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548 ac_check_lib_save_LIBS=$LIBS
12549 LIBS="-ldld $LIBS"
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12557 /* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char dld_link ();
12565 main ()
12567 return dld_link ();
12569 return 0;
12571 _ACEOF
12572 rm -f conftest.$ac_objext conftest$ac_exeext
12573 if { (ac_try="$ac_link"
12574 case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_link") 2>conftest.er1
12580 ac_status=$?
12581 grep -v '^ *+' conftest.er1 >conftest.err
12582 rm -f conftest.er1
12583 cat conftest.err >&5
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); } && {
12586 test -z "$ac_cxx_werror_flag" ||
12587 test ! -s conftest.err
12588 } && test -s conftest$ac_exeext &&
12589 $as_test_x conftest$ac_exeext; then
12590 ac_cv_lib_dld_dld_link=yes
12591 else
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_cv_lib_dld_dld_link=no
12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12604 if test $ac_cv_lib_dld_dld_link = yes; then
12605 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12624 esac
12626 if test "x$lt_cv_dlopen" != xno; then
12627 enable_dlopen=yes
12628 else
12629 enable_dlopen=no
12632 case $lt_cv_dlopen in
12633 dlopen)
12634 save_CPPFLAGS="$CPPFLAGS"
12635 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12637 save_LDFLAGS="$LDFLAGS"
12638 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12640 save_LIBS="$LIBS"
12641 LIBS="$lt_cv_dlopen_libs $LIBS"
12643 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12645 if test "${lt_cv_dlopen_self+set}" = set; then
12646 echo $ECHO_N "(cached) $ECHO_C" >&6
12647 else
12648 if test "$cross_compiling" = yes; then :
12649 lt_cv_dlopen_self=cross
12650 else
12651 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12652 lt_status=$lt_dlunknown
12653 cat > conftest.$ac_ext <<EOF
12654 #line 12654 "configure"
12655 #include "confdefs.h"
12657 #if HAVE_DLFCN_H
12658 #include <dlfcn.h>
12659 #endif
12661 #include <stdio.h>
12663 #ifdef RTLD_GLOBAL
12664 # define LT_DLGLOBAL RTLD_GLOBAL
12665 #else
12666 # ifdef DL_GLOBAL
12667 # define LT_DLGLOBAL DL_GLOBAL
12668 # else
12669 # define LT_DLGLOBAL 0
12670 # endif
12671 #endif
12673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12674 find out it does not work in some platform. */
12675 #ifndef LT_DLLAZY_OR_NOW
12676 # ifdef RTLD_LAZY
12677 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12678 # else
12679 # ifdef DL_LAZY
12680 # define LT_DLLAZY_OR_NOW DL_LAZY
12681 # else
12682 # ifdef RTLD_NOW
12683 # define LT_DLLAZY_OR_NOW RTLD_NOW
12684 # else
12685 # ifdef DL_NOW
12686 # define LT_DLLAZY_OR_NOW DL_NOW
12687 # else
12688 # define LT_DLLAZY_OR_NOW 0
12689 # endif
12690 # endif
12691 # endif
12692 # endif
12693 #endif
12695 #ifdef __cplusplus
12696 extern "C" void exit (int);
12697 #endif
12699 void fnord() { int i=42;}
12700 int main ()
12702 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12703 int status = $lt_dlunknown;
12705 if (self)
12707 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12708 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12709 /* dlclose (self); */
12712 exit (status);
12715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12720 (./conftest; exit; ) 2>/dev/null
12721 lt_status=$?
12722 case x$lt_status in
12723 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12724 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12725 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12726 esac
12727 else :
12728 # compilation failed
12729 lt_cv_dlopen_self=no
12732 rm -fr conftest*
12736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12739 if test "x$lt_cv_dlopen_self" = xyes; then
12740 LDFLAGS="$LDFLAGS $link_static_flag"
12741 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12743 if test "${lt_cv_dlopen_self_static+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 else
12746 if test "$cross_compiling" = yes; then :
12747 lt_cv_dlopen_self_static=cross
12748 else
12749 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12750 lt_status=$lt_dlunknown
12751 cat > conftest.$ac_ext <<EOF
12752 #line 12752 "configure"
12753 #include "confdefs.h"
12755 #if HAVE_DLFCN_H
12756 #include <dlfcn.h>
12757 #endif
12759 #include <stdio.h>
12761 #ifdef RTLD_GLOBAL
12762 # define LT_DLGLOBAL RTLD_GLOBAL
12763 #else
12764 # ifdef DL_GLOBAL
12765 # define LT_DLGLOBAL DL_GLOBAL
12766 # else
12767 # define LT_DLGLOBAL 0
12768 # endif
12769 #endif
12771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12772 find out it does not work in some platform. */
12773 #ifndef LT_DLLAZY_OR_NOW
12774 # ifdef RTLD_LAZY
12775 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12776 # else
12777 # ifdef DL_LAZY
12778 # define LT_DLLAZY_OR_NOW DL_LAZY
12779 # else
12780 # ifdef RTLD_NOW
12781 # define LT_DLLAZY_OR_NOW RTLD_NOW
12782 # else
12783 # ifdef DL_NOW
12784 # define LT_DLLAZY_OR_NOW DL_NOW
12785 # else
12786 # define LT_DLLAZY_OR_NOW 0
12787 # endif
12788 # endif
12789 # endif
12790 # endif
12791 #endif
12793 #ifdef __cplusplus
12794 extern "C" void exit (int);
12795 #endif
12797 void fnord() { int i=42;}
12798 int main ()
12800 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12801 int status = $lt_dlunknown;
12803 if (self)
12805 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12806 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12807 /* dlclose (self); */
12810 exit (status);
12813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12814 (eval $ac_link) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12818 (./conftest; exit; ) 2>/dev/null
12819 lt_status=$?
12820 case x$lt_status in
12821 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12822 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12823 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12824 esac
12825 else :
12826 # compilation failed
12827 lt_cv_dlopen_self_static=no
12830 rm -fr conftest*
12834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12838 CPPFLAGS="$save_CPPFLAGS"
12839 LDFLAGS="$save_LDFLAGS"
12840 LIBS="$save_LIBS"
12842 esac
12844 case $lt_cv_dlopen_self in
12845 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12846 *) enable_dlopen_self=unknown ;;
12847 esac
12849 case $lt_cv_dlopen_self_static in
12850 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12851 *) enable_dlopen_self_static=unknown ;;
12852 esac
12856 # The else clause should only fire when bootstrapping the
12857 # libtool distribution, otherwise you forgot to ship ltmain.sh
12858 # with your package, and you will get complaints that there are
12859 # no rules to generate ltmain.sh.
12860 if test -f "$ltmain"; then
12861 # See if we are running on zsh, and set the options which allow our commands through
12862 # without removal of \ escapes.
12863 if test -n "${ZSH_VERSION+set}" ; then
12864 setopt NO_GLOB_SUBST
12866 # Now quote all the things that may contain metacharacters while being
12867 # careful not to overquote the AC_SUBSTed values. We take copies of the
12868 # variables and quote the copies for generation of the libtool script.
12869 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12870 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12871 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12872 deplibs_check_method reload_flag reload_cmds need_locks \
12873 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12874 lt_cv_sys_global_symbol_to_c_name_address \
12875 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12876 old_postinstall_cmds old_postuninstall_cmds \
12877 compiler_CXX \
12878 CC_CXX \
12879 LD_CXX \
12880 lt_prog_compiler_wl_CXX \
12881 lt_prog_compiler_pic_CXX \
12882 lt_prog_compiler_static_CXX \
12883 lt_prog_compiler_no_builtin_flag_CXX \
12884 export_dynamic_flag_spec_CXX \
12885 thread_safe_flag_spec_CXX \
12886 whole_archive_flag_spec_CXX \
12887 enable_shared_with_static_runtimes_CXX \
12888 old_archive_cmds_CXX \
12889 old_archive_from_new_cmds_CXX \
12890 predep_objects_CXX \
12891 postdep_objects_CXX \
12892 predeps_CXX \
12893 postdeps_CXX \
12894 compiler_lib_search_path_CXX \
12895 archive_cmds_CXX \
12896 archive_expsym_cmds_CXX \
12897 postinstall_cmds_CXX \
12898 postuninstall_cmds_CXX \
12899 old_archive_from_expsyms_cmds_CXX \
12900 allow_undefined_flag_CXX \
12901 no_undefined_flag_CXX \
12902 export_symbols_cmds_CXX \
12903 hardcode_libdir_flag_spec_CXX \
12904 hardcode_libdir_flag_spec_ld_CXX \
12905 hardcode_libdir_separator_CXX \
12906 hardcode_automatic_CXX \
12907 module_cmds_CXX \
12908 module_expsym_cmds_CXX \
12909 lt_cv_prog_compiler_c_o_CXX \
12910 exclude_expsyms_CXX \
12911 include_expsyms_CXX; do
12913 case $var in
12914 old_archive_cmds_CXX | \
12915 old_archive_from_new_cmds_CXX | \
12916 archive_cmds_CXX | \
12917 archive_expsym_cmds_CXX | \
12918 module_cmds_CXX | \
12919 module_expsym_cmds_CXX | \
12920 old_archive_from_expsyms_cmds_CXX | \
12921 export_symbols_cmds_CXX | \
12922 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12923 postinstall_cmds | postuninstall_cmds | \
12924 old_postinstall_cmds | old_postuninstall_cmds | \
12925 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12926 # Double-quote double-evaled strings.
12927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12930 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12932 esac
12933 done
12935 case $lt_echo in
12936 *'\$0 --fallback-echo"')
12937 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12939 esac
12941 cfgfile="$ofile"
12943 cat <<__EOF__ >> "$cfgfile"
12944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12948 # Shell to use when invoking shell scripts.
12949 SHELL=$lt_SHELL
12951 # Whether or not to build shared libraries.
12952 build_libtool_libs=$enable_shared
12954 # Whether or not to build static libraries.
12955 build_old_libs=$enable_static
12957 # Whether or not to add -lc for building shared libraries.
12958 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12960 # Whether or not to disallow shared libs when runtime libs are static
12961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12963 # Whether or not to optimize for fast installation.
12964 fast_install=$enable_fast_install
12966 # The host system.
12967 host_alias=$host_alias
12968 host=$host
12970 # An echo program that does not interpret backslashes.
12971 echo=$lt_echo
12973 # The archiver.
12974 AR=$lt_AR
12975 AR_FLAGS=$lt_AR_FLAGS
12977 # A C compiler.
12978 LTCC=$lt_LTCC
12980 # A language-specific compiler.
12981 CC=$lt_compiler_CXX
12983 # Is the compiler the GNU C compiler?
12984 with_gcc=$GCC_CXX
12986 # An ERE matcher.
12987 EGREP=$lt_EGREP
12989 # The linker used to build libraries.
12990 LD=$lt_LD_CXX
12992 # Whether we need hard or soft links.
12993 LN_S=$lt_LN_S
12995 # A BSD-compatible nm program.
12996 NM=$lt_NM
12998 # A symbol stripping program
12999 STRIP="$STRIP"
13001 # Used to examine libraries when file_magic_cmd begins "file"
13002 MAGIC_CMD=$MAGIC_CMD
13004 # Used on cygwin: DLL creation program.
13005 DLLTOOL="$DLLTOOL"
13007 # Used on cygwin: object dumper.
13008 OBJDUMP="$OBJDUMP"
13010 # Used on cygwin: assembler.
13011 AS="$AS"
13013 # The name of the directory that contains temporary libtool files.
13014 objdir=$objdir
13016 # How to create reloadable object files.
13017 reload_flag=$lt_reload_flag
13018 reload_cmds=$lt_reload_cmds
13020 # How to pass a linker flag through the compiler.
13021 wl=$lt_lt_prog_compiler_wl_CXX
13023 # Object file suffix (normally "o").
13024 objext="$ac_objext"
13026 # Old archive suffix (normally "a").
13027 libext="$libext"
13029 # Shared library suffix (normally ".so").
13030 shrext='$shrext'
13032 # Executable file suffix (normally "").
13033 exeext="$exeext"
13035 # Additional compiler flags for building library objects.
13036 pic_flag=$lt_lt_prog_compiler_pic_CXX
13037 pic_mode=$pic_mode
13039 # What is the maximum length of a command?
13040 max_cmd_len=$lt_cv_sys_max_cmd_len
13042 # Does compiler simultaneously support -c and -o options?
13043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13045 # Must we lock files when doing compilation ?
13046 need_locks=$lt_need_locks
13048 # Do we need the lib prefix for modules?
13049 need_lib_prefix=$need_lib_prefix
13051 # Do we need a version for libraries?
13052 need_version=$need_version
13054 # Whether dlopen is supported.
13055 dlopen_support=$enable_dlopen
13057 # Whether dlopen of programs is supported.
13058 dlopen_self=$enable_dlopen_self
13060 # Whether dlopen of statically linked programs is supported.
13061 dlopen_self_static=$enable_dlopen_self_static
13063 # Compiler flag to prevent dynamic linking.
13064 link_static_flag=$lt_lt_prog_compiler_static_CXX
13066 # Compiler flag to turn off builtin functions.
13067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13069 # Compiler flag to allow reflexive dlopens.
13070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13072 # Compiler flag to generate shared objects directly from archives.
13073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13075 # Compiler flag to generate thread-safe objects.
13076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13078 # Library versioning type.
13079 version_type=$version_type
13081 # Format of library name prefix.
13082 libname_spec=$lt_libname_spec
13084 # List of archive names. First name is the real one, the rest are links.
13085 # The last name is the one that the linker finds with -lNAME.
13086 library_names_spec=$lt_library_names_spec
13088 # The coded name of the library, if different from the real name.
13089 soname_spec=$lt_soname_spec
13091 # Commands used to build and install an old-style archive.
13092 RANLIB=$lt_RANLIB
13093 old_archive_cmds=$lt_old_archive_cmds_CXX
13094 old_postinstall_cmds=$lt_old_postinstall_cmds
13095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13097 # Create an old-style archive from a shared archive.
13098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13100 # Create a temporary old-style archive to link instead of a shared archive.
13101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13103 # Commands used to build and install a shared archive.
13104 archive_cmds=$lt_archive_cmds_CXX
13105 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13106 postinstall_cmds=$lt_postinstall_cmds
13107 postuninstall_cmds=$lt_postuninstall_cmds
13109 # Commands used to build a loadable module (assumed same as above if empty)
13110 module_cmds=$lt_module_cmds_CXX
13111 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13113 # Commands to strip libraries.
13114 old_striplib=$lt_old_striplib
13115 striplib=$lt_striplib
13117 # Dependencies to place before the objects being linked to create a
13118 # shared library.
13119 predep_objects=$lt_predep_objects_CXX
13121 # Dependencies to place after the objects being linked to create a
13122 # shared library.
13123 postdep_objects=$lt_postdep_objects_CXX
13125 # Dependencies to place before the objects being linked to create a
13126 # shared library.
13127 predeps=$lt_predeps_CXX
13129 # Dependencies to place after the objects being linked to create a
13130 # shared library.
13131 postdeps=$lt_postdeps_CXX
13133 # The library search path used internally by the compiler when linking
13134 # a shared library.
13135 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13137 # Method to check whether dependent libraries are shared objects.
13138 deplibs_check_method=$lt_deplibs_check_method
13140 # Command to use when deplibs_check_method == file_magic.
13141 file_magic_cmd=$lt_file_magic_cmd
13143 # Flag that allows shared libraries with undefined symbols to be built.
13144 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13146 # Flag that forces no undefined symbols.
13147 no_undefined_flag=$lt_no_undefined_flag_CXX
13149 # Commands used to finish a libtool library installation in a directory.
13150 finish_cmds=$lt_finish_cmds
13152 # Same as above, but a single script fragment to be evaled but not shown.
13153 finish_eval=$lt_finish_eval
13155 # Take the output of nm and produce a listing of raw symbols and C names.
13156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13158 # Transform the output of nm in a proper C declaration
13159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13161 # Transform the output of nm in a C name address pair
13162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13164 # This is the shared library runtime path variable.
13165 runpath_var=$runpath_var
13167 # This is the shared library path variable.
13168 shlibpath_var=$shlibpath_var
13170 # Is shlibpath searched before the hard-coded library search path?
13171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13173 # How to hardcode a shared library path into an executable.
13174 hardcode_action=$hardcode_action_CXX
13176 # Whether we should hardcode library paths into libraries.
13177 hardcode_into_libs=$hardcode_into_libs
13179 # Flag to hardcode \$libdir into a binary during linking.
13180 # This must work even if \$libdir does not exist.
13181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13183 # If ld is used when linking, flag to hardcode \$libdir into
13184 # a binary during linking. This must work even if \$libdir does
13185 # not exist.
13186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13188 # Whether we need a single -rpath flag with a separated argument.
13189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13192 # resulting binary.
13193 hardcode_direct=$hardcode_direct_CXX
13195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13196 # resulting binary.
13197 hardcode_minus_L=$hardcode_minus_L_CXX
13199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13200 # the resulting binary.
13201 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13203 # Set to yes if building a shared library automatically hardcodes DIR into the library
13204 # and all subsequent libraries and executables linked against it.
13205 hardcode_automatic=$hardcode_automatic_CXX
13207 # Variables whose values should be saved in libtool wrapper scripts and
13208 # restored at relink time.
13209 variables_saved_for_relink="$variables_saved_for_relink"
13211 # Whether libtool must link a program against all its dependency libraries.
13212 link_all_deplibs=$link_all_deplibs_CXX
13214 # Compile-time system search path for libraries
13215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13217 # Run-time system search path for libraries
13218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13220 # Fix the shell variable \$srcfile for the compiler.
13221 fix_srcfile_path="$fix_srcfile_path_CXX"
13223 # Set to yes if exported symbols are required.
13224 always_export_symbols=$always_export_symbols_CXX
13226 # The commands to list exported symbols.
13227 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13229 # The commands to extract the exported symbol list from a shared archive.
13230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13232 # Symbols that should not be listed in the preloaded symbols.
13233 exclude_expsyms=$lt_exclude_expsyms_CXX
13235 # Symbols that must always be exported.
13236 include_expsyms=$lt_include_expsyms_CXX
13238 # ### END LIBTOOL TAG CONFIG: $tagname
13240 __EOF__
13243 else
13244 # If there is no Makefile yet, we rely on a make rule to execute
13245 # `config.status --recheck' to rerun these tests and create the
13246 # libtool script then.
13247 test -f Makefile && make "$ltmain"
13251 ac_ext=c
13252 ac_cpp='$CPP $CPPFLAGS'
13253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13257 CC=$lt_save_CC
13258 LDCXX=$LD
13259 LD=$lt_save_LD
13260 GCC=$lt_save_GCC
13261 with_gnu_ldcxx=$with_gnu_ld
13262 with_gnu_ld=$lt_save_with_gnu_ld
13263 lt_cv_path_LDCXX=$lt_cv_path_LD
13264 lt_cv_path_LD=$lt_save_path_LD
13265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13268 else
13269 tagname=""
13273 F77)
13274 if test -n "$F77" && test "X$F77" != "Xno"; then
13276 ac_ext=f
13277 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13278 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13282 archive_cmds_need_lc_F77=no
13283 allow_undefined_flag_F77=
13284 always_export_symbols_F77=no
13285 archive_expsym_cmds_F77=
13286 export_dynamic_flag_spec_F77=
13287 hardcode_direct_F77=no
13288 hardcode_libdir_flag_spec_F77=
13289 hardcode_libdir_flag_spec_ld_F77=
13290 hardcode_libdir_separator_F77=
13291 hardcode_minus_L_F77=no
13292 hardcode_automatic_F77=no
13293 module_cmds_F77=
13294 module_expsym_cmds_F77=
13295 link_all_deplibs_F77=unknown
13296 old_archive_cmds_F77=$old_archive_cmds
13297 no_undefined_flag_F77=
13298 whole_archive_flag_spec_F77=
13299 enable_shared_with_static_runtimes_F77=no
13301 # Source file extension for f77 test sources.
13302 ac_ext=f
13304 # Object file extension for compiled f77 test sources.
13305 objext=o
13306 objext_F77=$objext
13308 # Code to be used in simple compile tests
13309 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13311 # Code to be used in simple link tests
13312 lt_simple_link_test_code=" program t\n end\n"
13314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13316 # If no C compiler was specified, use CC.
13317 LTCC=${LTCC-"$CC"}
13319 # Allow CC to be a program name with arguments.
13320 compiler=$CC
13323 # Allow CC to be a program name with arguments.
13324 lt_save_CC="$CC"
13325 CC=${F77-"f77"}
13326 compiler=$CC
13327 compiler_F77=$CC
13328 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13330 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13332 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13333 echo "${ECHO_T}$can_build_shared" >&6; }
13335 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13337 test "$can_build_shared" = "no" && enable_shared=no
13339 # On AIX, shared libraries and static libraries use the same namespace, and
13340 # are all built from PIC.
13341 case "$host_os" in
13342 aix3*)
13343 test "$enable_shared" = yes && enable_static=no
13344 if test -n "$RANLIB"; then
13345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13346 postinstall_cmds='$RANLIB $lib'
13349 aix4*)
13350 test "$enable_shared" = yes && enable_static=no
13352 esac
13353 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13354 echo "${ECHO_T}$enable_shared" >&6; }
13356 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13358 # Make sure either enable_shared or enable_static is yes.
13359 test "$enable_shared" = yes || enable_static=yes
13360 { echo "$as_me:$LINENO: result: $enable_static" >&5
13361 echo "${ECHO_T}$enable_static" >&6; }
13363 test "$ld_shlibs_F77" = no && can_build_shared=no
13365 GCC_F77="$G77"
13366 LD_F77="$LD"
13368 lt_prog_compiler_wl_F77=
13369 lt_prog_compiler_pic_F77=
13370 lt_prog_compiler_static_F77=
13372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13375 if test "$GCC" = yes; then
13376 lt_prog_compiler_wl_F77='-Wl,'
13377 lt_prog_compiler_static_F77='-static'
13379 case $host_os in
13380 aix*)
13381 # All AIX code is PIC.
13382 if test "$host_cpu" = ia64; then
13383 # AIX 5 now supports IA64 processor
13384 lt_prog_compiler_static_F77='-Bstatic'
13388 amigaos*)
13389 # FIXME: we need at least 68020 code to build shared libraries, but
13390 # adding the `-m68020' flag to GCC prevents building anything better,
13391 # like `-m68040'.
13392 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13395 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13396 # PIC is the default for these OSes.
13399 mingw* | pw32* | os2*)
13400 # This hack is so that the source file can tell whether it is being
13401 # built for inclusion in a dll (and should export symbols for example).
13402 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13405 darwin* | rhapsody*)
13406 # PIC is the default on this platform
13407 # Common symbols not allowed in MH_DYLIB files
13408 lt_prog_compiler_pic_F77='-fno-common'
13411 msdosdjgpp*)
13412 # Just because we use GCC doesn't mean we suddenly get shared libraries
13413 # on systems that don't support them.
13414 lt_prog_compiler_can_build_shared_F77=no
13415 enable_shared=no
13418 sysv4*MP*)
13419 if test -d /usr/nec; then
13420 lt_prog_compiler_pic_F77=-Kconform_pic
13424 hpux*)
13425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13426 # not for PA HP-UX.
13427 case "$host_cpu" in
13428 hppa*64*|ia64*)
13429 # +Z the default
13432 lt_prog_compiler_pic_F77='-fPIC'
13434 esac
13438 lt_prog_compiler_pic_F77='-fPIC'
13440 esac
13441 else
13442 # PORTME Check for flag to pass linker flags through the system compiler.
13443 case $host_os in
13444 aix*)
13445 lt_prog_compiler_wl_F77='-Wl,'
13446 if test "$host_cpu" = ia64; then
13447 # AIX 5 now supports IA64 processor
13448 lt_prog_compiler_static_F77='-Bstatic'
13449 else
13450 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13454 mingw* | pw32* | os2*)
13455 # This hack is so that the source file can tell whether it is being
13456 # built for inclusion in a dll (and should export symbols for example).
13457 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13460 hpux9* | hpux10* | hpux11*)
13461 lt_prog_compiler_wl_F77='-Wl,'
13462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13463 # not for PA HP-UX.
13464 case "$host_cpu" in
13465 hppa*64*|ia64*)
13466 # +Z the default
13469 lt_prog_compiler_pic_F77='+Z'
13471 esac
13472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13473 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13476 irix5* | irix6* | nonstopux*)
13477 lt_prog_compiler_wl_F77='-Wl,'
13478 # PIC (with -KPIC) is the default.
13479 lt_prog_compiler_static_F77='-non_shared'
13482 newsos6)
13483 lt_prog_compiler_pic_F77='-KPIC'
13484 lt_prog_compiler_static_F77='-Bstatic'
13487 linux*)
13488 case $CC in
13489 icc* | ecc*)
13490 lt_prog_compiler_wl_F77='-Wl,'
13491 lt_prog_compiler_pic_F77='-KPIC'
13492 lt_prog_compiler_static_F77='-static'
13494 ccc*)
13495 lt_prog_compiler_wl_F77='-Wl,'
13496 # All Alpha code is PIC.
13497 lt_prog_compiler_static_F77='-non_shared'
13499 esac
13502 osf3* | osf4* | osf5*)
13503 lt_prog_compiler_wl_F77='-Wl,'
13504 # All OSF/1 code is PIC.
13505 lt_prog_compiler_static_F77='-non_shared'
13508 sco3.2v5*)
13509 lt_prog_compiler_pic_F77='-Kpic'
13510 lt_prog_compiler_static_F77='-dn'
13513 solaris*)
13514 lt_prog_compiler_wl_F77='-Wl,'
13515 lt_prog_compiler_pic_F77='-KPIC'
13516 lt_prog_compiler_static_F77='-Bstatic'
13519 sunos4*)
13520 lt_prog_compiler_wl_F77='-Qoption ld '
13521 lt_prog_compiler_pic_F77='-PIC'
13522 lt_prog_compiler_static_F77='-Bstatic'
13525 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13526 lt_prog_compiler_wl_F77='-Wl,'
13527 lt_prog_compiler_pic_F77='-KPIC'
13528 lt_prog_compiler_static_F77='-Bstatic'
13531 sysv4*MP*)
13532 if test -d /usr/nec ;then
13533 lt_prog_compiler_pic_F77='-Kconform_pic'
13534 lt_prog_compiler_static_F77='-Bstatic'
13538 uts4*)
13539 lt_prog_compiler_pic_F77='-pic'
13540 lt_prog_compiler_static_F77='-Bstatic'
13544 lt_prog_compiler_can_build_shared_F77=no
13546 esac
13549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13550 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13553 # Check to make sure the PIC flag actually works.
13555 if test -n "$lt_prog_compiler_pic_F77"; then
13557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13559 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562 lt_prog_compiler_pic_works_F77=no
13563 ac_outfile=conftest.$ac_objext
13564 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13565 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13566 # Insert the option either (1) after the last *FLAGS variable, or
13567 # (2) before a word containing "conftest.", or (3) at the end.
13568 # Note that $ac_compile itself does not contain backslashes and begins
13569 # with a dollar sign (not a hyphen), so the echo should work correctly.
13570 # The option is referenced via a variable to avoid confusing sed.
13571 lt_compile=`echo "$ac_compile" | $SED \
13572 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13574 -e 's:$: $lt_compiler_flag:'`
13575 (eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
13576 (eval "$lt_compile" 2>conftest.err)
13577 ac_status=$?
13578 cat conftest.err >&5
13579 echo "$as_me:13579: \$? = $ac_status" >&5
13580 if (exit $ac_status) && test -s "$ac_outfile"; then
13581 # The compiler can only warn and ignore the option if not recognized
13582 # So say no if there are warnings
13583 if test ! -s conftest.err; then
13584 lt_prog_compiler_pic_works_F77=yes
13587 $rm conftest*
13590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13591 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13593 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13594 case $lt_prog_compiler_pic_F77 in
13595 "" | " "*) ;;
13596 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13597 esac
13598 else
13599 lt_prog_compiler_pic_F77=
13600 lt_prog_compiler_can_build_shared_F77=no
13604 case "$host_os" in
13605 # For platforms which do not support PIC, -DPIC is meaningless:
13606 *djgpp*)
13607 lt_prog_compiler_pic_F77=
13610 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13612 esac
13614 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13616 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618 else
13619 lt_cv_prog_compiler_c_o_F77=no
13620 $rm -r conftest 2>/dev/null
13621 mkdir conftest
13622 cd conftest
13623 mkdir out
13624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13627 # that will create temporary files in the current directory regardless of
13628 # the output directory. Thus, making CWD read-only will cause this test
13629 # to fail, enabling locking or at least warning the user not to do parallel
13630 # builds.
13631 chmod -w .
13633 lt_compiler_flag="-o out/conftest2.$ac_objext"
13634 # Insert the option either (1) after the last *FLAGS variable, or
13635 # (2) before a word containing "conftest.", or (3) at the end.
13636 # Note that $ac_compile itself does not contain backslashes and begins
13637 # with a dollar sign (not a hyphen), so the echo should work correctly.
13638 lt_compile=`echo "$ac_compile" | $SED \
13639 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13641 -e 's:$: $lt_compiler_flag:'`
13642 (eval echo "\"\$as_me:13642: $lt_compile\"" >&5)
13643 (eval "$lt_compile" 2>out/conftest.err)
13644 ac_status=$?
13645 cat out/conftest.err >&5
13646 echo "$as_me:13646: \$? = $ac_status" >&5
13647 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13648 then
13649 # The compiler can only warn and ignore the option if not recognized
13650 # So say no if there are warnings
13651 if test ! -s out/conftest.err; then
13652 lt_cv_prog_compiler_c_o_F77=yes
13655 chmod u+w .
13656 $rm conftest*
13657 # SGI C++ compiler will create directory out/ii_files/ for
13658 # template instantiation
13659 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13660 $rm out/* && rmdir out
13661 cd ..
13662 rmdir conftest
13663 $rm conftest*
13666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13667 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13670 hard_links="nottested"
13671 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13672 # do not overwrite the value of need_locks provided by the user
13673 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13674 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13675 hard_links=yes
13676 $rm conftest*
13677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13678 touch conftest.a
13679 ln conftest.a conftest.b 2>&5 || hard_links=no
13680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13681 { echo "$as_me:$LINENO: result: $hard_links" >&5
13682 echo "${ECHO_T}$hard_links" >&6; }
13683 if test "$hard_links" = no; then
13684 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13685 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13686 need_locks=warn
13688 else
13689 need_locks=no
13692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13695 runpath_var=
13696 allow_undefined_flag_F77=
13697 enable_shared_with_static_runtimes_F77=no
13698 archive_cmds_F77=
13699 archive_expsym_cmds_F77=
13700 old_archive_From_new_cmds_F77=
13701 old_archive_from_expsyms_cmds_F77=
13702 export_dynamic_flag_spec_F77=
13703 whole_archive_flag_spec_F77=
13704 thread_safe_flag_spec_F77=
13705 hardcode_libdir_flag_spec_F77=
13706 hardcode_libdir_flag_spec_ld_F77=
13707 hardcode_libdir_separator_F77=
13708 hardcode_direct_F77=no
13709 hardcode_minus_L_F77=no
13710 hardcode_shlibpath_var_F77=unsupported
13711 link_all_deplibs_F77=unknown
13712 hardcode_automatic_F77=no
13713 module_cmds_F77=
13714 module_expsym_cmds_F77=
13715 always_export_symbols_F77=no
13716 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13717 # include_expsyms should be a list of space-separated symbols to be *always*
13718 # included in the symbol list
13719 include_expsyms_F77=
13720 # exclude_expsyms can be an extended regexp of symbols to exclude
13721 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13722 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13723 # as well as any symbol that contains `d'.
13724 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13725 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13726 # platforms (ab)use it in PIC code, but their linkers get confused if
13727 # the symbol is explicitly referenced. Since portable code cannot
13728 # rely on this symbol name, it's probably fine to never include it in
13729 # preloaded symbol tables.
13730 extract_expsyms_cmds=
13732 case $host_os in
13733 cygwin* | mingw* | pw32*)
13734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13735 # When not using gcc, we currently assume that we are using
13736 # Microsoft Visual C++.
13737 if test "$GCC" != yes; then
13738 with_gnu_ld=no
13741 openbsd*)
13742 with_gnu_ld=no
13744 esac
13746 ld_shlibs_F77=yes
13747 if test "$with_gnu_ld" = yes; then
13748 # If archive_cmds runs LD, not CC, wlarc should be empty
13749 wlarc='${wl}'
13751 # See if GNU ld supports shared libraries.
13752 case $host_os in
13753 aix3* | aix4* | aix5*)
13754 # On AIX/PPC, the GNU linker is very broken
13755 if test "$host_cpu" != ia64; then
13756 ld_shlibs_F77=no
13757 cat <<EOF 1>&2
13759 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13760 *** to be unable to reliably create shared libraries on AIX.
13761 *** Therefore, libtool is disabling shared libraries support. If you
13762 *** really care for shared libraries, you may want to modify your PATH
13763 *** so that a non-GNU linker is found, and then restart.
13769 amigaos*)
13770 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)'
13771 hardcode_libdir_flag_spec_F77='-L$libdir'
13772 hardcode_minus_L_F77=yes
13774 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13775 # that the semantics of dynamic libraries on AmigaOS, at least up
13776 # to version 4, is to share data among multiple programs linked
13777 # with the same dynamic library. Since this doesn't match the
13778 # behavior of shared libraries on other platforms, we can't use
13779 # them.
13780 ld_shlibs_F77=no
13783 beos*)
13784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13785 allow_undefined_flag_F77=unsupported
13786 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13787 # support --undefined. This deserves some investigation. FIXME
13788 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13789 else
13790 ld_shlibs_F77=no
13794 cygwin* | mingw* | pw32*)
13795 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13796 # as there is no search path for DLLs.
13797 hardcode_libdir_flag_spec_F77='-L$libdir'
13798 allow_undefined_flag_F77=unsupported
13799 always_export_symbols_F77=no
13800 enable_shared_with_static_runtimes_F77=yes
13801 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13803 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13804 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13805 # If the export-symbols file already is a .def file (1st line
13806 # is EXPORTS), use it as is; otherwise, prepend...
13807 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13808 cp $export_symbols $output_objdir/$soname.def;
13809 else
13810 echo EXPORTS > $output_objdir/$soname.def;
13811 cat $export_symbols >> $output_objdir/$soname.def;
13813 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13814 else
13815 ld_shlibs=no
13819 netbsd*)
13820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13821 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13822 wlarc=
13823 else
13824 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13825 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13829 solaris* | sysv5*)
13830 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13831 ld_shlibs_F77=no
13832 cat <<EOF 1>&2
13834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13835 *** create shared libraries on Solaris systems. Therefore, libtool
13836 *** is disabling shared libraries support. We urge you to upgrade GNU
13837 *** binutils to release 2.9.1 or newer. Another option is to modify
13838 *** your PATH or compiler configuration so that the native linker is
13839 *** used, and then restart.
13842 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13843 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13844 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13845 else
13846 ld_shlibs_F77=no
13850 sunos4*)
13851 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13852 wlarc=
13853 hardcode_direct_F77=yes
13854 hardcode_shlibpath_var_F77=no
13857 linux*)
13858 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13859 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860 archive_cmds_F77="$tmp_archive_cmds"
13861 supports_anon_versioning=no
13862 case `$LD -v 2>/dev/null` in
13863 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13864 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13865 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13866 *\ 2.11.*) ;; # other 2.11 versions
13867 *) supports_anon_versioning=yes ;;
13868 esac
13869 if test $supports_anon_versioning = yes; then
13870 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
13873 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13874 else
13875 archive_expsym_cmds_F77="$tmp_archive_cmds"
13877 else
13878 ld_shlibs_F77=no
13883 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13884 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13886 else
13887 ld_shlibs_F77=no
13890 esac
13892 if test "$ld_shlibs_F77" = yes; then
13893 runpath_var=LD_RUN_PATH
13894 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13895 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13896 # ancient GNU ld didn't support --whole-archive et. al.
13897 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13898 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13899 else
13900 whole_archive_flag_spec_F77=
13903 else
13904 # PORTME fill in a description of your system's linker (not GNU ld)
13905 case $host_os in
13906 aix3*)
13907 allow_undefined_flag_F77=unsupported
13908 always_export_symbols_F77=yes
13909 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'
13910 # Note: this linker hardcodes the directories in LIBPATH if there
13911 # are no directories specified by -L.
13912 hardcode_minus_L_F77=yes
13913 if test "$GCC" = yes && test -z "$link_static_flag"; then
13914 # Neither direct hardcoding nor static linking is supported with a
13915 # broken collect2.
13916 hardcode_direct_F77=unsupported
13920 aix4* | aix5*)
13921 if test "$host_cpu" = ia64; then
13922 # On IA64, the linker does run time linking by default, so we don't
13923 # have to do anything special.
13924 aix_use_runtimelinking=no
13925 exp_sym_flag='-Bexport'
13926 no_entry_flag=""
13927 else
13928 # If we're using GNU nm, then we don't want the "-C" option.
13929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13931 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'
13932 else
13933 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'
13935 aix_use_runtimelinking=no
13937 # Test if we are trying to use run time linking or normal
13938 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13939 # need to do runtime linking.
13940 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13941 for ld_flag in $LDFLAGS; do
13942 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13943 aix_use_runtimelinking=yes
13944 break
13946 done
13947 esac
13949 exp_sym_flag='-bexport'
13950 no_entry_flag='-bnoentry'
13953 # When large executables or shared objects are built, AIX ld can
13954 # have problems creating the table of contents. If linking a library
13955 # or program results in "error TOC overflow" add -mminimal-toc to
13956 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13957 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13959 archive_cmds_F77=''
13960 hardcode_direct_F77=yes
13961 hardcode_libdir_separator_F77=':'
13962 link_all_deplibs_F77=yes
13964 if test "$GCC" = yes; then
13965 case $host_os in aix4.012|aix4.012.*)
13966 # We only want to do this on AIX 4.2 and lower, the check
13967 # below for broken collect2 doesn't work under 4.3+
13968 collect2name=`${CC} -print-prog-name=collect2`
13969 if test -f "$collect2name" && \
13970 strings "$collect2name" | grep resolve_lib_name >/dev/null
13971 then
13972 # We have reworked collect2
13973 hardcode_direct_F77=yes
13974 else
13975 # We have old collect2
13976 hardcode_direct_F77=unsupported
13977 # It fails to find uninstalled libraries when the uninstalled
13978 # path is not listed in the libpath. Setting hardcode_minus_L
13979 # to unsupported forces relinking
13980 hardcode_minus_L_F77=yes
13981 hardcode_libdir_flag_spec_F77='-L$libdir'
13982 hardcode_libdir_separator_F77=
13984 esac
13985 shared_flag='-shared'
13986 else
13987 # not using gcc
13988 if test "$host_cpu" = ia64; then
13989 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13990 # chokes on -Wl,-G. The following line is correct:
13991 shared_flag='-G'
13992 else
13993 if test "$aix_use_runtimelinking" = yes; then
13994 shared_flag='${wl}-G'
13995 else
13996 shared_flag='${wl}-bM:SRE'
14001 # It seems that -bexpall does not export symbols beginning with
14002 # underscore (_), so it is better to generate a list of symbols to export.
14003 always_export_symbols_F77=yes
14004 if test "$aix_use_runtimelinking" = yes; then
14005 # Warning - without using the other runtime loading flags (-brtl),
14006 # -berok will link without error, but may produce a broken library.
14007 allow_undefined_flag_F77='-berok'
14008 # Determine the default libpath from the value encoded in an empty executable.
14009 cat >conftest.$ac_ext <<_ACEOF
14010 program main
14013 _ACEOF
14014 rm -f conftest.$ac_objext conftest$ac_exeext
14015 if { (ac_try="$ac_link"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_link") 2>conftest.er1
14022 ac_status=$?
14023 grep -v '^ *+' conftest.er1 >conftest.err
14024 rm -f conftest.er1
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_f77_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest$ac_exeext &&
14031 $as_test_x conftest$ac_exeext; then
14033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14035 # Check for a 64-bit object if we didn't find anything.
14036 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; }
14037 }'`; fi
14038 else
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14046 conftest$ac_exeext conftest.$ac_ext
14047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14049 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14050 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"
14051 else
14052 if test "$host_cpu" = ia64; then
14053 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14054 allow_undefined_flag_F77="-z nodefs"
14055 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"
14056 else
14057 # Determine the default libpath from the value encoded in an empty executable.
14058 cat >conftest.$ac_ext <<_ACEOF
14059 program main
14062 _ACEOF
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (ac_try="$ac_link"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070 (eval "$ac_link") 2>conftest.er1
14071 ac_status=$?
14072 grep -v '^ *+' conftest.er1 >conftest.err
14073 rm -f conftest.er1
14074 cat conftest.err >&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); } && {
14077 test -z "$ac_f77_werror_flag" ||
14078 test ! -s conftest.err
14079 } && test -s conftest$ac_exeext &&
14080 $as_test_x conftest$ac_exeext; then
14082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14084 # Check for a 64-bit object if we didn't find anything.
14085 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; }
14086 }'`; fi
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14095 conftest$ac_exeext conftest.$ac_ext
14096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14098 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14099 # Warning - without using the other run time loading flags,
14100 # -berok will link without error, but may produce a broken library.
14101 no_undefined_flag_F77=' ${wl}-bernotok'
14102 allow_undefined_flag_F77=' ${wl}-berok'
14103 # -bexpall does not export symbols beginning with underscore (_)
14104 always_export_symbols_F77=yes
14105 # Exported symbols can be pulled into shared objects from archives
14106 whole_archive_flag_spec_F77=' '
14107 archive_cmds_need_lc_F77=yes
14108 # This is similar to how AIX traditionally builds it's shared libraries.
14109 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'
14114 amigaos*)
14115 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)'
14116 hardcode_libdir_flag_spec_F77='-L$libdir'
14117 hardcode_minus_L_F77=yes
14118 # see comment about different semantics on the GNU ld section
14119 ld_shlibs_F77=no
14122 bsdi4*)
14123 export_dynamic_flag_spec_F77=-rdynamic
14126 cygwin* | mingw* | pw32*)
14127 # When not using gcc, we currently assume that we are using
14128 # Microsoft Visual C++.
14129 # hardcode_libdir_flag_spec is actually meaningless, as there is
14130 # no search path for DLLs.
14131 hardcode_libdir_flag_spec_F77=' '
14132 allow_undefined_flag_F77=unsupported
14133 # Tell ltmain to make .lib files, not .a files.
14134 libext=lib
14135 # Tell ltmain to make .dll files, not .so files.
14136 shrext=".dll"
14137 # FIXME: Setting linknames here is a bad hack.
14138 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14139 # The linker will automatically build a .lib file if we build a DLL.
14140 old_archive_From_new_cmds_F77='true'
14141 # FIXME: Should let the user specify the lib program.
14142 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14143 fix_srcfile_path='`cygpath -w "$srcfile"`'
14144 enable_shared_with_static_runtimes_F77=yes
14147 darwin* | rhapsody*)
14148 if test "$GXX" = yes ; then
14149 archive_cmds_need_lc_F77=no
14150 case "$host_os" in
14151 rhapsody* | darwin1.[012])
14152 allow_undefined_flag_F77='-undefined suppress'
14154 *) # Darwin 1.3 on
14155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14156 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14157 else
14158 case ${MACOSX_DEPLOYMENT_TARGET} in
14159 10.[012])
14160 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14162 10.*)
14163 allow_undefined_flag_F77='-undefined dynamic_lookup'
14165 esac
14168 esac
14169 lt_int_apple_cc_single_mod=no
14170 output_verbose_link_cmd='echo'
14171 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14172 lt_int_apple_cc_single_mod=yes
14174 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14175 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14176 else
14177 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'
14179 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14181 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14182 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}'
14183 else
14184 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}'
14186 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}'
14187 hardcode_direct_F77=no
14188 hardcode_automatic_F77=yes
14189 hardcode_shlibpath_var_F77=unsupported
14190 whole_archive_flag_spec_F77='-all_load $convenience'
14191 link_all_deplibs_F77=yes
14192 else
14193 ld_shlibs_F77=no
14197 dgux*)
14198 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14199 hardcode_libdir_flag_spec_F77='-L$libdir'
14200 hardcode_shlibpath_var_F77=no
14203 freebsd1*)
14204 ld_shlibs_F77=no
14207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14208 # support. Future versions do this automatically, but an explicit c++rt0.o
14209 # does not break anything, and helps significantly (at the cost of a little
14210 # extra space).
14211 freebsd2.2*)
14212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14213 hardcode_libdir_flag_spec_F77='-R$libdir'
14214 hardcode_direct_F77=yes
14215 hardcode_shlibpath_var_F77=no
14218 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14219 freebsd2*)
14220 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14221 hardcode_direct_F77=yes
14222 hardcode_minus_L_F77=yes
14223 hardcode_shlibpath_var_F77=no
14226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14227 freebsd* | kfreebsd*-gnu)
14228 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14229 hardcode_libdir_flag_spec_F77='-R$libdir'
14230 hardcode_direct_F77=yes
14231 hardcode_shlibpath_var_F77=no
14234 hpux9*)
14235 if test "$GCC" = yes; then
14236 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'
14237 else
14238 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'
14240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14241 hardcode_libdir_separator_F77=:
14242 hardcode_direct_F77=yes
14244 # hardcode_minus_L: Not really in the search PATH,
14245 # but as the default location of the library.
14246 hardcode_minus_L_F77=yes
14247 export_dynamic_flag_spec_F77='${wl}-E'
14250 hpux10* | hpux11*)
14251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14252 case "$host_cpu" in
14253 hppa*64*|ia64*)
14254 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14257 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14259 esac
14260 else
14261 case "$host_cpu" in
14262 hppa*64*|ia64*)
14263 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14266 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14268 esac
14270 if test "$with_gnu_ld" = no; then
14271 case "$host_cpu" in
14272 hppa*64*)
14273 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14274 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14275 hardcode_libdir_separator_F77=:
14276 hardcode_direct_F77=no
14277 hardcode_shlibpath_var_F77=no
14279 ia64*)
14280 hardcode_libdir_flag_spec_F77='-L$libdir'
14281 hardcode_direct_F77=no
14282 hardcode_shlibpath_var_F77=no
14284 # hardcode_minus_L: Not really in the search PATH,
14285 # but as the default location of the library.
14286 hardcode_minus_L_F77=yes
14289 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14290 hardcode_libdir_separator_F77=:
14291 hardcode_direct_F77=yes
14292 export_dynamic_flag_spec_F77='${wl}-E'
14294 # hardcode_minus_L: Not really in the search PATH,
14295 # but as the default location of the library.
14296 hardcode_minus_L_F77=yes
14298 esac
14302 irix5* | irix6* | nonstopux*)
14303 if test "$GCC" = yes; then
14304 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'
14305 else
14306 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'
14307 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14309 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14310 hardcode_libdir_separator_F77=:
14311 link_all_deplibs_F77=yes
14314 netbsd*)
14315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14316 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14317 else
14318 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14320 hardcode_libdir_flag_spec_F77='-R$libdir'
14321 hardcode_direct_F77=yes
14322 hardcode_shlibpath_var_F77=no
14325 newsos6)
14326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327 hardcode_direct_F77=yes
14328 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14329 hardcode_libdir_separator_F77=:
14330 hardcode_shlibpath_var_F77=no
14333 openbsd*)
14334 hardcode_direct_F77=yes
14335 hardcode_shlibpath_var_F77=no
14336 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14337 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14338 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14339 export_dynamic_flag_spec_F77='${wl}-E'
14340 else
14341 case $host_os in
14342 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14343 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14344 hardcode_libdir_flag_spec_F77='-R$libdir'
14347 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14348 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14350 esac
14354 os2*)
14355 hardcode_libdir_flag_spec_F77='-L$libdir'
14356 hardcode_minus_L_F77=yes
14357 allow_undefined_flag_F77=unsupported
14358 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'
14359 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14362 osf3*)
14363 if test "$GCC" = yes; then
14364 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14365 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'
14366 else
14367 allow_undefined_flag_F77=' -expect_unresolved \*'
14368 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'
14370 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14371 hardcode_libdir_separator_F77=:
14374 osf4* | osf5*) # as osf3* with the addition of -msym flag
14375 if test "$GCC" = yes; then
14376 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14377 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'
14378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14379 else
14380 allow_undefined_flag_F77=' -expect_unresolved \*'
14381 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'
14382 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~
14383 $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'
14385 # Both c and cxx compiler support -rpath directly
14386 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14388 hardcode_libdir_separator_F77=:
14391 sco3.2v5*)
14392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14393 hardcode_shlibpath_var_F77=no
14394 export_dynamic_flag_spec_F77='${wl}-Bexport'
14395 runpath_var=LD_RUN_PATH
14396 hardcode_runpath_var=yes
14399 solaris*)
14400 no_undefined_flag_F77=' -z text'
14401 if test "$GCC" = yes; then
14402 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14404 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14405 else
14406 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14407 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14408 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14410 hardcode_libdir_flag_spec_F77='-R$libdir'
14411 hardcode_shlibpath_var_F77=no
14412 case $host_os in
14413 solaris2.[0-5] | solaris2.[0-5].*) ;;
14414 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14415 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14416 esac
14417 link_all_deplibs_F77=yes
14420 sunos4*)
14421 if test "x$host_vendor" = xsequent; then
14422 # Use $CC to link under sequent, because it throws in some extra .o
14423 # files that make .init and .fini sections work.
14424 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14425 else
14426 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14428 hardcode_libdir_flag_spec_F77='-L$libdir'
14429 hardcode_direct_F77=yes
14430 hardcode_minus_L_F77=yes
14431 hardcode_shlibpath_var_F77=no
14434 sysv4)
14435 case $host_vendor in
14436 sni)
14437 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14438 hardcode_direct_F77=yes # is this really true???
14440 siemens)
14441 ## LD is ld it makes a PLAMLIB
14442 ## CC just makes a GrossModule.
14443 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14444 reload_cmds_F77='$CC -r -o $output$reload_objs'
14445 hardcode_direct_F77=no
14447 motorola)
14448 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14449 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14451 esac
14452 runpath_var='LD_RUN_PATH'
14453 hardcode_shlibpath_var_F77=no
14456 sysv4.3*)
14457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_shlibpath_var_F77=no
14459 export_dynamic_flag_spec_F77='-Bexport'
14462 sysv4*MP*)
14463 if test -d /usr/nec; then
14464 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14465 hardcode_shlibpath_var_F77=no
14466 runpath_var=LD_RUN_PATH
14467 hardcode_runpath_var=yes
14468 ld_shlibs_F77=yes
14472 sysv4.2uw2*)
14473 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_direct_F77=yes
14475 hardcode_minus_L_F77=no
14476 hardcode_shlibpath_var_F77=no
14477 hardcode_runpath_var=yes
14478 runpath_var=LD_RUN_PATH
14481 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14482 no_undefined_flag_F77='${wl}-z ${wl}text'
14483 if test "$GCC" = yes; then
14484 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 else
14486 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 runpath_var='LD_RUN_PATH'
14489 hardcode_shlibpath_var_F77=no
14492 sysv5*)
14493 no_undefined_flag_F77=' -z text'
14494 # $CC -shared without GNU ld will not create a library from C++
14495 # object files and a static libstdc++, better avoid it by now
14496 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14497 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14499 hardcode_libdir_flag_spec_F77=
14500 hardcode_shlibpath_var_F77=no
14501 runpath_var='LD_RUN_PATH'
14504 uts4*)
14505 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506 hardcode_libdir_flag_spec_F77='-L$libdir'
14507 hardcode_shlibpath_var_F77=no
14511 ld_shlibs_F77=no
14513 esac
14516 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14517 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14518 test "$ld_shlibs_F77" = no && can_build_shared=no
14520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14521 if test "$GCC" = yes; then
14522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14526 # Do we need to explicitly link libc?
14528 case "x$archive_cmds_need_lc_F77" in
14529 x|xyes)
14530 # Assume -lc should be added
14531 archive_cmds_need_lc_F77=yes
14533 if test "$enable_shared" = yes && test "$GCC" = yes; then
14534 case $archive_cmds_F77 in
14535 *'~'*)
14536 # FIXME: we may have to deal with multi-command sequences.
14538 '$CC '*)
14539 # Test whether the compiler implicitly links with -lc since on some
14540 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14541 # to ld, don't add -lc before -lgcc.
14542 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14544 $rm conftest*
14545 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548 (eval $ac_compile) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } 2>conftest.err; then
14552 soname=conftest
14553 lib=conftest
14554 libobjs=conftest.$ac_objext
14555 deplibs=
14556 wl=$lt_prog_compiler_wl_F77
14557 compiler_flags=-v
14558 linker_flags=-v
14559 verstring=
14560 output_objdir=.
14561 libname=conftest
14562 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14563 allow_undefined_flag_F77=
14564 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14565 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }
14569 then
14570 archive_cmds_need_lc_F77=no
14571 else
14572 archive_cmds_need_lc_F77=yes
14574 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14575 else
14576 cat conftest.err 1>&5
14578 $rm conftest*
14579 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14580 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14582 esac
14585 esac
14587 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14589 library_names_spec=
14590 libname_spec='lib$name'
14591 soname_spec=
14592 shrext=".so"
14593 postinstall_cmds=
14594 postuninstall_cmds=
14595 finish_cmds=
14596 finish_eval=
14597 shlibpath_var=
14598 shlibpath_overrides_runpath=unknown
14599 version_type=none
14600 dynamic_linker="$host_os ld.so"
14601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14602 if test "$GCC" = yes; then
14603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14604 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14605 # if the path contains ";" then we assume it to be the separator
14606 # otherwise default to the standard path separator (i.e. ":") - it is
14607 # assumed that no part of a normal pathname contains ";" but that should
14608 # okay in the real world where ";" in dirpaths is itself problematic.
14609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14610 else
14611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14613 else
14614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14616 need_lib_prefix=unknown
14617 hardcode_into_libs=no
14619 # when you set need_version to no, make sure it does not cause -set_version
14620 # flags to be left without arguments
14621 need_version=unknown
14623 case $host_os in
14624 aix3*)
14625 version_type=linux
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14627 shlibpath_var=LIBPATH
14629 # AIX 3 has no versioning support, so we append a major version to the name.
14630 soname_spec='${libname}${release}${shared_ext}$major'
14633 aix4* | aix5*)
14634 version_type=linux
14635 need_lib_prefix=no
14636 need_version=no
14637 hardcode_into_libs=yes
14638 if test "$host_cpu" = ia64; then
14639 # AIX 5 supports IA64
14640 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 else
14643 # With GCC up to 2.95.x, collect2 would create an import file
14644 # for dependence libraries. The import file would start with
14645 # the line `#! .'. This would cause the generated library to
14646 # depend on `.', always an invalid library. This was fixed in
14647 # development snapshots of GCC prior to 3.0.
14648 case $host_os in
14649 aix4 | aix4.[01] | aix4.[01].*)
14650 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14651 echo ' yes '
14652 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14654 else
14655 can_build_shared=no
14658 esac
14659 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14660 # soname into executable. Probably we can add versioning support to
14661 # collect2, so additional links can be useful in future.
14662 if test "$aix_use_runtimelinking" = yes; then
14663 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14664 # instead of lib<name>.a to let people know that these are not
14665 # typical AIX shared libraries.
14666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14667 else
14668 # We preserve .a as extension for shared libraries through AIX4.2
14669 # and later when we are not doing run time linking.
14670 library_names_spec='${libname}${release}.a $libname.a'
14671 soname_spec='${libname}${release}${shared_ext}$major'
14673 shlibpath_var=LIBPATH
14677 amigaos*)
14678 library_names_spec='$libname.ixlibrary $libname.a'
14679 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14680 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'
14683 beos*)
14684 library_names_spec='${libname}${shared_ext}'
14685 dynamic_linker="$host_os ld.so"
14686 shlibpath_var=LIBRARY_PATH
14689 bsdi4*)
14690 version_type=linux
14691 need_version=no
14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14693 soname_spec='${libname}${release}${shared_ext}$major'
14694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14698 # the default ld.so.conf also contains /usr/contrib/lib and
14699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14700 # libtool to hard-code these into programs
14703 cygwin* | mingw* | pw32*)
14704 version_type=windows
14705 shrext=".dll"
14706 need_version=no
14707 need_lib_prefix=no
14709 case $GCC,$host_os in
14710 yes,cygwin* | yes,mingw* | yes,pw32*)
14711 library_names_spec='$libname.dll.a'
14712 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14713 postinstall_cmds='base_file=`basename \${file}`~
14714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14715 dldir=$destdir/`dirname \$dlpath`~
14716 test -d \$dldir || mkdir -p \$dldir~
14717 $install_prog $dir/$dlname \$dldir/$dlname'
14718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14719 dlpath=$dir/\$dldll~
14720 $rm \$dlpath'
14721 shlibpath_overrides_runpath=yes
14723 case $host_os in
14724 cygwin*)
14725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14729 mingw*)
14730 # MinGW DLLs use traditional 'lib' prefix
14731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14733 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14734 # It is most probably a Windows format PATH printed by
14735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14736 # path with ; separators, and with drive letters. We can handle the
14737 # drive letters (cygwin fileutils understands them), so leave them,
14738 # especially as we might pass files found there to a mingw objdump,
14739 # which wouldn't understand a cygwinified path. Ahh.
14740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14741 else
14742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14745 pw32*)
14746 # pw32 DLLs use 'pw' prefix rather than 'lib'
14747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14749 esac
14753 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14755 esac
14756 dynamic_linker='Win32 ld.exe'
14757 # FIXME: first we should search . and the directory the executable is in
14758 shlibpath_var=PATH
14761 darwin* | rhapsody*)
14762 dynamic_linker="$host_os dyld"
14763 version_type=darwin
14764 need_lib_prefix=no
14765 need_version=no
14766 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14767 soname_spec='${libname}${release}${major}$shared_ext'
14768 shlibpath_overrides_runpath=yes
14769 shlibpath_var=DYLD_LIBRARY_PATH
14770 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14771 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14772 if test "$GCC" = yes; then
14773 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"`
14774 else
14775 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14777 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14780 dgux*)
14781 version_type=linux
14782 need_lib_prefix=no
14783 need_version=no
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14789 freebsd1*)
14790 dynamic_linker=no
14793 kfreebsd*-gnu)
14794 version_type=linux
14795 need_lib_prefix=no
14796 need_version=no
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=no
14801 hardcode_into_libs=yes
14802 dynamic_linker='GNU ld.so'
14805 freebsd*)
14806 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14807 version_type=freebsd-$objformat
14808 case $version_type in
14809 freebsd-elf*)
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14811 need_version=no
14812 need_lib_prefix=no
14814 freebsd-*)
14815 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14816 need_version=yes
14818 esac
14819 shlibpath_var=LD_LIBRARY_PATH
14820 case $host_os in
14821 freebsd2*)
14822 shlibpath_overrides_runpath=yes
14824 freebsd3.01* | freebsdelf3.01*)
14825 shlibpath_overrides_runpath=yes
14826 hardcode_into_libs=yes
14828 *) # from 3.2 on
14829 shlibpath_overrides_runpath=no
14830 hardcode_into_libs=yes
14832 esac
14835 gnu*)
14836 version_type=linux
14837 need_lib_prefix=no
14838 need_version=no
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 hardcode_into_libs=yes
14845 hpux9* | hpux10* | hpux11*)
14846 # Give a soname corresponding to the major version so that dld.sl refuses to
14847 # link against other versions.
14848 version_type=sunos
14849 need_lib_prefix=no
14850 need_version=no
14851 case "$host_cpu" in
14852 ia64*)
14853 shrext='.so'
14854 hardcode_into_libs=yes
14855 dynamic_linker="$host_os dld.so"
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859 soname_spec='${libname}${release}${shared_ext}$major'
14860 if test "X$HPUX_IA64_MODE" = X32; then
14861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14862 else
14863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14867 hppa*64*)
14868 shrext='.sl'
14869 hardcode_into_libs=yes
14870 dynamic_linker="$host_os dld.sl"
14871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14879 shrext='.sl'
14880 dynamic_linker="$host_os dld.sl"
14881 shlibpath_var=SHLIB_PATH
14882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884 soname_spec='${libname}${release}${shared_ext}$major'
14886 esac
14887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14888 postinstall_cmds='chmod 555 $lib'
14891 irix5* | irix6* | nonstopux*)
14892 case $host_os in
14893 nonstopux*) version_type=nonstopux ;;
14895 if test "$lt_cv_prog_gnu_ld" = yes; then
14896 version_type=linux
14897 else
14898 version_type=irix
14899 fi ;;
14900 esac
14901 need_lib_prefix=no
14902 need_version=no
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14905 case $host_os in
14906 irix5* | nonstopux*)
14907 libsuff= shlibsuff=
14910 case $LD in # libtool.m4 will add one of these switches to LD
14911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14912 libsuff= shlibsuff= libmagic=32-bit;;
14913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14914 libsuff=32 shlibsuff=N32 libmagic=N32;;
14915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14917 *) libsuff= shlibsuff= libmagic=never-match;;
14918 esac
14920 esac
14921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14922 shlibpath_overrides_runpath=no
14923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14925 hardcode_into_libs=yes
14928 # No shared lib support for Linux oldld, aout, or coff.
14929 linux*oldld* | linux*aout* | linux*coff*)
14930 dynamic_linker=no
14933 # This must be Linux ELF.
14934 linux*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14939 soname_spec='${libname}${release}${shared_ext}$major'
14940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=no
14943 # This implies no fast_install, which is unacceptable.
14944 # Some rework will be needed to allow for fast_install
14945 # before this can be enabled.
14946 hardcode_into_libs=yes
14948 # We used to test for /lib/ld.so.1 and disable shared libraries on
14949 # powerpc, because MkLinux only supported shared libraries with the
14950 # GNU dynamic linker. Since this was broken with cross compilers,
14951 # most powerpc-linux boxes support dynamic linking these days and
14952 # people can always --disable-shared, the test was removed, and we
14953 # assume the GNU/Linux dynamic linker is in use.
14954 dynamic_linker='GNU/Linux ld.so'
14957 netbsd*)
14958 version_type=sunos
14959 need_lib_prefix=no
14960 need_version=no
14961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14964 dynamic_linker='NetBSD (a.out) ld.so'
14965 else
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 dynamic_linker='NetBSD ld.elf_so'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 shlibpath_overrides_runpath=yes
14972 hardcode_into_libs=yes
14975 newsos6)
14976 version_type=linux
14977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978 shlibpath_var=LD_LIBRARY_PATH
14979 shlibpath_overrides_runpath=yes
14982 nto-qnx*)
14983 version_type=linux
14984 need_lib_prefix=no
14985 need_version=no
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 soname_spec='${libname}${release}${shared_ext}$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14989 shlibpath_overrides_runpath=yes
14992 openbsd*)
14993 version_type=sunos
14994 need_lib_prefix=no
14995 need_version=no
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14997 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15000 case $host_os in
15001 openbsd2.[89] | openbsd2.[89].*)
15002 shlibpath_overrides_runpath=no
15005 shlibpath_overrides_runpath=yes
15007 esac
15008 else
15009 shlibpath_overrides_runpath=yes
15013 os2*)
15014 libname_spec='$name'
15015 shrext=".dll"
15016 need_lib_prefix=no
15017 library_names_spec='$libname${shared_ext} $libname.a'
15018 dynamic_linker='OS/2 ld.exe'
15019 shlibpath_var=LIBPATH
15022 osf3* | osf4* | osf5*)
15023 version_type=osf
15024 need_lib_prefix=no
15025 need_version=no
15026 soname_spec='${libname}${release}${shared_ext}$major'
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15030 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15033 sco3.2v5*)
15034 version_type=osf
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037 shlibpath_var=LD_LIBRARY_PATH
15040 solaris*)
15041 version_type=linux
15042 need_lib_prefix=no
15043 need_version=no
15044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15045 soname_spec='${libname}${release}${shared_ext}$major'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 shlibpath_overrides_runpath=yes
15048 hardcode_into_libs=yes
15049 # ldd complains unless libraries are executable
15050 postinstall_cmds='chmod +x $lib'
15053 sunos4*)
15054 version_type=sunos
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15057 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15059 if test "$with_gnu_ld" = yes; then
15060 need_lib_prefix=no
15062 need_version=yes
15065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15066 version_type=linux
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 shlibpath_var=LD_LIBRARY_PATH
15070 case $host_vendor in
15071 sni)
15072 shlibpath_overrides_runpath=no
15073 need_lib_prefix=no
15074 export_dynamic_flag_spec='${wl}-Blargedynsym'
15075 runpath_var=LD_RUN_PATH
15077 siemens)
15078 need_lib_prefix=no
15080 motorola)
15081 need_lib_prefix=no
15082 need_version=no
15083 shlibpath_overrides_runpath=no
15084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15086 esac
15089 sysv4*MP*)
15090 if test -d /usr/nec ;then
15091 version_type=linux
15092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15093 soname_spec='$libname${shared_ext}.$major'
15094 shlibpath_var=LD_LIBRARY_PATH
15098 uts4*)
15099 version_type=linux
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101 soname_spec='${libname}${release}${shared_ext}$major'
15102 shlibpath_var=LD_LIBRARY_PATH
15106 dynamic_linker=no
15108 esac
15109 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15110 echo "${ECHO_T}$dynamic_linker" >&6; }
15111 test "$dynamic_linker" = no && can_build_shared=no
15113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15115 hardcode_action_F77=
15116 if test -n "$hardcode_libdir_flag_spec_F77" || \
15117 test -n "$runpath_var F77" || \
15118 test "X$hardcode_automatic_F77"="Xyes" ; then
15120 # We can hardcode non-existant directories.
15121 if test "$hardcode_direct_F77" != no &&
15122 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15123 # have to relink, otherwise we might link with an installed library
15124 # when we should be linking with a yet-to-be-installed one
15125 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15126 test "$hardcode_minus_L_F77" != no; then
15127 # Linking always hardcodes the temporary library directory.
15128 hardcode_action_F77=relink
15129 else
15130 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15131 hardcode_action_F77=immediate
15133 else
15134 # We cannot hardcode anything, or else we can only hardcode existing
15135 # directories.
15136 hardcode_action_F77=unsupported
15138 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15139 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15141 if test "$hardcode_action_F77" = relink; then
15142 # Fast installation is not supported
15143 enable_fast_install=no
15144 elif test "$shlibpath_overrides_runpath" = yes ||
15145 test "$enable_shared" = no; then
15146 # Fast installation is not necessary
15147 enable_fast_install=needless
15150 striplib=
15151 old_striplib=
15152 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15153 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15155 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15156 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15157 { echo "$as_me:$LINENO: result: yes" >&5
15158 echo "${ECHO_T}yes" >&6; }
15159 else
15160 # FIXME - insert some real tests, host_os isn't really good enough
15161 case $host_os in
15162 darwin*)
15163 if test -n "$STRIP" ; then
15164 striplib="$STRIP -x"
15165 { echo "$as_me:$LINENO: result: yes" >&5
15166 echo "${ECHO_T}yes" >&6; }
15167 else
15168 { echo "$as_me:$LINENO: result: no" >&5
15169 echo "${ECHO_T}no" >&6; }
15173 { echo "$as_me:$LINENO: result: no" >&5
15174 echo "${ECHO_T}no" >&6; }
15176 esac
15181 # The else clause should only fire when bootstrapping the
15182 # libtool distribution, otherwise you forgot to ship ltmain.sh
15183 # with your package, and you will get complaints that there are
15184 # no rules to generate ltmain.sh.
15185 if test -f "$ltmain"; then
15186 # See if we are running on zsh, and set the options which allow our commands through
15187 # without removal of \ escapes.
15188 if test -n "${ZSH_VERSION+set}" ; then
15189 setopt NO_GLOB_SUBST
15191 # Now quote all the things that may contain metacharacters while being
15192 # careful not to overquote the AC_SUBSTed values. We take copies of the
15193 # variables and quote the copies for generation of the libtool script.
15194 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15197 deplibs_check_method reload_flag reload_cmds need_locks \
15198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15199 lt_cv_sys_global_symbol_to_c_name_address \
15200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15201 old_postinstall_cmds old_postuninstall_cmds \
15202 compiler_F77 \
15203 CC_F77 \
15204 LD_F77 \
15205 lt_prog_compiler_wl_F77 \
15206 lt_prog_compiler_pic_F77 \
15207 lt_prog_compiler_static_F77 \
15208 lt_prog_compiler_no_builtin_flag_F77 \
15209 export_dynamic_flag_spec_F77 \
15210 thread_safe_flag_spec_F77 \
15211 whole_archive_flag_spec_F77 \
15212 enable_shared_with_static_runtimes_F77 \
15213 old_archive_cmds_F77 \
15214 old_archive_from_new_cmds_F77 \
15215 predep_objects_F77 \
15216 postdep_objects_F77 \
15217 predeps_F77 \
15218 postdeps_F77 \
15219 compiler_lib_search_path_F77 \
15220 archive_cmds_F77 \
15221 archive_expsym_cmds_F77 \
15222 postinstall_cmds_F77 \
15223 postuninstall_cmds_F77 \
15224 old_archive_from_expsyms_cmds_F77 \
15225 allow_undefined_flag_F77 \
15226 no_undefined_flag_F77 \
15227 export_symbols_cmds_F77 \
15228 hardcode_libdir_flag_spec_F77 \
15229 hardcode_libdir_flag_spec_ld_F77 \
15230 hardcode_libdir_separator_F77 \
15231 hardcode_automatic_F77 \
15232 module_cmds_F77 \
15233 module_expsym_cmds_F77 \
15234 lt_cv_prog_compiler_c_o_F77 \
15235 exclude_expsyms_F77 \
15236 include_expsyms_F77; do
15238 case $var in
15239 old_archive_cmds_F77 | \
15240 old_archive_from_new_cmds_F77 | \
15241 archive_cmds_F77 | \
15242 archive_expsym_cmds_F77 | \
15243 module_cmds_F77 | \
15244 module_expsym_cmds_F77 | \
15245 old_archive_from_expsyms_cmds_F77 | \
15246 export_symbols_cmds_F77 | \
15247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15248 postinstall_cmds | postuninstall_cmds | \
15249 old_postinstall_cmds | old_postuninstall_cmds | \
15250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15251 # Double-quote double-evaled strings.
15252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15257 esac
15258 done
15260 case $lt_echo in
15261 *'\$0 --fallback-echo"')
15262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15264 esac
15266 cfgfile="$ofile"
15268 cat <<__EOF__ >> "$cfgfile"
15269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15273 # Shell to use when invoking shell scripts.
15274 SHELL=$lt_SHELL
15276 # Whether or not to build shared libraries.
15277 build_libtool_libs=$enable_shared
15279 # Whether or not to build static libraries.
15280 build_old_libs=$enable_static
15282 # Whether or not to add -lc for building shared libraries.
15283 build_libtool_need_lc=$archive_cmds_need_lc_F77
15285 # Whether or not to disallow shared libs when runtime libs are static
15286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15288 # Whether or not to optimize for fast installation.
15289 fast_install=$enable_fast_install
15291 # The host system.
15292 host_alias=$host_alias
15293 host=$host
15295 # An echo program that does not interpret backslashes.
15296 echo=$lt_echo
15298 # The archiver.
15299 AR=$lt_AR
15300 AR_FLAGS=$lt_AR_FLAGS
15302 # A C compiler.
15303 LTCC=$lt_LTCC
15305 # A language-specific compiler.
15306 CC=$lt_compiler_F77
15308 # Is the compiler the GNU C compiler?
15309 with_gcc=$GCC_F77
15311 # An ERE matcher.
15312 EGREP=$lt_EGREP
15314 # The linker used to build libraries.
15315 LD=$lt_LD_F77
15317 # Whether we need hard or soft links.
15318 LN_S=$lt_LN_S
15320 # A BSD-compatible nm program.
15321 NM=$lt_NM
15323 # A symbol stripping program
15324 STRIP="$STRIP"
15326 # Used to examine libraries when file_magic_cmd begins "file"
15327 MAGIC_CMD=$MAGIC_CMD
15329 # Used on cygwin: DLL creation program.
15330 DLLTOOL="$DLLTOOL"
15332 # Used on cygwin: object dumper.
15333 OBJDUMP="$OBJDUMP"
15335 # Used on cygwin: assembler.
15336 AS="$AS"
15338 # The name of the directory that contains temporary libtool files.
15339 objdir=$objdir
15341 # How to create reloadable object files.
15342 reload_flag=$lt_reload_flag
15343 reload_cmds=$lt_reload_cmds
15345 # How to pass a linker flag through the compiler.
15346 wl=$lt_lt_prog_compiler_wl_F77
15348 # Object file suffix (normally "o").
15349 objext="$ac_objext"
15351 # Old archive suffix (normally "a").
15352 libext="$libext"
15354 # Shared library suffix (normally ".so").
15355 shrext='$shrext'
15357 # Executable file suffix (normally "").
15358 exeext="$exeext"
15360 # Additional compiler flags for building library objects.
15361 pic_flag=$lt_lt_prog_compiler_pic_F77
15362 pic_mode=$pic_mode
15364 # What is the maximum length of a command?
15365 max_cmd_len=$lt_cv_sys_max_cmd_len
15367 # Does compiler simultaneously support -c and -o options?
15368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15370 # Must we lock files when doing compilation ?
15371 need_locks=$lt_need_locks
15373 # Do we need the lib prefix for modules?
15374 need_lib_prefix=$need_lib_prefix
15376 # Do we need a version for libraries?
15377 need_version=$need_version
15379 # Whether dlopen is supported.
15380 dlopen_support=$enable_dlopen
15382 # Whether dlopen of programs is supported.
15383 dlopen_self=$enable_dlopen_self
15385 # Whether dlopen of statically linked programs is supported.
15386 dlopen_self_static=$enable_dlopen_self_static
15388 # Compiler flag to prevent dynamic linking.
15389 link_static_flag=$lt_lt_prog_compiler_static_F77
15391 # Compiler flag to turn off builtin functions.
15392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15394 # Compiler flag to allow reflexive dlopens.
15395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15397 # Compiler flag to generate shared objects directly from archives.
15398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15400 # Compiler flag to generate thread-safe objects.
15401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15403 # Library versioning type.
15404 version_type=$version_type
15406 # Format of library name prefix.
15407 libname_spec=$lt_libname_spec
15409 # List of archive names. First name is the real one, the rest are links.
15410 # The last name is the one that the linker finds with -lNAME.
15411 library_names_spec=$lt_library_names_spec
15413 # The coded name of the library, if different from the real name.
15414 soname_spec=$lt_soname_spec
15416 # Commands used to build and install an old-style archive.
15417 RANLIB=$lt_RANLIB
15418 old_archive_cmds=$lt_old_archive_cmds_F77
15419 old_postinstall_cmds=$lt_old_postinstall_cmds
15420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15422 # Create an old-style archive from a shared archive.
15423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15425 # Create a temporary old-style archive to link instead of a shared archive.
15426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15428 # Commands used to build and install a shared archive.
15429 archive_cmds=$lt_archive_cmds_F77
15430 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15431 postinstall_cmds=$lt_postinstall_cmds
15432 postuninstall_cmds=$lt_postuninstall_cmds
15434 # Commands used to build a loadable module (assumed same as above if empty)
15435 module_cmds=$lt_module_cmds_F77
15436 module_expsym_cmds=$lt_module_expsym_cmds_F77
15438 # Commands to strip libraries.
15439 old_striplib=$lt_old_striplib
15440 striplib=$lt_striplib
15442 # Dependencies to place before the objects being linked to create a
15443 # shared library.
15444 predep_objects=$lt_predep_objects_F77
15446 # Dependencies to place after the objects being linked to create a
15447 # shared library.
15448 postdep_objects=$lt_postdep_objects_F77
15450 # Dependencies to place before the objects being linked to create a
15451 # shared library.
15452 predeps=$lt_predeps_F77
15454 # Dependencies to place after the objects being linked to create a
15455 # shared library.
15456 postdeps=$lt_postdeps_F77
15458 # The library search path used internally by the compiler when linking
15459 # a shared library.
15460 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15462 # Method to check whether dependent libraries are shared objects.
15463 deplibs_check_method=$lt_deplibs_check_method
15465 # Command to use when deplibs_check_method == file_magic.
15466 file_magic_cmd=$lt_file_magic_cmd
15468 # Flag that allows shared libraries with undefined symbols to be built.
15469 allow_undefined_flag=$lt_allow_undefined_flag_F77
15471 # Flag that forces no undefined symbols.
15472 no_undefined_flag=$lt_no_undefined_flag_F77
15474 # Commands used to finish a libtool library installation in a directory.
15475 finish_cmds=$lt_finish_cmds
15477 # Same as above, but a single script fragment to be evaled but not shown.
15478 finish_eval=$lt_finish_eval
15480 # Take the output of nm and produce a listing of raw symbols and C names.
15481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15483 # Transform the output of nm in a proper C declaration
15484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15486 # Transform the output of nm in a C name address pair
15487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15489 # This is the shared library runtime path variable.
15490 runpath_var=$runpath_var
15492 # This is the shared library path variable.
15493 shlibpath_var=$shlibpath_var
15495 # Is shlibpath searched before the hard-coded library search path?
15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15498 # How to hardcode a shared library path into an executable.
15499 hardcode_action=$hardcode_action_F77
15501 # Whether we should hardcode library paths into libraries.
15502 hardcode_into_libs=$hardcode_into_libs
15504 # Flag to hardcode \$libdir into a binary during linking.
15505 # This must work even if \$libdir does not exist.
15506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15508 # If ld is used when linking, flag to hardcode \$libdir into
15509 # a binary during linking. This must work even if \$libdir does
15510 # not exist.
15511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15513 # Whether we need a single -rpath flag with a separated argument.
15514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15517 # resulting binary.
15518 hardcode_direct=$hardcode_direct_F77
15520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15521 # resulting binary.
15522 hardcode_minus_L=$hardcode_minus_L_F77
15524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15525 # the resulting binary.
15526 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15528 # Set to yes if building a shared library automatically hardcodes DIR into the library
15529 # and all subsequent libraries and executables linked against it.
15530 hardcode_automatic=$hardcode_automatic_F77
15532 # Variables whose values should be saved in libtool wrapper scripts and
15533 # restored at relink time.
15534 variables_saved_for_relink="$variables_saved_for_relink"
15536 # Whether libtool must link a program against all its dependency libraries.
15537 link_all_deplibs=$link_all_deplibs_F77
15539 # Compile-time system search path for libraries
15540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15542 # Run-time system search path for libraries
15543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15545 # Fix the shell variable \$srcfile for the compiler.
15546 fix_srcfile_path="$fix_srcfile_path_F77"
15548 # Set to yes if exported symbols are required.
15549 always_export_symbols=$always_export_symbols_F77
15551 # The commands to list exported symbols.
15552 export_symbols_cmds=$lt_export_symbols_cmds_F77
15554 # The commands to extract the exported symbol list from a shared archive.
15555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15557 # Symbols that should not be listed in the preloaded symbols.
15558 exclude_expsyms=$lt_exclude_expsyms_F77
15560 # Symbols that must always be exported.
15561 include_expsyms=$lt_include_expsyms_F77
15563 # ### END LIBTOOL TAG CONFIG: $tagname
15565 __EOF__
15568 else
15569 # If there is no Makefile yet, we rely on a make rule to execute
15570 # `config.status --recheck' to rerun these tests and create the
15571 # libtool script then.
15572 test -f Makefile && make "$ltmain"
15576 ac_ext=c
15577 ac_cpp='$CPP $CPPFLAGS'
15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15582 CC="$lt_save_CC"
15584 else
15585 tagname=""
15589 GCJ)
15590 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15593 # Source file extension for Java test sources.
15594 ac_ext=java
15596 # Object file extension for compiled Java test sources.
15597 objext=o
15598 objext_GCJ=$objext
15600 # Code to be used in simple compile tests
15601 lt_simple_compile_test_code="class foo {}\n"
15603 # Code to be used in simple link tests
15604 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15608 # If no C compiler was specified, use CC.
15609 LTCC=${LTCC-"$CC"}
15611 # Allow CC to be a program name with arguments.
15612 compiler=$CC
15615 # Allow CC to be a program name with arguments.
15616 lt_save_CC="$CC"
15617 CC=${GCJ-"gcj"}
15618 compiler=$CC
15619 compiler_GCJ=$CC
15621 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15622 archive_cmds_need_lc_GCJ=no
15624 ## CAVEAT EMPTOR:
15625 ## There is no encapsulation within the following macros, do not change
15626 ## the running order or otherwise move them around unless you know exactly
15627 ## what you are doing...
15629 lt_prog_compiler_no_builtin_flag_GCJ=
15631 if test "$GCC" = yes; then
15632 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15635 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15636 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 else
15640 lt_cv_prog_compiler_rtti_exceptions=no
15641 ac_outfile=conftest.$ac_objext
15642 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15643 lt_compiler_flag="-fno-rtti -fno-exceptions"
15644 # Insert the option either (1) after the last *FLAGS variable, or
15645 # (2) before a word containing "conftest.", or (3) at the end.
15646 # Note that $ac_compile itself does not contain backslashes and begins
15647 # with a dollar sign (not a hyphen), so the echo should work correctly.
15648 # The option is referenced via a variable to avoid confusing sed.
15649 lt_compile=`echo "$ac_compile" | $SED \
15650 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15652 -e 's:$: $lt_compiler_flag:'`
15653 (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
15654 (eval "$lt_compile" 2>conftest.err)
15655 ac_status=$?
15656 cat conftest.err >&5
15657 echo "$as_me:15657: \$? = $ac_status" >&5
15658 if (exit $ac_status) && test -s "$ac_outfile"; then
15659 # The compiler can only warn and ignore the option if not recognized
15660 # So say no if there are warnings
15661 if test ! -s conftest.err; then
15662 lt_cv_prog_compiler_rtti_exceptions=yes
15665 $rm conftest*
15668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15669 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15672 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15673 else
15679 lt_prog_compiler_wl_GCJ=
15680 lt_prog_compiler_pic_GCJ=
15681 lt_prog_compiler_static_GCJ=
15683 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15686 if test "$GCC" = yes; then
15687 lt_prog_compiler_wl_GCJ='-Wl,'
15688 lt_prog_compiler_static_GCJ='-static'
15690 case $host_os in
15691 aix*)
15692 # All AIX code is PIC.
15693 if test "$host_cpu" = ia64; then
15694 # AIX 5 now supports IA64 processor
15695 lt_prog_compiler_static_GCJ='-Bstatic'
15699 amigaos*)
15700 # FIXME: we need at least 68020 code to build shared libraries, but
15701 # adding the `-m68020' flag to GCC prevents building anything better,
15702 # like `-m68040'.
15703 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15707 # PIC is the default for these OSes.
15710 mingw* | pw32* | os2*)
15711 # This hack is so that the source file can tell whether it is being
15712 # built for inclusion in a dll (and should export symbols for example).
15713 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15716 darwin* | rhapsody*)
15717 # PIC is the default on this platform
15718 # Common symbols not allowed in MH_DYLIB files
15719 lt_prog_compiler_pic_GCJ='-fno-common'
15722 msdosdjgpp*)
15723 # Just because we use GCC doesn't mean we suddenly get shared libraries
15724 # on systems that don't support them.
15725 lt_prog_compiler_can_build_shared_GCJ=no
15726 enable_shared=no
15729 sysv4*MP*)
15730 if test -d /usr/nec; then
15731 lt_prog_compiler_pic_GCJ=-Kconform_pic
15735 hpux*)
15736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15737 # not for PA HP-UX.
15738 case "$host_cpu" in
15739 hppa*64*|ia64*)
15740 # +Z the default
15743 lt_prog_compiler_pic_GCJ='-fPIC'
15745 esac
15749 lt_prog_compiler_pic_GCJ='-fPIC'
15751 esac
15752 else
15753 # PORTME Check for flag to pass linker flags through the system compiler.
15754 case $host_os in
15755 aix*)
15756 lt_prog_compiler_wl_GCJ='-Wl,'
15757 if test "$host_cpu" = ia64; then
15758 # AIX 5 now supports IA64 processor
15759 lt_prog_compiler_static_GCJ='-Bstatic'
15760 else
15761 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15765 mingw* | pw32* | os2*)
15766 # This hack is so that the source file can tell whether it is being
15767 # built for inclusion in a dll (and should export symbols for example).
15768 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15771 hpux9* | hpux10* | hpux11*)
15772 lt_prog_compiler_wl_GCJ='-Wl,'
15773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15774 # not for PA HP-UX.
15775 case "$host_cpu" in
15776 hppa*64*|ia64*)
15777 # +Z the default
15780 lt_prog_compiler_pic_GCJ='+Z'
15782 esac
15783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15784 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15787 irix5* | irix6* | nonstopux*)
15788 lt_prog_compiler_wl_GCJ='-Wl,'
15789 # PIC (with -KPIC) is the default.
15790 lt_prog_compiler_static_GCJ='-non_shared'
15793 newsos6)
15794 lt_prog_compiler_pic_GCJ='-KPIC'
15795 lt_prog_compiler_static_GCJ='-Bstatic'
15798 linux*)
15799 case $CC in
15800 icc* | ecc*)
15801 lt_prog_compiler_wl_GCJ='-Wl,'
15802 lt_prog_compiler_pic_GCJ='-KPIC'
15803 lt_prog_compiler_static_GCJ='-static'
15805 ccc*)
15806 lt_prog_compiler_wl_GCJ='-Wl,'
15807 # All Alpha code is PIC.
15808 lt_prog_compiler_static_GCJ='-non_shared'
15810 esac
15813 osf3* | osf4* | osf5*)
15814 lt_prog_compiler_wl_GCJ='-Wl,'
15815 # All OSF/1 code is PIC.
15816 lt_prog_compiler_static_GCJ='-non_shared'
15819 sco3.2v5*)
15820 lt_prog_compiler_pic_GCJ='-Kpic'
15821 lt_prog_compiler_static_GCJ='-dn'
15824 solaris*)
15825 lt_prog_compiler_wl_GCJ='-Wl,'
15826 lt_prog_compiler_pic_GCJ='-KPIC'
15827 lt_prog_compiler_static_GCJ='-Bstatic'
15830 sunos4*)
15831 lt_prog_compiler_wl_GCJ='-Qoption ld '
15832 lt_prog_compiler_pic_GCJ='-PIC'
15833 lt_prog_compiler_static_GCJ='-Bstatic'
15836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15837 lt_prog_compiler_wl_GCJ='-Wl,'
15838 lt_prog_compiler_pic_GCJ='-KPIC'
15839 lt_prog_compiler_static_GCJ='-Bstatic'
15842 sysv4*MP*)
15843 if test -d /usr/nec ;then
15844 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15845 lt_prog_compiler_static_GCJ='-Bstatic'
15849 uts4*)
15850 lt_prog_compiler_pic_GCJ='-pic'
15851 lt_prog_compiler_static_GCJ='-Bstatic'
15855 lt_prog_compiler_can_build_shared_GCJ=no
15857 esac
15860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15861 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15864 # Check to make sure the PIC flag actually works.
15866 if test -n "$lt_prog_compiler_pic_GCJ"; then
15868 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15870 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 lt_prog_compiler_pic_works_GCJ=no
15874 ac_outfile=conftest.$ac_objext
15875 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15876 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15877 # Insert the option either (1) after the last *FLAGS variable, or
15878 # (2) before a word containing "conftest.", or (3) at the end.
15879 # Note that $ac_compile itself does not contain backslashes and begins
15880 # with a dollar sign (not a hyphen), so the echo should work correctly.
15881 # The option is referenced via a variable to avoid confusing sed.
15882 lt_compile=`echo "$ac_compile" | $SED \
15883 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15885 -e 's:$: $lt_compiler_flag:'`
15886 (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
15887 (eval "$lt_compile" 2>conftest.err)
15888 ac_status=$?
15889 cat conftest.err >&5
15890 echo "$as_me:15890: \$? = $ac_status" >&5
15891 if (exit $ac_status) && test -s "$ac_outfile"; then
15892 # The compiler can only warn and ignore the option if not recognized
15893 # So say no if there are warnings
15894 if test ! -s conftest.err; then
15895 lt_prog_compiler_pic_works_GCJ=yes
15898 $rm conftest*
15901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15902 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15904 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15905 case $lt_prog_compiler_pic_GCJ in
15906 "" | " "*) ;;
15907 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15908 esac
15909 else
15910 lt_prog_compiler_pic_GCJ=
15911 lt_prog_compiler_can_build_shared_GCJ=no
15915 case "$host_os" in
15916 # For platforms which do not support PIC, -DPIC is meaningless:
15917 *djgpp*)
15918 lt_prog_compiler_pic_GCJ=
15921 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15923 esac
15925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15929 else
15930 lt_cv_prog_compiler_c_o_GCJ=no
15931 $rm -r conftest 2>/dev/null
15932 mkdir conftest
15933 cd conftest
15934 mkdir out
15935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15937 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15938 # that will create temporary files in the current directory regardless of
15939 # the output directory. Thus, making CWD read-only will cause this test
15940 # to fail, enabling locking or at least warning the user not to do parallel
15941 # builds.
15942 chmod -w .
15944 lt_compiler_flag="-o out/conftest2.$ac_objext"
15945 # Insert the option either (1) after the last *FLAGS variable, or
15946 # (2) before a word containing "conftest.", or (3) at the end.
15947 # Note that $ac_compile itself does not contain backslashes and begins
15948 # with a dollar sign (not a hyphen), so the echo should work correctly.
15949 lt_compile=`echo "$ac_compile" | $SED \
15950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15952 -e 's:$: $lt_compiler_flag:'`
15953 (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
15954 (eval "$lt_compile" 2>out/conftest.err)
15955 ac_status=$?
15956 cat out/conftest.err >&5
15957 echo "$as_me:15957: \$? = $ac_status" >&5
15958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15959 then
15960 # The compiler can only warn and ignore the option if not recognized
15961 # So say no if there are warnings
15962 if test ! -s out/conftest.err; then
15963 lt_cv_prog_compiler_c_o_GCJ=yes
15966 chmod u+w .
15967 $rm conftest*
15968 # SGI C++ compiler will create directory out/ii_files/ for
15969 # template instantiation
15970 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15971 $rm out/* && rmdir out
15972 cd ..
15973 rmdir conftest
15974 $rm conftest*
15977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15981 hard_links="nottested"
15982 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15983 # do not overwrite the value of need_locks provided by the user
15984 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15986 hard_links=yes
15987 $rm conftest*
15988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15989 touch conftest.a
15990 ln conftest.a conftest.b 2>&5 || hard_links=no
15991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15992 { echo "$as_me:$LINENO: result: $hard_links" >&5
15993 echo "${ECHO_T}$hard_links" >&6; }
15994 if test "$hard_links" = no; then
15995 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15997 need_locks=warn
15999 else
16000 need_locks=no
16003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16006 runpath_var=
16007 allow_undefined_flag_GCJ=
16008 enable_shared_with_static_runtimes_GCJ=no
16009 archive_cmds_GCJ=
16010 archive_expsym_cmds_GCJ=
16011 old_archive_From_new_cmds_GCJ=
16012 old_archive_from_expsyms_cmds_GCJ=
16013 export_dynamic_flag_spec_GCJ=
16014 whole_archive_flag_spec_GCJ=
16015 thread_safe_flag_spec_GCJ=
16016 hardcode_libdir_flag_spec_GCJ=
16017 hardcode_libdir_flag_spec_ld_GCJ=
16018 hardcode_libdir_separator_GCJ=
16019 hardcode_direct_GCJ=no
16020 hardcode_minus_L_GCJ=no
16021 hardcode_shlibpath_var_GCJ=unsupported
16022 link_all_deplibs_GCJ=unknown
16023 hardcode_automatic_GCJ=no
16024 module_cmds_GCJ=
16025 module_expsym_cmds_GCJ=
16026 always_export_symbols_GCJ=no
16027 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16028 # include_expsyms should be a list of space-separated symbols to be *always*
16029 # included in the symbol list
16030 include_expsyms_GCJ=
16031 # exclude_expsyms can be an extended regexp of symbols to exclude
16032 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16033 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16034 # as well as any symbol that contains `d'.
16035 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16036 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16037 # platforms (ab)use it in PIC code, but their linkers get confused if
16038 # the symbol is explicitly referenced. Since portable code cannot
16039 # rely on this symbol name, it's probably fine to never include it in
16040 # preloaded symbol tables.
16041 extract_expsyms_cmds=
16043 case $host_os in
16044 cygwin* | mingw* | pw32*)
16045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16046 # When not using gcc, we currently assume that we are using
16047 # Microsoft Visual C++.
16048 if test "$GCC" != yes; then
16049 with_gnu_ld=no
16052 openbsd*)
16053 with_gnu_ld=no
16055 esac
16057 ld_shlibs_GCJ=yes
16058 if test "$with_gnu_ld" = yes; then
16059 # If archive_cmds runs LD, not CC, wlarc should be empty
16060 wlarc='${wl}'
16062 # See if GNU ld supports shared libraries.
16063 case $host_os in
16064 aix3* | aix4* | aix5*)
16065 # On AIX/PPC, the GNU linker is very broken
16066 if test "$host_cpu" != ia64; then
16067 ld_shlibs_GCJ=no
16068 cat <<EOF 1>&2
16070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16071 *** to be unable to reliably create shared libraries on AIX.
16072 *** Therefore, libtool is disabling shared libraries support. If you
16073 *** really care for shared libraries, you may want to modify your PATH
16074 *** so that a non-GNU linker is found, and then restart.
16080 amigaos*)
16081 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)'
16082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083 hardcode_minus_L_GCJ=yes
16085 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16086 # that the semantics of dynamic libraries on AmigaOS, at least up
16087 # to version 4, is to share data among multiple programs linked
16088 # with the same dynamic library. Since this doesn't match the
16089 # behavior of shared libraries on other platforms, we can't use
16090 # them.
16091 ld_shlibs_GCJ=no
16094 beos*)
16095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096 allow_undefined_flag_GCJ=unsupported
16097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16098 # support --undefined. This deserves some investigation. FIXME
16099 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100 else
16101 ld_shlibs_GCJ=no
16105 cygwin* | mingw* | pw32*)
16106 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16107 # as there is no search path for DLLs.
16108 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16109 allow_undefined_flag_GCJ=unsupported
16110 always_export_symbols_GCJ=no
16111 enable_shared_with_static_runtimes_GCJ=yes
16112 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16114 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16115 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16116 # If the export-symbols file already is a .def file (1st line
16117 # is EXPORTS), use it as is; otherwise, prepend...
16118 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16119 cp $export_symbols $output_objdir/$soname.def;
16120 else
16121 echo EXPORTS > $output_objdir/$soname.def;
16122 cat $export_symbols >> $output_objdir/$soname.def;
16124 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16125 else
16126 ld_shlibs=no
16130 netbsd*)
16131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16132 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16133 wlarc=
16134 else
16135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16140 solaris* | sysv5*)
16141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16142 ld_shlibs_GCJ=no
16143 cat <<EOF 1>&2
16145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16146 *** create shared libraries on Solaris systems. Therefore, libtool
16147 *** is disabling shared libraries support. We urge you to upgrade GNU
16148 *** binutils to release 2.9.1 or newer. Another option is to modify
16149 *** your PATH or compiler configuration so that the native linker is
16150 *** used, and then restart.
16153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16154 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16155 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16156 else
16157 ld_shlibs_GCJ=no
16161 sunos4*)
16162 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163 wlarc=
16164 hardcode_direct_GCJ=yes
16165 hardcode_shlibpath_var_GCJ=no
16168 linux*)
16169 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16170 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16171 archive_cmds_GCJ="$tmp_archive_cmds"
16172 supports_anon_versioning=no
16173 case `$LD -v 2>/dev/null` in
16174 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16175 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16176 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16177 *\ 2.11.*) ;; # other 2.11 versions
16178 *) supports_anon_versioning=yes ;;
16179 esac
16180 if test $supports_anon_versioning = yes; then
16181 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16183 $echo "local: *; };" >> $output_objdir/$libname.ver~
16184 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16185 else
16186 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16188 else
16189 ld_shlibs_GCJ=no
16194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16195 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16196 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16197 else
16198 ld_shlibs_GCJ=no
16201 esac
16203 if test "$ld_shlibs_GCJ" = yes; then
16204 runpath_var=LD_RUN_PATH
16205 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16206 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16207 # ancient GNU ld didn't support --whole-archive et. al.
16208 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16209 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16210 else
16211 whole_archive_flag_spec_GCJ=
16214 else
16215 # PORTME fill in a description of your system's linker (not GNU ld)
16216 case $host_os in
16217 aix3*)
16218 allow_undefined_flag_GCJ=unsupported
16219 always_export_symbols_GCJ=yes
16220 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'
16221 # Note: this linker hardcodes the directories in LIBPATH if there
16222 # are no directories specified by -L.
16223 hardcode_minus_L_GCJ=yes
16224 if test "$GCC" = yes && test -z "$link_static_flag"; then
16225 # Neither direct hardcoding nor static linking is supported with a
16226 # broken collect2.
16227 hardcode_direct_GCJ=unsupported
16231 aix4* | aix5*)
16232 if test "$host_cpu" = ia64; then
16233 # On IA64, the linker does run time linking by default, so we don't
16234 # have to do anything special.
16235 aix_use_runtimelinking=no
16236 exp_sym_flag='-Bexport'
16237 no_entry_flag=""
16238 else
16239 # If we're using GNU nm, then we don't want the "-C" option.
16240 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16241 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16242 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'
16243 else
16244 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'
16246 aix_use_runtimelinking=no
16248 # Test if we are trying to use run time linking or normal
16249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16250 # need to do runtime linking.
16251 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16252 for ld_flag in $LDFLAGS; do
16253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16254 aix_use_runtimelinking=yes
16255 break
16257 done
16258 esac
16260 exp_sym_flag='-bexport'
16261 no_entry_flag='-bnoentry'
16264 # When large executables or shared objects are built, AIX ld can
16265 # have problems creating the table of contents. If linking a library
16266 # or program results in "error TOC overflow" add -mminimal-toc to
16267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16270 archive_cmds_GCJ=''
16271 hardcode_direct_GCJ=yes
16272 hardcode_libdir_separator_GCJ=':'
16273 link_all_deplibs_GCJ=yes
16275 if test "$GCC" = yes; then
16276 case $host_os in aix4.012|aix4.012.*)
16277 # We only want to do this on AIX 4.2 and lower, the check
16278 # below for broken collect2 doesn't work under 4.3+
16279 collect2name=`${CC} -print-prog-name=collect2`
16280 if test -f "$collect2name" && \
16281 strings "$collect2name" | grep resolve_lib_name >/dev/null
16282 then
16283 # We have reworked collect2
16284 hardcode_direct_GCJ=yes
16285 else
16286 # We have old collect2
16287 hardcode_direct_GCJ=unsupported
16288 # It fails to find uninstalled libraries when the uninstalled
16289 # path is not listed in the libpath. Setting hardcode_minus_L
16290 # to unsupported forces relinking
16291 hardcode_minus_L_GCJ=yes
16292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293 hardcode_libdir_separator_GCJ=
16295 esac
16296 shared_flag='-shared'
16297 else
16298 # not using gcc
16299 if test "$host_cpu" = ia64; then
16300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16301 # chokes on -Wl,-G. The following line is correct:
16302 shared_flag='-G'
16303 else
16304 if test "$aix_use_runtimelinking" = yes; then
16305 shared_flag='${wl}-G'
16306 else
16307 shared_flag='${wl}-bM:SRE'
16312 # It seems that -bexpall does not export symbols beginning with
16313 # underscore (_), so it is better to generate a list of symbols to export.
16314 always_export_symbols_GCJ=yes
16315 if test "$aix_use_runtimelinking" = yes; then
16316 # Warning - without using the other runtime loading flags (-brtl),
16317 # -berok will link without error, but may produce a broken library.
16318 allow_undefined_flag_GCJ='-berok'
16319 # Determine the default libpath from the value encoded in an empty executable.
16320 cat >conftest.$ac_ext <<_ACEOF
16321 /* confdefs.h. */
16322 _ACEOF
16323 cat confdefs.h >>conftest.$ac_ext
16324 cat >>conftest.$ac_ext <<_ACEOF
16325 /* end confdefs.h. */
16328 main ()
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16356 # Check for a 64-bit object if we didn't find anything.
16357 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; }
16358 }'`; fi
16359 else
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367 conftest$ac_exeext conftest.$ac_ext
16368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16370 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16371 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"
16372 else
16373 if test "$host_cpu" = ia64; then
16374 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16375 allow_undefined_flag_GCJ="-z nodefs"
16376 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"
16377 else
16378 # Determine the default libpath from the value encoded in an empty executable.
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16387 main ()
16391 return 0;
16393 _ACEOF
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (ac_try="$ac_link"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_link") 2>conftest.er1
16402 ac_status=$?
16403 grep -v '^ *+' conftest.er1 >conftest.err
16404 rm -f conftest.er1
16405 cat conftest.err >&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); } && {
16408 test -z "$ac_c_werror_flag" ||
16409 test ! -s conftest.err
16410 } && test -s conftest$ac_exeext &&
16411 $as_test_x conftest$ac_exeext; then
16413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16415 # Check for a 64-bit object if we didn't find anything.
16416 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; }
16417 }'`; fi
16418 else
16419 echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16426 conftest$ac_exeext conftest.$ac_ext
16427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16429 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16430 # Warning - without using the other run time loading flags,
16431 # -berok will link without error, but may produce a broken library.
16432 no_undefined_flag_GCJ=' ${wl}-bernotok'
16433 allow_undefined_flag_GCJ=' ${wl}-berok'
16434 # -bexpall does not export symbols beginning with underscore (_)
16435 always_export_symbols_GCJ=yes
16436 # Exported symbols can be pulled into shared objects from archives
16437 whole_archive_flag_spec_GCJ=' '
16438 archive_cmds_need_lc_GCJ=yes
16439 # This is similar to how AIX traditionally builds it's shared libraries.
16440 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'
16445 amigaos*)
16446 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)'
16447 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16448 hardcode_minus_L_GCJ=yes
16449 # see comment about different semantics on the GNU ld section
16450 ld_shlibs_GCJ=no
16453 bsdi4*)
16454 export_dynamic_flag_spec_GCJ=-rdynamic
16457 cygwin* | mingw* | pw32*)
16458 # When not using gcc, we currently assume that we are using
16459 # Microsoft Visual C++.
16460 # hardcode_libdir_flag_spec is actually meaningless, as there is
16461 # no search path for DLLs.
16462 hardcode_libdir_flag_spec_GCJ=' '
16463 allow_undefined_flag_GCJ=unsupported
16464 # Tell ltmain to make .lib files, not .a files.
16465 libext=lib
16466 # Tell ltmain to make .dll files, not .so files.
16467 shrext=".dll"
16468 # FIXME: Setting linknames here is a bad hack.
16469 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16470 # The linker will automatically build a .lib file if we build a DLL.
16471 old_archive_From_new_cmds_GCJ='true'
16472 # FIXME: Should let the user specify the lib program.
16473 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16474 fix_srcfile_path='`cygpath -w "$srcfile"`'
16475 enable_shared_with_static_runtimes_GCJ=yes
16478 darwin* | rhapsody*)
16479 if test "$GXX" = yes ; then
16480 archive_cmds_need_lc_GCJ=no
16481 case "$host_os" in
16482 rhapsody* | darwin1.[012])
16483 allow_undefined_flag_GCJ='-undefined suppress'
16485 *) # Darwin 1.3 on
16486 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16487 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16488 else
16489 case ${MACOSX_DEPLOYMENT_TARGET} in
16490 10.[012])
16491 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16493 10.*)
16494 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16496 esac
16499 esac
16500 lt_int_apple_cc_single_mod=no
16501 output_verbose_link_cmd='echo'
16502 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16503 lt_int_apple_cc_single_mod=yes
16505 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16506 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16507 else
16508 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'
16510 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16512 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16513 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}'
16514 else
16515 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}'
16517 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}'
16518 hardcode_direct_GCJ=no
16519 hardcode_automatic_GCJ=yes
16520 hardcode_shlibpath_var_GCJ=unsupported
16521 whole_archive_flag_spec_GCJ='-all_load $convenience'
16522 link_all_deplibs_GCJ=yes
16523 else
16524 ld_shlibs_GCJ=no
16528 dgux*)
16529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16531 hardcode_shlibpath_var_GCJ=no
16534 freebsd1*)
16535 ld_shlibs_GCJ=no
16538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16539 # support. Future versions do this automatically, but an explicit c++rt0.o
16540 # does not break anything, and helps significantly (at the cost of a little
16541 # extra space).
16542 freebsd2.2*)
16543 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16544 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16545 hardcode_direct_GCJ=yes
16546 hardcode_shlibpath_var_GCJ=no
16549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16550 freebsd2*)
16551 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16552 hardcode_direct_GCJ=yes
16553 hardcode_minus_L_GCJ=yes
16554 hardcode_shlibpath_var_GCJ=no
16557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16558 freebsd* | kfreebsd*-gnu)
16559 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16560 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16561 hardcode_direct_GCJ=yes
16562 hardcode_shlibpath_var_GCJ=no
16565 hpux9*)
16566 if test "$GCC" = yes; then
16567 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'
16568 else
16569 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'
16571 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16572 hardcode_libdir_separator_GCJ=:
16573 hardcode_direct_GCJ=yes
16575 # hardcode_minus_L: Not really in the search PATH,
16576 # but as the default location of the library.
16577 hardcode_minus_L_GCJ=yes
16578 export_dynamic_flag_spec_GCJ='${wl}-E'
16581 hpux10* | hpux11*)
16582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16583 case "$host_cpu" in
16584 hppa*64*|ia64*)
16585 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16590 esac
16591 else
16592 case "$host_cpu" in
16593 hppa*64*|ia64*)
16594 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16599 esac
16601 if test "$with_gnu_ld" = no; then
16602 case "$host_cpu" in
16603 hppa*64*)
16604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16605 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16606 hardcode_libdir_separator_GCJ=:
16607 hardcode_direct_GCJ=no
16608 hardcode_shlibpath_var_GCJ=no
16610 ia64*)
16611 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16612 hardcode_direct_GCJ=no
16613 hardcode_shlibpath_var_GCJ=no
16615 # hardcode_minus_L: Not really in the search PATH,
16616 # but as the default location of the library.
16617 hardcode_minus_L_GCJ=yes
16620 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16621 hardcode_libdir_separator_GCJ=:
16622 hardcode_direct_GCJ=yes
16623 export_dynamic_flag_spec_GCJ='${wl}-E'
16625 # hardcode_minus_L: Not really in the search PATH,
16626 # but as the default location of the library.
16627 hardcode_minus_L_GCJ=yes
16629 esac
16633 irix5* | irix6* | nonstopux*)
16634 if test "$GCC" = yes; then
16635 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'
16636 else
16637 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'
16638 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16641 hardcode_libdir_separator_GCJ=:
16642 link_all_deplibs_GCJ=yes
16645 netbsd*)
16646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16648 else
16649 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16652 hardcode_direct_GCJ=yes
16653 hardcode_shlibpath_var_GCJ=no
16656 newsos6)
16657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16658 hardcode_direct_GCJ=yes
16659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16660 hardcode_libdir_separator_GCJ=:
16661 hardcode_shlibpath_var_GCJ=no
16664 openbsd*)
16665 hardcode_direct_GCJ=yes
16666 hardcode_shlibpath_var_GCJ=no
16667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16668 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16669 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16670 export_dynamic_flag_spec_GCJ='${wl}-E'
16671 else
16672 case $host_os in
16673 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16674 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16678 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16681 esac
16685 os2*)
16686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16687 hardcode_minus_L_GCJ=yes
16688 allow_undefined_flag_GCJ=unsupported
16689 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'
16690 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16693 osf3*)
16694 if test "$GCC" = yes; then
16695 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16696 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'
16697 else
16698 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16699 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'
16701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16702 hardcode_libdir_separator_GCJ=:
16705 osf4* | osf5*) # as osf3* with the addition of -msym flag
16706 if test "$GCC" = yes; then
16707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16708 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'
16709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16710 else
16711 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16712 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'
16713 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~
16714 $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'
16716 # Both c and cxx compiler support -rpath directly
16717 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16719 hardcode_libdir_separator_GCJ=:
16722 sco3.2v5*)
16723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16724 hardcode_shlibpath_var_GCJ=no
16725 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16726 runpath_var=LD_RUN_PATH
16727 hardcode_runpath_var=yes
16730 solaris*)
16731 no_undefined_flag_GCJ=' -z text'
16732 if test "$GCC" = yes; then
16733 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16734 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16736 else
16737 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16738 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16741 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16742 hardcode_shlibpath_var_GCJ=no
16743 case $host_os in
16744 solaris2.[0-5] | solaris2.[0-5].*) ;;
16745 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16746 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16747 esac
16748 link_all_deplibs_GCJ=yes
16751 sunos4*)
16752 if test "x$host_vendor" = xsequent; then
16753 # Use $CC to link under sequent, because it throws in some extra .o
16754 # files that make .init and .fini sections work.
16755 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16756 else
16757 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760 hardcode_direct_GCJ=yes
16761 hardcode_minus_L_GCJ=yes
16762 hardcode_shlibpath_var_GCJ=no
16765 sysv4)
16766 case $host_vendor in
16767 sni)
16768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_direct_GCJ=yes # is this really true???
16771 siemens)
16772 ## LD is ld it makes a PLAMLIB
16773 ## CC just makes a GrossModule.
16774 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16775 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16776 hardcode_direct_GCJ=no
16778 motorola)
16779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16782 esac
16783 runpath_var='LD_RUN_PATH'
16784 hardcode_shlibpath_var_GCJ=no
16787 sysv4.3*)
16788 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_shlibpath_var_GCJ=no
16790 export_dynamic_flag_spec_GCJ='-Bexport'
16793 sysv4*MP*)
16794 if test -d /usr/nec; then
16795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16796 hardcode_shlibpath_var_GCJ=no
16797 runpath_var=LD_RUN_PATH
16798 hardcode_runpath_var=yes
16799 ld_shlibs_GCJ=yes
16803 sysv4.2uw2*)
16804 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16805 hardcode_direct_GCJ=yes
16806 hardcode_minus_L_GCJ=no
16807 hardcode_shlibpath_var_GCJ=no
16808 hardcode_runpath_var=yes
16809 runpath_var=LD_RUN_PATH
16812 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16813 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16814 if test "$GCC" = yes; then
16815 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16816 else
16817 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16819 runpath_var='LD_RUN_PATH'
16820 hardcode_shlibpath_var_GCJ=no
16823 sysv5*)
16824 no_undefined_flag_GCJ=' -z text'
16825 # $CC -shared without GNU ld will not create a library from C++
16826 # object files and a static libstdc++, better avoid it by now
16827 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16830 hardcode_libdir_flag_spec_GCJ=
16831 hardcode_shlibpath_var_GCJ=no
16832 runpath_var='LD_RUN_PATH'
16835 uts4*)
16836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16838 hardcode_shlibpath_var_GCJ=no
16842 ld_shlibs_GCJ=no
16844 esac
16847 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16848 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16849 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16852 if test "$GCC" = yes; then
16853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16857 # Do we need to explicitly link libc?
16859 case "x$archive_cmds_need_lc_GCJ" in
16860 x|xyes)
16861 # Assume -lc should be added
16862 archive_cmds_need_lc_GCJ=yes
16864 if test "$enable_shared" = yes && test "$GCC" = yes; then
16865 case $archive_cmds_GCJ in
16866 *'~'*)
16867 # FIXME: we may have to deal with multi-command sequences.
16869 '$CC '*)
16870 # Test whether the compiler implicitly links with -lc since on some
16871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16872 # to ld, don't add -lc before -lgcc.
16873 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16875 $rm conftest*
16876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16879 (eval $ac_compile) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); } 2>conftest.err; then
16883 soname=conftest
16884 lib=conftest
16885 libobjs=conftest.$ac_objext
16886 deplibs=
16887 wl=$lt_prog_compiler_wl_GCJ
16888 compiler_flags=-v
16889 linker_flags=-v
16890 verstring=
16891 output_objdir=.
16892 libname=conftest
16893 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16894 allow_undefined_flag_GCJ=
16895 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16896 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }
16900 then
16901 archive_cmds_need_lc_GCJ=no
16902 else
16903 archive_cmds_need_lc_GCJ=yes
16905 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16906 else
16907 cat conftest.err 1>&5
16909 $rm conftest*
16910 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16911 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16913 esac
16916 esac
16918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16920 library_names_spec=
16921 libname_spec='lib$name'
16922 soname_spec=
16923 shrext=".so"
16924 postinstall_cmds=
16925 postuninstall_cmds=
16926 finish_cmds=
16927 finish_eval=
16928 shlibpath_var=
16929 shlibpath_overrides_runpath=unknown
16930 version_type=none
16931 dynamic_linker="$host_os ld.so"
16932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16933 if test "$GCC" = yes; then
16934 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16935 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16936 # if the path contains ";" then we assume it to be the separator
16937 # otherwise default to the standard path separator (i.e. ":") - it is
16938 # assumed that no part of a normal pathname contains ";" but that should
16939 # okay in the real world where ";" in dirpaths is itself problematic.
16940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16941 else
16942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16944 else
16945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16947 need_lib_prefix=unknown
16948 hardcode_into_libs=no
16950 # when you set need_version to no, make sure it does not cause -set_version
16951 # flags to be left without arguments
16952 need_version=unknown
16954 case $host_os in
16955 aix3*)
16956 version_type=linux
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958 shlibpath_var=LIBPATH
16960 # AIX 3 has no versioning support, so we append a major version to the name.
16961 soname_spec='${libname}${release}${shared_ext}$major'
16964 aix4* | aix5*)
16965 version_type=linux
16966 need_lib_prefix=no
16967 need_version=no
16968 hardcode_into_libs=yes
16969 if test "$host_cpu" = ia64; then
16970 # AIX 5 supports IA64
16971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 else
16974 # With GCC up to 2.95.x, collect2 would create an import file
16975 # for dependence libraries. The import file would start with
16976 # the line `#! .'. This would cause the generated library to
16977 # depend on `.', always an invalid library. This was fixed in
16978 # development snapshots of GCC prior to 3.0.
16979 case $host_os in
16980 aix4 | aix4.[01] | aix4.[01].*)
16981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16982 echo ' yes '
16983 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16985 else
16986 can_build_shared=no
16989 esac
16990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991 # soname into executable. Probably we can add versioning support to
16992 # collect2, so additional links can be useful in future.
16993 if test "$aix_use_runtimelinking" = yes; then
16994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995 # instead of lib<name>.a to let people know that these are not
16996 # typical AIX shared libraries.
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 else
16999 # We preserve .a as extension for shared libraries through AIX4.2
17000 # and later when we are not doing run time linking.
17001 library_names_spec='${libname}${release}.a $libname.a'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LIBPATH
17008 amigaos*)
17009 library_names_spec='$libname.ixlibrary $libname.a'
17010 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17011 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'
17014 beos*)
17015 library_names_spec='${libname}${shared_ext}'
17016 dynamic_linker="$host_os ld.so"
17017 shlibpath_var=LIBRARY_PATH
17020 bsdi4*)
17021 version_type=linux
17022 need_version=no
17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17026 shlibpath_var=LD_LIBRARY_PATH
17027 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17028 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17029 # the default ld.so.conf also contains /usr/contrib/lib and
17030 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17031 # libtool to hard-code these into programs
17034 cygwin* | mingw* | pw32*)
17035 version_type=windows
17036 shrext=".dll"
17037 need_version=no
17038 need_lib_prefix=no
17040 case $GCC,$host_os in
17041 yes,cygwin* | yes,mingw* | yes,pw32*)
17042 library_names_spec='$libname.dll.a'
17043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17044 postinstall_cmds='base_file=`basename \${file}`~
17045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17046 dldir=$destdir/`dirname \$dlpath`~
17047 test -d \$dldir || mkdir -p \$dldir~
17048 $install_prog $dir/$dlname \$dldir/$dlname'
17049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17050 dlpath=$dir/\$dldll~
17051 $rm \$dlpath'
17052 shlibpath_overrides_runpath=yes
17054 case $host_os in
17055 cygwin*)
17056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17057 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17058 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17060 mingw*)
17061 # MinGW DLLs use traditional 'lib' prefix
17062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17064 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17065 # It is most probably a Windows format PATH printed by
17066 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17067 # path with ; separators, and with drive letters. We can handle the
17068 # drive letters (cygwin fileutils understands them), so leave them,
17069 # especially as we might pass files found there to a mingw objdump,
17070 # which wouldn't understand a cygwinified path. Ahh.
17071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17072 else
17073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17076 pw32*)
17077 # pw32 DLLs use 'pw' prefix rather than 'lib'
17078 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17080 esac
17084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17086 esac
17087 dynamic_linker='Win32 ld.exe'
17088 # FIXME: first we should search . and the directory the executable is in
17089 shlibpath_var=PATH
17092 darwin* | rhapsody*)
17093 dynamic_linker="$host_os dyld"
17094 version_type=darwin
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17098 soname_spec='${libname}${release}${major}$shared_ext'
17099 shlibpath_overrides_runpath=yes
17100 shlibpath_var=DYLD_LIBRARY_PATH
17101 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17102 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17103 if test "$GCC" = yes; then
17104 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"`
17105 else
17106 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17111 dgux*)
17112 version_type=linux
17113 need_lib_prefix=no
17114 need_version=no
17115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17116 soname_spec='${libname}${release}${shared_ext}$major'
17117 shlibpath_var=LD_LIBRARY_PATH
17120 freebsd1*)
17121 dynamic_linker=no
17124 kfreebsd*-gnu)
17125 version_type=linux
17126 need_lib_prefix=no
17127 need_version=no
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17129 soname_spec='${libname}${release}${shared_ext}$major'
17130 shlibpath_var=LD_LIBRARY_PATH
17131 shlibpath_overrides_runpath=no
17132 hardcode_into_libs=yes
17133 dynamic_linker='GNU ld.so'
17136 freebsd*)
17137 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17138 version_type=freebsd-$objformat
17139 case $version_type in
17140 freebsd-elf*)
17141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17142 need_version=no
17143 need_lib_prefix=no
17145 freebsd-*)
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17147 need_version=yes
17149 esac
17150 shlibpath_var=LD_LIBRARY_PATH
17151 case $host_os in
17152 freebsd2*)
17153 shlibpath_overrides_runpath=yes
17155 freebsd3.01* | freebsdelf3.01*)
17156 shlibpath_overrides_runpath=yes
17157 hardcode_into_libs=yes
17159 *) # from 3.2 on
17160 shlibpath_overrides_runpath=no
17161 hardcode_into_libs=yes
17163 esac
17166 gnu*)
17167 version_type=linux
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 hardcode_into_libs=yes
17176 hpux9* | hpux10* | hpux11*)
17177 # Give a soname corresponding to the major version so that dld.sl refuses to
17178 # link against other versions.
17179 version_type=sunos
17180 need_lib_prefix=no
17181 need_version=no
17182 case "$host_cpu" in
17183 ia64*)
17184 shrext='.so'
17185 hardcode_into_libs=yes
17186 dynamic_linker="$host_os dld.so"
17187 shlibpath_var=LD_LIBRARY_PATH
17188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17190 soname_spec='${libname}${release}${shared_ext}$major'
17191 if test "X$HPUX_IA64_MODE" = X32; then
17192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17193 else
17194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17198 hppa*64*)
17199 shrext='.sl'
17200 hardcode_into_libs=yes
17201 dynamic_linker="$host_os dld.sl"
17202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 soname_spec='${libname}${release}${shared_ext}$major'
17206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17210 shrext='.sl'
17211 dynamic_linker="$host_os dld.sl"
17212 shlibpath_var=SHLIB_PATH
17213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17217 esac
17218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17219 postinstall_cmds='chmod 555 $lib'
17222 irix5* | irix6* | nonstopux*)
17223 case $host_os in
17224 nonstopux*) version_type=nonstopux ;;
17226 if test "$lt_cv_prog_gnu_ld" = yes; then
17227 version_type=linux
17228 else
17229 version_type=irix
17230 fi ;;
17231 esac
17232 need_lib_prefix=no
17233 need_version=no
17234 soname_spec='${libname}${release}${shared_ext}$major'
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236 case $host_os in
17237 irix5* | nonstopux*)
17238 libsuff= shlibsuff=
17241 case $LD in # libtool.m4 will add one of these switches to LD
17242 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243 libsuff= shlibsuff= libmagic=32-bit;;
17244 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245 libsuff=32 shlibsuff=N32 libmagic=N32;;
17246 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248 *) libsuff= shlibsuff= libmagic=never-match;;
17249 esac
17251 esac
17252 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253 shlibpath_overrides_runpath=no
17254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256 hardcode_into_libs=yes
17259 # No shared lib support for Linux oldld, aout, or coff.
17260 linux*oldld* | linux*aout* | linux*coff*)
17261 dynamic_linker=no
17264 # This must be Linux ELF.
17265 linux*)
17266 version_type=linux
17267 need_lib_prefix=no
17268 need_version=no
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272 shlibpath_var=LD_LIBRARY_PATH
17273 shlibpath_overrides_runpath=no
17274 # This implies no fast_install, which is unacceptable.
17275 # Some rework will be needed to allow for fast_install
17276 # before this can be enabled.
17277 hardcode_into_libs=yes
17279 # We used to test for /lib/ld.so.1 and disable shared libraries on
17280 # powerpc, because MkLinux only supported shared libraries with the
17281 # GNU dynamic linker. Since this was broken with cross compilers,
17282 # most powerpc-linux boxes support dynamic linking these days and
17283 # people can always --disable-shared, the test was removed, and we
17284 # assume the GNU/Linux dynamic linker is in use.
17285 dynamic_linker='GNU/Linux ld.so'
17288 netbsd*)
17289 version_type=sunos
17290 need_lib_prefix=no
17291 need_version=no
17292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17295 dynamic_linker='NetBSD (a.out) ld.so'
17296 else
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 dynamic_linker='NetBSD ld.elf_so'
17301 shlibpath_var=LD_LIBRARY_PATH
17302 shlibpath_overrides_runpath=yes
17303 hardcode_into_libs=yes
17306 newsos6)
17307 version_type=linux
17308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17309 shlibpath_var=LD_LIBRARY_PATH
17310 shlibpath_overrides_runpath=yes
17313 nto-qnx*)
17314 version_type=linux
17315 need_lib_prefix=no
17316 need_version=no
17317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 soname_spec='${libname}${release}${shared_ext}$major'
17319 shlibpath_var=LD_LIBRARY_PATH
17320 shlibpath_overrides_runpath=yes
17323 openbsd*)
17324 version_type=sunos
17325 need_lib_prefix=no
17326 need_version=no
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17329 shlibpath_var=LD_LIBRARY_PATH
17330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17331 case $host_os in
17332 openbsd2.[89] | openbsd2.[89].*)
17333 shlibpath_overrides_runpath=no
17336 shlibpath_overrides_runpath=yes
17338 esac
17339 else
17340 shlibpath_overrides_runpath=yes
17344 os2*)
17345 libname_spec='$name'
17346 shrext=".dll"
17347 need_lib_prefix=no
17348 library_names_spec='$libname${shared_ext} $libname.a'
17349 dynamic_linker='OS/2 ld.exe'
17350 shlibpath_var=LIBPATH
17353 osf3* | osf4* | osf5*)
17354 version_type=osf
17355 need_lib_prefix=no
17356 need_version=no
17357 soname_spec='${libname}${release}${shared_ext}$major'
17358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17364 sco3.2v5*)
17365 version_type=osf
17366 soname_spec='${libname}${release}${shared_ext}$major'
17367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17368 shlibpath_var=LD_LIBRARY_PATH
17371 solaris*)
17372 version_type=linux
17373 need_lib_prefix=no
17374 need_version=no
17375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 soname_spec='${libname}${release}${shared_ext}$major'
17377 shlibpath_var=LD_LIBRARY_PATH
17378 shlibpath_overrides_runpath=yes
17379 hardcode_into_libs=yes
17380 # ldd complains unless libraries are executable
17381 postinstall_cmds='chmod +x $lib'
17384 sunos4*)
17385 version_type=sunos
17386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=yes
17390 if test "$with_gnu_ld" = yes; then
17391 need_lib_prefix=no
17393 need_version=yes
17396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17397 version_type=linux
17398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17399 soname_spec='${libname}${release}${shared_ext}$major'
17400 shlibpath_var=LD_LIBRARY_PATH
17401 case $host_vendor in
17402 sni)
17403 shlibpath_overrides_runpath=no
17404 need_lib_prefix=no
17405 export_dynamic_flag_spec='${wl}-Blargedynsym'
17406 runpath_var=LD_RUN_PATH
17408 siemens)
17409 need_lib_prefix=no
17411 motorola)
17412 need_lib_prefix=no
17413 need_version=no
17414 shlibpath_overrides_runpath=no
17415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17417 esac
17420 sysv4*MP*)
17421 if test -d /usr/nec ;then
17422 version_type=linux
17423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17424 soname_spec='$libname${shared_ext}.$major'
17425 shlibpath_var=LD_LIBRARY_PATH
17429 uts4*)
17430 version_type=linux
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 shlibpath_var=LD_LIBRARY_PATH
17437 dynamic_linker=no
17439 esac
17440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17441 echo "${ECHO_T}$dynamic_linker" >&6; }
17442 test "$dynamic_linker" = no && can_build_shared=no
17444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17446 hardcode_action_GCJ=
17447 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17448 test -n "$runpath_var GCJ" || \
17449 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17451 # We can hardcode non-existant directories.
17452 if test "$hardcode_direct_GCJ" != no &&
17453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17454 # have to relink, otherwise we might link with an installed library
17455 # when we should be linking with a yet-to-be-installed one
17456 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17457 test "$hardcode_minus_L_GCJ" != no; then
17458 # Linking always hardcodes the temporary library directory.
17459 hardcode_action_GCJ=relink
17460 else
17461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17462 hardcode_action_GCJ=immediate
17464 else
17465 # We cannot hardcode anything, or else we can only hardcode existing
17466 # directories.
17467 hardcode_action_GCJ=unsupported
17469 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17470 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17472 if test "$hardcode_action_GCJ" = relink; then
17473 # Fast installation is not supported
17474 enable_fast_install=no
17475 elif test "$shlibpath_overrides_runpath" = yes ||
17476 test "$enable_shared" = no; then
17477 # Fast installation is not necessary
17478 enable_fast_install=needless
17481 striplib=
17482 old_striplib=
17483 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17484 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17485 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17486 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17487 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17488 { echo "$as_me:$LINENO: result: yes" >&5
17489 echo "${ECHO_T}yes" >&6; }
17490 else
17491 # FIXME - insert some real tests, host_os isn't really good enough
17492 case $host_os in
17493 darwin*)
17494 if test -n "$STRIP" ; then
17495 striplib="$STRIP -x"
17496 { echo "$as_me:$LINENO: result: yes" >&5
17497 echo "${ECHO_T}yes" >&6; }
17498 else
17499 { echo "$as_me:$LINENO: result: no" >&5
17500 echo "${ECHO_T}no" >&6; }
17504 { echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6; }
17507 esac
17510 if test "x$enable_dlopen" != xyes; then
17511 enable_dlopen=unknown
17512 enable_dlopen_self=unknown
17513 enable_dlopen_self_static=unknown
17514 else
17515 lt_cv_dlopen=no
17516 lt_cv_dlopen_libs=
17518 case $host_os in
17519 beos*)
17520 lt_cv_dlopen="load_add_on"
17521 lt_cv_dlopen_libs=
17522 lt_cv_dlopen_self=yes
17525 mingw* | pw32*)
17526 lt_cv_dlopen="LoadLibrary"
17527 lt_cv_dlopen_libs=
17530 cygwin*)
17531 lt_cv_dlopen="dlopen"
17532 lt_cv_dlopen_libs=
17535 darwin*)
17536 # if libdl is installed we need to link against it
17537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 ac_check_lib_save_LIBS=$LIBS
17543 LIBS="-ldl $LIBS"
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17554 #ifdef __cplusplus
17555 extern "C"
17556 #endif
17557 char dlopen ();
17559 main ()
17561 return dlopen ();
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
17584 ac_cv_lib_dl_dlopen=yes
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_cv_lib_dl_dlopen=no
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17598 if test $ac_cv_lib_dl_dlopen = yes; then
17599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600 else
17602 lt_cv_dlopen="dyld"
17603 lt_cv_dlopen_libs=
17604 lt_cv_dlopen_self=yes
17611 { echo "$as_me:$LINENO: checking for shl_load" >&5
17612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17613 if test "${ac_cv_func_shl_load+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 else
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17624 #define shl_load innocuous_shl_load
17626 /* System header to define __stub macros and hopefully few prototypes,
17627 which can conflict with char shl_load (); below.
17628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629 <limits.h> exists even on freestanding compilers. */
17631 #ifdef __STDC__
17632 # include <limits.h>
17633 #else
17634 # include <assert.h>
17635 #endif
17637 #undef shl_load
17639 /* Override any GCC internal prototype to avoid an error.
17640 Use char because int might match the return type of a GCC
17641 builtin and then its argument prototype would still apply. */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 char shl_load ();
17646 /* The GNU C library defines this for functions which it implements
17647 to always fail with ENOSYS. Some functions are actually named
17648 something starting with __ and the normal name is an alias. */
17649 #if defined __stub_shl_load || defined __stub___shl_load
17650 choke me
17651 #endif
17654 main ()
17656 return shl_load ();
17658 return 0;
17660 _ACEOF
17661 rm -f conftest.$ac_objext conftest$ac_exeext
17662 if { (ac_try="$ac_link"
17663 case "(($ac_try" in
17664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665 *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668 (eval "$ac_link") 2>conftest.er1
17669 ac_status=$?
17670 grep -v '^ *+' conftest.er1 >conftest.err
17671 rm -f conftest.er1
17672 cat conftest.err >&5
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); } && {
17675 test -z "$ac_c_werror_flag" ||
17676 test ! -s conftest.err
17677 } && test -s conftest$ac_exeext &&
17678 $as_test_x conftest$ac_exeext; then
17679 ac_cv_func_shl_load=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17684 ac_cv_func_shl_load=no
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688 conftest$ac_exeext conftest.$ac_ext
17690 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17692 if test $ac_cv_func_shl_load = yes; then
17693 lt_cv_dlopen="shl_load"
17694 else
17695 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700 ac_check_lib_save_LIBS=$LIBS
17701 LIBS="-ldld $LIBS"
17702 cat >conftest.$ac_ext <<_ACEOF
17703 /* confdefs.h. */
17704 _ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17709 /* Override any GCC internal prototype to avoid an error.
17710 Use char because int might match the return type of a GCC
17711 builtin and then its argument prototype would still apply. */
17712 #ifdef __cplusplus
17713 extern "C"
17714 #endif
17715 char shl_load ();
17717 main ()
17719 return shl_load ();
17721 return 0;
17723 _ACEOF
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (ac_try="$ac_link"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_link") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } && {
17738 test -z "$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 } && test -s conftest$ac_exeext &&
17741 $as_test_x conftest$ac_exeext; then
17742 ac_cv_lib_dld_shl_load=yes
17743 else
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 ac_cv_lib_dld_shl_load=no
17750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17751 conftest$ac_exeext conftest.$ac_ext
17752 LIBS=$ac_check_lib_save_LIBS
17754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17755 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17756 if test $ac_cv_lib_dld_shl_load = yes; then
17757 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17758 else
17759 { echo "$as_me:$LINENO: checking for dlopen" >&5
17760 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17761 if test "${ac_cv_func_dlopen+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764 cat >conftest.$ac_ext <<_ACEOF
17765 /* confdefs.h. */
17766 _ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772 #define dlopen innocuous_dlopen
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char dlopen (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17779 #ifdef __STDC__
17780 # include <limits.h>
17781 #else
17782 # include <assert.h>
17783 #endif
17785 #undef dlopen
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 char dlopen ();
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined __stub_dlopen || defined __stub___dlopen
17798 choke me
17799 #endif
17802 main ()
17804 return dlopen ();
17806 return 0;
17808 _ACEOF
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (ac_try="$ac_link"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814 esac
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && {
17823 test -z "$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 } && test -s conftest$ac_exeext &&
17826 $as_test_x conftest$ac_exeext; then
17827 ac_cv_func_dlopen=yes
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_cv_func_dlopen=no
17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17836 conftest$ac_exeext conftest.$ac_ext
17838 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17839 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17840 if test $ac_cv_func_dlopen = yes; then
17841 lt_cv_dlopen="dlopen"
17842 else
17843 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17846 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 else
17848 ac_check_lib_save_LIBS=$LIBS
17849 LIBS="-ldl $LIBS"
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17857 /* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860 #ifdef __cplusplus
17861 extern "C"
17862 #endif
17863 char dlopen ();
17865 main ()
17867 return dlopen ();
17869 return 0;
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876 *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879 (eval "$ac_link") 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest$ac_exeext &&
17889 $as_test_x conftest$ac_exeext; then
17890 ac_cv_lib_dl_dlopen=yes
17891 else
17892 echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17895 ac_cv_lib_dl_dlopen=no
17898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17899 conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17904 if test $ac_cv_lib_dl_dlopen = yes; then
17905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17906 else
17907 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17910 echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912 ac_check_lib_save_LIBS=$LIBS
17913 LIBS="-lsvld $LIBS"
17914 cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h. */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char dlopen ();
17929 main ()
17931 return dlopen ();
17933 return 0;
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_link") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext &&
17953 $as_test_x conftest$ac_exeext; then
17954 ac_cv_lib_svld_dlopen=yes
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_cv_lib_svld_dlopen=no
17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963 conftest$ac_exeext conftest.$ac_ext
17964 LIBS=$ac_check_lib_save_LIBS
17966 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17967 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17968 if test $ac_cv_lib_svld_dlopen = yes; then
17969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17970 else
17971 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975 else
17976 ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-ldld $LIBS"
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17988 #ifdef __cplusplus
17989 extern "C"
17990 #endif
17991 char dld_link ();
17993 main ()
17995 return dld_link ();
17997 return 0;
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (ac_try="$ac_link"
18002 case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005 esac
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_link") 2>conftest.er1
18008 ac_status=$?
18009 grep -v '^ *+' conftest.er1 >conftest.err
18010 rm -f conftest.er1
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest$ac_exeext &&
18017 $as_test_x conftest$ac_exeext; then
18018 ac_cv_lib_dld_dld_link=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_cv_lib_dld_dld_link=no
18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18027 conftest$ac_exeext conftest.$ac_ext
18028 LIBS=$ac_check_lib_save_LIBS
18030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18031 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18032 if test $ac_cv_lib_dld_dld_link = yes; then
18033 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18052 esac
18054 if test "x$lt_cv_dlopen" != xno; then
18055 enable_dlopen=yes
18056 else
18057 enable_dlopen=no
18060 case $lt_cv_dlopen in
18061 dlopen)
18062 save_CPPFLAGS="$CPPFLAGS"
18063 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18065 save_LDFLAGS="$LDFLAGS"
18066 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18068 save_LIBS="$LIBS"
18069 LIBS="$lt_cv_dlopen_libs $LIBS"
18071 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18072 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18073 if test "${lt_cv_dlopen_self+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076 if test "$cross_compiling" = yes; then :
18077 lt_cv_dlopen_self=cross
18078 else
18079 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18080 lt_status=$lt_dlunknown
18081 cat > conftest.$ac_ext <<EOF
18082 #line 18082 "configure"
18083 #include "confdefs.h"
18085 #if HAVE_DLFCN_H
18086 #include <dlfcn.h>
18087 #endif
18089 #include <stdio.h>
18091 #ifdef RTLD_GLOBAL
18092 # define LT_DLGLOBAL RTLD_GLOBAL
18093 #else
18094 # ifdef DL_GLOBAL
18095 # define LT_DLGLOBAL DL_GLOBAL
18096 # else
18097 # define LT_DLGLOBAL 0
18098 # endif
18099 #endif
18101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18102 find out it does not work in some platform. */
18103 #ifndef LT_DLLAZY_OR_NOW
18104 # ifdef RTLD_LAZY
18105 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18106 # else
18107 # ifdef DL_LAZY
18108 # define LT_DLLAZY_OR_NOW DL_LAZY
18109 # else
18110 # ifdef RTLD_NOW
18111 # define LT_DLLAZY_OR_NOW RTLD_NOW
18112 # else
18113 # ifdef DL_NOW
18114 # define LT_DLLAZY_OR_NOW DL_NOW
18115 # else
18116 # define LT_DLLAZY_OR_NOW 0
18117 # endif
18118 # endif
18119 # endif
18120 # endif
18121 #endif
18123 #ifdef __cplusplus
18124 extern "C" void exit (int);
18125 #endif
18127 void fnord() { int i=42;}
18128 int main ()
18130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131 int status = $lt_dlunknown;
18133 if (self)
18135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18136 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18137 /* dlclose (self); */
18140 exit (status);
18143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18144 (eval $ac_link) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18148 (./conftest; exit; ) 2>/dev/null
18149 lt_status=$?
18150 case x$lt_status in
18151 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18152 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18153 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18154 esac
18155 else :
18156 # compilation failed
18157 lt_cv_dlopen_self=no
18160 rm -fr conftest*
18164 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18165 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18167 if test "x$lt_cv_dlopen_self" = xyes; then
18168 LDFLAGS="$LDFLAGS $link_static_flag"
18169 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18170 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18171 if test "${lt_cv_dlopen_self_static+set}" = set; then
18172 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174 if test "$cross_compiling" = yes; then :
18175 lt_cv_dlopen_self_static=cross
18176 else
18177 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18178 lt_status=$lt_dlunknown
18179 cat > conftest.$ac_ext <<EOF
18180 #line 18180 "configure"
18181 #include "confdefs.h"
18183 #if HAVE_DLFCN_H
18184 #include <dlfcn.h>
18185 #endif
18187 #include <stdio.h>
18189 #ifdef RTLD_GLOBAL
18190 # define LT_DLGLOBAL RTLD_GLOBAL
18191 #else
18192 # ifdef DL_GLOBAL
18193 # define LT_DLGLOBAL DL_GLOBAL
18194 # else
18195 # define LT_DLGLOBAL 0
18196 # endif
18197 #endif
18199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18200 find out it does not work in some platform. */
18201 #ifndef LT_DLLAZY_OR_NOW
18202 # ifdef RTLD_LAZY
18203 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18204 # else
18205 # ifdef DL_LAZY
18206 # define LT_DLLAZY_OR_NOW DL_LAZY
18207 # else
18208 # ifdef RTLD_NOW
18209 # define LT_DLLAZY_OR_NOW RTLD_NOW
18210 # else
18211 # ifdef DL_NOW
18212 # define LT_DLLAZY_OR_NOW DL_NOW
18213 # else
18214 # define LT_DLLAZY_OR_NOW 0
18215 # endif
18216 # endif
18217 # endif
18218 # endif
18219 #endif
18221 #ifdef __cplusplus
18222 extern "C" void exit (int);
18223 #endif
18225 void fnord() { int i=42;}
18226 int main ()
18228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18229 int status = $lt_dlunknown;
18231 if (self)
18233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18234 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18235 /* dlclose (self); */
18238 exit (status);
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18246 (./conftest; exit; ) 2>/dev/null
18247 lt_status=$?
18248 case x$lt_status in
18249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18251 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18252 esac
18253 else :
18254 # compilation failed
18255 lt_cv_dlopen_self_static=no
18258 rm -fr conftest*
18262 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18263 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18266 CPPFLAGS="$save_CPPFLAGS"
18267 LDFLAGS="$save_LDFLAGS"
18268 LIBS="$save_LIBS"
18270 esac
18272 case $lt_cv_dlopen_self in
18273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18274 *) enable_dlopen_self=unknown ;;
18275 esac
18277 case $lt_cv_dlopen_self_static in
18278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18279 *) enable_dlopen_self_static=unknown ;;
18280 esac
18284 # The else clause should only fire when bootstrapping the
18285 # libtool distribution, otherwise you forgot to ship ltmain.sh
18286 # with your package, and you will get complaints that there are
18287 # no rules to generate ltmain.sh.
18288 if test -f "$ltmain"; then
18289 # See if we are running on zsh, and set the options which allow our commands through
18290 # without removal of \ escapes.
18291 if test -n "${ZSH_VERSION+set}" ; then
18292 setopt NO_GLOB_SUBST
18294 # Now quote all the things that may contain metacharacters while being
18295 # careful not to overquote the AC_SUBSTed values. We take copies of the
18296 # variables and quote the copies for generation of the libtool script.
18297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18300 deplibs_check_method reload_flag reload_cmds need_locks \
18301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18302 lt_cv_sys_global_symbol_to_c_name_address \
18303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18304 old_postinstall_cmds old_postuninstall_cmds \
18305 compiler_GCJ \
18306 CC_GCJ \
18307 LD_GCJ \
18308 lt_prog_compiler_wl_GCJ \
18309 lt_prog_compiler_pic_GCJ \
18310 lt_prog_compiler_static_GCJ \
18311 lt_prog_compiler_no_builtin_flag_GCJ \
18312 export_dynamic_flag_spec_GCJ \
18313 thread_safe_flag_spec_GCJ \
18314 whole_archive_flag_spec_GCJ \
18315 enable_shared_with_static_runtimes_GCJ \
18316 old_archive_cmds_GCJ \
18317 old_archive_from_new_cmds_GCJ \
18318 predep_objects_GCJ \
18319 postdep_objects_GCJ \
18320 predeps_GCJ \
18321 postdeps_GCJ \
18322 compiler_lib_search_path_GCJ \
18323 archive_cmds_GCJ \
18324 archive_expsym_cmds_GCJ \
18325 postinstall_cmds_GCJ \
18326 postuninstall_cmds_GCJ \
18327 old_archive_from_expsyms_cmds_GCJ \
18328 allow_undefined_flag_GCJ \
18329 no_undefined_flag_GCJ \
18330 export_symbols_cmds_GCJ \
18331 hardcode_libdir_flag_spec_GCJ \
18332 hardcode_libdir_flag_spec_ld_GCJ \
18333 hardcode_libdir_separator_GCJ \
18334 hardcode_automatic_GCJ \
18335 module_cmds_GCJ \
18336 module_expsym_cmds_GCJ \
18337 lt_cv_prog_compiler_c_o_GCJ \
18338 exclude_expsyms_GCJ \
18339 include_expsyms_GCJ; do
18341 case $var in
18342 old_archive_cmds_GCJ | \
18343 old_archive_from_new_cmds_GCJ | \
18344 archive_cmds_GCJ | \
18345 archive_expsym_cmds_GCJ | \
18346 module_cmds_GCJ | \
18347 module_expsym_cmds_GCJ | \
18348 old_archive_from_expsyms_cmds_GCJ | \
18349 export_symbols_cmds_GCJ | \
18350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18351 postinstall_cmds | postuninstall_cmds | \
18352 old_postinstall_cmds | old_postuninstall_cmds | \
18353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18354 # Double-quote double-evaled strings.
18355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18360 esac
18361 done
18363 case $lt_echo in
18364 *'\$0 --fallback-echo"')
18365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18367 esac
18369 cfgfile="$ofile"
18371 cat <<__EOF__ >> "$cfgfile"
18372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18376 # Shell to use when invoking shell scripts.
18377 SHELL=$lt_SHELL
18379 # Whether or not to build shared libraries.
18380 build_libtool_libs=$enable_shared
18382 # Whether or not to build static libraries.
18383 build_old_libs=$enable_static
18385 # Whether or not to add -lc for building shared libraries.
18386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18388 # Whether or not to disallow shared libs when runtime libs are static
18389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18391 # Whether or not to optimize for fast installation.
18392 fast_install=$enable_fast_install
18394 # The host system.
18395 host_alias=$host_alias
18396 host=$host
18398 # An echo program that does not interpret backslashes.
18399 echo=$lt_echo
18401 # The archiver.
18402 AR=$lt_AR
18403 AR_FLAGS=$lt_AR_FLAGS
18405 # A C compiler.
18406 LTCC=$lt_LTCC
18408 # A language-specific compiler.
18409 CC=$lt_compiler_GCJ
18411 # Is the compiler the GNU C compiler?
18412 with_gcc=$GCC_GCJ
18414 # An ERE matcher.
18415 EGREP=$lt_EGREP
18417 # The linker used to build libraries.
18418 LD=$lt_LD_GCJ
18420 # Whether we need hard or soft links.
18421 LN_S=$lt_LN_S
18423 # A BSD-compatible nm program.
18424 NM=$lt_NM
18426 # A symbol stripping program
18427 STRIP="$STRIP"
18429 # Used to examine libraries when file_magic_cmd begins "file"
18430 MAGIC_CMD=$MAGIC_CMD
18432 # Used on cygwin: DLL creation program.
18433 DLLTOOL="$DLLTOOL"
18435 # Used on cygwin: object dumper.
18436 OBJDUMP="$OBJDUMP"
18438 # Used on cygwin: assembler.
18439 AS="$AS"
18441 # The name of the directory that contains temporary libtool files.
18442 objdir=$objdir
18444 # How to create reloadable object files.
18445 reload_flag=$lt_reload_flag
18446 reload_cmds=$lt_reload_cmds
18448 # How to pass a linker flag through the compiler.
18449 wl=$lt_lt_prog_compiler_wl_GCJ
18451 # Object file suffix (normally "o").
18452 objext="$ac_objext"
18454 # Old archive suffix (normally "a").
18455 libext="$libext"
18457 # Shared library suffix (normally ".so").
18458 shrext='$shrext'
18460 # Executable file suffix (normally "").
18461 exeext="$exeext"
18463 # Additional compiler flags for building library objects.
18464 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18465 pic_mode=$pic_mode
18467 # What is the maximum length of a command?
18468 max_cmd_len=$lt_cv_sys_max_cmd_len
18470 # Does compiler simultaneously support -c and -o options?
18471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18473 # Must we lock files when doing compilation ?
18474 need_locks=$lt_need_locks
18476 # Do we need the lib prefix for modules?
18477 need_lib_prefix=$need_lib_prefix
18479 # Do we need a version for libraries?
18480 need_version=$need_version
18482 # Whether dlopen is supported.
18483 dlopen_support=$enable_dlopen
18485 # Whether dlopen of programs is supported.
18486 dlopen_self=$enable_dlopen_self
18488 # Whether dlopen of statically linked programs is supported.
18489 dlopen_self_static=$enable_dlopen_self_static
18491 # Compiler flag to prevent dynamic linking.
18492 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18494 # Compiler flag to turn off builtin functions.
18495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18497 # Compiler flag to allow reflexive dlopens.
18498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18500 # Compiler flag to generate shared objects directly from archives.
18501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18503 # Compiler flag to generate thread-safe objects.
18504 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18506 # Library versioning type.
18507 version_type=$version_type
18509 # Format of library name prefix.
18510 libname_spec=$lt_libname_spec
18512 # List of archive names. First name is the real one, the rest are links.
18513 # The last name is the one that the linker finds with -lNAME.
18514 library_names_spec=$lt_library_names_spec
18516 # The coded name of the library, if different from the real name.
18517 soname_spec=$lt_soname_spec
18519 # Commands used to build and install an old-style archive.
18520 RANLIB=$lt_RANLIB
18521 old_archive_cmds=$lt_old_archive_cmds_GCJ
18522 old_postinstall_cmds=$lt_old_postinstall_cmds
18523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18525 # Create an old-style archive from a shared archive.
18526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18528 # Create a temporary old-style archive to link instead of a shared archive.
18529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18531 # Commands used to build and install a shared archive.
18532 archive_cmds=$lt_archive_cmds_GCJ
18533 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18534 postinstall_cmds=$lt_postinstall_cmds
18535 postuninstall_cmds=$lt_postuninstall_cmds
18537 # Commands used to build a loadable module (assumed same as above if empty)
18538 module_cmds=$lt_module_cmds_GCJ
18539 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18541 # Commands to strip libraries.
18542 old_striplib=$lt_old_striplib
18543 striplib=$lt_striplib
18545 # Dependencies to place before the objects being linked to create a
18546 # shared library.
18547 predep_objects=$lt_predep_objects_GCJ
18549 # Dependencies to place after the objects being linked to create a
18550 # shared library.
18551 postdep_objects=$lt_postdep_objects_GCJ
18553 # Dependencies to place before the objects being linked to create a
18554 # shared library.
18555 predeps=$lt_predeps_GCJ
18557 # Dependencies to place after the objects being linked to create a
18558 # shared library.
18559 postdeps=$lt_postdeps_GCJ
18561 # The library search path used internally by the compiler when linking
18562 # a shared library.
18563 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18565 # Method to check whether dependent libraries are shared objects.
18566 deplibs_check_method=$lt_deplibs_check_method
18568 # Command to use when deplibs_check_method == file_magic.
18569 file_magic_cmd=$lt_file_magic_cmd
18571 # Flag that allows shared libraries with undefined symbols to be built.
18572 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18574 # Flag that forces no undefined symbols.
18575 no_undefined_flag=$lt_no_undefined_flag_GCJ
18577 # Commands used to finish a libtool library installation in a directory.
18578 finish_cmds=$lt_finish_cmds
18580 # Same as above, but a single script fragment to be evaled but not shown.
18581 finish_eval=$lt_finish_eval
18583 # Take the output of nm and produce a listing of raw symbols and C names.
18584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18586 # Transform the output of nm in a proper C declaration
18587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18589 # Transform the output of nm in a C name address pair
18590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18592 # This is the shared library runtime path variable.
18593 runpath_var=$runpath_var
18595 # This is the shared library path variable.
18596 shlibpath_var=$shlibpath_var
18598 # Is shlibpath searched before the hard-coded library search path?
18599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18601 # How to hardcode a shared library path into an executable.
18602 hardcode_action=$hardcode_action_GCJ
18604 # Whether we should hardcode library paths into libraries.
18605 hardcode_into_libs=$hardcode_into_libs
18607 # Flag to hardcode \$libdir into a binary during linking.
18608 # This must work even if \$libdir does not exist.
18609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18611 # If ld is used when linking, flag to hardcode \$libdir into
18612 # a binary during linking. This must work even if \$libdir does
18613 # not exist.
18614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18616 # Whether we need a single -rpath flag with a separated argument.
18617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18620 # resulting binary.
18621 hardcode_direct=$hardcode_direct_GCJ
18623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18624 # resulting binary.
18625 hardcode_minus_L=$hardcode_minus_L_GCJ
18627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18628 # the resulting binary.
18629 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18631 # Set to yes if building a shared library automatically hardcodes DIR into the library
18632 # and all subsequent libraries and executables linked against it.
18633 hardcode_automatic=$hardcode_automatic_GCJ
18635 # Variables whose values should be saved in libtool wrapper scripts and
18636 # restored at relink time.
18637 variables_saved_for_relink="$variables_saved_for_relink"
18639 # Whether libtool must link a program against all its dependency libraries.
18640 link_all_deplibs=$link_all_deplibs_GCJ
18642 # Compile-time system search path for libraries
18643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18645 # Run-time system search path for libraries
18646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18648 # Fix the shell variable \$srcfile for the compiler.
18649 fix_srcfile_path="$fix_srcfile_path_GCJ"
18651 # Set to yes if exported symbols are required.
18652 always_export_symbols=$always_export_symbols_GCJ
18654 # The commands to list exported symbols.
18655 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18657 # The commands to extract the exported symbol list from a shared archive.
18658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18660 # Symbols that should not be listed in the preloaded symbols.
18661 exclude_expsyms=$lt_exclude_expsyms_GCJ
18663 # Symbols that must always be exported.
18664 include_expsyms=$lt_include_expsyms_GCJ
18666 # ### END LIBTOOL TAG CONFIG: $tagname
18668 __EOF__
18671 else
18672 # If there is no Makefile yet, we rely on a make rule to execute
18673 # `config.status --recheck' to rerun these tests and create the
18674 # libtool script then.
18675 test -f Makefile && make "$ltmain"
18679 ac_ext=c
18680 ac_cpp='$CPP $CPPFLAGS'
18681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18685 CC="$lt_save_CC"
18687 else
18688 tagname=""
18695 # Source file extension for RC test sources.
18696 ac_ext=rc
18698 # Object file extension for compiled RC test sources.
18699 objext=o
18700 objext_RC=$objext
18702 # Code to be used in simple compile tests
18703 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18705 # Code to be used in simple link tests
18706 lt_simple_link_test_code="$lt_simple_compile_test_code"
18708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18710 # If no C compiler was specified, use CC.
18711 LTCC=${LTCC-"$CC"}
18713 # Allow CC to be a program name with arguments.
18714 compiler=$CC
18717 # Allow CC to be a program name with arguments.
18718 lt_save_CC="$CC"
18719 CC=${RC-"windres"}
18720 compiler=$CC
18721 compiler_RC=$CC
18722 lt_cv_prog_compiler_c_o_RC=yes
18724 # The else clause should only fire when bootstrapping the
18725 # libtool distribution, otherwise you forgot to ship ltmain.sh
18726 # with your package, and you will get complaints that there are
18727 # no rules to generate ltmain.sh.
18728 if test -f "$ltmain"; then
18729 # See if we are running on zsh, and set the options which allow our commands through
18730 # without removal of \ escapes.
18731 if test -n "${ZSH_VERSION+set}" ; then
18732 setopt NO_GLOB_SUBST
18734 # Now quote all the things that may contain metacharacters while being
18735 # careful not to overquote the AC_SUBSTed values. We take copies of the
18736 # variables and quote the copies for generation of the libtool script.
18737 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18738 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18739 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18740 deplibs_check_method reload_flag reload_cmds need_locks \
18741 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18742 lt_cv_sys_global_symbol_to_c_name_address \
18743 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18744 old_postinstall_cmds old_postuninstall_cmds \
18745 compiler_RC \
18746 CC_RC \
18747 LD_RC \
18748 lt_prog_compiler_wl_RC \
18749 lt_prog_compiler_pic_RC \
18750 lt_prog_compiler_static_RC \
18751 lt_prog_compiler_no_builtin_flag_RC \
18752 export_dynamic_flag_spec_RC \
18753 thread_safe_flag_spec_RC \
18754 whole_archive_flag_spec_RC \
18755 enable_shared_with_static_runtimes_RC \
18756 old_archive_cmds_RC \
18757 old_archive_from_new_cmds_RC \
18758 predep_objects_RC \
18759 postdep_objects_RC \
18760 predeps_RC \
18761 postdeps_RC \
18762 compiler_lib_search_path_RC \
18763 archive_cmds_RC \
18764 archive_expsym_cmds_RC \
18765 postinstall_cmds_RC \
18766 postuninstall_cmds_RC \
18767 old_archive_from_expsyms_cmds_RC \
18768 allow_undefined_flag_RC \
18769 no_undefined_flag_RC \
18770 export_symbols_cmds_RC \
18771 hardcode_libdir_flag_spec_RC \
18772 hardcode_libdir_flag_spec_ld_RC \
18773 hardcode_libdir_separator_RC \
18774 hardcode_automatic_RC \
18775 module_cmds_RC \
18776 module_expsym_cmds_RC \
18777 lt_cv_prog_compiler_c_o_RC \
18778 exclude_expsyms_RC \
18779 include_expsyms_RC; do
18781 case $var in
18782 old_archive_cmds_RC | \
18783 old_archive_from_new_cmds_RC | \
18784 archive_cmds_RC | \
18785 archive_expsym_cmds_RC | \
18786 module_cmds_RC | \
18787 module_expsym_cmds_RC | \
18788 old_archive_from_expsyms_cmds_RC | \
18789 export_symbols_cmds_RC | \
18790 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18791 postinstall_cmds | postuninstall_cmds | \
18792 old_postinstall_cmds | old_postuninstall_cmds | \
18793 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18794 # Double-quote double-evaled strings.
18795 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18798 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18800 esac
18801 done
18803 case $lt_echo in
18804 *'\$0 --fallback-echo"')
18805 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18807 esac
18809 cfgfile="$ofile"
18811 cat <<__EOF__ >> "$cfgfile"
18812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18816 # Shell to use when invoking shell scripts.
18817 SHELL=$lt_SHELL
18819 # Whether or not to build shared libraries.
18820 build_libtool_libs=$enable_shared
18822 # Whether or not to build static libraries.
18823 build_old_libs=$enable_static
18825 # Whether or not to add -lc for building shared libraries.
18826 build_libtool_need_lc=$archive_cmds_need_lc_RC
18828 # Whether or not to disallow shared libs when runtime libs are static
18829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18831 # Whether or not to optimize for fast installation.
18832 fast_install=$enable_fast_install
18834 # The host system.
18835 host_alias=$host_alias
18836 host=$host
18838 # An echo program that does not interpret backslashes.
18839 echo=$lt_echo
18841 # The archiver.
18842 AR=$lt_AR
18843 AR_FLAGS=$lt_AR_FLAGS
18845 # A C compiler.
18846 LTCC=$lt_LTCC
18848 # A language-specific compiler.
18849 CC=$lt_compiler_RC
18851 # Is the compiler the GNU C compiler?
18852 with_gcc=$GCC_RC
18854 # An ERE matcher.
18855 EGREP=$lt_EGREP
18857 # The linker used to build libraries.
18858 LD=$lt_LD_RC
18860 # Whether we need hard or soft links.
18861 LN_S=$lt_LN_S
18863 # A BSD-compatible nm program.
18864 NM=$lt_NM
18866 # A symbol stripping program
18867 STRIP="$STRIP"
18869 # Used to examine libraries when file_magic_cmd begins "file"
18870 MAGIC_CMD=$MAGIC_CMD
18872 # Used on cygwin: DLL creation program.
18873 DLLTOOL="$DLLTOOL"
18875 # Used on cygwin: object dumper.
18876 OBJDUMP="$OBJDUMP"
18878 # Used on cygwin: assembler.
18879 AS="$AS"
18881 # The name of the directory that contains temporary libtool files.
18882 objdir=$objdir
18884 # How to create reloadable object files.
18885 reload_flag=$lt_reload_flag
18886 reload_cmds=$lt_reload_cmds
18888 # How to pass a linker flag through the compiler.
18889 wl=$lt_lt_prog_compiler_wl_RC
18891 # Object file suffix (normally "o").
18892 objext="$ac_objext"
18894 # Old archive suffix (normally "a").
18895 libext="$libext"
18897 # Shared library suffix (normally ".so").
18898 shrext='$shrext'
18900 # Executable file suffix (normally "").
18901 exeext="$exeext"
18903 # Additional compiler flags for building library objects.
18904 pic_flag=$lt_lt_prog_compiler_pic_RC
18905 pic_mode=$pic_mode
18907 # What is the maximum length of a command?
18908 max_cmd_len=$lt_cv_sys_max_cmd_len
18910 # Does compiler simultaneously support -c and -o options?
18911 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18913 # Must we lock files when doing compilation ?
18914 need_locks=$lt_need_locks
18916 # Do we need the lib prefix for modules?
18917 need_lib_prefix=$need_lib_prefix
18919 # Do we need a version for libraries?
18920 need_version=$need_version
18922 # Whether dlopen is supported.
18923 dlopen_support=$enable_dlopen
18925 # Whether dlopen of programs is supported.
18926 dlopen_self=$enable_dlopen_self
18928 # Whether dlopen of statically linked programs is supported.
18929 dlopen_self_static=$enable_dlopen_self_static
18931 # Compiler flag to prevent dynamic linking.
18932 link_static_flag=$lt_lt_prog_compiler_static_RC
18934 # Compiler flag to turn off builtin functions.
18935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18937 # Compiler flag to allow reflexive dlopens.
18938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18940 # Compiler flag to generate shared objects directly from archives.
18941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18943 # Compiler flag to generate thread-safe objects.
18944 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18946 # Library versioning type.
18947 version_type=$version_type
18949 # Format of library name prefix.
18950 libname_spec=$lt_libname_spec
18952 # List of archive names. First name is the real one, the rest are links.
18953 # The last name is the one that the linker finds with -lNAME.
18954 library_names_spec=$lt_library_names_spec
18956 # The coded name of the library, if different from the real name.
18957 soname_spec=$lt_soname_spec
18959 # Commands used to build and install an old-style archive.
18960 RANLIB=$lt_RANLIB
18961 old_archive_cmds=$lt_old_archive_cmds_RC
18962 old_postinstall_cmds=$lt_old_postinstall_cmds
18963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18965 # Create an old-style archive from a shared archive.
18966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18968 # Create a temporary old-style archive to link instead of a shared archive.
18969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18971 # Commands used to build and install a shared archive.
18972 archive_cmds=$lt_archive_cmds_RC
18973 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18974 postinstall_cmds=$lt_postinstall_cmds
18975 postuninstall_cmds=$lt_postuninstall_cmds
18977 # Commands used to build a loadable module (assumed same as above if empty)
18978 module_cmds=$lt_module_cmds_RC
18979 module_expsym_cmds=$lt_module_expsym_cmds_RC
18981 # Commands to strip libraries.
18982 old_striplib=$lt_old_striplib
18983 striplib=$lt_striplib
18985 # Dependencies to place before the objects being linked to create a
18986 # shared library.
18987 predep_objects=$lt_predep_objects_RC
18989 # Dependencies to place after the objects being linked to create a
18990 # shared library.
18991 postdep_objects=$lt_postdep_objects_RC
18993 # Dependencies to place before the objects being linked to create a
18994 # shared library.
18995 predeps=$lt_predeps_RC
18997 # Dependencies to place after the objects being linked to create a
18998 # shared library.
18999 postdeps=$lt_postdeps_RC
19001 # The library search path used internally by the compiler when linking
19002 # a shared library.
19003 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19005 # Method to check whether dependent libraries are shared objects.
19006 deplibs_check_method=$lt_deplibs_check_method
19008 # Command to use when deplibs_check_method == file_magic.
19009 file_magic_cmd=$lt_file_magic_cmd
19011 # Flag that allows shared libraries with undefined symbols to be built.
19012 allow_undefined_flag=$lt_allow_undefined_flag_RC
19014 # Flag that forces no undefined symbols.
19015 no_undefined_flag=$lt_no_undefined_flag_RC
19017 # Commands used to finish a libtool library installation in a directory.
19018 finish_cmds=$lt_finish_cmds
19020 # Same as above, but a single script fragment to be evaled but not shown.
19021 finish_eval=$lt_finish_eval
19023 # Take the output of nm and produce a listing of raw symbols and C names.
19024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19026 # Transform the output of nm in a proper C declaration
19027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19029 # Transform the output of nm in a C name address pair
19030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19032 # This is the shared library runtime path variable.
19033 runpath_var=$runpath_var
19035 # This is the shared library path variable.
19036 shlibpath_var=$shlibpath_var
19038 # Is shlibpath searched before the hard-coded library search path?
19039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19041 # How to hardcode a shared library path into an executable.
19042 hardcode_action=$hardcode_action_RC
19044 # Whether we should hardcode library paths into libraries.
19045 hardcode_into_libs=$hardcode_into_libs
19047 # Flag to hardcode \$libdir into a binary during linking.
19048 # This must work even if \$libdir does not exist.
19049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19051 # If ld is used when linking, flag to hardcode \$libdir into
19052 # a binary during linking. This must work even if \$libdir does
19053 # not exist.
19054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19056 # Whether we need a single -rpath flag with a separated argument.
19057 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19059 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19060 # resulting binary.
19061 hardcode_direct=$hardcode_direct_RC
19063 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19064 # resulting binary.
19065 hardcode_minus_L=$hardcode_minus_L_RC
19067 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19068 # the resulting binary.
19069 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19071 # Set to yes if building a shared library automatically hardcodes DIR into the library
19072 # and all subsequent libraries and executables linked against it.
19073 hardcode_automatic=$hardcode_automatic_RC
19075 # Variables whose values should be saved in libtool wrapper scripts and
19076 # restored at relink time.
19077 variables_saved_for_relink="$variables_saved_for_relink"
19079 # Whether libtool must link a program against all its dependency libraries.
19080 link_all_deplibs=$link_all_deplibs_RC
19082 # Compile-time system search path for libraries
19083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19085 # Run-time system search path for libraries
19086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19088 # Fix the shell variable \$srcfile for the compiler.
19089 fix_srcfile_path="$fix_srcfile_path_RC"
19091 # Set to yes if exported symbols are required.
19092 always_export_symbols=$always_export_symbols_RC
19094 # The commands to list exported symbols.
19095 export_symbols_cmds=$lt_export_symbols_cmds_RC
19097 # The commands to extract the exported symbol list from a shared archive.
19098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19100 # Symbols that should not be listed in the preloaded symbols.
19101 exclude_expsyms=$lt_exclude_expsyms_RC
19103 # Symbols that must always be exported.
19104 include_expsyms=$lt_include_expsyms_RC
19106 # ### END LIBTOOL TAG CONFIG: $tagname
19108 __EOF__
19111 else
19112 # If there is no Makefile yet, we rely on a make rule to execute
19113 # `config.status --recheck' to rerun these tests and create the
19114 # libtool script then.
19115 test -f Makefile && make "$ltmain"
19119 ac_ext=c
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19125 CC="$lt_save_CC"
19130 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19131 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19132 { (exit 1); exit 1; }; }
19134 esac
19136 # Append the new tag name to the list of available tags.
19137 if test -n "$tagname" ; then
19138 available_tags="$available_tags $tagname"
19141 done
19142 IFS="$lt_save_ifs"
19144 # Now substitute the updated list of available tags.
19145 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19146 mv "${ofile}T" "$ofile"
19147 chmod +x "$ofile"
19148 else
19149 rm -f "${ofile}T"
19150 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19151 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19152 { (exit 1); exit 1; }; }
19158 # This can be used to rebuild libtool when needed
19159 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19161 # Always use our own libtool.
19162 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19164 # Prevent multiple expansion
19185 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19187 if test "${ac_cv_c_const+set}" = set; then
19188 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 else
19190 cat >conftest.$ac_ext <<_ACEOF
19191 /* confdefs.h. */
19192 _ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19198 main ()
19200 /* FIXME: Include the comments suggested by Paul. */
19201 #ifndef __cplusplus
19202 /* Ultrix mips cc rejects this. */
19203 typedef int charset[2];
19204 const charset cs;
19205 /* SunOS 4.1.1 cc rejects this. */
19206 char const *const *pcpcc;
19207 char **ppc;
19208 /* NEC SVR4.0.2 mips cc rejects this. */
19209 struct point {int x, y;};
19210 static struct point const zero = {0,0};
19211 /* AIX XL C 1.02.0.0 rejects this.
19212 It does not let you subtract one const X* pointer from another in
19213 an arm of an if-expression whose if-part is not a constant
19214 expression */
19215 const char *g = "string";
19216 pcpcc = &g + (g ? g-g : 0);
19217 /* HPUX 7.0 cc rejects these. */
19218 ++pcpcc;
19219 ppc = (char**) pcpcc;
19220 pcpcc = (char const *const *) ppc;
19221 { /* SCO 3.2v4 cc rejects this. */
19222 char *t;
19223 char const *s = 0 ? (char *) 0 : (char const *) 0;
19225 *t++ = 0;
19226 if (s) return 0;
19228 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19229 int x[] = {25, 17};
19230 const int *foo = &x[0];
19231 ++foo;
19233 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19234 typedef const int *iptr;
19235 iptr p = 0;
19236 ++p;
19238 { /* AIX XL C 1.02.0.0 rejects this saying
19239 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19240 struct s { int j; const int *ap[3]; };
19241 struct s *b; b->j = 5;
19243 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19244 const int foo = 10;
19245 if (!foo) return 0;
19247 return !cs[0] && !zero.x;
19248 #endif
19251 return 0;
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_c_const=yes
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_c_const=no
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19282 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19283 if test $ac_cv_c_const = no; then
19285 cat >>confdefs.h <<\_ACEOF
19286 #define const
19287 _ACEOF
19296 ac_header_dirent=no
19297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19298 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19299 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19300 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h. */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h. */
19310 #include <sys/types.h>
19311 #include <$ac_hdr>
19314 main ()
19316 if ((DIR *) 0)
19317 return 0;
19319 return 0;
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19327 esac
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19330 ac_status=$?
19331 grep -v '^ *+' conftest.er1 >conftest.err
19332 rm -f conftest.er1
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest.$ac_objext; then
19339 eval "$as_ac_Header=yes"
19340 else
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 eval "$as_ac_Header=no"
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 ac_res=`eval echo '${'$as_ac_Header'}'`
19350 { echo "$as_me:$LINENO: result: $ac_res" >&5
19351 echo "${ECHO_T}$ac_res" >&6; }
19352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19355 _ACEOF
19357 ac_header_dirent=$ac_hdr; break
19360 done
19361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19362 if test $ac_header_dirent = dirent.h; then
19363 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19365 if test "${ac_cv_search_opendir+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 ac_func_search_save_LIBS=$LIBS
19369 cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h. */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19376 /* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply. */
19379 #ifdef __cplusplus
19380 extern "C"
19381 #endif
19382 char opendir ();
19384 main ()
19386 return opendir ();
19388 return 0;
19390 _ACEOF
19391 for ac_lib in '' dir; do
19392 if test -z "$ac_lib"; then
19393 ac_res="none required"
19394 else
19395 ac_res=-l$ac_lib
19396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_link") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest$ac_exeext &&
19415 $as_test_x conftest$ac_exeext; then
19416 ac_cv_search_opendir=$ac_res
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425 conftest$ac_exeext
19426 if test "${ac_cv_search_opendir+set}" = set; then
19427 break
19429 done
19430 if test "${ac_cv_search_opendir+set}" = set; then
19432 else
19433 ac_cv_search_opendir=no
19435 rm conftest.$ac_ext
19436 LIBS=$ac_func_search_save_LIBS
19438 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19439 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19440 ac_res=$ac_cv_search_opendir
19441 if test "$ac_res" != no; then
19442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19446 else
19447 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19449 if test "${ac_cv_search_opendir+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 else
19452 ac_func_search_save_LIBS=$LIBS
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h. */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h. */
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char opendir ();
19468 main ()
19470 return opendir ();
19472 return 0;
19474 _ACEOF
19475 for ac_lib in '' x; do
19476 if test -z "$ac_lib"; then
19477 ac_res="none required"
19478 else
19479 ac_res=-l$ac_lib
19480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19482 rm -f conftest.$ac_objext conftest$ac_exeext
19483 if { (ac_try="$ac_link"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19487 esac
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_link") 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } && {
19496 test -z "$ac_c_werror_flag" ||
19497 test ! -s conftest.err
19498 } && test -s conftest$ac_exeext &&
19499 $as_test_x conftest$ac_exeext; then
19500 ac_cv_search_opendir=$ac_res
19501 else
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19509 conftest$ac_exeext
19510 if test "${ac_cv_search_opendir+set}" = set; then
19511 break
19513 done
19514 if test "${ac_cv_search_opendir+set}" = set; then
19516 else
19517 ac_cv_search_opendir=no
19519 rm conftest.$ac_ext
19520 LIBS=$ac_func_search_save_LIBS
19522 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19524 ac_res=$ac_cv_search_opendir
19525 if test "$ac_res" != no; then
19526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19532 # Check whether --enable-ltdl-install was given.
19533 if test "${enable_ltdl_install+set}" = set; then
19534 enableval=$enable_ltdl_install;
19538 if test x"${enable_ltdl_install-no}" != xno; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define INSTALL_LTDL 1
19541 _ACEOF
19544 if test x"${enable_ltdl_convenience-no}" != xno; then
19545 cat >>confdefs.h <<\_ACEOF
19546 #define CONVENIENCE_LTDL 1
19547 _ACEOF
19552 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19553 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19554 if test "${libltdl_cv_shlibext+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19558 module=yes
19559 eval libltdl_cv_shlibext=$shrext
19562 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19563 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19564 if test -n "$libltdl_cv_shlibext"; then
19566 cat >>confdefs.h <<_ACEOF
19567 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19568 _ACEOF
19573 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19574 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19575 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19576 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578 libltdl_cv_shlibpath_var="$shlibpath_var"
19580 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19581 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19582 if test -n "$libltdl_cv_shlibpath_var"; then
19584 cat >>confdefs.h <<_ACEOF
19585 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19586 _ACEOF
19591 { echo "$as_me:$LINENO: checking for the default library search path" >&5
19592 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19593 if test "${libltdl_cv_sys_search_path+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19599 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19600 if test -n "$libltdl_cv_sys_search_path"; then
19601 sys_search_path=
19602 for dir in $libltdl_cv_sys_search_path; do
19603 if test -z "$sys_search_path"; then
19604 sys_search_path="$dir"
19605 else
19606 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19608 done
19610 cat >>confdefs.h <<_ACEOF
19611 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19612 _ACEOF
19616 { echo "$as_me:$LINENO: checking for objdir" >&5
19617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19618 if test "${libltdl_cv_objdir+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19620 else
19621 libltdl_cv_objdir="$objdir"
19622 if test -n "$objdir"; then
19624 else
19625 rm -f .libs 2>/dev/null
19626 mkdir .libs 2>/dev/null
19627 if test -d .libs; then
19628 libltdl_cv_objdir=.libs
19629 else
19630 # MS-DOS does not allow filenames that begin with a dot.
19631 libltdl_cv_objdir=_libs
19633 rmdir .libs 2>/dev/null
19637 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19638 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19640 cat >>confdefs.h <<_ACEOF
19641 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19642 _ACEOF
19646 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19647 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19648 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19652 libltdl_cv_preloaded_symbols=yes
19653 else
19654 libltdl_cv_preloaded_symbols=no
19658 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19659 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19660 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define HAVE_PRELOADED_SYMBOLS 1
19664 _ACEOF
19668 LIBADD_DL=
19670 ac_ext=c
19671 ac_cpp='$CPP $CPPFLAGS'
19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19677 { echo "$as_me:$LINENO: checking for shl_load" >&5
19678 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19679 if test "${ac_cv_func_shl_load+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19681 else
19682 cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h. */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h. */
19688 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19690 #define shl_load innocuous_shl_load
19692 /* System header to define __stub macros and hopefully few prototypes,
19693 which can conflict with char shl_load (); below.
19694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19695 <limits.h> exists even on freestanding compilers. */
19697 #ifdef __STDC__
19698 # include <limits.h>
19699 #else
19700 # include <assert.h>
19701 #endif
19703 #undef shl_load
19705 /* Override any GCC internal prototype to avoid an error.
19706 Use char because int might match the return type of a GCC
19707 builtin and then its argument prototype would still apply. */
19708 #ifdef __cplusplus
19709 extern "C"
19710 #endif
19711 char shl_load ();
19712 /* The GNU C library defines this for functions which it implements
19713 to always fail with ENOSYS. Some functions are actually named
19714 something starting with __ and the normal name is an alias. */
19715 #if defined __stub_shl_load || defined __stub___shl_load
19716 choke me
19717 #endif
19720 main ()
19722 return shl_load ();
19724 return 0;
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (ac_try="$ac_link"
19729 case "(($ac_try" in
19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731 *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734 (eval "$ac_link") 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest$ac_exeext &&
19744 $as_test_x conftest$ac_exeext; then
19745 ac_cv_func_shl_load=yes
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19750 ac_cv_func_shl_load=no
19753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19754 conftest$ac_exeext conftest.$ac_ext
19756 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19757 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19758 if test $ac_cv_func_shl_load = yes; then
19760 cat >>confdefs.h <<\_ACEOF
19761 #define HAVE_SHL_LOAD 1
19762 _ACEOF
19764 else
19765 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
19767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 ac_check_lib_save_LIBS=$LIBS
19771 LIBS="-ldld $LIBS"
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19782 #ifdef __cplusplus
19783 extern "C"
19784 #endif
19785 char shl_load ();
19787 main ()
19789 return shl_load ();
19791 return 0;
19793 _ACEOF
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19799 esac
19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19802 ac_status=$?
19803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_dld_shl_load=yes
19813 else
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_lib_dld_shl_load=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19826 if test $ac_cv_lib_dld_shl_load = yes; then
19828 cat >>confdefs.h <<\_ACEOF
19829 #define HAVE_SHL_LOAD 1
19830 _ACEOF
19832 LIBADD_DL="$LIBADD_DL -ldld"
19833 else
19834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839 ac_check_lib_save_LIBS=$LIBS
19840 LIBS="-ldl $LIBS"
19841 cat >conftest.$ac_ext <<_ACEOF
19842 /* confdefs.h. */
19843 _ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19848 /* Override any GCC internal prototype to avoid an error.
19849 Use char because int might match the return type of a GCC
19850 builtin and then its argument prototype would still apply. */
19851 #ifdef __cplusplus
19852 extern "C"
19853 #endif
19854 char dlopen ();
19856 main ()
19858 return dlopen ();
19860 return 0;
19862 _ACEOF
19863 rm -f conftest.$ac_objext conftest$ac_exeext
19864 if { (ac_try="$ac_link"
19865 case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19868 esac
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_link") 2>conftest.er1
19871 ac_status=$?
19872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } && {
19877 test -z "$ac_c_werror_flag" ||
19878 test ! -s conftest.err
19879 } && test -s conftest$ac_exeext &&
19880 $as_test_x conftest$ac_exeext; then
19881 ac_cv_lib_dl_dlopen=yes
19882 else
19883 echo "$as_me: failed program was:" >&5
19884 sed 's/^/| /' conftest.$ac_ext >&5
19886 ac_cv_lib_dl_dlopen=no
19889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19890 conftest$ac_exeext conftest.$ac_ext
19891 LIBS=$ac_check_lib_save_LIBS
19893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19895 if test $ac_cv_lib_dl_dlopen = yes; then
19897 cat >>confdefs.h <<\_ACEOF
19898 #define HAVE_LIBDL 1
19899 _ACEOF
19901 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19902 else
19903 cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h. */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 #if HAVE_DLFCN_H
19910 # include <dlfcn.h>
19911 #endif
19914 main ()
19916 dlopen(0, 0);
19918 return 0;
19920 _ACEOF
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926 esac
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19929 ac_status=$?
19930 grep -v '^ *+' conftest.er1 >conftest.err
19931 rm -f conftest.er1
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_LIBDL 1
19942 _ACEOF
19943 libltdl_cv_func_dlopen="yes"
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19949 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 else
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lsvld $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19965 #ifdef __cplusplus
19966 extern "C"
19967 #endif
19968 char dlopen ();
19970 main ()
19972 return dlopen ();
19974 return 0;
19976 _ACEOF
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_svld_dlopen=yes
19996 else
19997 echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_svld_dlopen=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20009 if test $ac_cv_lib_svld_dlopen = yes; then
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_LIBDL 1
20013 _ACEOF
20015 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20016 else
20017 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20018 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 else
20022 ac_check_lib_save_LIBS=$LIBS
20023 LIBS="-ldld $LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
20025 /* confdefs.h. */
20026 _ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20034 #ifdef __cplusplus
20035 extern "C"
20036 #endif
20037 char dld_link ();
20039 main ()
20041 return dld_link ();
20043 return 0;
20045 _ACEOF
20046 rm -f conftest.$ac_objext conftest$ac_exeext
20047 if { (ac_try="$ac_link"
20048 case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051 esac
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_link") 2>conftest.er1
20054 ac_status=$?
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } && {
20060 test -z "$ac_c_werror_flag" ||
20061 test ! -s conftest.err
20062 } && test -s conftest$ac_exeext &&
20063 $as_test_x conftest$ac_exeext; then
20064 ac_cv_lib_dld_dld_link=yes
20065 else
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.$ac_ext >&5
20069 ac_cv_lib_dld_dld_link=no
20072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20073 conftest$ac_exeext conftest.$ac_ext
20074 LIBS=$ac_check_lib_save_LIBS
20076 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20078 if test $ac_cv_lib_dld_dld_link = yes; then
20080 cat >>confdefs.h <<\_ACEOF
20081 #define HAVE_DLD 1
20082 _ACEOF
20084 LIBADD_DL="$LIBADD_DL -ldld"
20085 else
20086 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20087 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20088 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define _dyld_func_lookup innocuous__dyld_func_lookup
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char _dyld_func_lookup (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20106 #ifdef __STDC__
20107 # include <limits.h>
20108 #else
20109 # include <assert.h>
20110 #endif
20112 #undef _dyld_func_lookup
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char _dyld_func_lookup ();
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20125 choke me
20126 #endif
20129 main ()
20131 return _dyld_func_lookup ();
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_func__dyld_func_lookup=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_func__dyld_func_lookup=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20166 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20167 if test $ac_cv_func__dyld_func_lookup = yes; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_DYLD 1
20171 _ACEOF
20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185 conftest$ac_exeext conftest.$ac_ext
20196 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20197 then
20198 lt_save_LIBS="$LIBS"
20199 LIBS="$LIBS $LIBADD_DL"
20201 for ac_func in dlerror
20203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209 cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h. */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20217 #define $ac_func innocuous_$ac_func
20219 /* System header to define __stub macros and hopefully few prototypes,
20220 which can conflict with char $ac_func (); below.
20221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20222 <limits.h> exists even on freestanding compilers. */
20224 #ifdef __STDC__
20225 # include <limits.h>
20226 #else
20227 # include <assert.h>
20228 #endif
20230 #undef $ac_func
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char $ac_func ();
20239 /* The GNU C library defines this for functions which it implements
20240 to always fail with ENOSYS. Some functions are actually named
20241 something starting with __ and the normal name is an alias. */
20242 #if defined __stub_$ac_func || defined __stub___$ac_func
20243 choke me
20244 #endif
20247 main ()
20249 return $ac_func ();
20251 return 0;
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 eval "$as_ac_var=yes"
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 eval "$as_ac_var=no"
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20283 ac_res=`eval echo '${'$as_ac_var'}'`
20284 { echo "$as_me:$LINENO: result: $ac_res" >&5
20285 echo "${ECHO_T}$ac_res" >&6; }
20286 if test `eval echo '${'$as_ac_var'}'` = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20289 _ACEOF
20292 done
20294 LIBS="$lt_save_LIBS"
20296 ac_ext=c
20297 ac_cpp='$CPP $CPPFLAGS'
20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20305 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20306 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 else
20309 ac_cv_sys_symbol_underscore=no
20310 cat > conftest.$ac_ext <<EOF
20311 void nm_test_func(){}
20312 int main(){nm_test_func;return 0;}
20314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20315 (eval $ac_compile) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; then
20319 # Now try to grab the symbols.
20320 ac_nlist=conftest.nm
20321 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20322 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20323 ac_status=$?
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } && test -s "$ac_nlist"; then
20326 # See whether the symbols have a leading underscore.
20327 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20328 ac_cv_sys_symbol_underscore=yes
20329 else
20330 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20332 else
20333 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20336 else
20337 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20339 else
20340 echo "configure: failed program was:" >&5
20341 cat conftest.c >&5
20343 rm -rf conftest*
20346 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20347 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20350 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20351 if test x"$libltdl_cv_func_dlopen" = xyes ||
20352 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20353 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20354 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20355 if test "${libltdl_cv_need_uscore+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358 libltdl_cv_need_uscore=unknown
20359 save_LIBS="$LIBS"
20360 LIBS="$LIBS $LIBADD_DL"
20361 if test "$cross_compiling" = yes; then :
20362 libltdl_cv_need_uscore=cross
20363 else
20364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20365 lt_status=$lt_dlunknown
20366 cat > conftest.$ac_ext <<EOF
20367 #line 20367 "configure"
20368 #include "confdefs.h"
20370 #if HAVE_DLFCN_H
20371 #include <dlfcn.h>
20372 #endif
20374 #include <stdio.h>
20376 #ifdef RTLD_GLOBAL
20377 # define LT_DLGLOBAL RTLD_GLOBAL
20378 #else
20379 # ifdef DL_GLOBAL
20380 # define LT_DLGLOBAL DL_GLOBAL
20381 # else
20382 # define LT_DLGLOBAL 0
20383 # endif
20384 #endif
20386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20387 find out it does not work in some platform. */
20388 #ifndef LT_DLLAZY_OR_NOW
20389 # ifdef RTLD_LAZY
20390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20391 # else
20392 # ifdef DL_LAZY
20393 # define LT_DLLAZY_OR_NOW DL_LAZY
20394 # else
20395 # ifdef RTLD_NOW
20396 # define LT_DLLAZY_OR_NOW RTLD_NOW
20397 # else
20398 # ifdef DL_NOW
20399 # define LT_DLLAZY_OR_NOW DL_NOW
20400 # else
20401 # define LT_DLLAZY_OR_NOW 0
20402 # endif
20403 # endif
20404 # endif
20405 # endif
20406 #endif
20408 #ifdef __cplusplus
20409 extern "C" void exit (int);
20410 #endif
20412 void fnord() { int i=42;}
20413 int main ()
20415 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20416 int status = $lt_dlunknown;
20418 if (self)
20420 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20421 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20422 /* dlclose (self); */
20425 exit (status);
20428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20429 (eval $ac_link) 2>&5
20430 ac_status=$?
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20433 (./conftest; exit; ) 2>/dev/null
20434 lt_status=$?
20435 case x$lt_status in
20436 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20437 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20438 x$lt_unknown|x*) ;;
20439 esac
20440 else :
20441 # compilation failed
20445 rm -fr conftest*
20447 LIBS="$save_LIBS"
20450 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20451 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20455 if test x"$libltdl_cv_need_uscore" = xyes; then
20457 cat >>confdefs.h <<\_ACEOF
20458 #define NEED_USCORE 1
20459 _ACEOF
20464 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20465 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20466 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 else
20469 # PORTME does your system automatically load deplibs for dlopen?
20470 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20471 # For now, we just catch OSes we know something about -- in the
20472 # future, we'll try test this programmatically.
20473 libltdl_cv_sys_dlopen_deplibs=unknown
20474 case "$host_os" in
20475 aix3*|aix4.1.*|aix4.2.*)
20476 # Unknown whether this is true for these versions of AIX, but
20477 # we want this `case' here to explicitly catch those versions.
20478 libltdl_cv_sys_dlopen_deplibs=unknown
20480 aix[45]*)
20481 libltdl_cv_sys_dlopen_deplibs=yes
20483 darwin*)
20484 # Assuming the user has installed a libdl from somewhere, this is true
20485 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20486 libltdl_cv_sys_dlopen_deplibs=yes
20488 kfreebsd*-gnu)
20489 libltdl_cv_sys_dlopen_deplibs=yes
20491 gnu*)
20492 libltdl_cv_sys_dlopen_deplibs=yes
20494 hpux10*|hpux11*)
20495 libltdl_cv_sys_dlopen_deplibs=yes
20497 irix[12345]*|irix6.[01]*)
20498 # Catch all versions of IRIX before 6.2, and indicate that we don't
20499 # know how it worked for any of those versions.
20500 libltdl_cv_sys_dlopen_deplibs=unknown
20502 irix*)
20503 # The case above catches anything before 6.2, and it's known that
20504 # at 6.2 and later dlopen does load deplibs.
20505 libltdl_cv_sys_dlopen_deplibs=yes
20507 linux*)
20508 libltdl_cv_sys_dlopen_deplibs=yes
20510 netbsd*)
20511 libltdl_cv_sys_dlopen_deplibs=yes
20513 openbsd*)
20514 libltdl_cv_sys_dlopen_deplibs=yes
20516 osf[1234]*)
20517 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20518 # it did *not* use an RPATH in a shared library to find objects the
20519 # library depends on, so we explictly say `no'.
20520 libltdl_cv_sys_dlopen_deplibs=no
20522 osf5.0|osf5.0a|osf5.1)
20523 # dlopen *does* load deplibs and with the right loader patch applied
20524 # it even uses RPATH in a shared library to search for shared objects
20525 # that the library depends on, but there's no easy way to know if that
20526 # patch is installed. Since this is the case, all we can really
20527 # say is unknown -- it depends on the patch being installed. If
20528 # it is, this changes to `yes'. Without it, it would be `no'.
20529 libltdl_cv_sys_dlopen_deplibs=unknown
20531 osf*)
20532 # the two cases above should catch all versions of osf <= 5.1. Read
20533 # the comments above for what we know about them.
20534 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20535 # is used to find them so we can finally say `yes'.
20536 libltdl_cv_sys_dlopen_deplibs=yes
20538 solaris*)
20539 libltdl_cv_sys_dlopen_deplibs=yes
20541 esac
20544 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20545 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20546 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20548 cat >>confdefs.h <<\_ACEOF
20549 #define LTDL_DLOPEN_DEPLIBS 1
20550 _ACEOF
20555 for ac_header in argz.h
20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 ac_res=`eval echo '${'$as_ac_Header'}'`
20565 { echo "$as_me:$LINENO: result: $ac_res" >&5
20566 echo "${ECHO_T}$ac_res" >&6; }
20567 else
20568 # Is the header compilable?
20569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 $ac_includes_default
20578 #include <$ac_header>
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_compile") 2>conftest.er1
20588 ac_status=$?
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_c_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest.$ac_objext; then
20597 ac_header_compiler=yes
20598 else
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ac_header_compiler=no
20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20607 echo "${ECHO_T}$ac_header_compiler" >&6; }
20609 # Is the header present?
20610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20612 cat >conftest.$ac_ext <<_ACEOF
20613 /* confdefs.h. */
20614 _ACEOF
20615 cat confdefs.h >>conftest.$ac_ext
20616 cat >>conftest.$ac_ext <<_ACEOF
20617 /* end confdefs.h. */
20618 #include <$ac_header>
20619 _ACEOF
20620 if { (ac_try="$ac_cpp conftest.$ac_ext"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20624 esac
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20627 ac_status=$?
20628 grep -v '^ *+' conftest.er1 >conftest.err
20629 rm -f conftest.er1
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } >/dev/null && {
20633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20634 test ! -s conftest.err
20635 }; then
20636 ac_header_preproc=yes
20637 else
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_header_preproc=no
20644 rm -f conftest.err conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20646 echo "${ECHO_T}$ac_header_preproc" >&6; }
20648 # So? What about this header?
20649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20650 yes:no: )
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20655 ac_header_preproc=yes
20657 no:yes:* )
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20661 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20665 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20672 esac
20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678 eval "$as_ac_Header=\$ac_header_preproc"
20680 ac_res=`eval echo '${'$as_ac_Header'}'`
20681 { echo "$as_me:$LINENO: result: $ac_res" >&5
20682 echo "${ECHO_T}$ac_res" >&6; }
20685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20686 cat >>confdefs.h <<_ACEOF
20687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20688 _ACEOF
20692 done
20695 { echo "$as_me:$LINENO: checking for error_t" >&5
20696 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
20697 if test "${ac_cv_type_error_t+set}" = set; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
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. */
20706 #if HAVE_ARGZ_H
20707 # include <argz.h>
20708 #endif
20710 typedef error_t ac__type_new_;
20712 main ()
20714 if ((ac__type_new_ *) 0)
20715 return 0;
20716 if (sizeof (ac__type_new_))
20717 return 0;
20719 return 0;
20721 _ACEOF
20722 rm -f conftest.$ac_objext
20723 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20738 } && test -s conftest.$ac_objext; then
20739 ac_cv_type_error_t=yes
20740 else
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_cv_type_error_t=no
20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20750 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20751 if test $ac_cv_type_error_t = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_ERROR_T 1
20755 _ACEOF
20758 else
20760 cat >>confdefs.h <<\_ACEOF
20761 #define error_t int
20762 _ACEOF
20772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20778 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 else
20780 cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h. */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20788 #define $ac_func innocuous_$ac_func
20790 /* System header to define __stub macros and hopefully few prototypes,
20791 which can conflict with char $ac_func (); below.
20792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20793 <limits.h> exists even on freestanding compilers. */
20795 #ifdef __STDC__
20796 # include <limits.h>
20797 #else
20798 # include <assert.h>
20799 #endif
20801 #undef $ac_func
20803 /* Override any GCC internal prototype to avoid an error.
20804 Use char because int might match the return type of a GCC
20805 builtin and then its argument prototype would still apply. */
20806 #ifdef __cplusplus
20807 extern "C"
20808 #endif
20809 char $ac_func ();
20810 /* The GNU C library defines this for functions which it implements
20811 to always fail with ENOSYS. Some functions are actually named
20812 something starting with __ and the normal name is an alias. */
20813 #if defined __stub_$ac_func || defined __stub___$ac_func
20814 choke me
20815 #endif
20818 main ()
20820 return $ac_func ();
20822 return 0;
20824 _ACEOF
20825 rm -f conftest.$ac_objext conftest$ac_exeext
20826 if { (ac_try="$ac_link"
20827 case "(($ac_try" in
20828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20829 *) ac_try_echo=$ac_try;;
20830 esac
20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20832 (eval "$ac_link") 2>conftest.er1
20833 ac_status=$?
20834 grep -v '^ *+' conftest.er1 >conftest.err
20835 rm -f conftest.er1
20836 cat conftest.err >&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); } && {
20839 test -z "$ac_c_werror_flag" ||
20840 test ! -s conftest.err
20841 } && test -s conftest$ac_exeext &&
20842 $as_test_x conftest$ac_exeext; then
20843 eval "$as_ac_var=yes"
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 eval "$as_ac_var=no"
20851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20852 conftest$ac_exeext conftest.$ac_ext
20854 ac_res=`eval echo '${'$as_ac_var'}'`
20855 { echo "$as_me:$LINENO: result: $ac_res" >&5
20856 echo "${ECHO_T}$ac_res" >&6; }
20857 if test `eval echo '${'$as_ac_var'}'` = yes; then
20858 cat >>confdefs.h <<_ACEOF
20859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20860 _ACEOF
20863 done
20892 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20893 stdio.h unistd.h
20895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20902 ac_res=`eval echo '${'$as_ac_Header'}'`
20903 { echo "$as_me:$LINENO: result: $ac_res" >&5
20904 echo "${ECHO_T}$ac_res" >&6; }
20905 else
20906 # Is the header compilable?
20907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20909 cat >conftest.$ac_ext <<_ACEOF
20910 /* confdefs.h. */
20911 _ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20915 $ac_includes_default
20916 #include <$ac_header>
20917 _ACEOF
20918 rm -f conftest.$ac_objext
20919 if { (ac_try="$ac_compile"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_compile") 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } && {
20932 test -z "$ac_c_werror_flag" ||
20933 test ! -s conftest.err
20934 } && test -s conftest.$ac_objext; then
20935 ac_header_compiler=yes
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 ac_header_compiler=no
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20945 echo "${ECHO_T}$ac_header_compiler" >&6; }
20947 # Is the header present?
20948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <$ac_header>
20957 _ACEOF
20958 if { (ac_try="$ac_cpp conftest.$ac_ext"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } >/dev/null && {
20971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 }; then
20974 ac_header_preproc=yes
20975 else
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_header_preproc=no
20982 rm -f conftest.err conftest.$ac_ext
20983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20984 echo "${ECHO_T}$ac_header_preproc" >&6; }
20986 # So? What about this header?
20987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20988 yes:no: )
20989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20993 ac_header_preproc=yes
20995 no:yes:* )
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21010 esac
21011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21015 else
21016 eval "$as_ac_Header=\$ac_header_preproc"
21018 ac_res=`eval echo '${'$as_ac_Header'}'`
21019 { echo "$as_me:$LINENO: result: $ac_res" >&5
21020 echo "${ECHO_T}$ac_res" >&6; }
21023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21024 cat >>confdefs.h <<_ACEOF
21025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21026 _ACEOF
21030 done
21036 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 ac_res=`eval echo '${'$as_ac_Header'}'`
21046 { echo "$as_me:$LINENO: result: $ac_res" >&5
21047 echo "${ECHO_T}$ac_res" >&6; }
21048 else
21049 # Is the header compilable?
21050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058 $ac_includes_default
21059 #include <$ac_header>
21060 _ACEOF
21061 rm -f conftest.$ac_objext
21062 if { (ac_try="$ac_compile"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21066 esac
21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_compile") 2>conftest.er1
21069 ac_status=$?
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } && {
21075 test -z "$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21077 } && test -s conftest.$ac_objext; then
21078 ac_header_compiler=yes
21079 else
21080 echo "$as_me: failed program was:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_compiler=no
21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21088 echo "${ECHO_T}$ac_header_compiler" >&6; }
21090 # Is the header present?
21091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21093 cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h. */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 #include <$ac_header>
21100 _ACEOF
21101 if { (ac_try="$ac_cpp conftest.$ac_ext"
21102 case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21105 esac
21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21108 ac_status=$?
21109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } >/dev/null && {
21114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21115 test ! -s conftest.err
21116 }; then
21117 ac_header_preproc=yes
21118 else
21119 echo "$as_me: failed program was:" >&5
21120 sed 's/^/| /' conftest.$ac_ext >&5
21122 ac_header_preproc=no
21125 rm -f conftest.err conftest.$ac_ext
21126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21127 echo "${ECHO_T}$ac_header_preproc" >&6; }
21129 # So? What about this header?
21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21131 yes:no: )
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21136 ac_header_preproc=yes
21138 no:yes:* )
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21153 esac
21154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21158 else
21159 eval "$as_ac_Header=\$ac_header_preproc"
21161 ac_res=`eval echo '${'$as_ac_Header'}'`
21162 { echo "$as_me:$LINENO: result: $ac_res" >&5
21163 echo "${ECHO_T}$ac_res" >&6; }
21166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21167 cat >>confdefs.h <<_ACEOF
21168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21169 _ACEOF
21173 done
21177 for ac_header in string.h strings.h
21179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 ac_res=`eval echo '${'$as_ac_Header'}'`
21187 { echo "$as_me:$LINENO: result: $ac_res" >&5
21188 echo "${ECHO_T}$ac_res" >&6; }
21189 else
21190 # Is the header compilable?
21191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h. */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 $ac_includes_default
21200 #include <$ac_header>
21201 _ACEOF
21202 rm -f conftest.$ac_objext
21203 if { (ac_try="$ac_compile"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21207 esac
21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21209 (eval "$ac_compile") 2>conftest.er1
21210 ac_status=$?
21211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } && {
21216 test -z "$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21218 } && test -s conftest.$ac_objext; then
21219 ac_header_compiler=yes
21220 else
21221 echo "$as_me: failed program was:" >&5
21222 sed 's/^/| /' conftest.$ac_ext >&5
21224 ac_header_compiler=no
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21229 echo "${ECHO_T}$ac_header_compiler" >&6; }
21231 # Is the header present?
21232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h. */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 #include <$ac_header>
21241 _ACEOF
21242 if { (ac_try="$ac_cpp conftest.$ac_ext"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } >/dev/null && {
21255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 }; then
21258 ac_header_preproc=yes
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 ac_header_preproc=no
21266 rm -f conftest.err conftest.$ac_ext
21267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21268 echo "${ECHO_T}$ac_header_preproc" >&6; }
21270 # So? What about this header?
21271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21272 yes:no: )
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21277 ac_header_preproc=yes
21279 no:yes:* )
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21294 esac
21295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300 eval "$as_ac_Header=\$ac_header_preproc"
21302 ac_res=`eval echo '${'$as_ac_Header'}'`
21303 { echo "$as_me:$LINENO: result: $ac_res" >&5
21304 echo "${ECHO_T}$ac_res" >&6; }
21307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21308 cat >>confdefs.h <<_ACEOF
21309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21310 _ACEOF
21311 break
21314 done
21319 for ac_func in strchr index
21321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21325 echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327 cat >conftest.$ac_ext <<_ACEOF
21328 /* confdefs.h. */
21329 _ACEOF
21330 cat confdefs.h >>conftest.$ac_ext
21331 cat >>conftest.$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21335 #define $ac_func innocuous_$ac_func
21337 /* System header to define __stub macros and hopefully few prototypes,
21338 which can conflict with char $ac_func (); below.
21339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21340 <limits.h> exists even on freestanding compilers. */
21342 #ifdef __STDC__
21343 # include <limits.h>
21344 #else
21345 # include <assert.h>
21346 #endif
21348 #undef $ac_func
21350 /* Override any GCC internal prototype to avoid an error.
21351 Use char because int might match the return type of a GCC
21352 builtin and then its argument prototype would still apply. */
21353 #ifdef __cplusplus
21354 extern "C"
21355 #endif
21356 char $ac_func ();
21357 /* The GNU C library defines this for functions which it implements
21358 to always fail with ENOSYS. Some functions are actually named
21359 something starting with __ and the normal name is an alias. */
21360 #if defined __stub_$ac_func || defined __stub___$ac_func
21361 choke me
21362 #endif
21365 main ()
21367 return $ac_func ();
21369 return 0;
21371 _ACEOF
21372 rm -f conftest.$ac_objext conftest$ac_exeext
21373 if { (ac_try="$ac_link"
21374 case "(($ac_try" in
21375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21376 *) ac_try_echo=$ac_try;;
21377 esac
21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21379 (eval "$ac_link") 2>conftest.er1
21380 ac_status=$?
21381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } && {
21386 test -z "$ac_c_werror_flag" ||
21387 test ! -s conftest.err
21388 } && test -s conftest$ac_exeext &&
21389 $as_test_x conftest$ac_exeext; then
21390 eval "$as_ac_var=yes"
21391 else
21392 echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 eval "$as_ac_var=no"
21398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21399 conftest$ac_exeext conftest.$ac_ext
21401 ac_res=`eval echo '${'$as_ac_var'}'`
21402 { echo "$as_me:$LINENO: result: $ac_res" >&5
21403 echo "${ECHO_T}$ac_res" >&6; }
21404 if test `eval echo '${'$as_ac_var'}'` = yes; then
21405 cat >>confdefs.h <<_ACEOF
21406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21407 _ACEOF
21408 break
21410 done
21414 for ac_func in strrchr rindex
21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21420 echo $ECHO_N "(cached) $ECHO_C" >&6
21421 else
21422 cat >conftest.$ac_ext <<_ACEOF
21423 /* confdefs.h. */
21424 _ACEOF
21425 cat confdefs.h >>conftest.$ac_ext
21426 cat >>conftest.$ac_ext <<_ACEOF
21427 /* end confdefs.h. */
21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21430 #define $ac_func innocuous_$ac_func
21432 /* System header to define __stub macros and hopefully few prototypes,
21433 which can conflict with char $ac_func (); below.
21434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21435 <limits.h> exists even on freestanding compilers. */
21437 #ifdef __STDC__
21438 # include <limits.h>
21439 #else
21440 # include <assert.h>
21441 #endif
21443 #undef $ac_func
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char $ac_func ();
21452 /* The GNU C library defines this for functions which it implements
21453 to always fail with ENOSYS. Some functions are actually named
21454 something starting with __ and the normal name is an alias. */
21455 #if defined __stub_$ac_func || defined __stub___$ac_func
21456 choke me
21457 #endif
21460 main ()
21462 return $ac_func ();
21464 return 0;
21466 _ACEOF
21467 rm -f conftest.$ac_objext conftest$ac_exeext
21468 if { (ac_try="$ac_link"
21469 case "(($ac_try" in
21470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21471 *) ac_try_echo=$ac_try;;
21472 esac
21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21474 (eval "$ac_link") 2>conftest.er1
21475 ac_status=$?
21476 grep -v '^ *+' conftest.er1 >conftest.err
21477 rm -f conftest.er1
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } && {
21481 test -z "$ac_c_werror_flag" ||
21482 test ! -s conftest.err
21483 } && test -s conftest$ac_exeext &&
21484 $as_test_x conftest$ac_exeext; then
21485 eval "$as_ac_var=yes"
21486 else
21487 echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 eval "$as_ac_var=no"
21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21494 conftest$ac_exeext conftest.$ac_ext
21496 ac_res=`eval echo '${'$as_ac_var'}'`
21497 { echo "$as_me:$LINENO: result: $ac_res" >&5
21498 echo "${ECHO_T}$ac_res" >&6; }
21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
21500 cat >>confdefs.h <<_ACEOF
21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21502 _ACEOF
21503 break
21505 done
21509 for ac_func in memcpy bcopy
21511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h. */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21525 #define $ac_func innocuous_$ac_func
21527 /* System header to define __stub macros and hopefully few prototypes,
21528 which can conflict with char $ac_func (); below.
21529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21530 <limits.h> exists even on freestanding compilers. */
21532 #ifdef __STDC__
21533 # include <limits.h>
21534 #else
21535 # include <assert.h>
21536 #endif
21538 #undef $ac_func
21540 /* Override any GCC internal prototype to avoid an error.
21541 Use char because int might match the return type of a GCC
21542 builtin and then its argument prototype would still apply. */
21543 #ifdef __cplusplus
21544 extern "C"
21545 #endif
21546 char $ac_func ();
21547 /* The GNU C library defines this for functions which it implements
21548 to always fail with ENOSYS. Some functions are actually named
21549 something starting with __ and the normal name is an alias. */
21550 #if defined __stub_$ac_func || defined __stub___$ac_func
21551 choke me
21552 #endif
21555 main ()
21557 return $ac_func ();
21559 return 0;
21561 _ACEOF
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (ac_try="$ac_link"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_link") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest$ac_exeext &&
21579 $as_test_x conftest$ac_exeext; then
21580 eval "$as_ac_var=yes"
21581 else
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21585 eval "$as_ac_var=no"
21588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21589 conftest$ac_exeext conftest.$ac_ext
21591 ac_res=`eval echo '${'$as_ac_var'}'`
21592 { echo "$as_me:$LINENO: result: $ac_res" >&5
21593 echo "${ECHO_T}$ac_res" >&6; }
21594 if test `eval echo '${'$as_ac_var'}'` = yes; then
21595 cat >>confdefs.h <<_ACEOF
21596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21597 _ACEOF
21598 break
21600 done
21604 for ac_func in memmove strcmp
21606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21610 echo $ECHO_N "(cached) $ECHO_C" >&6
21611 else
21612 cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h. */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h. */
21618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21620 #define $ac_func innocuous_$ac_func
21622 /* System header to define __stub macros and hopefully few prototypes,
21623 which can conflict with char $ac_func (); below.
21624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21625 <limits.h> exists even on freestanding compilers. */
21627 #ifdef __STDC__
21628 # include <limits.h>
21629 #else
21630 # include <assert.h>
21631 #endif
21633 #undef $ac_func
21635 /* Override any GCC internal prototype to avoid an error.
21636 Use char because int might match the return type of a GCC
21637 builtin and then its argument prototype would still apply. */
21638 #ifdef __cplusplus
21639 extern "C"
21640 #endif
21641 char $ac_func ();
21642 /* The GNU C library defines this for functions which it implements
21643 to always fail with ENOSYS. Some functions are actually named
21644 something starting with __ and the normal name is an alias. */
21645 #if defined __stub_$ac_func || defined __stub___$ac_func
21646 choke me
21647 #endif
21650 main ()
21652 return $ac_func ();
21654 return 0;
21656 _ACEOF
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_link") 2>conftest.er1
21665 ac_status=$?
21666 grep -v '^ *+' conftest.er1 >conftest.err
21667 rm -f conftest.er1
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); } && {
21671 test -z "$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21673 } && test -s conftest$ac_exeext &&
21674 $as_test_x conftest$ac_exeext; then
21675 eval "$as_ac_var=yes"
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 eval "$as_ac_var=no"
21683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21684 conftest$ac_exeext conftest.$ac_ext
21686 ac_res=`eval echo '${'$as_ac_var'}'`
21687 { echo "$as_me:$LINENO: result: $ac_res" >&5
21688 echo "${ECHO_T}$ac_res" >&6; }
21689 if test `eval echo '${'$as_ac_var'}'` = yes; then
21690 cat >>confdefs.h <<_ACEOF
21691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21692 _ACEOF
21695 done
21700 for ac_func in closedir opendir readdir
21702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 else
21708 cat >conftest.$ac_ext <<_ACEOF
21709 /* confdefs.h. */
21710 _ACEOF
21711 cat confdefs.h >>conftest.$ac_ext
21712 cat >>conftest.$ac_ext <<_ACEOF
21713 /* end confdefs.h. */
21714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21716 #define $ac_func innocuous_$ac_func
21718 /* System header to define __stub macros and hopefully few prototypes,
21719 which can conflict with char $ac_func (); below.
21720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21721 <limits.h> exists even on freestanding compilers. */
21723 #ifdef __STDC__
21724 # include <limits.h>
21725 #else
21726 # include <assert.h>
21727 #endif
21729 #undef $ac_func
21731 /* Override any GCC internal prototype to avoid an error.
21732 Use char because int might match the return type of a GCC
21733 builtin and then its argument prototype would still apply. */
21734 #ifdef __cplusplus
21735 extern "C"
21736 #endif
21737 char $ac_func ();
21738 /* The GNU C library defines this for functions which it implements
21739 to always fail with ENOSYS. Some functions are actually named
21740 something starting with __ and the normal name is an alias. */
21741 #if defined __stub_$ac_func || defined __stub___$ac_func
21742 choke me
21743 #endif
21746 main ()
21748 return $ac_func ();
21750 return 0;
21752 _ACEOF
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21758 esac
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_link") 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest$ac_exeext &&
21770 $as_test_x conftest$ac_exeext; then
21771 eval "$as_ac_var=yes"
21772 else
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 eval "$as_ac_var=no"
21779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21780 conftest$ac_exeext conftest.$ac_ext
21782 ac_res=`eval echo '${'$as_ac_var'}'`
21783 { echo "$as_me:$LINENO: result: $ac_res" >&5
21784 echo "${ECHO_T}$ac_res" >&6; }
21785 if test `eval echo '${'$as_ac_var'}'` = yes; then
21786 cat >>confdefs.h <<_ACEOF
21787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21788 _ACEOF
21791 done
21795 { echo "$as_me:$LINENO: checking for X" >&5
21796 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21799 # Check whether --with-x was given.
21800 if test "${with_x+set}" = set; then
21801 withval=$with_x;
21804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21805 if test "x$with_x" = xno; then
21806 # The user explicitly disabled X.
21807 have_x=disabled
21808 else
21809 case $x_includes,$x_libraries in #(
21810 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21811 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21812 { (exit 1); exit 1; }; };; #(
21813 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21814 echo $ECHO_N "(cached) $ECHO_C" >&6
21815 else
21816 # One or both of the vars are not set, and there is no cached value.
21817 ac_x_includes=no ac_x_libraries=no
21818 rm -f -r conftest.dir
21819 if mkdir conftest.dir; then
21820 cd conftest.dir
21821 cat >Imakefile <<'_ACEOF'
21822 incroot:
21823 @echo incroot='${INCROOT}'
21824 usrlibdir:
21825 @echo usrlibdir='${USRLIBDIR}'
21826 libdir:
21827 @echo libdir='${LIBDIR}'
21828 _ACEOF
21829 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21831 for ac_var in incroot usrlibdir libdir; do
21832 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21833 done
21834 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21835 for ac_extension in a so sl; do
21836 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21837 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21838 ac_im_usrlibdir=$ac_im_libdir; break
21840 done
21841 # Screen out bogus values from the imake configuration. They are
21842 # bogus both because they are the default anyway, and because
21843 # using them would break gcc on systems where it needs fixed includes.
21844 case $ac_im_incroot in
21845 /usr/include) ac_x_includes= ;;
21846 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21847 esac
21848 case $ac_im_usrlibdir in
21849 /usr/lib | /lib) ;;
21850 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21851 esac
21853 cd ..
21854 rm -f -r conftest.dir
21857 # Standard set of common directories for X headers.
21858 # Check X11 before X11Rn because it is often a symlink to the current release.
21859 ac_x_header_dirs='
21860 /usr/X11/include
21861 /usr/X11R6/include
21862 /usr/X11R5/include
21863 /usr/X11R4/include
21865 /usr/include/X11
21866 /usr/include/X11R6
21867 /usr/include/X11R5
21868 /usr/include/X11R4
21870 /usr/local/X11/include
21871 /usr/local/X11R6/include
21872 /usr/local/X11R5/include
21873 /usr/local/X11R4/include
21875 /usr/local/include/X11
21876 /usr/local/include/X11R6
21877 /usr/local/include/X11R5
21878 /usr/local/include/X11R4
21880 /usr/X386/include
21881 /usr/x386/include
21882 /usr/XFree86/include/X11
21884 /usr/include
21885 /usr/local/include
21886 /usr/unsupported/include
21887 /usr/athena/include
21888 /usr/local/x11r5/include
21889 /usr/lpp/Xamples/include
21891 /usr/openwin/include
21892 /usr/openwin/share/include'
21894 if test "$ac_x_includes" = no; then
21895 # Guess where to find include files, by looking for Xlib.h.
21896 # First, try using that file with no special directory specified.
21897 cat >conftest.$ac_ext <<_ACEOF
21898 /* confdefs.h. */
21899 _ACEOF
21900 cat confdefs.h >>conftest.$ac_ext
21901 cat >>conftest.$ac_ext <<_ACEOF
21902 /* end confdefs.h. */
21903 #include <X11/Xlib.h>
21904 _ACEOF
21905 if { (ac_try="$ac_cpp conftest.$ac_ext"
21906 case "(($ac_try" in
21907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908 *) ac_try_echo=$ac_try;;
21909 esac
21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } >/dev/null && {
21918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 }; then
21921 # We can compile using X headers with no special include directory.
21922 ac_x_includes=
21923 else
21924 echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21927 for ac_dir in $ac_x_header_dirs; do
21928 if test -r "$ac_dir/X11/Xlib.h"; then
21929 ac_x_includes=$ac_dir
21930 break
21932 done
21935 rm -f conftest.err conftest.$ac_ext
21936 fi # $ac_x_includes = no
21938 if test "$ac_x_libraries" = no; then
21939 # Check for the libraries.
21940 # See if we find them without any special options.
21941 # Don't add to $LIBS permanently.
21942 ac_save_LIBS=$LIBS
21943 LIBS="-lX11 $LIBS"
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <X11/Xlib.h>
21952 main ()
21954 XrmInitialize ()
21956 return 0;
21958 _ACEOF
21959 rm -f conftest.$ac_objext conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964 esac
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_link") 2>conftest.er1
21967 ac_status=$?
21968 grep -v '^ *+' conftest.er1 >conftest.err
21969 rm -f conftest.er1
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); } && {
21973 test -z "$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21975 } && test -s conftest$ac_exeext &&
21976 $as_test_x conftest$ac_exeext; then
21977 LIBS=$ac_save_LIBS
21978 # We can link X programs with no special library path.
21979 ac_x_libraries=
21980 else
21981 echo "$as_me: failed program was:" >&5
21982 sed 's/^/| /' conftest.$ac_ext >&5
21984 LIBS=$ac_save_LIBS
21985 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21987 # Don't even attempt the hair of trying to link an X program!
21988 for ac_extension in a so sl; do
21989 if test -r "$ac_dir/libX11.$ac_extension"; then
21990 ac_x_libraries=$ac_dir
21991 break 2
21993 done
21994 done
21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21998 conftest$ac_exeext conftest.$ac_ext
21999 fi # $ac_x_libraries = no
22001 case $ac_x_includes,$ac_x_libraries in #(
22002 no,* | *,no | *\'*)
22003 # Didn't find X, or a directory has "'" in its name.
22004 ac_cv_have_x="have_x=no";; #(
22006 # Record where we found X for the cache.
22007 ac_cv_have_x="have_x=yes\
22008 ac_x_includes='$ac_x_includes'\
22009 ac_x_libraries='$ac_x_libraries'"
22010 esac
22012 ;; #(
22013 *) have_x=yes;;
22014 esac
22015 eval "$ac_cv_have_x"
22016 fi # $with_x != no
22018 if test "$have_x" != yes; then
22019 { echo "$as_me:$LINENO: result: $have_x" >&5
22020 echo "${ECHO_T}$have_x" >&6; }
22021 no_x=yes
22022 else
22023 # If each of the values was on the command line, it overrides each guess.
22024 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22025 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22026 # Update the cache value to reflect the command line values.
22027 ac_cv_have_x="have_x=yes\
22028 ac_x_includes='$x_includes'\
22029 ac_x_libraries='$x_libraries'"
22030 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22031 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22034 if test "$no_x" = yes; then
22035 # Not all programs may use this symbol, but it does not hurt to define it.
22037 cat >>confdefs.h <<\_ACEOF
22038 #define X_DISPLAY_MISSING 1
22039 _ACEOF
22041 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22042 else
22043 if test -n "$x_includes"; then
22044 X_CFLAGS="$X_CFLAGS -I$x_includes"
22047 # It would also be nice to do this for all -L options, not just this one.
22048 if test -n "$x_libraries"; then
22049 X_LIBS="$X_LIBS -L$x_libraries"
22050 # For Solaris; some versions of Sun CC require a space after -R and
22051 # others require no space. Words are not sufficient . . . .
22052 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22053 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22054 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22055 ac_xsave_c_werror_flag=$ac_c_werror_flag
22056 ac_c_werror_flag=yes
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h. */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22065 main ()
22069 return 0;
22071 _ACEOF
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22080 ac_status=$?
22081 grep -v '^ *+' conftest.er1 >conftest.err
22082 rm -f conftest.er1
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 { echo "$as_me:$LINENO: result: no" >&5
22091 echo "${ECHO_T}no" >&6; }
22092 X_LIBS="$X_LIBS -R$x_libraries"
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22097 LIBS="$ac_xsave_LIBS -R $x_libraries"
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h. */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h. */
22106 main ()
22110 return 0;
22112 _ACEOF
22113 rm -f conftest.$ac_objext conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_link") 2>conftest.er1
22121 ac_status=$?
22122 grep -v '^ *+' conftest.er1 >conftest.err
22123 rm -f conftest.er1
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest$ac_exeext &&
22130 $as_test_x conftest$ac_exeext; then
22131 { echo "$as_me:$LINENO: result: yes" >&5
22132 echo "${ECHO_T}yes" >&6; }
22133 X_LIBS="$X_LIBS -R $x_libraries"
22134 else
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 { echo "$as_me:$LINENO: result: neither works" >&5
22139 echo "${ECHO_T}neither works" >&6; }
22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143 conftest$ac_exeext conftest.$ac_ext
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22148 ac_c_werror_flag=$ac_xsave_c_werror_flag
22149 LIBS=$ac_xsave_LIBS
22152 # Check for system-dependent libraries X programs must link with.
22153 # Do this before checking for the system-independent R6 libraries
22154 # (-lICE), since we may need -lsocket or whatever for X linking.
22156 if test "$ISC" = yes; then
22157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22158 else
22159 # Martyn Johnson says this is needed for Ultrix, if the X
22160 # libraries were built with DECnet support. And Karl Berry says
22161 # the Alpha needs dnet_stub (dnet does not exist).
22162 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22163 cat >conftest.$ac_ext <<_ACEOF
22164 /* confdefs.h. */
22165 _ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22170 /* Override any GCC internal prototype to avoid an error.
22171 Use char because int might match the return type of a GCC
22172 builtin and then its argument prototype would still apply. */
22173 #ifdef __cplusplus
22174 extern "C"
22175 #endif
22176 char XOpenDisplay ();
22178 main ()
22180 return XOpenDisplay ();
22182 return 0;
22184 _ACEOF
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (ac_try="$ac_link"
22187 case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_link") 2>conftest.er1
22193 ac_status=$?
22194 grep -v '^ *+' conftest.er1 >conftest.err
22195 rm -f conftest.er1
22196 cat conftest.err >&5
22197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198 (exit $ac_status); } && {
22199 test -z "$ac_c_werror_flag" ||
22200 test ! -s conftest.err
22201 } && test -s conftest$ac_exeext &&
22202 $as_test_x conftest$ac_exeext; then
22204 else
22205 echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.$ac_ext >&5
22208 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22209 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22210 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22211 echo $ECHO_N "(cached) $ECHO_C" >&6
22212 else
22213 ac_check_lib_save_LIBS=$LIBS
22214 LIBS="-ldnet $LIBS"
22215 cat >conftest.$ac_ext <<_ACEOF
22216 /* confdefs.h. */
22217 _ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22222 /* Override any GCC internal prototype to avoid an error.
22223 Use char because int might match the return type of a GCC
22224 builtin and then its argument prototype would still apply. */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char dnet_ntoa ();
22230 main ()
22232 return dnet_ntoa ();
22234 return 0;
22236 _ACEOF
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (ac_try="$ac_link"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_link") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest$ac_exeext &&
22254 $as_test_x conftest$ac_exeext; then
22255 ac_cv_lib_dnet_dnet_ntoa=yes
22256 else
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_lib_dnet_dnet_ntoa=no
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22265 LIBS=$ac_check_lib_save_LIBS
22267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22268 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22269 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22270 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22273 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22274 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22275 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22276 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22277 echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22279 ac_check_lib_save_LIBS=$LIBS
22280 LIBS="-ldnet_stub $LIBS"
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h. */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22288 /* Override any GCC internal prototype to avoid an error.
22289 Use char because int might match the return type of a GCC
22290 builtin and then its argument prototype would still apply. */
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char dnet_ntoa ();
22296 main ()
22298 return dnet_ntoa ();
22300 return 0;
22302 _ACEOF
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>conftest.er1
22311 ac_status=$?
22312 grep -v '^ *+' conftest.er1 >conftest.err
22313 rm -f conftest.er1
22314 cat conftest.err >&5
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); } && {
22317 test -z "$ac_c_werror_flag" ||
22318 test ! -s conftest.err
22319 } && test -s conftest$ac_exeext &&
22320 $as_test_x conftest$ac_exeext; then
22321 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22322 else
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_cv_lib_dnet_stub_dnet_ntoa=no
22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22330 conftest$ac_exeext conftest.$ac_ext
22331 LIBS=$ac_check_lib_save_LIBS
22333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22334 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22335 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22336 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22343 conftest$ac_exeext conftest.$ac_ext
22344 LIBS="$ac_xsave_LIBS"
22346 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22347 # to get the SysV transport functions.
22348 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22349 # needs -lnsl.
22350 # The nsl library prevents programs from opening the X display
22351 # on Irix 5.2, according to T.E. Dickey.
22352 # The functions gethostbyname, getservbyname, and inet_addr are
22353 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22354 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22355 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22356 if test "${ac_cv_func_gethostbyname+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358 else
22359 cat >conftest.$ac_ext <<_ACEOF
22360 /* confdefs.h. */
22361 _ACEOF
22362 cat confdefs.h >>conftest.$ac_ext
22363 cat >>conftest.$ac_ext <<_ACEOF
22364 /* end confdefs.h. */
22365 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22367 #define gethostbyname innocuous_gethostbyname
22369 /* System header to define __stub macros and hopefully few prototypes,
22370 which can conflict with char gethostbyname (); below.
22371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22372 <limits.h> exists even on freestanding compilers. */
22374 #ifdef __STDC__
22375 # include <limits.h>
22376 #else
22377 # include <assert.h>
22378 #endif
22380 #undef gethostbyname
22382 /* Override any GCC internal prototype to avoid an error.
22383 Use char because int might match the return type of a GCC
22384 builtin and then its argument prototype would still apply. */
22385 #ifdef __cplusplus
22386 extern "C"
22387 #endif
22388 char gethostbyname ();
22389 /* The GNU C library defines this for functions which it implements
22390 to always fail with ENOSYS. Some functions are actually named
22391 something starting with __ and the normal name is an alias. */
22392 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22393 choke me
22394 #endif
22397 main ()
22399 return gethostbyname ();
22401 return 0;
22403 _ACEOF
22404 rm -f conftest.$ac_objext conftest$ac_exeext
22405 if { (ac_try="$ac_link"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409 esac
22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22411 (eval "$ac_link") 2>conftest.er1
22412 ac_status=$?
22413 grep -v '^ *+' conftest.er1 >conftest.err
22414 rm -f conftest.er1
22415 cat conftest.err >&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); } && {
22418 test -z "$ac_c_werror_flag" ||
22419 test ! -s conftest.err
22420 } && test -s conftest$ac_exeext &&
22421 $as_test_x conftest$ac_exeext; then
22422 ac_cv_func_gethostbyname=yes
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_cv_func_gethostbyname=no
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22434 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22436 if test $ac_cv_func_gethostbyname = no; then
22437 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22438 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22439 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22440 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442 ac_check_lib_save_LIBS=$LIBS
22443 LIBS="-lnsl $LIBS"
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h. */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h. */
22451 /* Override any GCC internal prototype to avoid an error.
22452 Use char because int might match the return type of a GCC
22453 builtin and then its argument prototype would still apply. */
22454 #ifdef __cplusplus
22455 extern "C"
22456 #endif
22457 char gethostbyname ();
22459 main ()
22461 return gethostbyname ();
22463 return 0;
22465 _ACEOF
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (ac_try="$ac_link"
22468 case "(($ac_try" in
22469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470 *) ac_try_echo=$ac_try;;
22471 esac
22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473 (eval "$ac_link") 2>conftest.er1
22474 ac_status=$?
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
22478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext &&
22483 $as_test_x conftest$ac_exeext; then
22484 ac_cv_lib_nsl_gethostbyname=yes
22485 else
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_lib_nsl_gethostbyname=no
22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22493 conftest$ac_exeext conftest.$ac_ext
22494 LIBS=$ac_check_lib_save_LIBS
22496 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22499 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22502 if test $ac_cv_lib_nsl_gethostbyname = no; then
22503 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22504 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22505 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22507 else
22508 ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-lbsd $LIBS"
22510 cat >conftest.$ac_ext <<_ACEOF
22511 /* confdefs.h. */
22512 _ACEOF
22513 cat confdefs.h >>conftest.$ac_ext
22514 cat >>conftest.$ac_ext <<_ACEOF
22515 /* end confdefs.h. */
22517 /* Override any GCC internal prototype to avoid an error.
22518 Use char because int might match the return type of a GCC
22519 builtin and then its argument prototype would still apply. */
22520 #ifdef __cplusplus
22521 extern "C"
22522 #endif
22523 char gethostbyname ();
22525 main ()
22527 return gethostbyname ();
22529 return 0;
22531 _ACEOF
22532 rm -f conftest.$ac_objext conftest$ac_exeext
22533 if { (ac_try="$ac_link"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22537 esac
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_link") 2>conftest.er1
22540 ac_status=$?
22541 grep -v '^ *+' conftest.er1 >conftest.err
22542 rm -f conftest.er1
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest$ac_exeext &&
22549 $as_test_x conftest$ac_exeext; then
22550 ac_cv_lib_bsd_gethostbyname=yes
22551 else
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_cv_lib_bsd_gethostbyname=no
22558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22559 conftest$ac_exeext conftest.$ac_ext
22560 LIBS=$ac_check_lib_save_LIBS
22562 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22565 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22571 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22572 # socket/setsockopt and other routines are undefined under SCO ODT
22573 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22574 # on later versions), says Simon Leinen: it contains gethostby*
22575 # variants that don't use the name server (or something). -lsocket
22576 # must be given before -lnsl if both are needed. We assume that
22577 # if connect needs -lnsl, so does gethostbyname.
22578 { echo "$as_me:$LINENO: checking for connect" >&5
22579 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22580 if test "${ac_cv_func_connect+set}" = set; then
22581 echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h. */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22591 #define connect innocuous_connect
22593 /* System header to define __stub macros and hopefully few prototypes,
22594 which can conflict with char connect (); below.
22595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22596 <limits.h> exists even on freestanding compilers. */
22598 #ifdef __STDC__
22599 # include <limits.h>
22600 #else
22601 # include <assert.h>
22602 #endif
22604 #undef connect
22606 /* Override any GCC internal prototype to avoid an error.
22607 Use char because int might match the return type of a GCC
22608 builtin and then its argument prototype would still apply. */
22609 #ifdef __cplusplus
22610 extern "C"
22611 #endif
22612 char connect ();
22613 /* The GNU C library defines this for functions which it implements
22614 to always fail with ENOSYS. Some functions are actually named
22615 something starting with __ and the normal name is an alias. */
22616 #if defined __stub_connect || defined __stub___connect
22617 choke me
22618 #endif
22621 main ()
22623 return connect ();
22625 return 0;
22627 _ACEOF
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22633 esac
22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_link") 2>conftest.er1
22636 ac_status=$?
22637 grep -v '^ *+' conftest.er1 >conftest.err
22638 rm -f conftest.er1
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest$ac_exeext &&
22645 $as_test_x conftest$ac_exeext; then
22646 ac_cv_func_connect=yes
22647 else
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 ac_cv_func_connect=no
22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655 conftest$ac_exeext conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22658 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22660 if test $ac_cv_func_connect = no; then
22661 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22662 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22663 if test "${ac_cv_lib_socket_connect+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22665 else
22666 ac_check_lib_save_LIBS=$LIBS
22667 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 /* Override any GCC internal prototype to avoid an error.
22676 Use char because int might match the return type of a GCC
22677 builtin and then its argument prototype would still apply. */
22678 #ifdef __cplusplus
22679 extern "C"
22680 #endif
22681 char connect ();
22683 main ()
22685 return connect ();
22687 return 0;
22689 _ACEOF
22690 rm -f conftest.$ac_objext conftest$ac_exeext
22691 if { (ac_try="$ac_link"
22692 case "(($ac_try" in
22693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694 *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697 (eval "$ac_link") 2>conftest.er1
22698 ac_status=$?
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } && {
22704 test -z "$ac_c_werror_flag" ||
22705 test ! -s conftest.err
22706 } && test -s conftest$ac_exeext &&
22707 $as_test_x conftest$ac_exeext; then
22708 ac_cv_lib_socket_connect=yes
22709 else
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22713 ac_cv_lib_socket_connect=no
22716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22717 conftest$ac_exeext conftest.$ac_ext
22718 LIBS=$ac_check_lib_save_LIBS
22720 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22721 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22722 if test $ac_cv_lib_socket_connect = yes; then
22723 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22728 # Guillermo Gomez says -lposix is necessary on A/UX.
22729 { echo "$as_me:$LINENO: checking for remove" >&5
22730 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22731 if test "${ac_cv_func_remove+set}" = set; then
22732 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 else
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h. */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h. */
22740 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22742 #define remove innocuous_remove
22744 /* System header to define __stub macros and hopefully few prototypes,
22745 which can conflict with char remove (); below.
22746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22747 <limits.h> exists even on freestanding compilers. */
22749 #ifdef __STDC__
22750 # include <limits.h>
22751 #else
22752 # include <assert.h>
22753 #endif
22755 #undef remove
22757 /* Override any GCC internal prototype to avoid an error.
22758 Use char because int might match the return type of a GCC
22759 builtin and then its argument prototype would still apply. */
22760 #ifdef __cplusplus
22761 extern "C"
22762 #endif
22763 char remove ();
22764 /* The GNU C library defines this for functions which it implements
22765 to always fail with ENOSYS. Some functions are actually named
22766 something starting with __ and the normal name is an alias. */
22767 #if defined __stub_remove || defined __stub___remove
22768 choke me
22769 #endif
22772 main ()
22774 return remove ();
22776 return 0;
22778 _ACEOF
22779 rm -f conftest.$ac_objext conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_link") 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } && {
22793 test -z "$ac_c_werror_flag" ||
22794 test ! -s conftest.err
22795 } && test -s conftest$ac_exeext &&
22796 $as_test_x conftest$ac_exeext; then
22797 ac_cv_func_remove=yes
22798 else
22799 echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_cv_func_remove=no
22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22806 conftest$ac_exeext conftest.$ac_ext
22808 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22809 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22811 if test $ac_cv_func_remove = no; then
22812 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22813 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22814 if test "${ac_cv_lib_posix_remove+set}" = set; then
22815 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817 ac_check_lib_save_LIBS=$LIBS
22818 LIBS="-lposix $LIBS"
22819 cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h. */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22826 /* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 char remove ();
22834 main ()
22836 return remove ();
22838 return 0;
22840 _ACEOF
22841 rm -f conftest.$ac_objext conftest$ac_exeext
22842 if { (ac_try="$ac_link"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22846 esac
22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_link") 2>conftest.er1
22849 ac_status=$?
22850 grep -v '^ *+' conftest.er1 >conftest.err
22851 rm -f conftest.er1
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest$ac_exeext &&
22858 $as_test_x conftest$ac_exeext; then
22859 ac_cv_lib_posix_remove=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_cv_lib_posix_remove=no
22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22868 conftest$ac_exeext conftest.$ac_ext
22869 LIBS=$ac_check_lib_save_LIBS
22871 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22872 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22873 if test $ac_cv_lib_posix_remove = yes; then
22874 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22879 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22880 { echo "$as_me:$LINENO: checking for shmat" >&5
22881 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22882 if test "${ac_cv_func_shmat+set}" = set; then
22883 echo $ECHO_N "(cached) $ECHO_C" >&6
22884 else
22885 cat >conftest.$ac_ext <<_ACEOF
22886 /* confdefs.h. */
22887 _ACEOF
22888 cat confdefs.h >>conftest.$ac_ext
22889 cat >>conftest.$ac_ext <<_ACEOF
22890 /* end confdefs.h. */
22891 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22893 #define shmat innocuous_shmat
22895 /* System header to define __stub macros and hopefully few prototypes,
22896 which can conflict with char shmat (); below.
22897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22898 <limits.h> exists even on freestanding compilers. */
22900 #ifdef __STDC__
22901 # include <limits.h>
22902 #else
22903 # include <assert.h>
22904 #endif
22906 #undef shmat
22908 /* Override any GCC internal prototype to avoid an error.
22909 Use char because int might match the return type of a GCC
22910 builtin and then its argument prototype would still apply. */
22911 #ifdef __cplusplus
22912 extern "C"
22913 #endif
22914 char shmat ();
22915 /* The GNU C library defines this for functions which it implements
22916 to always fail with ENOSYS. Some functions are actually named
22917 something starting with __ and the normal name is an alias. */
22918 #if defined __stub_shmat || defined __stub___shmat
22919 choke me
22920 #endif
22923 main ()
22925 return shmat ();
22927 return 0;
22929 _ACEOF
22930 rm -f conftest.$ac_objext conftest$ac_exeext
22931 if { (ac_try="$ac_link"
22932 case "(($ac_try" in
22933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934 *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937 (eval "$ac_link") 2>conftest.er1
22938 ac_status=$?
22939 grep -v '^ *+' conftest.er1 >conftest.err
22940 rm -f conftest.er1
22941 cat conftest.err >&5
22942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22943 (exit $ac_status); } && {
22944 test -z "$ac_c_werror_flag" ||
22945 test ! -s conftest.err
22946 } && test -s conftest$ac_exeext &&
22947 $as_test_x conftest$ac_exeext; then
22948 ac_cv_func_shmat=yes
22949 else
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22953 ac_cv_func_shmat=no
22956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22957 conftest$ac_exeext conftest.$ac_ext
22959 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22960 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22962 if test $ac_cv_func_shmat = no; then
22963 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22964 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22965 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968 ac_check_lib_save_LIBS=$LIBS
22969 LIBS="-lipc $LIBS"
22970 cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h. */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h. */
22977 /* Override any GCC internal prototype to avoid an error.
22978 Use char because int might match the return type of a GCC
22979 builtin and then its argument prototype would still apply. */
22980 #ifdef __cplusplus
22981 extern "C"
22982 #endif
22983 char shmat ();
22985 main ()
22987 return shmat ();
22989 return 0;
22991 _ACEOF
22992 rm -f conftest.$ac_objext conftest$ac_exeext
22993 if { (ac_try="$ac_link"
22994 case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999 (eval "$ac_link") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } && {
23006 test -z "$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 } && test -s conftest$ac_exeext &&
23009 $as_test_x conftest$ac_exeext; then
23010 ac_cv_lib_ipc_shmat=yes
23011 else
23012 echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23015 ac_cv_lib_ipc_shmat=no
23018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23019 conftest$ac_exeext conftest.$ac_ext
23020 LIBS=$ac_check_lib_save_LIBS
23022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23023 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23024 if test $ac_cv_lib_ipc_shmat = yes; then
23025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23031 # Check for libraries that X11R6 Xt/Xaw programs need.
23032 ac_save_LDFLAGS=$LDFLAGS
23033 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23034 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23035 # check for ICE first), but we must link in the order -lSM -lICE or
23036 # we get undefined symbols. So assume we have SM if we have ICE.
23037 # These have to be linked with before -lX11, unlike the other
23038 # libraries we check for below, so use a different variable.
23039 # John Interrante, Karl Berry
23040 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23041 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23042 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23043 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 else
23045 ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h. */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23054 /* Override any GCC internal prototype to avoid an error.
23055 Use char because int might match the return type of a GCC
23056 builtin and then its argument prototype would still apply. */
23057 #ifdef __cplusplus
23058 extern "C"
23059 #endif
23060 char IceConnectionNumber ();
23062 main ()
23064 return IceConnectionNumber ();
23066 return 0;
23068 _ACEOF
23069 rm -f conftest.$ac_objext conftest$ac_exeext
23070 if { (ac_try="$ac_link"
23071 case "(($ac_try" in
23072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073 *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076 (eval "$ac_link") 2>conftest.er1
23077 ac_status=$?
23078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } && {
23083 test -z "$ac_c_werror_flag" ||
23084 test ! -s conftest.err
23085 } && test -s conftest$ac_exeext &&
23086 $as_test_x conftest$ac_exeext; then
23087 ac_cv_lib_ICE_IceConnectionNumber=yes
23088 else
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23092 ac_cv_lib_ICE_IceConnectionNumber=no
23095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23096 conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23099 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23100 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23101 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23102 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23105 LDFLAGS=$ac_save_LDFLAGS
23110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23112 if test "${ac_cv_c_bigendian+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115 # See if sys/param.h defines the BYTE_ORDER macro.
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 #include <sys/types.h>
23123 #include <sys/param.h>
23126 main ()
23128 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23129 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23130 bogus endian macros
23131 #endif
23134 return 0;
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141 *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144 (eval "$ac_compile") 2>conftest.er1
23145 ac_status=$?
23146 grep -v '^ *+' conftest.er1 >conftest.err
23147 rm -f conftest.er1
23148 cat conftest.err >&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); } && {
23151 test -z "$ac_c_werror_flag" ||
23152 test ! -s conftest.err
23153 } && test -s conftest.$ac_objext; then
23154 # It does; now see whether it defined to BIG_ENDIAN or not.
23155 cat >conftest.$ac_ext <<_ACEOF
23156 /* confdefs.h. */
23157 _ACEOF
23158 cat confdefs.h >>conftest.$ac_ext
23159 cat >>conftest.$ac_ext <<_ACEOF
23160 /* end confdefs.h. */
23161 #include <sys/types.h>
23162 #include <sys/param.h>
23165 main ()
23167 #if BYTE_ORDER != BIG_ENDIAN
23168 not big endian
23169 #endif
23172 return 0;
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 ac_cv_c_bigendian=yes
23193 else
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23197 ac_cv_c_bigendian=no
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201 else
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 # It does not; compile a test program.
23206 if test "$cross_compiling" = yes; then
23207 # try to guess the endianness by grepping values into an object file
23208 ac_cv_c_bigendian=unknown
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h. */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23222 main ()
23224 _ascii (); _ebcdic ();
23226 return 0;
23228 _ACEOF
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_compile") 2>conftest.er1
23237 ac_status=$?
23238 grep -v '^ *+' conftest.er1 >conftest.err
23239 rm -f conftest.er1
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest.$ac_objext; then
23246 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23247 ac_cv_c_bigendian=yes
23249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23250 if test "$ac_cv_c_bigendian" = unknown; then
23251 ac_cv_c_bigendian=no
23252 else
23253 # finding both strings is unlikely to happen, but who knows?
23254 ac_cv_c_bigendian=unknown
23257 else
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265 else
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h. */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23274 main ()
23277 /* Are we little or big endian? From Harbison&Steele. */
23278 union
23280 long int l;
23281 char c[sizeof (long int)];
23282 } u;
23283 u.l = 1;
23284 return u.c[sizeof (long int) - 1] == 1;
23287 return 0;
23289 _ACEOF
23290 rm -f conftest$ac_exeext
23291 if { (ac_try="$ac_link"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>&5
23298 ac_status=$?
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23301 { (case "(($ac_try" in
23302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23303 *) ac_try_echo=$ac_try;;
23304 esac
23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23306 (eval "$ac_try") 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23310 ac_cv_c_bigendian=no
23311 else
23312 echo "$as_me: program exited with status $ac_status" >&5
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 ( exit $ac_status )
23317 ac_cv_c_bigendian=yes
23319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23329 case $ac_cv_c_bigendian in
23330 yes)
23332 cat >>confdefs.h <<\_ACEOF
23333 #define WORDS_BIGENDIAN 1
23334 _ACEOF
23339 { { echo "$as_me:$LINENO: error: unknown endianness
23340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23341 echo "$as_me: error: unknown endianness
23342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23343 { (exit 1); exit 1; }; } ;;
23344 esac
23346 { echo "$as_me:$LINENO: checking for inline" >&5
23347 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23348 if test "${ac_cv_c_inline+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351 ac_cv_c_inline=no
23352 for ac_kw in inline __inline__ __inline; do
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h. */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 #ifndef __cplusplus
23360 typedef int foo_t;
23361 static $ac_kw foo_t static_foo () {return 0; }
23362 $ac_kw foo_t foo () {return 0; }
23363 #endif
23365 _ACEOF
23366 rm -f conftest.$ac_objext
23367 if { (ac_try="$ac_compile"
23368 case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_compile") 2>conftest.er1
23374 ac_status=$?
23375 grep -v '^ *+' conftest.er1 >conftest.err
23376 rm -f conftest.er1
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } && {
23380 test -z "$ac_c_werror_flag" ||
23381 test ! -s conftest.err
23382 } && test -s conftest.$ac_objext; then
23383 ac_cv_c_inline=$ac_kw
23384 else
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23392 test "$ac_cv_c_inline" != no && break
23393 done
23396 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23397 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23400 case $ac_cv_c_inline in
23401 inline | yes) ;;
23403 case $ac_cv_c_inline in
23404 no) ac_val=;;
23405 *) ac_val=$ac_cv_c_inline;;
23406 esac
23407 cat >>confdefs.h <<_ACEOF
23408 #ifndef __cplusplus
23409 #define inline $ac_val
23410 #endif
23411 _ACEOF
23413 esac
23415 { echo "$as_me:$LINENO: checking for unsigned char" >&5
23416 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23417 if test "${ac_cv_type_unsigned_char+set}" = set; then
23418 echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420 cat >conftest.$ac_ext <<_ACEOF
23421 /* confdefs.h. */
23422 _ACEOF
23423 cat confdefs.h >>conftest.$ac_ext
23424 cat >>conftest.$ac_ext <<_ACEOF
23425 /* end confdefs.h. */
23426 $ac_includes_default
23427 typedef unsigned char ac__type_new_;
23429 main ()
23431 if ((ac__type_new_ *) 0)
23432 return 0;
23433 if (sizeof (ac__type_new_))
23434 return 0;
23436 return 0;
23438 _ACEOF
23439 rm -f conftest.$ac_objext
23440 if { (ac_try="$ac_compile"
23441 case "(($ac_try" in
23442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443 *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446 (eval "$ac_compile") 2>conftest.er1
23447 ac_status=$?
23448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } && {
23453 test -z "$ac_c_werror_flag" ||
23454 test ! -s conftest.err
23455 } && test -s conftest.$ac_objext; then
23456 ac_cv_type_unsigned_char=yes
23457 else
23458 echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23461 ac_cv_type_unsigned_char=no
23464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23466 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23467 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23469 # The cast to long int works around a bug in the HP C Compiler
23470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23472 # This bug is HP SR number 8606223364.
23473 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
23474 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23475 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23476 echo $ECHO_N "(cached) $ECHO_C" >&6
23477 else
23478 if test "$cross_compiling" = yes; then
23479 # Depending upon the size, compute the lo and hi bounds.
23480 cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h. */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 $ac_includes_default
23487 typedef unsigned char ac__type_sizeof_;
23489 main ()
23491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23492 test_array [0] = 0
23495 return 0;
23497 _ACEOF
23498 rm -f conftest.$ac_objext
23499 if { (ac_try="$ac_compile"
23500 case "(($ac_try" in
23501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502 *) ac_try_echo=$ac_try;;
23503 esac
23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505 (eval "$ac_compile") 2>conftest.er1
23506 ac_status=$?
23507 grep -v '^ *+' conftest.er1 >conftest.err
23508 rm -f conftest.er1
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } && {
23512 test -z "$ac_c_werror_flag" ||
23513 test ! -s conftest.err
23514 } && test -s conftest.$ac_objext; then
23515 ac_lo=0 ac_mid=0
23516 while :; do
23517 cat >conftest.$ac_ext <<_ACEOF
23518 /* confdefs.h. */
23519 _ACEOF
23520 cat confdefs.h >>conftest.$ac_ext
23521 cat >>conftest.$ac_ext <<_ACEOF
23522 /* end confdefs.h. */
23523 $ac_includes_default
23524 typedef unsigned char ac__type_sizeof_;
23526 main ()
23528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23529 test_array [0] = 0
23532 return 0;
23534 _ACEOF
23535 rm -f conftest.$ac_objext
23536 if { (ac_try="$ac_compile"
23537 case "(($ac_try" in
23538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23539 *) ac_try_echo=$ac_try;;
23540 esac
23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23542 (eval "$ac_compile") 2>conftest.er1
23543 ac_status=$?
23544 grep -v '^ *+' conftest.er1 >conftest.err
23545 rm -f conftest.er1
23546 cat conftest.err >&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && {
23549 test -z "$ac_c_werror_flag" ||
23550 test ! -s conftest.err
23551 } && test -s conftest.$ac_objext; then
23552 ac_hi=$ac_mid; break
23553 else
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23557 ac_lo=`expr $ac_mid + 1`
23558 if test $ac_lo -le $ac_mid; then
23559 ac_lo= ac_hi=
23560 break
23562 ac_mid=`expr 2 '*' $ac_mid + 1`
23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566 done
23567 else
23568 echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 cat >conftest.$ac_ext <<_ACEOF
23572 /* confdefs.h. */
23573 _ACEOF
23574 cat confdefs.h >>conftest.$ac_ext
23575 cat >>conftest.$ac_ext <<_ACEOF
23576 /* end confdefs.h. */
23577 $ac_includes_default
23578 typedef unsigned char ac__type_sizeof_;
23580 main ()
23582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23583 test_array [0] = 0
23586 return 0;
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593 *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596 (eval "$ac_compile") 2>conftest.er1
23597 ac_status=$?
23598 grep -v '^ *+' conftest.er1 >conftest.err
23599 rm -f conftest.er1
23600 cat conftest.err >&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); } && {
23603 test -z "$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23605 } && test -s conftest.$ac_objext; then
23606 ac_hi=-1 ac_mid=-1
23607 while :; do
23608 cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h. */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23614 $ac_includes_default
23615 typedef unsigned char ac__type_sizeof_;
23617 main ()
23619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23620 test_array [0] = 0
23623 return 0;
23625 _ACEOF
23626 rm -f conftest.$ac_objext
23627 if { (ac_try="$ac_compile"
23628 case "(($ac_try" in
23629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23630 *) ac_try_echo=$ac_try;;
23631 esac
23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23633 (eval "$ac_compile") 2>conftest.er1
23634 ac_status=$?
23635 grep -v '^ *+' conftest.er1 >conftest.err
23636 rm -f conftest.er1
23637 cat conftest.err >&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } && {
23640 test -z "$ac_c_werror_flag" ||
23641 test ! -s conftest.err
23642 } && test -s conftest.$ac_objext; then
23643 ac_lo=$ac_mid; break
23644 else
23645 echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 ac_hi=`expr '(' $ac_mid ')' - 1`
23649 if test $ac_mid -le $ac_hi; then
23650 ac_lo= ac_hi=
23651 break
23653 ac_mid=`expr 2 '*' $ac_mid`
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 done
23658 else
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23662 ac_lo= ac_hi=
23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23669 # Binary search between lo and hi bounds.
23670 while test "x$ac_lo" != "x$ac_hi"; do
23671 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h. */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23678 $ac_includes_default
23679 typedef unsigned char ac__type_sizeof_;
23681 main ()
23683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23684 test_array [0] = 0
23687 return 0;
23689 _ACEOF
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23695 esac
23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23697 (eval "$ac_compile") 2>conftest.er1
23698 ac_status=$?
23699 grep -v '^ *+' conftest.er1 >conftest.err
23700 rm -f conftest.er1
23701 cat conftest.err >&5
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && {
23704 test -z "$ac_c_werror_flag" ||
23705 test ! -s conftest.err
23706 } && test -s conftest.$ac_objext; then
23707 ac_hi=$ac_mid
23708 else
23709 echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23712 ac_lo=`expr '(' $ac_mid ')' + 1`
23715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23716 done
23717 case $ac_lo in
23718 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23719 '') if test "$ac_cv_type_unsigned_char" = yes; then
23720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23721 See \`config.log' for more details." >&5
23722 echo "$as_me: error: cannot compute sizeof (unsigned char)
23723 See \`config.log' for more details." >&2;}
23724 { (exit 77); exit 77; }; }
23725 else
23726 ac_cv_sizeof_unsigned_char=0
23727 fi ;;
23728 esac
23729 else
23730 cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h. */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h. */
23736 $ac_includes_default
23737 typedef unsigned char ac__type_sizeof_;
23738 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23739 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23740 #include <stdio.h>
23741 #include <stdlib.h>
23743 main ()
23746 FILE *f = fopen ("conftest.val", "w");
23747 if (! f)
23748 return 1;
23749 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23751 long int i = longval ();
23752 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23753 return 1;
23754 fprintf (f, "%ld\n", i);
23756 else
23758 unsigned long int i = ulongval ();
23759 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23760 return 1;
23761 fprintf (f, "%lu\n", i);
23763 return ferror (f) || fclose (f) != 0;
23766 return 0;
23768 _ACEOF
23769 rm -f conftest$ac_exeext
23770 if { (ac_try="$ac_link"
23771 case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23774 esac
23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776 (eval "$ac_link") 2>&5
23777 ac_status=$?
23778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23780 { (case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_try") 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23790 else
23791 echo "$as_me: program exited with status $ac_status" >&5
23792 echo "$as_me: failed program was:" >&5
23793 sed 's/^/| /' conftest.$ac_ext >&5
23795 ( exit $ac_status )
23796 if test "$ac_cv_type_unsigned_char" = yes; then
23797 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23798 See \`config.log' for more details." >&5
23799 echo "$as_me: error: cannot compute sizeof (unsigned char)
23800 See \`config.log' for more details." >&2;}
23801 { (exit 77); exit 77; }; }
23802 else
23803 ac_cv_sizeof_unsigned_char=0
23806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23808 rm -f conftest.val
23810 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23811 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23815 cat >>confdefs.h <<_ACEOF
23816 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23817 _ACEOF
23820 { echo "$as_me:$LINENO: checking for unsigned short" >&5
23821 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23822 if test "${ac_cv_type_unsigned_short+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824 else
23825 cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h. */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h. */
23831 $ac_includes_default
23832 typedef unsigned short ac__type_new_;
23834 main ()
23836 if ((ac__type_new_ *) 0)
23837 return 0;
23838 if (sizeof (ac__type_new_))
23839 return 0;
23841 return 0;
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848 *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.$ac_objext; then
23861 ac_cv_type_unsigned_short=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ac_cv_type_unsigned_short=no
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23872 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23874 # The cast to long int works around a bug in the HP C Compiler
23875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23877 # This bug is HP SR number 8606223364.
23878 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
23879 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23880 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23881 echo $ECHO_N "(cached) $ECHO_C" >&6
23882 else
23883 if test "$cross_compiling" = yes; then
23884 # Depending upon the size, compute the lo and hi bounds.
23885 cat >conftest.$ac_ext <<_ACEOF
23886 /* confdefs.h. */
23887 _ACEOF
23888 cat confdefs.h >>conftest.$ac_ext
23889 cat >>conftest.$ac_ext <<_ACEOF
23890 /* end confdefs.h. */
23891 $ac_includes_default
23892 typedef unsigned short ac__type_sizeof_;
23894 main ()
23896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23897 test_array [0] = 0
23900 return 0;
23902 _ACEOF
23903 rm -f conftest.$ac_objext
23904 if { (ac_try="$ac_compile"
23905 case "(($ac_try" in
23906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907 *) ac_try_echo=$ac_try;;
23908 esac
23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23910 (eval "$ac_compile") 2>conftest.er1
23911 ac_status=$?
23912 grep -v '^ *+' conftest.er1 >conftest.err
23913 rm -f conftest.er1
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } && {
23917 test -z "$ac_c_werror_flag" ||
23918 test ! -s conftest.err
23919 } && test -s conftest.$ac_objext; then
23920 ac_lo=0 ac_mid=0
23921 while :; do
23922 cat >conftest.$ac_ext <<_ACEOF
23923 /* confdefs.h. */
23924 _ACEOF
23925 cat confdefs.h >>conftest.$ac_ext
23926 cat >>conftest.$ac_ext <<_ACEOF
23927 /* end confdefs.h. */
23928 $ac_includes_default
23929 typedef unsigned short ac__type_sizeof_;
23931 main ()
23933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23934 test_array [0] = 0
23937 return 0;
23939 _ACEOF
23940 rm -f conftest.$ac_objext
23941 if { (ac_try="$ac_compile"
23942 case "(($ac_try" in
23943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23944 *) ac_try_echo=$ac_try;;
23945 esac
23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23947 (eval "$ac_compile") 2>conftest.er1
23948 ac_status=$?
23949 grep -v '^ *+' conftest.er1 >conftest.err
23950 rm -f conftest.er1
23951 cat conftest.err >&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } && {
23954 test -z "$ac_c_werror_flag" ||
23955 test ! -s conftest.err
23956 } && test -s conftest.$ac_objext; then
23957 ac_hi=$ac_mid; break
23958 else
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 ac_lo=`expr $ac_mid + 1`
23963 if test $ac_lo -le $ac_mid; then
23964 ac_lo= ac_hi=
23965 break
23967 ac_mid=`expr 2 '*' $ac_mid + 1`
23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23971 done
23972 else
23973 echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23976 cat >conftest.$ac_ext <<_ACEOF
23977 /* confdefs.h. */
23978 _ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 typedef unsigned short ac__type_sizeof_;
23985 main ()
23987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23988 test_array [0] = 0
23991 return 0;
23993 _ACEOF
23994 rm -f conftest.$ac_objext
23995 if { (ac_try="$ac_compile"
23996 case "(($ac_try" in
23997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998 *) ac_try_echo=$ac_try;;
23999 esac
24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24001 (eval "$ac_compile") 2>conftest.er1
24002 ac_status=$?
24003 grep -v '^ *+' conftest.er1 >conftest.err
24004 rm -f conftest.er1
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } && {
24008 test -z "$ac_c_werror_flag" ||
24009 test ! -s conftest.err
24010 } && test -s conftest.$ac_objext; then
24011 ac_hi=-1 ac_mid=-1
24012 while :; do
24013 cat >conftest.$ac_ext <<_ACEOF
24014 /* confdefs.h. */
24015 _ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24019 $ac_includes_default
24020 typedef unsigned short ac__type_sizeof_;
24022 main ()
24024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24025 test_array [0] = 0
24028 return 0;
24030 _ACEOF
24031 rm -f conftest.$ac_objext
24032 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
24046 test ! -s conftest.err
24047 } && test -s conftest.$ac_objext; then
24048 ac_lo=$ac_mid; break
24049 else
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_hi=`expr '(' $ac_mid ')' - 1`
24054 if test $ac_mid -le $ac_hi; then
24055 ac_lo= ac_hi=
24056 break
24058 ac_mid=`expr 2 '*' $ac_mid`
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 done
24063 else
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24067 ac_lo= ac_hi=
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 # Binary search between lo and hi bounds.
24075 while test "x$ac_lo" != "x$ac_hi"; do
24076 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24077 cat >conftest.$ac_ext <<_ACEOF
24078 /* confdefs.h. */
24079 _ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 $ac_includes_default
24084 typedef unsigned short ac__type_sizeof_;
24086 main ()
24088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24089 test_array [0] = 0
24092 return 0;
24094 _ACEOF
24095 rm -f conftest.$ac_objext
24096 if { (ac_try="$ac_compile"
24097 case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24100 esac
24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24102 (eval "$ac_compile") 2>conftest.er1
24103 ac_status=$?
24104 grep -v '^ *+' conftest.er1 >conftest.err
24105 rm -f conftest.er1
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } && {
24109 test -z "$ac_c_werror_flag" ||
24110 test ! -s conftest.err
24111 } && test -s conftest.$ac_objext; then
24112 ac_hi=$ac_mid
24113 else
24114 echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24117 ac_lo=`expr '(' $ac_mid ')' + 1`
24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 done
24122 case $ac_lo in
24123 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24124 '') if test "$ac_cv_type_unsigned_short" = yes; then
24125 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24126 See \`config.log' for more details." >&5
24127 echo "$as_me: error: cannot compute sizeof (unsigned short)
24128 See \`config.log' for more details." >&2;}
24129 { (exit 77); exit 77; }; }
24130 else
24131 ac_cv_sizeof_unsigned_short=0
24132 fi ;;
24133 esac
24134 else
24135 cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 $ac_includes_default
24142 typedef unsigned short ac__type_sizeof_;
24143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24145 #include <stdio.h>
24146 #include <stdlib.h>
24148 main ()
24151 FILE *f = fopen ("conftest.val", "w");
24152 if (! f)
24153 return 1;
24154 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24156 long int i = longval ();
24157 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24158 return 1;
24159 fprintf (f, "%ld\n", i);
24161 else
24163 unsigned long int i = ulongval ();
24164 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24165 return 1;
24166 fprintf (f, "%lu\n", i);
24168 return ferror (f) || fclose (f) != 0;
24171 return 0;
24173 _ACEOF
24174 rm -f conftest$ac_exeext
24175 if { (ac_try="$ac_link"
24176 case "(($ac_try" in
24177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24178 *) ac_try_echo=$ac_try;;
24179 esac
24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24181 (eval "$ac_link") 2>&5
24182 ac_status=$?
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24185 { (case "(($ac_try" in
24186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187 *) ac_try_echo=$ac_try;;
24188 esac
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190 (eval "$ac_try") 2>&5
24191 ac_status=$?
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); }; }; then
24194 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24195 else
24196 echo "$as_me: program exited with status $ac_status" >&5
24197 echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24200 ( exit $ac_status )
24201 if test "$ac_cv_type_unsigned_short" = yes; then
24202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24203 See \`config.log' for more details." >&5
24204 echo "$as_me: error: cannot compute sizeof (unsigned short)
24205 See \`config.log' for more details." >&2;}
24206 { (exit 77); exit 77; }; }
24207 else
24208 ac_cv_sizeof_unsigned_short=0
24211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24213 rm -f conftest.val
24215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24216 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24220 cat >>confdefs.h <<_ACEOF
24221 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24222 _ACEOF
24225 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24226 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24227 if test "${ac_cv_type_unsigned_int+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24229 else
24230 cat >conftest.$ac_ext <<_ACEOF
24231 /* confdefs.h. */
24232 _ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 $ac_includes_default
24237 typedef unsigned int ac__type_new_;
24239 main ()
24241 if ((ac__type_new_ *) 0)
24242 return 0;
24243 if (sizeof (ac__type_new_))
24244 return 0;
24246 return 0;
24248 _ACEOF
24249 rm -f conftest.$ac_objext
24250 if { (ac_try="$ac_compile"
24251 case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24254 esac
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_compile") 2>conftest.er1
24257 ac_status=$?
24258 grep -v '^ *+' conftest.er1 >conftest.err
24259 rm -f conftest.er1
24260 cat conftest.err >&5
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); } && {
24263 test -z "$ac_c_werror_flag" ||
24264 test ! -s conftest.err
24265 } && test -s conftest.$ac_objext; then
24266 ac_cv_type_unsigned_int=yes
24267 else
24268 echo "$as_me: failed program was:" >&5
24269 sed 's/^/| /' conftest.$ac_ext >&5
24271 ac_cv_type_unsigned_int=no
24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24276 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24277 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24279 # The cast to long int works around a bug in the HP C Compiler
24280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24282 # This bug is HP SR number 8606223364.
24283 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24284 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24285 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24286 echo $ECHO_N "(cached) $ECHO_C" >&6
24287 else
24288 if test "$cross_compiling" = yes; then
24289 # Depending upon the size, compute the lo and hi bounds.
24290 cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h. */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24296 $ac_includes_default
24297 typedef unsigned int ac__type_sizeof_;
24299 main ()
24301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24302 test_array [0] = 0
24305 return 0;
24307 _ACEOF
24308 rm -f conftest.$ac_objext
24309 if { (ac_try="$ac_compile"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313 esac
24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_compile") 2>conftest.er1
24316 ac_status=$?
24317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } && {
24322 test -z "$ac_c_werror_flag" ||
24323 test ! -s conftest.err
24324 } && test -s conftest.$ac_objext; then
24325 ac_lo=0 ac_mid=0
24326 while :; do
24327 cat >conftest.$ac_ext <<_ACEOF
24328 /* confdefs.h. */
24329 _ACEOF
24330 cat confdefs.h >>conftest.$ac_ext
24331 cat >>conftest.$ac_ext <<_ACEOF
24332 /* end confdefs.h. */
24333 $ac_includes_default
24334 typedef unsigned int ac__type_sizeof_;
24336 main ()
24338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24339 test_array [0] = 0
24342 return 0;
24344 _ACEOF
24345 rm -f conftest.$ac_objext
24346 if { (ac_try="$ac_compile"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24350 esac
24351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24352 (eval "$ac_compile") 2>conftest.er1
24353 ac_status=$?
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } && {
24359 test -z "$ac_c_werror_flag" ||
24360 test ! -s conftest.err
24361 } && test -s conftest.$ac_objext; then
24362 ac_hi=$ac_mid; break
24363 else
24364 echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24367 ac_lo=`expr $ac_mid + 1`
24368 if test $ac_lo -le $ac_mid; then
24369 ac_lo= ac_hi=
24370 break
24372 ac_mid=`expr 2 '*' $ac_mid + 1`
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 done
24377 else
24378 echo "$as_me: failed program was:" >&5
24379 sed 's/^/| /' conftest.$ac_ext >&5
24381 cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h. */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h. */
24387 $ac_includes_default
24388 typedef unsigned int ac__type_sizeof_;
24390 main ()
24392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24393 test_array [0] = 0
24396 return 0;
24398 _ACEOF
24399 rm -f conftest.$ac_objext
24400 if { (ac_try="$ac_compile"
24401 case "(($ac_try" in
24402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24403 *) ac_try_echo=$ac_try;;
24404 esac
24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24406 (eval "$ac_compile") 2>conftest.er1
24407 ac_status=$?
24408 grep -v '^ *+' conftest.er1 >conftest.err
24409 rm -f conftest.er1
24410 cat conftest.err >&5
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); } && {
24413 test -z "$ac_c_werror_flag" ||
24414 test ! -s conftest.err
24415 } && test -s conftest.$ac_objext; then
24416 ac_hi=-1 ac_mid=-1
24417 while :; do
24418 cat >conftest.$ac_ext <<_ACEOF
24419 /* confdefs.h. */
24420 _ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h. */
24424 $ac_includes_default
24425 typedef unsigned int ac__type_sizeof_;
24427 main ()
24429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24430 test_array [0] = 0
24433 return 0;
24435 _ACEOF
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_compile") 2>conftest.er1
24444 ac_status=$?
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } && {
24450 test -z "$ac_c_werror_flag" ||
24451 test ! -s conftest.err
24452 } && test -s conftest.$ac_objext; then
24453 ac_lo=$ac_mid; break
24454 else
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24458 ac_hi=`expr '(' $ac_mid ')' - 1`
24459 if test $ac_mid -le $ac_hi; then
24460 ac_lo= ac_hi=
24461 break
24463 ac_mid=`expr 2 '*' $ac_mid`
24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 done
24468 else
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24472 ac_lo= ac_hi=
24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24479 # Binary search between lo and hi bounds.
24480 while test "x$ac_lo" != "x$ac_hi"; do
24481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24482 cat >conftest.$ac_ext <<_ACEOF
24483 /* confdefs.h. */
24484 _ACEOF
24485 cat confdefs.h >>conftest.$ac_ext
24486 cat >>conftest.$ac_ext <<_ACEOF
24487 /* end confdefs.h. */
24488 $ac_includes_default
24489 typedef unsigned int ac__type_sizeof_;
24491 main ()
24493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24494 test_array [0] = 0
24497 return 0;
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_compile") 2>conftest.er1
24508 ac_status=$?
24509 grep -v '^ *+' conftest.er1 >conftest.err
24510 rm -f conftest.er1
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest.$ac_objext; then
24517 ac_hi=$ac_mid
24518 else
24519 echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24522 ac_lo=`expr '(' $ac_mid ')' + 1`
24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 done
24527 case $ac_lo in
24528 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24529 '') if test "$ac_cv_type_unsigned_int" = yes; then
24530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24531 See \`config.log' for more details." >&5
24532 echo "$as_me: error: cannot compute sizeof (unsigned int)
24533 See \`config.log' for more details." >&2;}
24534 { (exit 77); exit 77; }; }
24535 else
24536 ac_cv_sizeof_unsigned_int=0
24537 fi ;;
24538 esac
24539 else
24540 cat >conftest.$ac_ext <<_ACEOF
24541 /* confdefs.h. */
24542 _ACEOF
24543 cat confdefs.h >>conftest.$ac_ext
24544 cat >>conftest.$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24546 $ac_includes_default
24547 typedef unsigned int ac__type_sizeof_;
24548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24550 #include <stdio.h>
24551 #include <stdlib.h>
24553 main ()
24556 FILE *f = fopen ("conftest.val", "w");
24557 if (! f)
24558 return 1;
24559 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24561 long int i = longval ();
24562 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24563 return 1;
24564 fprintf (f, "%ld\n", i);
24566 else
24568 unsigned long int i = ulongval ();
24569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24570 return 1;
24571 fprintf (f, "%lu\n", i);
24573 return ferror (f) || fclose (f) != 0;
24576 return 0;
24578 _ACEOF
24579 rm -f conftest$ac_exeext
24580 if { (ac_try="$ac_link"
24581 case "(($ac_try" in
24582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24583 *) ac_try_echo=$ac_try;;
24584 esac
24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24586 (eval "$ac_link") 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24590 { (case "(($ac_try" in
24591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24592 *) ac_try_echo=$ac_try;;
24593 esac
24594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24595 (eval "$ac_try") 2>&5
24596 ac_status=$?
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; }; then
24599 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24600 else
24601 echo "$as_me: program exited with status $ac_status" >&5
24602 echo "$as_me: failed program was:" >&5
24603 sed 's/^/| /' conftest.$ac_ext >&5
24605 ( exit $ac_status )
24606 if test "$ac_cv_type_unsigned_int" = yes; then
24607 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24608 See \`config.log' for more details." >&5
24609 echo "$as_me: error: cannot compute sizeof (unsigned int)
24610 See \`config.log' for more details." >&2;}
24611 { (exit 77); exit 77; }; }
24612 else
24613 ac_cv_sizeof_unsigned_int=0
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24618 rm -f conftest.val
24620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24621 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24625 cat >>confdefs.h <<_ACEOF
24626 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24627 _ACEOF
24630 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24631 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24632 if test "${ac_cv_type_unsigned_long+set}" = set; then
24633 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 else
24635 cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h. */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h. */
24641 $ac_includes_default
24642 typedef unsigned long ac__type_new_;
24644 main ()
24646 if ((ac__type_new_ *) 0)
24647 return 0;
24648 if (sizeof (ac__type_new_))
24649 return 0;
24651 return 0;
24653 _ACEOF
24654 rm -f conftest.$ac_objext
24655 if { (ac_try="$ac_compile"
24656 case "(($ac_try" in
24657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658 *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661 (eval "$ac_compile") 2>conftest.er1
24662 ac_status=$?
24663 grep -v '^ *+' conftest.er1 >conftest.err
24664 rm -f conftest.er1
24665 cat conftest.err >&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } && {
24668 test -z "$ac_c_werror_flag" ||
24669 test ! -s conftest.err
24670 } && test -s conftest.$ac_objext; then
24671 ac_cv_type_unsigned_long=yes
24672 else
24673 echo "$as_me: failed program was:" >&5
24674 sed 's/^/| /' conftest.$ac_ext >&5
24676 ac_cv_type_unsigned_long=no
24679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24681 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24682 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24684 # The cast to long int works around a bug in the HP C Compiler
24685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24687 # This bug is HP SR number 8606223364.
24688 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24689 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24690 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24691 echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693 if test "$cross_compiling" = yes; then
24694 # Depending upon the size, compute the lo and hi bounds.
24695 cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h. */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h. */
24701 $ac_includes_default
24702 typedef unsigned long ac__type_sizeof_;
24704 main ()
24706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24707 test_array [0] = 0
24710 return 0;
24712 _ACEOF
24713 rm -f conftest.$ac_objext
24714 if { (ac_try="$ac_compile"
24715 case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24718 esac
24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24720 (eval "$ac_compile") 2>conftest.er1
24721 ac_status=$?
24722 grep -v '^ *+' conftest.er1 >conftest.err
24723 rm -f conftest.er1
24724 cat conftest.err >&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } && {
24727 test -z "$ac_c_werror_flag" ||
24728 test ! -s conftest.err
24729 } && test -s conftest.$ac_objext; then
24730 ac_lo=0 ac_mid=0
24731 while :; do
24732 cat >conftest.$ac_ext <<_ACEOF
24733 /* confdefs.h. */
24734 _ACEOF
24735 cat confdefs.h >>conftest.$ac_ext
24736 cat >>conftest.$ac_ext <<_ACEOF
24737 /* end confdefs.h. */
24738 $ac_includes_default
24739 typedef unsigned long ac__type_sizeof_;
24741 main ()
24743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24744 test_array [0] = 0
24747 return 0;
24749 _ACEOF
24750 rm -f conftest.$ac_objext
24751 if { (ac_try="$ac_compile"
24752 case "(($ac_try" in
24753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754 *) ac_try_echo=$ac_try;;
24755 esac
24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757 (eval "$ac_compile") 2>conftest.er1
24758 ac_status=$?
24759 grep -v '^ *+' conftest.er1 >conftest.err
24760 rm -f conftest.er1
24761 cat conftest.err >&5
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } && {
24764 test -z "$ac_c_werror_flag" ||
24765 test ! -s conftest.err
24766 } && test -s conftest.$ac_objext; then
24767 ac_hi=$ac_mid; break
24768 else
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ac_lo=`expr $ac_mid + 1`
24773 if test $ac_lo -le $ac_mid; then
24774 ac_lo= ac_hi=
24775 break
24777 ac_mid=`expr 2 '*' $ac_mid + 1`
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 done
24782 else
24783 echo "$as_me: failed program was:" >&5
24784 sed 's/^/| /' conftest.$ac_ext >&5
24786 cat >conftest.$ac_ext <<_ACEOF
24787 /* confdefs.h. */
24788 _ACEOF
24789 cat confdefs.h >>conftest.$ac_ext
24790 cat >>conftest.$ac_ext <<_ACEOF
24791 /* end confdefs.h. */
24792 $ac_includes_default
24793 typedef unsigned long ac__type_sizeof_;
24795 main ()
24797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24798 test_array [0] = 0
24801 return 0;
24803 _ACEOF
24804 rm -f conftest.$ac_objext
24805 if { (ac_try="$ac_compile"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_compile") 2>conftest.er1
24812 ac_status=$?
24813 grep -v '^ *+' conftest.er1 >conftest.err
24814 rm -f conftest.er1
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } && {
24818 test -z "$ac_c_werror_flag" ||
24819 test ! -s conftest.err
24820 } && test -s conftest.$ac_objext; then
24821 ac_hi=-1 ac_mid=-1
24822 while :; do
24823 cat >conftest.$ac_ext <<_ACEOF
24824 /* confdefs.h. */
24825 _ACEOF
24826 cat confdefs.h >>conftest.$ac_ext
24827 cat >>conftest.$ac_ext <<_ACEOF
24828 /* end confdefs.h. */
24829 $ac_includes_default
24830 typedef unsigned long ac__type_sizeof_;
24832 main ()
24834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24835 test_array [0] = 0
24838 return 0;
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_compile") 2>conftest.er1
24849 ac_status=$?
24850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } && {
24855 test -z "$ac_c_werror_flag" ||
24856 test ! -s conftest.err
24857 } && test -s conftest.$ac_objext; then
24858 ac_lo=$ac_mid; break
24859 else
24860 echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24863 ac_hi=`expr '(' $ac_mid ')' - 1`
24864 if test $ac_mid -le $ac_hi; then
24865 ac_lo= ac_hi=
24866 break
24868 ac_mid=`expr 2 '*' $ac_mid`
24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 done
24873 else
24874 echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24877 ac_lo= ac_hi=
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884 # Binary search between lo and hi bounds.
24885 while test "x$ac_lo" != "x$ac_hi"; do
24886 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24887 cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h. */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h. */
24893 $ac_includes_default
24894 typedef unsigned long ac__type_sizeof_;
24896 main ()
24898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24899 test_array [0] = 0
24902 return 0;
24904 _ACEOF
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912 (eval "$ac_compile") 2>conftest.er1
24913 ac_status=$?
24914 grep -v '^ *+' conftest.er1 >conftest.err
24915 rm -f conftest.er1
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } && {
24919 test -z "$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 } && test -s conftest.$ac_objext; then
24922 ac_hi=$ac_mid
24923 else
24924 echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24927 ac_lo=`expr '(' $ac_mid ')' + 1`
24930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24931 done
24932 case $ac_lo in
24933 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24934 '') if test "$ac_cv_type_unsigned_long" = yes; then
24935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24936 See \`config.log' for more details." >&5
24937 echo "$as_me: error: cannot compute sizeof (unsigned long)
24938 See \`config.log' for more details." >&2;}
24939 { (exit 77); exit 77; }; }
24940 else
24941 ac_cv_sizeof_unsigned_long=0
24942 fi ;;
24943 esac
24944 else
24945 cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h. */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951 $ac_includes_default
24952 typedef unsigned long ac__type_sizeof_;
24953 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24954 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24955 #include <stdio.h>
24956 #include <stdlib.h>
24958 main ()
24961 FILE *f = fopen ("conftest.val", "w");
24962 if (! f)
24963 return 1;
24964 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24966 long int i = longval ();
24967 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24968 return 1;
24969 fprintf (f, "%ld\n", i);
24971 else
24973 unsigned long int i = ulongval ();
24974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24975 return 1;
24976 fprintf (f, "%lu\n", i);
24978 return ferror (f) || fclose (f) != 0;
24981 return 0;
24983 _ACEOF
24984 rm -f conftest$ac_exeext
24985 if { (ac_try="$ac_link"
24986 case "(($ac_try" in
24987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988 *) ac_try_echo=$ac_try;;
24989 esac
24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24991 (eval "$ac_link") 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24995 { (case "(($ac_try" in
24996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997 *) ac_try_echo=$ac_try;;
24998 esac
24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25000 (eval "$ac_try") 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; }; then
25004 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25005 else
25006 echo "$as_me: program exited with status $ac_status" >&5
25007 echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25010 ( exit $ac_status )
25011 if test "$ac_cv_type_unsigned_long" = yes; then
25012 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25013 See \`config.log' for more details." >&5
25014 echo "$as_me: error: cannot compute sizeof (unsigned long)
25015 See \`config.log' for more details." >&2;}
25016 { (exit 77); exit 77; }; }
25017 else
25018 ac_cv_sizeof_unsigned_long=0
25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25023 rm -f conftest.val
25025 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25026 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25030 cat >>confdefs.h <<_ACEOF
25031 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25032 _ACEOF
25035 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
25036 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25037 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25039 else
25040 cat >conftest.$ac_ext <<_ACEOF
25041 /* confdefs.h. */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25046 $ac_includes_default
25047 typedef unsigned long long ac__type_new_;
25049 main ()
25051 if ((ac__type_new_ *) 0)
25052 return 0;
25053 if (sizeof (ac__type_new_))
25054 return 0;
25056 return 0;
25058 _ACEOF
25059 rm -f conftest.$ac_objext
25060 if { (ac_try="$ac_compile"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25064 esac
25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066 (eval "$ac_compile") 2>conftest.er1
25067 ac_status=$?
25068 grep -v '^ *+' conftest.er1 >conftest.err
25069 rm -f conftest.er1
25070 cat conftest.err >&5
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); } && {
25073 test -z "$ac_c_werror_flag" ||
25074 test ! -s conftest.err
25075 } && test -s conftest.$ac_objext; then
25076 ac_cv_type_unsigned_long_long=yes
25077 else
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25081 ac_cv_type_unsigned_long_long=no
25084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25086 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25087 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25089 # The cast to long int works around a bug in the HP C Compiler
25090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25092 # This bug is HP SR number 8606223364.
25093 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25094 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25095 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25096 echo $ECHO_N "(cached) $ECHO_C" >&6
25097 else
25098 if test "$cross_compiling" = yes; then
25099 # Depending upon the size, compute the lo and hi bounds.
25100 cat >conftest.$ac_ext <<_ACEOF
25101 /* confdefs.h. */
25102 _ACEOF
25103 cat confdefs.h >>conftest.$ac_ext
25104 cat >>conftest.$ac_ext <<_ACEOF
25105 /* end confdefs.h. */
25106 $ac_includes_default
25107 typedef unsigned long long ac__type_sizeof_;
25109 main ()
25111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25112 test_array [0] = 0
25115 return 0;
25117 _ACEOF
25118 rm -f conftest.$ac_objext
25119 if { (ac_try="$ac_compile"
25120 case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 ac_lo=0 ac_mid=0
25136 while :; do
25137 cat >conftest.$ac_ext <<_ACEOF
25138 /* confdefs.h. */
25139 _ACEOF
25140 cat confdefs.h >>conftest.$ac_ext
25141 cat >>conftest.$ac_ext <<_ACEOF
25142 /* end confdefs.h. */
25143 $ac_includes_default
25144 typedef unsigned long long ac__type_sizeof_;
25146 main ()
25148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25149 test_array [0] = 0
25152 return 0;
25154 _ACEOF
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25160 esac
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162 (eval "$ac_compile") 2>conftest.er1
25163 ac_status=$?
25164 grep -v '^ *+' conftest.er1 >conftest.err
25165 rm -f conftest.er1
25166 cat conftest.err >&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } && {
25169 test -z "$ac_c_werror_flag" ||
25170 test ! -s conftest.err
25171 } && test -s conftest.$ac_objext; then
25172 ac_hi=$ac_mid; break
25173 else
25174 echo "$as_me: failed program was:" >&5
25175 sed 's/^/| /' conftest.$ac_ext >&5
25177 ac_lo=`expr $ac_mid + 1`
25178 if test $ac_lo -le $ac_mid; then
25179 ac_lo= ac_hi=
25180 break
25182 ac_mid=`expr 2 '*' $ac_mid + 1`
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 done
25187 else
25188 echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25191 cat >conftest.$ac_ext <<_ACEOF
25192 /* confdefs.h. */
25193 _ACEOF
25194 cat confdefs.h >>conftest.$ac_ext
25195 cat >>conftest.$ac_ext <<_ACEOF
25196 /* end confdefs.h. */
25197 $ac_includes_default
25198 typedef unsigned long long ac__type_sizeof_;
25200 main ()
25202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25203 test_array [0] = 0
25206 return 0;
25208 _ACEOF
25209 rm -f conftest.$ac_objext
25210 if { (ac_try="$ac_compile"
25211 case "(($ac_try" in
25212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213 *) ac_try_echo=$ac_try;;
25214 esac
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25217 ac_status=$?
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
25221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 ac_hi=-1 ac_mid=-1
25227 while :; do
25228 cat >conftest.$ac_ext <<_ACEOF
25229 /* confdefs.h. */
25230 _ACEOF
25231 cat confdefs.h >>conftest.$ac_ext
25232 cat >>conftest.$ac_ext <<_ACEOF
25233 /* end confdefs.h. */
25234 $ac_includes_default
25235 typedef unsigned long long ac__type_sizeof_;
25237 main ()
25239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25240 test_array [0] = 0
25243 return 0;
25245 _ACEOF
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25251 esac
25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25253 (eval "$ac_compile") 2>conftest.er1
25254 ac_status=$?
25255 grep -v '^ *+' conftest.er1 >conftest.err
25256 rm -f conftest.er1
25257 cat conftest.err >&5
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); } && {
25260 test -z "$ac_c_werror_flag" ||
25261 test ! -s conftest.err
25262 } && test -s conftest.$ac_objext; then
25263 ac_lo=$ac_mid; break
25264 else
25265 echo "$as_me: failed program was:" >&5
25266 sed 's/^/| /' conftest.$ac_ext >&5
25268 ac_hi=`expr '(' $ac_mid ')' - 1`
25269 if test $ac_mid -le $ac_hi; then
25270 ac_lo= ac_hi=
25271 break
25273 ac_mid=`expr 2 '*' $ac_mid`
25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25277 done
25278 else
25279 echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25282 ac_lo= ac_hi=
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25289 # Binary search between lo and hi bounds.
25290 while test "x$ac_lo" != "x$ac_hi"; do
25291 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25292 cat >conftest.$ac_ext <<_ACEOF
25293 /* confdefs.h. */
25294 _ACEOF
25295 cat confdefs.h >>conftest.$ac_ext
25296 cat >>conftest.$ac_ext <<_ACEOF
25297 /* end confdefs.h. */
25298 $ac_includes_default
25299 typedef unsigned long long ac__type_sizeof_;
25301 main ()
25303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25304 test_array [0] = 0
25307 return 0;
25309 _ACEOF
25310 rm -f conftest.$ac_objext
25311 if { (ac_try="$ac_compile"
25312 case "(($ac_try" in
25313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25314 *) ac_try_echo=$ac_try;;
25315 esac
25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25327 ac_hi=$ac_mid
25328 else
25329 echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_lo=`expr '(' $ac_mid ')' + 1`
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 done
25337 case $ac_lo in
25338 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25339 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
25340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25341 See \`config.log' for more details." >&5
25342 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25343 See \`config.log' for more details." >&2;}
25344 { (exit 77); exit 77; }; }
25345 else
25346 ac_cv_sizeof_unsigned_long_long=0
25347 fi ;;
25348 esac
25349 else
25350 cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h. */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h. */
25356 $ac_includes_default
25357 typedef unsigned long long ac__type_sizeof_;
25358 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25359 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25360 #include <stdio.h>
25361 #include <stdlib.h>
25363 main ()
25366 FILE *f = fopen ("conftest.val", "w");
25367 if (! f)
25368 return 1;
25369 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25371 long int i = longval ();
25372 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25373 return 1;
25374 fprintf (f, "%ld\n", i);
25376 else
25378 unsigned long int i = ulongval ();
25379 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25380 return 1;
25381 fprintf (f, "%lu\n", i);
25383 return ferror (f) || fclose (f) != 0;
25386 return 0;
25388 _ACEOF
25389 rm -f conftest$ac_exeext
25390 if { (ac_try="$ac_link"
25391 case "(($ac_try" in
25392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25393 *) ac_try_echo=$ac_try;;
25394 esac
25395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25396 (eval "$ac_link") 2>&5
25397 ac_status=$?
25398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25400 { (case "(($ac_try" in
25401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25402 *) ac_try_echo=$ac_try;;
25403 esac
25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25405 (eval "$ac_try") 2>&5
25406 ac_status=$?
25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408 (exit $ac_status); }; }; then
25409 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25410 else
25411 echo "$as_me: program exited with status $ac_status" >&5
25412 echo "$as_me: failed program was:" >&5
25413 sed 's/^/| /' conftest.$ac_ext >&5
25415 ( exit $ac_status )
25416 if test "$ac_cv_type_unsigned_long_long" = yes; then
25417 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25418 See \`config.log' for more details." >&5
25419 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25420 See \`config.log' for more details." >&2;}
25421 { (exit 77); exit 77; }; }
25422 else
25423 ac_cv_sizeof_unsigned_long_long=0
25426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25428 rm -f conftest.val
25430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25431 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25435 cat >>confdefs.h <<_ACEOF
25436 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25437 _ACEOF
25440 { echo "$as_me:$LINENO: checking for int *" >&5
25441 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25442 if test "${ac_cv_type_int_p+set}" = set; then
25443 echo $ECHO_N "(cached) $ECHO_C" >&6
25444 else
25445 cat >conftest.$ac_ext <<_ACEOF
25446 /* confdefs.h. */
25447 _ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h. */
25451 $ac_includes_default
25452 typedef int * ac__type_new_;
25454 main ()
25456 if ((ac__type_new_ *) 0)
25457 return 0;
25458 if (sizeof (ac__type_new_))
25459 return 0;
25461 return 0;
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468 *) ac_try_echo=$ac_try;;
25469 esac
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471 (eval "$ac_compile") 2>conftest.er1
25472 ac_status=$?
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } && {
25478 test -z "$ac_c_werror_flag" ||
25479 test ! -s conftest.err
25480 } && test -s conftest.$ac_objext; then
25481 ac_cv_type_int_p=yes
25482 else
25483 echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25486 ac_cv_type_int_p=no
25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25491 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25492 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25494 # The cast to long int works around a bug in the HP C Compiler
25495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25497 # This bug is HP SR number 8606223364.
25498 { echo "$as_me:$LINENO: checking size of int *" >&5
25499 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25500 if test "${ac_cv_sizeof_int_p+set}" = set; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25502 else
25503 if test "$cross_compiling" = yes; then
25504 # Depending upon the size, compute the lo and hi bounds.
25505 cat >conftest.$ac_ext <<_ACEOF
25506 /* confdefs.h. */
25507 _ACEOF
25508 cat confdefs.h >>conftest.$ac_ext
25509 cat >>conftest.$ac_ext <<_ACEOF
25510 /* end confdefs.h. */
25511 $ac_includes_default
25512 typedef int * ac__type_sizeof_;
25514 main ()
25516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25517 test_array [0] = 0
25520 return 0;
25522 _ACEOF
25523 rm -f conftest.$ac_objext
25524 if { (ac_try="$ac_compile"
25525 case "(($ac_try" in
25526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527 *) ac_try_echo=$ac_try;;
25528 esac
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25531 ac_status=$?
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25540 ac_lo=0 ac_mid=0
25541 while :; do
25542 cat >conftest.$ac_ext <<_ACEOF
25543 /* confdefs.h. */
25544 _ACEOF
25545 cat confdefs.h >>conftest.$ac_ext
25546 cat >>conftest.$ac_ext <<_ACEOF
25547 /* end confdefs.h. */
25548 $ac_includes_default
25549 typedef int * ac__type_sizeof_;
25551 main ()
25553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25554 test_array [0] = 0
25557 return 0;
25559 _ACEOF
25560 rm -f conftest.$ac_objext
25561 if { (ac_try="$ac_compile"
25562 case "(($ac_try" in
25563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564 *) ac_try_echo=$ac_try;;
25565 esac
25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567 (eval "$ac_compile") 2>conftest.er1
25568 ac_status=$?
25569 grep -v '^ *+' conftest.er1 >conftest.err
25570 rm -f conftest.er1
25571 cat conftest.err >&5
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && {
25574 test -z "$ac_c_werror_flag" ||
25575 test ! -s conftest.err
25576 } && test -s conftest.$ac_objext; then
25577 ac_hi=$ac_mid; break
25578 else
25579 echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25582 ac_lo=`expr $ac_mid + 1`
25583 if test $ac_lo -le $ac_mid; then
25584 ac_lo= ac_hi=
25585 break
25587 ac_mid=`expr 2 '*' $ac_mid + 1`
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 done
25592 else
25593 echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25596 cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h. */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h. */
25602 $ac_includes_default
25603 typedef int * ac__type_sizeof_;
25605 main ()
25607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25608 test_array [0] = 0
25611 return 0;
25613 _ACEOF
25614 rm -f conftest.$ac_objext
25615 if { (ac_try="$ac_compile"
25616 case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25619 esac
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_compile") 2>conftest.er1
25622 ac_status=$?
25623 grep -v '^ *+' conftest.er1 >conftest.err
25624 rm -f conftest.er1
25625 cat conftest.err >&5
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); } && {
25628 test -z "$ac_c_werror_flag" ||
25629 test ! -s conftest.err
25630 } && test -s conftest.$ac_objext; then
25631 ac_hi=-1 ac_mid=-1
25632 while :; do
25633 cat >conftest.$ac_ext <<_ACEOF
25634 /* confdefs.h. */
25635 _ACEOF
25636 cat confdefs.h >>conftest.$ac_ext
25637 cat >>conftest.$ac_ext <<_ACEOF
25638 /* end confdefs.h. */
25639 $ac_includes_default
25640 typedef int * ac__type_sizeof_;
25642 main ()
25644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25645 test_array [0] = 0
25648 return 0;
25650 _ACEOF
25651 rm -f conftest.$ac_objext
25652 if { (ac_try="$ac_compile"
25653 case "(($ac_try" in
25654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655 *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658 (eval "$ac_compile") 2>conftest.er1
25659 ac_status=$?
25660 grep -v '^ *+' conftest.er1 >conftest.err
25661 rm -f conftest.er1
25662 cat conftest.err >&5
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); } && {
25665 test -z "$ac_c_werror_flag" ||
25666 test ! -s conftest.err
25667 } && test -s conftest.$ac_objext; then
25668 ac_lo=$ac_mid; break
25669 else
25670 echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25673 ac_hi=`expr '(' $ac_mid ')' - 1`
25674 if test $ac_mid -le $ac_hi; then
25675 ac_lo= ac_hi=
25676 break
25678 ac_mid=`expr 2 '*' $ac_mid`
25681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682 done
25683 else
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25687 ac_lo= ac_hi=
25690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 # Binary search between lo and hi bounds.
25695 while test "x$ac_lo" != "x$ac_hi"; do
25696 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25697 cat >conftest.$ac_ext <<_ACEOF
25698 /* confdefs.h. */
25699 _ACEOF
25700 cat confdefs.h >>conftest.$ac_ext
25701 cat >>conftest.$ac_ext <<_ACEOF
25702 /* end confdefs.h. */
25703 $ac_includes_default
25704 typedef int * ac__type_sizeof_;
25706 main ()
25708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25709 test_array [0] = 0
25712 return 0;
25714 _ACEOF
25715 rm -f conftest.$ac_objext
25716 if { (ac_try="$ac_compile"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_compile") 2>conftest.er1
25723 ac_status=$?
25724 grep -v '^ *+' conftest.er1 >conftest.err
25725 rm -f conftest.er1
25726 cat conftest.err >&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } && {
25729 test -z "$ac_c_werror_flag" ||
25730 test ! -s conftest.err
25731 } && test -s conftest.$ac_objext; then
25732 ac_hi=$ac_mid
25733 else
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_lo=`expr '(' $ac_mid ')' + 1`
25740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25741 done
25742 case $ac_lo in
25743 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25744 '') if test "$ac_cv_type_int_p" = yes; then
25745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25746 See \`config.log' for more details." >&5
25747 echo "$as_me: error: cannot compute sizeof (int *)
25748 See \`config.log' for more details." >&2;}
25749 { (exit 77); exit 77; }; }
25750 else
25751 ac_cv_sizeof_int_p=0
25752 fi ;;
25753 esac
25754 else
25755 cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h. */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h. */
25761 $ac_includes_default
25762 typedef int * ac__type_sizeof_;
25763 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25764 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25765 #include <stdio.h>
25766 #include <stdlib.h>
25768 main ()
25771 FILE *f = fopen ("conftest.val", "w");
25772 if (! f)
25773 return 1;
25774 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25776 long int i = longval ();
25777 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25778 return 1;
25779 fprintf (f, "%ld\n", i);
25781 else
25783 unsigned long int i = ulongval ();
25784 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25785 return 1;
25786 fprintf (f, "%lu\n", i);
25788 return ferror (f) || fclose (f) != 0;
25791 return 0;
25793 _ACEOF
25794 rm -f conftest$ac_exeext
25795 if { (ac_try="$ac_link"
25796 case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25799 esac
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_link") 2>&5
25802 ac_status=$?
25803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int_p=`cat conftest.val`
25815 else
25816 echo "$as_me: program exited with status $ac_status" >&5
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25820 ( exit $ac_status )
25821 if test "$ac_cv_type_int_p" = yes; then
25822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25823 See \`config.log' for more details." >&5
25824 echo "$as_me: error: cannot compute sizeof (int *)
25825 See \`config.log' for more details." >&2;}
25826 { (exit 77); exit 77; }; }
25827 else
25828 ac_cv_sizeof_int_p=0
25831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25833 rm -f conftest.val
25835 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25836 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25840 cat >>confdefs.h <<_ACEOF
25841 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25842 _ACEOF
25846 for ac_func in getenv
25848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25852 echo $ECHO_N "(cached) $ECHO_C" >&6
25853 else
25854 cat >conftest.$ac_ext <<_ACEOF
25855 /* confdefs.h. */
25856 _ACEOF
25857 cat confdefs.h >>conftest.$ac_ext
25858 cat >>conftest.$ac_ext <<_ACEOF
25859 /* end confdefs.h. */
25860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25862 #define $ac_func innocuous_$ac_func
25864 /* System header to define __stub macros and hopefully few prototypes,
25865 which can conflict with char $ac_func (); below.
25866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25867 <limits.h> exists even on freestanding compilers. */
25869 #ifdef __STDC__
25870 # include <limits.h>
25871 #else
25872 # include <assert.h>
25873 #endif
25875 #undef $ac_func
25877 /* Override any GCC internal prototype to avoid an error.
25878 Use char because int might match the return type of a GCC
25879 builtin and then its argument prototype would still apply. */
25880 #ifdef __cplusplus
25881 extern "C"
25882 #endif
25883 char $ac_func ();
25884 /* The GNU C library defines this for functions which it implements
25885 to always fail with ENOSYS. Some functions are actually named
25886 something starting with __ and the normal name is an alias. */
25887 #if defined __stub_$ac_func || defined __stub___$ac_func
25888 choke me
25889 #endif
25892 main ()
25894 return $ac_func ();
25896 return 0;
25898 _ACEOF
25899 rm -f conftest.$ac_objext conftest$ac_exeext
25900 if { (ac_try="$ac_link"
25901 case "(($ac_try" in
25902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903 *) ac_try_echo=$ac_try;;
25904 esac
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906 (eval "$ac_link") 2>conftest.er1
25907 ac_status=$?
25908 grep -v '^ *+' conftest.er1 >conftest.err
25909 rm -f conftest.er1
25910 cat conftest.err >&5
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && {
25913 test -z "$ac_c_werror_flag" ||
25914 test ! -s conftest.err
25915 } && test -s conftest$ac_exeext &&
25916 $as_test_x conftest$ac_exeext; then
25917 eval "$as_ac_var=yes"
25918 else
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.$ac_ext >&5
25922 eval "$as_ac_var=no"
25925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25926 conftest$ac_exeext conftest.$ac_ext
25928 ac_res=`eval echo '${'$as_ac_var'}'`
25929 { echo "$as_me:$LINENO: result: $ac_res" >&5
25930 echo "${ECHO_T}$ac_res" >&6; }
25931 if test `eval echo '${'$as_ac_var'}'` = yes; then
25932 cat >>confdefs.h <<_ACEOF
25933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25934 _ACEOF
25935 cat >>confdefs.h <<\_ACEOF
25936 #define BX_HAVE_GETENV 1
25937 _ACEOF
25940 done
25943 for ac_func in setenv
25945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25949 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 else
25951 cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h. */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25959 #define $ac_func innocuous_$ac_func
25961 /* System header to define __stub macros and hopefully few prototypes,
25962 which can conflict with char $ac_func (); below.
25963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25964 <limits.h> exists even on freestanding compilers. */
25966 #ifdef __STDC__
25967 # include <limits.h>
25968 #else
25969 # include <assert.h>
25970 #endif
25972 #undef $ac_func
25974 /* Override any GCC internal prototype to avoid an error.
25975 Use char because int might match the return type of a GCC
25976 builtin and then its argument prototype would still apply. */
25977 #ifdef __cplusplus
25978 extern "C"
25979 #endif
25980 char $ac_func ();
25981 /* The GNU C library defines this for functions which it implements
25982 to always fail with ENOSYS. Some functions are actually named
25983 something starting with __ and the normal name is an alias. */
25984 #if defined __stub_$ac_func || defined __stub___$ac_func
25985 choke me
25986 #endif
25989 main ()
25991 return $ac_func ();
25993 return 0;
25995 _ACEOF
25996 rm -f conftest.$ac_objext conftest$ac_exeext
25997 if { (ac_try="$ac_link"
25998 case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26001 esac
26002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26003 (eval "$ac_link") 2>conftest.er1
26004 ac_status=$?
26005 grep -v '^ *+' conftest.er1 >conftest.err
26006 rm -f conftest.er1
26007 cat conftest.err >&5
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); } && {
26010 test -z "$ac_c_werror_flag" ||
26011 test ! -s conftest.err
26012 } && test -s conftest$ac_exeext &&
26013 $as_test_x conftest$ac_exeext; then
26014 eval "$as_ac_var=yes"
26015 else
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26019 eval "$as_ac_var=no"
26022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26023 conftest$ac_exeext conftest.$ac_ext
26025 ac_res=`eval echo '${'$as_ac_var'}'`
26026 { echo "$as_me:$LINENO: result: $ac_res" >&5
26027 echo "${ECHO_T}$ac_res" >&6; }
26028 if test `eval echo '${'$as_ac_var'}'` = yes; then
26029 cat >>confdefs.h <<_ACEOF
26030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26031 _ACEOF
26032 cat >>confdefs.h <<\_ACEOF
26033 #define BX_HAVE_SETENV 1
26034 _ACEOF
26037 done
26040 for ac_func in select
26042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26046 echo $ECHO_N "(cached) $ECHO_C" >&6
26047 else
26048 cat >conftest.$ac_ext <<_ACEOF
26049 /* confdefs.h. */
26050 _ACEOF
26051 cat confdefs.h >>conftest.$ac_ext
26052 cat >>conftest.$ac_ext <<_ACEOF
26053 /* end confdefs.h. */
26054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26056 #define $ac_func innocuous_$ac_func
26058 /* System header to define __stub macros and hopefully few prototypes,
26059 which can conflict with char $ac_func (); below.
26060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26061 <limits.h> exists even on freestanding compilers. */
26063 #ifdef __STDC__
26064 # include <limits.h>
26065 #else
26066 # include <assert.h>
26067 #endif
26069 #undef $ac_func
26071 /* Override any GCC internal prototype to avoid an error.
26072 Use char because int might match the return type of a GCC
26073 builtin and then its argument prototype would still apply. */
26074 #ifdef __cplusplus
26075 extern "C"
26076 #endif
26077 char $ac_func ();
26078 /* The GNU C library defines this for functions which it implements
26079 to always fail with ENOSYS. Some functions are actually named
26080 something starting with __ and the normal name is an alias. */
26081 #if defined __stub_$ac_func || defined __stub___$ac_func
26082 choke me
26083 #endif
26086 main ()
26088 return $ac_func ();
26090 return 0;
26092 _ACEOF
26093 rm -f conftest.$ac_objext conftest$ac_exeext
26094 if { (ac_try="$ac_link"
26095 case "(($ac_try" in
26096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26097 *) ac_try_echo=$ac_try;;
26098 esac
26099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26100 (eval "$ac_link") 2>conftest.er1
26101 ac_status=$?
26102 grep -v '^ *+' conftest.er1 >conftest.err
26103 rm -f conftest.er1
26104 cat conftest.err >&5
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); } && {
26107 test -z "$ac_c_werror_flag" ||
26108 test ! -s conftest.err
26109 } && test -s conftest$ac_exeext &&
26110 $as_test_x conftest$ac_exeext; then
26111 eval "$as_ac_var=yes"
26112 else
26113 echo "$as_me: failed program was:" >&5
26114 sed 's/^/| /' conftest.$ac_ext >&5
26116 eval "$as_ac_var=no"
26119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26120 conftest$ac_exeext conftest.$ac_ext
26122 ac_res=`eval echo '${'$as_ac_var'}'`
26123 { echo "$as_me:$LINENO: result: $ac_res" >&5
26124 echo "${ECHO_T}$ac_res" >&6; }
26125 if test `eval echo '${'$as_ac_var'}'` = yes; then
26126 cat >>confdefs.h <<_ACEOF
26127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26128 _ACEOF
26129 cat >>confdefs.h <<\_ACEOF
26130 #define BX_HAVE_SELECT 1
26131 _ACEOF
26134 done
26137 for ac_func in snprintf
26139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26143 echo $ECHO_N "(cached) $ECHO_C" >&6
26144 else
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h. */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26153 #define $ac_func innocuous_$ac_func
26155 /* System header to define __stub macros and hopefully few prototypes,
26156 which can conflict with char $ac_func (); below.
26157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26158 <limits.h> exists even on freestanding compilers. */
26160 #ifdef __STDC__
26161 # include <limits.h>
26162 #else
26163 # include <assert.h>
26164 #endif
26166 #undef $ac_func
26168 /* Override any GCC internal prototype to avoid an error.
26169 Use char because int might match the return type of a GCC
26170 builtin and then its argument prototype would still apply. */
26171 #ifdef __cplusplus
26172 extern "C"
26173 #endif
26174 char $ac_func ();
26175 /* The GNU C library defines this for functions which it implements
26176 to always fail with ENOSYS. Some functions are actually named
26177 something starting with __ and the normal name is an alias. */
26178 #if defined __stub_$ac_func || defined __stub___$ac_func
26179 choke me
26180 #endif
26183 main ()
26185 return $ac_func ();
26187 return 0;
26189 _ACEOF
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26195 esac
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26198 ac_status=$?
26199 grep -v '^ *+' conftest.er1 >conftest.err
26200 rm -f conftest.er1
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
26208 eval "$as_ac_var=yes"
26209 else
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 eval "$as_ac_var=no"
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217 conftest$ac_exeext conftest.$ac_ext
26219 ac_res=`eval echo '${'$as_ac_var'}'`
26220 { echo "$as_me:$LINENO: result: $ac_res" >&5
26221 echo "${ECHO_T}$ac_res" >&6; }
26222 if test `eval echo '${'$as_ac_var'}'` = yes; then
26223 cat >>confdefs.h <<_ACEOF
26224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26225 _ACEOF
26226 cat >>confdefs.h <<\_ACEOF
26227 #define BX_HAVE_SNPRINTF 1
26228 _ACEOF
26231 done
26234 for ac_func in vsnprintf
26236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26240 echo $ECHO_N "(cached) $ECHO_C" >&6
26241 else
26242 cat >conftest.$ac_ext <<_ACEOF
26243 /* confdefs.h. */
26244 _ACEOF
26245 cat confdefs.h >>conftest.$ac_ext
26246 cat >>conftest.$ac_ext <<_ACEOF
26247 /* end confdefs.h. */
26248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26250 #define $ac_func innocuous_$ac_func
26252 /* System header to define __stub macros and hopefully few prototypes,
26253 which can conflict with char $ac_func (); below.
26254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26255 <limits.h> exists even on freestanding compilers. */
26257 #ifdef __STDC__
26258 # include <limits.h>
26259 #else
26260 # include <assert.h>
26261 #endif
26263 #undef $ac_func
26265 /* Override any GCC internal prototype to avoid an error.
26266 Use char because int might match the return type of a GCC
26267 builtin and then its argument prototype would still apply. */
26268 #ifdef __cplusplus
26269 extern "C"
26270 #endif
26271 char $ac_func ();
26272 /* The GNU C library defines this for functions which it implements
26273 to always fail with ENOSYS. Some functions are actually named
26274 something starting with __ and the normal name is an alias. */
26275 #if defined __stub_$ac_func || defined __stub___$ac_func
26276 choke me
26277 #endif
26280 main ()
26282 return $ac_func ();
26284 return 0;
26286 _ACEOF
26287 rm -f conftest.$ac_objext conftest$ac_exeext
26288 if { (ac_try="$ac_link"
26289 case "(($ac_try" in
26290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26291 *) ac_try_echo=$ac_try;;
26292 esac
26293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26294 (eval "$ac_link") 2>conftest.er1
26295 ac_status=$?
26296 grep -v '^ *+' conftest.er1 >conftest.err
26297 rm -f conftest.er1
26298 cat conftest.err >&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); } && {
26301 test -z "$ac_c_werror_flag" ||
26302 test ! -s conftest.err
26303 } && test -s conftest$ac_exeext &&
26304 $as_test_x conftest$ac_exeext; then
26305 eval "$as_ac_var=yes"
26306 else
26307 echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26310 eval "$as_ac_var=no"
26313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26314 conftest$ac_exeext conftest.$ac_ext
26316 ac_res=`eval echo '${'$as_ac_var'}'`
26317 { echo "$as_me:$LINENO: result: $ac_res" >&5
26318 echo "${ECHO_T}$ac_res" >&6; }
26319 if test `eval echo '${'$as_ac_var'}'` = yes; then
26320 cat >>confdefs.h <<_ACEOF
26321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26322 _ACEOF
26323 cat >>confdefs.h <<\_ACEOF
26324 #define BX_HAVE_VSNPRINTF 1
26325 _ACEOF
26328 done
26331 for ac_func in strtoull
26333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26338 else
26339 cat >conftest.$ac_ext <<_ACEOF
26340 /* confdefs.h. */
26341 _ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26347 #define $ac_func innocuous_$ac_func
26349 /* System header to define __stub macros and hopefully few prototypes,
26350 which can conflict with char $ac_func (); below.
26351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26352 <limits.h> exists even on freestanding compilers. */
26354 #ifdef __STDC__
26355 # include <limits.h>
26356 #else
26357 # include <assert.h>
26358 #endif
26360 #undef $ac_func
26362 /* Override any GCC internal prototype to avoid an error.
26363 Use char because int might match the return type of a GCC
26364 builtin and then its argument prototype would still apply. */
26365 #ifdef __cplusplus
26366 extern "C"
26367 #endif
26368 char $ac_func ();
26369 /* The GNU C library defines this for functions which it implements
26370 to always fail with ENOSYS. Some functions are actually named
26371 something starting with __ and the normal name is an alias. */
26372 #if defined __stub_$ac_func || defined __stub___$ac_func
26373 choke me
26374 #endif
26377 main ()
26379 return $ac_func ();
26381 return 0;
26383 _ACEOF
26384 rm -f conftest.$ac_objext conftest$ac_exeext
26385 if { (ac_try="$ac_link"
26386 case "(($ac_try" in
26387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26388 *) ac_try_echo=$ac_try;;
26389 esac
26390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26391 (eval "$ac_link") 2>conftest.er1
26392 ac_status=$?
26393 grep -v '^ *+' conftest.er1 >conftest.err
26394 rm -f conftest.er1
26395 cat conftest.err >&5
26396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } && {
26398 test -z "$ac_c_werror_flag" ||
26399 test ! -s conftest.err
26400 } && test -s conftest$ac_exeext &&
26401 $as_test_x conftest$ac_exeext; then
26402 eval "$as_ac_var=yes"
26403 else
26404 echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26407 eval "$as_ac_var=no"
26410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26411 conftest$ac_exeext conftest.$ac_ext
26413 ac_res=`eval echo '${'$as_ac_var'}'`
26414 { echo "$as_me:$LINENO: result: $ac_res" >&5
26415 echo "${ECHO_T}$ac_res" >&6; }
26416 if test `eval echo '${'$as_ac_var'}'` = yes; then
26417 cat >>confdefs.h <<_ACEOF
26418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26419 _ACEOF
26420 cat >>confdefs.h <<\_ACEOF
26421 #define BX_HAVE_STRTOULL 1
26422 _ACEOF
26425 done
26428 for ac_func in strtouq
26430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26434 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436 cat >conftest.$ac_ext <<_ACEOF
26437 /* confdefs.h. */
26438 _ACEOF
26439 cat confdefs.h >>conftest.$ac_ext
26440 cat >>conftest.$ac_ext <<_ACEOF
26441 /* end confdefs.h. */
26442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26444 #define $ac_func innocuous_$ac_func
26446 /* System header to define __stub macros and hopefully few prototypes,
26447 which can conflict with char $ac_func (); below.
26448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26449 <limits.h> exists even on freestanding compilers. */
26451 #ifdef __STDC__
26452 # include <limits.h>
26453 #else
26454 # include <assert.h>
26455 #endif
26457 #undef $ac_func
26459 /* Override any GCC internal prototype to avoid an error.
26460 Use char because int might match the return type of a GCC
26461 builtin and then its argument prototype would still apply. */
26462 #ifdef __cplusplus
26463 extern "C"
26464 #endif
26465 char $ac_func ();
26466 /* The GNU C library defines this for functions which it implements
26467 to always fail with ENOSYS. Some functions are actually named
26468 something starting with __ and the normal name is an alias. */
26469 #if defined __stub_$ac_func || defined __stub___$ac_func
26470 choke me
26471 #endif
26474 main ()
26476 return $ac_func ();
26478 return 0;
26480 _ACEOF
26481 rm -f conftest.$ac_objext conftest$ac_exeext
26482 if { (ac_try="$ac_link"
26483 case "(($ac_try" in
26484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26485 *) ac_try_echo=$ac_try;;
26486 esac
26487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26488 (eval "$ac_link") 2>conftest.er1
26489 ac_status=$?
26490 grep -v '^ *+' conftest.er1 >conftest.err
26491 rm -f conftest.er1
26492 cat conftest.err >&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } && {
26495 test -z "$ac_c_werror_flag" ||
26496 test ! -s conftest.err
26497 } && test -s conftest$ac_exeext &&
26498 $as_test_x conftest$ac_exeext; then
26499 eval "$as_ac_var=yes"
26500 else
26501 echo "$as_me: failed program was:" >&5
26502 sed 's/^/| /' conftest.$ac_ext >&5
26504 eval "$as_ac_var=no"
26507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26508 conftest$ac_exeext conftest.$ac_ext
26510 ac_res=`eval echo '${'$as_ac_var'}'`
26511 { echo "$as_me:$LINENO: result: $ac_res" >&5
26512 echo "${ECHO_T}$ac_res" >&6; }
26513 if test `eval echo '${'$as_ac_var'}'` = yes; then
26514 cat >>confdefs.h <<_ACEOF
26515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26516 _ACEOF
26517 cat >>confdefs.h <<\_ACEOF
26518 #define BX_HAVE_STRTOUQ 1
26519 _ACEOF
26522 done
26525 for ac_func in strdup
26527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26528 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h. */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26541 #define $ac_func innocuous_$ac_func
26543 /* System header to define __stub macros and hopefully few prototypes,
26544 which can conflict with char $ac_func (); below.
26545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26546 <limits.h> exists even on freestanding compilers. */
26548 #ifdef __STDC__
26549 # include <limits.h>
26550 #else
26551 # include <assert.h>
26552 #endif
26554 #undef $ac_func
26556 /* Override any GCC internal prototype to avoid an error.
26557 Use char because int might match the return type of a GCC
26558 builtin and then its argument prototype would still apply. */
26559 #ifdef __cplusplus
26560 extern "C"
26561 #endif
26562 char $ac_func ();
26563 /* The GNU C library defines this for functions which it implements
26564 to always fail with ENOSYS. Some functions are actually named
26565 something starting with __ and the normal name is an alias. */
26566 #if defined __stub_$ac_func || defined __stub___$ac_func
26567 choke me
26568 #endif
26571 main ()
26573 return $ac_func ();
26575 return 0;
26577 _ACEOF
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26583 esac
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_link") 2>conftest.er1
26586 ac_status=$?
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } && {
26592 test -z "$ac_c_werror_flag" ||
26593 test ! -s conftest.err
26594 } && test -s conftest$ac_exeext &&
26595 $as_test_x conftest$ac_exeext; then
26596 eval "$as_ac_var=yes"
26597 else
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 eval "$as_ac_var=no"
26604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26605 conftest$ac_exeext conftest.$ac_ext
26607 ac_res=`eval echo '${'$as_ac_var'}'`
26608 { echo "$as_me:$LINENO: result: $ac_res" >&5
26609 echo "${ECHO_T}$ac_res" >&6; }
26610 if test `eval echo '${'$as_ac_var'}'` = yes; then
26611 cat >>confdefs.h <<_ACEOF
26612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26613 _ACEOF
26614 cat >>confdefs.h <<\_ACEOF
26615 #define BX_HAVE_STRDUP 1
26616 _ACEOF
26619 done
26622 for ac_func in strrev
26624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26625 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26629 else
26630 cat >conftest.$ac_ext <<_ACEOF
26631 /* confdefs.h. */
26632 _ACEOF
26633 cat confdefs.h >>conftest.$ac_ext
26634 cat >>conftest.$ac_ext <<_ACEOF
26635 /* end confdefs.h. */
26636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26638 #define $ac_func innocuous_$ac_func
26640 /* System header to define __stub macros and hopefully few prototypes,
26641 which can conflict with char $ac_func (); below.
26642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26643 <limits.h> exists even on freestanding compilers. */
26645 #ifdef __STDC__
26646 # include <limits.h>
26647 #else
26648 # include <assert.h>
26649 #endif
26651 #undef $ac_func
26653 /* Override any GCC internal prototype to avoid an error.
26654 Use char because int might match the return type of a GCC
26655 builtin and then its argument prototype would still apply. */
26656 #ifdef __cplusplus
26657 extern "C"
26658 #endif
26659 char $ac_func ();
26660 /* The GNU C library defines this for functions which it implements
26661 to always fail with ENOSYS. Some functions are actually named
26662 something starting with __ and the normal name is an alias. */
26663 #if defined __stub_$ac_func || defined __stub___$ac_func
26664 choke me
26665 #endif
26668 main ()
26670 return $ac_func ();
26672 return 0;
26674 _ACEOF
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (ac_try="$ac_link"
26677 case "(($ac_try" in
26678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679 *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682 (eval "$ac_link") 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } && {
26689 test -z "$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 } && test -s conftest$ac_exeext &&
26692 $as_test_x conftest$ac_exeext; then
26693 eval "$as_ac_var=yes"
26694 else
26695 echo "$as_me: failed program was:" >&5
26696 sed 's/^/| /' conftest.$ac_ext >&5
26698 eval "$as_ac_var=no"
26701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26702 conftest$ac_exeext conftest.$ac_ext
26704 ac_res=`eval echo '${'$as_ac_var'}'`
26705 { echo "$as_me:$LINENO: result: $ac_res" >&5
26706 echo "${ECHO_T}$ac_res" >&6; }
26707 if test `eval echo '${'$as_ac_var'}'` = yes; then
26708 cat >>confdefs.h <<_ACEOF
26709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26710 _ACEOF
26711 cat >>confdefs.h <<\_ACEOF
26712 #define BX_HAVE_STRREV 1
26713 _ACEOF
26716 done
26719 for ac_func in sleep
26721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26725 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 else
26727 cat >conftest.$ac_ext <<_ACEOF
26728 /* confdefs.h. */
26729 _ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26735 #define $ac_func innocuous_$ac_func
26737 /* System header to define __stub macros and hopefully few prototypes,
26738 which can conflict with char $ac_func (); below.
26739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26740 <limits.h> exists even on freestanding compilers. */
26742 #ifdef __STDC__
26743 # include <limits.h>
26744 #else
26745 # include <assert.h>
26746 #endif
26748 #undef $ac_func
26750 /* Override any GCC internal prototype to avoid an error.
26751 Use char because int might match the return type of a GCC
26752 builtin and then its argument prototype would still apply. */
26753 #ifdef __cplusplus
26754 extern "C"
26755 #endif
26756 char $ac_func ();
26757 /* The GNU C library defines this for functions which it implements
26758 to always fail with ENOSYS. Some functions are actually named
26759 something starting with __ and the normal name is an alias. */
26760 #if defined __stub_$ac_func || defined __stub___$ac_func
26761 choke me
26762 #endif
26765 main ()
26767 return $ac_func ();
26769 return 0;
26771 _ACEOF
26772 rm -f conftest.$ac_objext conftest$ac_exeext
26773 if { (ac_try="$ac_link"
26774 case "(($ac_try" in
26775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26776 *) ac_try_echo=$ac_try;;
26777 esac
26778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26779 (eval "$ac_link") 2>conftest.er1
26780 ac_status=$?
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } && {
26786 test -z "$ac_c_werror_flag" ||
26787 test ! -s conftest.err
26788 } && test -s conftest$ac_exeext &&
26789 $as_test_x conftest$ac_exeext; then
26790 eval "$as_ac_var=yes"
26791 else
26792 echo "$as_me: failed program was:" >&5
26793 sed 's/^/| /' conftest.$ac_ext >&5
26795 eval "$as_ac_var=no"
26798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26799 conftest$ac_exeext conftest.$ac_ext
26801 ac_res=`eval echo '${'$as_ac_var'}'`
26802 { echo "$as_me:$LINENO: result: $ac_res" >&5
26803 echo "${ECHO_T}$ac_res" >&6; }
26804 if test `eval echo '${'$as_ac_var'}'` = yes; then
26805 cat >>confdefs.h <<_ACEOF
26806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26807 _ACEOF
26808 cat >>confdefs.h <<\_ACEOF
26809 #define BX_HAVE_SLEEP 1
26810 _ACEOF
26813 done
26816 for ac_func in usleep
26818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26823 else
26824 cat >conftest.$ac_ext <<_ACEOF
26825 /* confdefs.h. */
26826 _ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h. */
26830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26832 #define $ac_func innocuous_$ac_func
26834 /* System header to define __stub macros and hopefully few prototypes,
26835 which can conflict with char $ac_func (); below.
26836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26837 <limits.h> exists even on freestanding compilers. */
26839 #ifdef __STDC__
26840 # include <limits.h>
26841 #else
26842 # include <assert.h>
26843 #endif
26845 #undef $ac_func
26847 /* Override any GCC internal prototype to avoid an error.
26848 Use char because int might match the return type of a GCC
26849 builtin and then its argument prototype would still apply. */
26850 #ifdef __cplusplus
26851 extern "C"
26852 #endif
26853 char $ac_func ();
26854 /* The GNU C library defines this for functions which it implements
26855 to always fail with ENOSYS. Some functions are actually named
26856 something starting with __ and the normal name is an alias. */
26857 #if defined __stub_$ac_func || defined __stub___$ac_func
26858 choke me
26859 #endif
26862 main ()
26864 return $ac_func ();
26866 return 0;
26868 _ACEOF
26869 rm -f conftest.$ac_objext conftest$ac_exeext
26870 if { (ac_try="$ac_link"
26871 case "(($ac_try" in
26872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26873 *) ac_try_echo=$ac_try;;
26874 esac
26875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26876 (eval "$ac_link") 2>conftest.er1
26877 ac_status=$?
26878 grep -v '^ *+' conftest.er1 >conftest.err
26879 rm -f conftest.er1
26880 cat conftest.err >&5
26881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882 (exit $ac_status); } && {
26883 test -z "$ac_c_werror_flag" ||
26884 test ! -s conftest.err
26885 } && test -s conftest$ac_exeext &&
26886 $as_test_x conftest$ac_exeext; then
26887 eval "$as_ac_var=yes"
26888 else
26889 echo "$as_me: failed program was:" >&5
26890 sed 's/^/| /' conftest.$ac_ext >&5
26892 eval "$as_ac_var=no"
26895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26896 conftest$ac_exeext conftest.$ac_ext
26898 ac_res=`eval echo '${'$as_ac_var'}'`
26899 { echo "$as_me:$LINENO: result: $ac_res" >&5
26900 echo "${ECHO_T}$ac_res" >&6; }
26901 if test `eval echo '${'$as_ac_var'}'` = yes; then
26902 cat >>confdefs.h <<_ACEOF
26903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26904 _ACEOF
26905 cat >>confdefs.h <<\_ACEOF
26906 #define BX_HAVE_USLEEP 1
26907 _ACEOF
26910 done
26913 for ac_func in nanosleep
26915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26919 echo $ECHO_N "(cached) $ECHO_C" >&6
26920 else
26921 cat >conftest.$ac_ext <<_ACEOF
26922 /* confdefs.h. */
26923 _ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26929 #define $ac_func innocuous_$ac_func
26931 /* System header to define __stub macros and hopefully few prototypes,
26932 which can conflict with char $ac_func (); below.
26933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26934 <limits.h> exists even on freestanding compilers. */
26936 #ifdef __STDC__
26937 # include <limits.h>
26938 #else
26939 # include <assert.h>
26940 #endif
26942 #undef $ac_func
26944 /* Override any GCC internal prototype to avoid an error.
26945 Use char because int might match the return type of a GCC
26946 builtin and then its argument prototype would still apply. */
26947 #ifdef __cplusplus
26948 extern "C"
26949 #endif
26950 char $ac_func ();
26951 /* The GNU C library defines this for functions which it implements
26952 to always fail with ENOSYS. Some functions are actually named
26953 something starting with __ and the normal name is an alias. */
26954 #if defined __stub_$ac_func || defined __stub___$ac_func
26955 choke me
26956 #endif
26959 main ()
26961 return $ac_func ();
26963 return 0;
26965 _ACEOF
26966 rm -f conftest.$ac_objext conftest$ac_exeext
26967 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } && {
26980 test -z "$ac_c_werror_flag" ||
26981 test ! -s conftest.err
26982 } && test -s conftest$ac_exeext &&
26983 $as_test_x conftest$ac_exeext; then
26984 eval "$as_ac_var=yes"
26985 else
26986 echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26989 eval "$as_ac_var=no"
26992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26993 conftest$ac_exeext conftest.$ac_ext
26995 ac_res=`eval echo '${'$as_ac_var'}'`
26996 { echo "$as_me:$LINENO: result: $ac_res" >&5
26997 echo "${ECHO_T}$ac_res" >&6; }
26998 if test `eval echo '${'$as_ac_var'}'` = yes; then
26999 cat >>confdefs.h <<_ACEOF
27000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27001 _ACEOF
27002 cat >>confdefs.h <<\_ACEOF
27003 #define BX_HAVE_NANOSLEEP 1
27004 _ACEOF
27007 done
27010 for ac_func in abort
27012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27017 else
27018 cat >conftest.$ac_ext <<_ACEOF
27019 /* confdefs.h. */
27020 _ACEOF
27021 cat confdefs.h >>conftest.$ac_ext
27022 cat >>conftest.$ac_ext <<_ACEOF
27023 /* end confdefs.h. */
27024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27026 #define $ac_func innocuous_$ac_func
27028 /* System header to define __stub macros and hopefully few prototypes,
27029 which can conflict with char $ac_func (); below.
27030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031 <limits.h> exists even on freestanding compilers. */
27033 #ifdef __STDC__
27034 # include <limits.h>
27035 #else
27036 # include <assert.h>
27037 #endif
27039 #undef $ac_func
27041 /* Override any GCC internal prototype to avoid an error.
27042 Use char because int might match the return type of a GCC
27043 builtin and then its argument prototype would still apply. */
27044 #ifdef __cplusplus
27045 extern "C"
27046 #endif
27047 char $ac_func ();
27048 /* The GNU C library defines this for functions which it implements
27049 to always fail with ENOSYS. Some functions are actually named
27050 something starting with __ and the normal name is an alias. */
27051 #if defined __stub_$ac_func || defined __stub___$ac_func
27052 choke me
27053 #endif
27056 main ()
27058 return $ac_func ();
27060 return 0;
27062 _ACEOF
27063 rm -f conftest.$ac_objext conftest$ac_exeext
27064 if { (ac_try="$ac_link"
27065 case "(($ac_try" in
27066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067 *) ac_try_echo=$ac_try;;
27068 esac
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070 (eval "$ac_link") 2>conftest.er1
27071 ac_status=$?
27072 grep -v '^ *+' conftest.er1 >conftest.err
27073 rm -f conftest.er1
27074 cat conftest.err >&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } && {
27077 test -z "$ac_c_werror_flag" ||
27078 test ! -s conftest.err
27079 } && test -s conftest$ac_exeext &&
27080 $as_test_x conftest$ac_exeext; then
27081 eval "$as_ac_var=yes"
27082 else
27083 echo "$as_me: failed program was:" >&5
27084 sed 's/^/| /' conftest.$ac_ext >&5
27086 eval "$as_ac_var=no"
27089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27090 conftest$ac_exeext conftest.$ac_ext
27092 ac_res=`eval echo '${'$as_ac_var'}'`
27093 { echo "$as_me:$LINENO: result: $ac_res" >&5
27094 echo "${ECHO_T}$ac_res" >&6; }
27095 if test `eval echo '${'$as_ac_var'}'` = yes; then
27096 cat >>confdefs.h <<_ACEOF
27097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27098 _ACEOF
27099 cat >>confdefs.h <<\_ACEOF
27100 #define BX_HAVE_ABORT 1
27101 _ACEOF
27104 done
27107 for ac_func in gettimeofday
27109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27113 echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115 cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h. */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27123 #define $ac_func innocuous_$ac_func
27125 /* System header to define __stub macros and hopefully few prototypes,
27126 which can conflict with char $ac_func (); below.
27127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128 <limits.h> exists even on freestanding compilers. */
27130 #ifdef __STDC__
27131 # include <limits.h>
27132 #else
27133 # include <assert.h>
27134 #endif
27136 #undef $ac_func
27138 /* Override any GCC internal prototype to avoid an error.
27139 Use char because int might match the return type of a GCC
27140 builtin and then its argument prototype would still apply. */
27141 #ifdef __cplusplus
27142 extern "C"
27143 #endif
27144 char $ac_func ();
27145 /* The GNU C library defines this for functions which it implements
27146 to always fail with ENOSYS. Some functions are actually named
27147 something starting with __ and the normal name is an alias. */
27148 #if defined __stub_$ac_func || defined __stub___$ac_func
27149 choke me
27150 #endif
27153 main ()
27155 return $ac_func ();
27157 return 0;
27159 _ACEOF
27160 rm -f conftest.$ac_objext conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_link") 2>conftest.er1
27168 ac_status=$?
27169 grep -v '^ *+' conftest.er1 >conftest.err
27170 rm -f conftest.er1
27171 cat conftest.err >&5
27172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173 (exit $ac_status); } && {
27174 test -z "$ac_c_werror_flag" ||
27175 test ! -s conftest.err
27176 } && test -s conftest$ac_exeext &&
27177 $as_test_x conftest$ac_exeext; then
27178 eval "$as_ac_var=yes"
27179 else
27180 echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27183 eval "$as_ac_var=no"
27186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27187 conftest$ac_exeext conftest.$ac_ext
27189 ac_res=`eval echo '${'$as_ac_var'}'`
27190 { echo "$as_me:$LINENO: result: $ac_res" >&5
27191 echo "${ECHO_T}$ac_res" >&6; }
27192 if test `eval echo '${'$as_ac_var'}'` = yes; then
27193 cat >>confdefs.h <<_ACEOF
27194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27195 _ACEOF
27196 cat >>confdefs.h <<\_ACEOF
27197 #define BX_HAVE_GETTIMEOFDAY 1
27198 _ACEOF
27201 done
27203 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27204 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27205 if test "${ac_cv_type_socklen_t+set}" = set; then
27206 echo $ECHO_N "(cached) $ECHO_C" >&6
27207 else
27208 cat >conftest.$ac_ext <<_ACEOF
27209 /* confdefs.h. */
27210 _ACEOF
27211 cat confdefs.h >>conftest.$ac_ext
27212 cat >>conftest.$ac_ext <<_ACEOF
27213 /* end confdefs.h. */
27214 #include <sys/types.h>
27215 #include <sys/socket.h>
27217 typedef socklen_t ac__type_new_;
27219 main ()
27221 if ((ac__type_new_ *) 0)
27222 return 0;
27223 if (sizeof (ac__type_new_))
27224 return 0;
27226 return 0;
27228 _ACEOF
27229 rm -f conftest.$ac_objext
27230 if { (ac_try="$ac_compile"
27231 case "(($ac_try" in
27232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233 *) ac_try_echo=$ac_try;;
27234 esac
27235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236 (eval "$ac_compile") 2>conftest.er1
27237 ac_status=$?
27238 grep -v '^ *+' conftest.er1 >conftest.err
27239 rm -f conftest.er1
27240 cat conftest.err >&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); } && {
27243 test -z "$ac_c_werror_flag" ||
27244 test ! -s conftest.err
27245 } && test -s conftest.$ac_objext; then
27246 ac_cv_type_socklen_t=yes
27247 else
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ac_cv_type_socklen_t=no
27254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27257 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27258 if test $ac_cv_type_socklen_t = yes; then
27259 cat >>confdefs.h <<\_ACEOF
27260 #define BX_HAVE_SOCKLEN_T 1
27261 _ACEOF
27265 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27266 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27267 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27268 echo $ECHO_N "(cached) $ECHO_C" >&6
27269 else
27270 cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h. */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27276 #include <sys/socket.h>
27277 #include <netinet/in.h>
27280 main ()
27282 static struct sockaddr_in ac_aggr;
27283 if (ac_aggr.sin_len)
27284 return 0;
27286 return 0;
27288 _ACEOF
27289 rm -f conftest.$ac_objext
27290 if { (ac_try="$ac_compile"
27291 case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27294 esac
27295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_compile") 2>conftest.er1
27297 ac_status=$?
27298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } && {
27303 test -z "$ac_c_werror_flag" ||
27304 test ! -s conftest.err
27305 } && test -s conftest.$ac_objext; then
27306 ac_cv_member_struct_sockaddr_in_sin_len=yes
27307 else
27308 echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27311 cat >conftest.$ac_ext <<_ACEOF
27312 /* confdefs.h. */
27313 _ACEOF
27314 cat confdefs.h >>conftest.$ac_ext
27315 cat >>conftest.$ac_ext <<_ACEOF
27316 /* end confdefs.h. */
27317 #include <sys/socket.h>
27318 #include <netinet/in.h>
27321 main ()
27323 static struct sockaddr_in ac_aggr;
27324 if (sizeof ac_aggr.sin_len)
27325 return 0;
27327 return 0;
27329 _ACEOF
27330 rm -f conftest.$ac_objext
27331 if { (ac_try="$ac_compile"
27332 case "(($ac_try" in
27333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27334 *) ac_try_echo=$ac_try;;
27335 esac
27336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27337 (eval "$ac_compile") 2>conftest.er1
27338 ac_status=$?
27339 grep -v '^ *+' conftest.er1 >conftest.err
27340 rm -f conftest.er1
27341 cat conftest.err >&5
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); } && {
27344 test -z "$ac_c_werror_flag" ||
27345 test ! -s conftest.err
27346 } && test -s conftest.$ac_objext; then
27347 ac_cv_member_struct_sockaddr_in_sin_len=yes
27348 else
27349 echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27352 ac_cv_member_struct_sockaddr_in_sin_len=no
27355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27361 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27362 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27363 cat >>confdefs.h <<\_ACEOF
27364 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27365 _ACEOF
27370 for ac_func in mkstemp
27372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27376 echo $ECHO_N "(cached) $ECHO_C" >&6
27377 else
27378 cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h. */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h. */
27384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27386 #define $ac_func innocuous_$ac_func
27388 /* System header to define __stub macros and hopefully few prototypes,
27389 which can conflict with char $ac_func (); below.
27390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27391 <limits.h> exists even on freestanding compilers. */
27393 #ifdef __STDC__
27394 # include <limits.h>
27395 #else
27396 # include <assert.h>
27397 #endif
27399 #undef $ac_func
27401 /* Override any GCC internal prototype to avoid an error.
27402 Use char because int might match the return type of a GCC
27403 builtin and then its argument prototype would still apply. */
27404 #ifdef __cplusplus
27405 extern "C"
27406 #endif
27407 char $ac_func ();
27408 /* The GNU C library defines this for functions which it implements
27409 to always fail with ENOSYS. Some functions are actually named
27410 something starting with __ and the normal name is an alias. */
27411 #if defined __stub_$ac_func || defined __stub___$ac_func
27412 choke me
27413 #endif
27416 main ()
27418 return $ac_func ();
27420 return 0;
27422 _ACEOF
27423 rm -f conftest.$ac_objext conftest$ac_exeext
27424 if { (ac_try="$ac_link"
27425 case "(($ac_try" in
27426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27427 *) ac_try_echo=$ac_try;;
27428 esac
27429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27430 (eval "$ac_link") 2>conftest.er1
27431 ac_status=$?
27432 grep -v '^ *+' conftest.er1 >conftest.err
27433 rm -f conftest.er1
27434 cat conftest.err >&5
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); } && {
27437 test -z "$ac_c_werror_flag" ||
27438 test ! -s conftest.err
27439 } && test -s conftest$ac_exeext &&
27440 $as_test_x conftest$ac_exeext; then
27441 eval "$as_ac_var=yes"
27442 else
27443 echo "$as_me: failed program was:" >&5
27444 sed 's/^/| /' conftest.$ac_ext >&5
27446 eval "$as_ac_var=no"
27449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27450 conftest$ac_exeext conftest.$ac_ext
27452 ac_res=`eval echo '${'$as_ac_var'}'`
27453 { echo "$as_me:$LINENO: result: $ac_res" >&5
27454 echo "${ECHO_T}$ac_res" >&6; }
27455 if test `eval echo '${'$as_ac_var'}'` = yes; then
27456 cat >>confdefs.h <<_ACEOF
27457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27458 _ACEOF
27459 cat >>confdefs.h <<\_ACEOF
27460 #define BX_HAVE_MKSTEMP 1
27461 _ACEOF
27464 done
27466 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27467 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27468 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27469 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27473 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27474 else
27475 # Is the header compilable?
27476 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27477 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27478 cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h. */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h. */
27484 $ac_includes_default
27485 #include <sys/mman.h>
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27495 ac_status=$?
27496 grep -v '^ *+' conftest.er1 >conftest.err
27497 rm -f conftest.er1
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_c_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest.$ac_objext; then
27504 ac_header_compiler=yes
27505 else
27506 echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27509 ac_header_compiler=no
27512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27514 echo "${ECHO_T}$ac_header_compiler" >&6; }
27516 # Is the header present?
27517 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27518 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27519 cat >conftest.$ac_ext <<_ACEOF
27520 /* confdefs.h. */
27521 _ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 #include <sys/mman.h>
27526 _ACEOF
27527 if { (ac_try="$ac_cpp conftest.$ac_ext"
27528 case "(($ac_try" in
27529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530 *) ac_try_echo=$ac_try;;
27531 esac
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27534 ac_status=$?
27535 grep -v '^ *+' conftest.er1 >conftest.err
27536 rm -f conftest.er1
27537 cat conftest.err >&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } >/dev/null && {
27540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27541 test ! -s conftest.err
27542 }; then
27543 ac_header_preproc=yes
27544 else
27545 echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27548 ac_header_preproc=no
27551 rm -f conftest.err conftest.$ac_ext
27552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27553 echo "${ECHO_T}$ac_header_preproc" >&6; }
27555 # So? What about this header?
27556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27557 yes:no: )
27558 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27559 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27560 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
27561 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
27562 ac_header_preproc=yes
27564 no:yes:* )
27565 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27566 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
27568 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27570 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
27572 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
27574 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27576 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27579 esac
27580 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27581 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27582 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585 ac_cv_header_sys_mman_h=$ac_header_preproc
27587 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27588 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27591 if test $ac_cv_header_sys_mman_h = yes; then
27592 cat >>confdefs.h <<\_ACEOF
27593 #define BX_HAVE_SYS_MMAN_H 1
27594 _ACEOF
27600 for ac_func in timelocal
27602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608 cat >conftest.$ac_ext <<_ACEOF
27609 /* confdefs.h. */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27616 #define $ac_func innocuous_$ac_func
27618 /* System header to define __stub macros and hopefully few prototypes,
27619 which can conflict with char $ac_func (); below.
27620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27621 <limits.h> exists even on freestanding compilers. */
27623 #ifdef __STDC__
27624 # include <limits.h>
27625 #else
27626 # include <assert.h>
27627 #endif
27629 #undef $ac_func
27631 /* Override any GCC internal prototype to avoid an error.
27632 Use char because int might match the return type of a GCC
27633 builtin and then its argument prototype would still apply. */
27634 #ifdef __cplusplus
27635 extern "C"
27636 #endif
27637 char $ac_func ();
27638 /* The GNU C library defines this for functions which it implements
27639 to always fail with ENOSYS. Some functions are actually named
27640 something starting with __ and the normal name is an alias. */
27641 #if defined __stub_$ac_func || defined __stub___$ac_func
27642 choke me
27643 #endif
27646 main ()
27648 return $ac_func ();
27650 return 0;
27652 _ACEOF
27653 rm -f conftest.$ac_objext conftest$ac_exeext
27654 if { (ac_try="$ac_link"
27655 case "(($ac_try" in
27656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27657 *) ac_try_echo=$ac_try;;
27658 esac
27659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27660 (eval "$ac_link") 2>conftest.er1
27661 ac_status=$?
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } && {
27667 test -z "$ac_c_werror_flag" ||
27668 test ! -s conftest.err
27669 } && test -s conftest$ac_exeext &&
27670 $as_test_x conftest$ac_exeext; then
27671 eval "$as_ac_var=yes"
27672 else
27673 echo "$as_me: failed program was:" >&5
27674 sed 's/^/| /' conftest.$ac_ext >&5
27676 eval "$as_ac_var=no"
27679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27680 conftest$ac_exeext conftest.$ac_ext
27682 ac_res=`eval echo '${'$as_ac_var'}'`
27683 { echo "$as_me:$LINENO: result: $ac_res" >&5
27684 echo "${ECHO_T}$ac_res" >&6; }
27685 if test `eval echo '${'$as_ac_var'}'` = yes; then
27686 cat >>confdefs.h <<_ACEOF
27687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27688 _ACEOF
27689 cat >>confdefs.h <<\_ACEOF
27690 #define BX_HAVE_TIMELOCAL 1
27691 _ACEOF
27694 done
27697 for ac_func in gmtime
27699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27704 else
27705 cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h. */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h. */
27711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27713 #define $ac_func innocuous_$ac_func
27715 /* System header to define __stub macros and hopefully few prototypes,
27716 which can conflict with char $ac_func (); below.
27717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27718 <limits.h> exists even on freestanding compilers. */
27720 #ifdef __STDC__
27721 # include <limits.h>
27722 #else
27723 # include <assert.h>
27724 #endif
27726 #undef $ac_func
27728 /* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27731 #ifdef __cplusplus
27732 extern "C"
27733 #endif
27734 char $ac_func ();
27735 /* The GNU C library defines this for functions which it implements
27736 to always fail with ENOSYS. Some functions are actually named
27737 something starting with __ and the normal name is an alias. */
27738 #if defined __stub_$ac_func || defined __stub___$ac_func
27739 choke me
27740 #endif
27743 main ()
27745 return $ac_func ();
27747 return 0;
27749 _ACEOF
27750 rm -f conftest.$ac_objext conftest$ac_exeext
27751 if { (ac_try="$ac_link"
27752 case "(($ac_try" in
27753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27754 *) ac_try_echo=$ac_try;;
27755 esac
27756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27757 (eval "$ac_link") 2>conftest.er1
27758 ac_status=$?
27759 grep -v '^ *+' conftest.er1 >conftest.err
27760 rm -f conftest.er1
27761 cat conftest.err >&5
27762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763 (exit $ac_status); } && {
27764 test -z "$ac_c_werror_flag" ||
27765 test ! -s conftest.err
27766 } && test -s conftest$ac_exeext &&
27767 $as_test_x conftest$ac_exeext; then
27768 eval "$as_ac_var=yes"
27769 else
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27773 eval "$as_ac_var=no"
27776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27777 conftest$ac_exeext conftest.$ac_ext
27779 ac_res=`eval echo '${'$as_ac_var'}'`
27780 { echo "$as_me:$LINENO: result: $ac_res" >&5
27781 echo "${ECHO_T}$ac_res" >&6; }
27782 if test `eval echo '${'$as_ac_var'}'` = yes; then
27783 cat >>confdefs.h <<_ACEOF
27784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27785 _ACEOF
27786 cat >>confdefs.h <<\_ACEOF
27787 #define BX_HAVE_GMTIME 1
27788 _ACEOF
27791 done
27794 for ac_func in mktime
27796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27800 echo $ECHO_N "(cached) $ECHO_C" >&6
27801 else
27802 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h. */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27810 #define $ac_func innocuous_$ac_func
27812 /* System header to define __stub macros and hopefully few prototypes,
27813 which can conflict with char $ac_func (); below.
27814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27815 <limits.h> exists even on freestanding compilers. */
27817 #ifdef __STDC__
27818 # include <limits.h>
27819 #else
27820 # include <assert.h>
27821 #endif
27823 #undef $ac_func
27825 /* Override any GCC internal prototype to avoid an error.
27826 Use char because int might match the return type of a GCC
27827 builtin and then its argument prototype would still apply. */
27828 #ifdef __cplusplus
27829 extern "C"
27830 #endif
27831 char $ac_func ();
27832 /* The GNU C library defines this for functions which it implements
27833 to always fail with ENOSYS. Some functions are actually named
27834 something starting with __ and the normal name is an alias. */
27835 #if defined __stub_$ac_func || defined __stub___$ac_func
27836 choke me
27837 #endif
27840 main ()
27842 return $ac_func ();
27844 return 0;
27846 _ACEOF
27847 rm -f conftest.$ac_objext conftest$ac_exeext
27848 if { (ac_try="$ac_link"
27849 case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27852 esac
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_link") 2>conftest.er1
27855 ac_status=$?
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } && {
27861 test -z "$ac_c_werror_flag" ||
27862 test ! -s conftest.err
27863 } && test -s conftest$ac_exeext &&
27864 $as_test_x conftest$ac_exeext; then
27865 eval "$as_ac_var=yes"
27866 else
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27870 eval "$as_ac_var=no"
27873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27874 conftest$ac_exeext conftest.$ac_ext
27876 ac_res=`eval echo '${'$as_ac_var'}'`
27877 { echo "$as_me:$LINENO: result: $ac_res" >&5
27878 echo "${ECHO_T}$ac_res" >&6; }
27879 if test `eval echo '${'$as_ac_var'}'` = yes; then
27880 cat >>confdefs.h <<_ACEOF
27881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27882 _ACEOF
27883 cat >>confdefs.h <<\_ACEOF
27884 #define BX_HAVE_MKTIME 1
27885 _ACEOF
27888 done
27891 # Check whether --enable-largefile was given.
27892 if test "${enable_largefile+set}" = set; then
27893 enableval=$enable_largefile;
27896 if test "$enable_largefile" != no; then
27897 wx_largefile=no
27899 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27900 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
27901 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27903 else
27905 cat >conftest.$ac_ext <<_ACEOF
27906 /* confdefs.h. */
27907 _ACEOF
27908 cat confdefs.h >>conftest.$ac_ext
27909 cat >>conftest.$ac_ext <<_ACEOF
27910 /* end confdefs.h. */
27911 #define _FILE_OFFSET_BITS 64
27912 #include <sys/types.h>
27914 main ()
27916 typedef struct {
27917 unsigned int field: sizeof(off_t) == 8;
27918 } wxlf;
27921 return 0;
27923 _ACEOF
27924 rm -f conftest.$ac_objext
27925 if { (ac_try="$ac_compile"
27926 case "(($ac_try" in
27927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27928 *) ac_try_echo=$ac_try;;
27929 esac
27930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27931 (eval "$ac_compile") 2>conftest.er1
27932 ac_status=$?
27933 grep -v '^ *+' conftest.er1 >conftest.err
27934 rm -f conftest.er1
27935 cat conftest.err >&5
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); } && {
27938 test -z "$ac_c_werror_flag" ||
27939 test ! -s conftest.err
27940 } && test -s conftest.$ac_objext; then
27941 ac_cv_sys_file_offset_bits=64
27942 else
27943 echo "$as_me: failed program was:" >&5
27944 sed 's/^/| /' conftest.$ac_ext >&5
27946 ac_cv_sys_file_offset_bits=no
27949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
27954 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
27956 if test "$ac_cv_sys_file_offset_bits" != no; then
27957 wx_largefile=yes
27958 cat >>confdefs.h <<_ACEOF
27959 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27960 _ACEOF
27964 if test "x$wx_largefile" != "xyes"; then
27966 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
27967 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
27968 if test "${ac_cv_sys_large_files+set}" = set; then
27969 echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27972 cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h. */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h. */
27978 #define _LARGE_FILES 1
27979 #include <sys/types.h>
27981 main ()
27983 typedef struct {
27984 unsigned int field: sizeof(off_t) == 8;
27985 } wxlf;
27988 return 0;
27990 _ACEOF
27991 rm -f conftest.$ac_objext
27992 if { (ac_try="$ac_compile"
27993 case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27996 esac
27997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_compile") 2>conftest.er1
27999 ac_status=$?
28000 grep -v '^ *+' conftest.er1 >conftest.err
28001 rm -f conftest.er1
28002 cat conftest.err >&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); } && {
28005 test -z "$ac_c_werror_flag" ||
28006 test ! -s conftest.err
28007 } && test -s conftest.$ac_objext; then
28008 ac_cv_sys_large_files=1
28009 else
28010 echo "$as_me: failed program was:" >&5
28011 sed 's/^/| /' conftest.$ac_ext >&5
28013 ac_cv_sys_large_files=no
28016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28021 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28023 if test "$ac_cv_sys_large_files" != no; then
28024 wx_largefile=yes
28025 cat >>confdefs.h <<_ACEOF
28026 #define _LARGE_FILES $ac_cv_sys_large_files
28027 _ACEOF
28033 { echo "$as_me:$LINENO: checking if large file support is available" >&5
28034 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28035 if test "x$wx_largefile" = "xyes"; then
28036 cat >>confdefs.h <<\_ACEOF
28037 #define HAVE_LARGEFILE_SUPPORT 1
28038 _ACEOF
28041 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28042 echo "${ECHO_T}$wx_largefile" >&6; }
28046 if test "x$wx_largefile" = "xyes"; then
28047 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28048 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28049 else
28050 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28052 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28053 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28054 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28057 have_cos=0
28058 have_floor=0
28060 for ac_func in cos
28062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28063 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28066 echo $ECHO_N "(cached) $ECHO_C" >&6
28067 else
28068 cat >conftest.$ac_ext <<_ACEOF
28069 /* confdefs.h. */
28070 _ACEOF
28071 cat confdefs.h >>conftest.$ac_ext
28072 cat >>conftest.$ac_ext <<_ACEOF
28073 /* end confdefs.h. */
28074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28076 #define $ac_func innocuous_$ac_func
28078 /* System header to define __stub macros and hopefully few prototypes,
28079 which can conflict with char $ac_func (); below.
28080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28081 <limits.h> exists even on freestanding compilers. */
28083 #ifdef __STDC__
28084 # include <limits.h>
28085 #else
28086 # include <assert.h>
28087 #endif
28089 #undef $ac_func
28091 /* Override any GCC internal prototype to avoid an error.
28092 Use char because int might match the return type of a GCC
28093 builtin and then its argument prototype would still apply. */
28094 #ifdef __cplusplus
28095 extern "C"
28096 #endif
28097 char $ac_func ();
28098 /* The GNU C library defines this for functions which it implements
28099 to always fail with ENOSYS. Some functions are actually named
28100 something starting with __ and the normal name is an alias. */
28101 #if defined __stub_$ac_func || defined __stub___$ac_func
28102 choke me
28103 #endif
28106 main ()
28108 return $ac_func ();
28110 return 0;
28112 _ACEOF
28113 rm -f conftest.$ac_objext conftest$ac_exeext
28114 if { (ac_try="$ac_link"
28115 case "(($ac_try" in
28116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28117 *) ac_try_echo=$ac_try;;
28118 esac
28119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28120 (eval "$ac_link") 2>conftest.er1
28121 ac_status=$?
28122 grep -v '^ *+' conftest.er1 >conftest.err
28123 rm -f conftest.er1
28124 cat conftest.err >&5
28125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126 (exit $ac_status); } && {
28127 test -z "$ac_c_werror_flag" ||
28128 test ! -s conftest.err
28129 } && test -s conftest$ac_exeext &&
28130 $as_test_x conftest$ac_exeext; then
28131 eval "$as_ac_var=yes"
28132 else
28133 echo "$as_me: failed program was:" >&5
28134 sed 's/^/| /' conftest.$ac_ext >&5
28136 eval "$as_ac_var=no"
28139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28140 conftest$ac_exeext conftest.$ac_ext
28142 ac_res=`eval echo '${'$as_ac_var'}'`
28143 { echo "$as_me:$LINENO: result: $ac_res" >&5
28144 echo "${ECHO_T}$ac_res" >&6; }
28145 if test `eval echo '${'$as_ac_var'}'` = yes; then
28146 cat >>confdefs.h <<_ACEOF
28147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28148 _ACEOF
28149 have_cos=1
28151 done
28154 for ac_func in floor
28156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28157 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28160 echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162 cat >conftest.$ac_ext <<_ACEOF
28163 /* confdefs.h. */
28164 _ACEOF
28165 cat confdefs.h >>conftest.$ac_ext
28166 cat >>conftest.$ac_ext <<_ACEOF
28167 /* end confdefs.h. */
28168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28170 #define $ac_func innocuous_$ac_func
28172 /* System header to define __stub macros and hopefully few prototypes,
28173 which can conflict with char $ac_func (); below.
28174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28175 <limits.h> exists even on freestanding compilers. */
28177 #ifdef __STDC__
28178 # include <limits.h>
28179 #else
28180 # include <assert.h>
28181 #endif
28183 #undef $ac_func
28185 /* Override any GCC internal prototype to avoid an error.
28186 Use char because int might match the return type of a GCC
28187 builtin and then its argument prototype would still apply. */
28188 #ifdef __cplusplus
28189 extern "C"
28190 #endif
28191 char $ac_func ();
28192 /* The GNU C library defines this for functions which it implements
28193 to always fail with ENOSYS. Some functions are actually named
28194 something starting with __ and the normal name is an alias. */
28195 #if defined __stub_$ac_func || defined __stub___$ac_func
28196 choke me
28197 #endif
28200 main ()
28202 return $ac_func ();
28204 return 0;
28206 _ACEOF
28207 rm -f conftest.$ac_objext conftest$ac_exeext
28208 if { (ac_try="$ac_link"
28209 case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28212 esac
28213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_link") 2>conftest.er1
28215 ac_status=$?
28216 grep -v '^ *+' conftest.er1 >conftest.err
28217 rm -f conftest.er1
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } && {
28221 test -z "$ac_c_werror_flag" ||
28222 test ! -s conftest.err
28223 } && test -s conftest$ac_exeext &&
28224 $as_test_x conftest$ac_exeext; then
28225 eval "$as_ac_var=yes"
28226 else
28227 echo "$as_me: failed program was:" >&5
28228 sed 's/^/| /' conftest.$ac_ext >&5
28230 eval "$as_ac_var=no"
28233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28234 conftest$ac_exeext conftest.$ac_ext
28236 ac_res=`eval echo '${'$as_ac_var'}'`
28237 { echo "$as_me:$LINENO: result: $ac_res" >&5
28238 echo "${ECHO_T}$ac_res" >&6; }
28239 if test `eval echo '${'$as_ac_var'}'` = yes; then
28240 cat >>confdefs.h <<_ACEOF
28241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28242 _ACEOF
28243 have_floor=1
28245 done
28247 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28248 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28249 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28250 { echo "$as_me:$LINENO: result: yes" >&5
28251 echo "${ECHO_T}yes" >&6; }
28252 else
28253 { echo "$as_me:$LINENO: result: no" >&5
28254 echo "${ECHO_T}no" >&6; }
28255 LIBS="$LIBS -lm"
28256 # use different functions to bypass configure caching
28257 have_sin=0
28258 have_ceil=0
28260 for ac_func in sin
28262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268 cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h. */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h. */
28274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28276 #define $ac_func innocuous_$ac_func
28278 /* System header to define __stub macros and hopefully few prototypes,
28279 which can conflict with char $ac_func (); below.
28280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28281 <limits.h> exists even on freestanding compilers. */
28283 #ifdef __STDC__
28284 # include <limits.h>
28285 #else
28286 # include <assert.h>
28287 #endif
28289 #undef $ac_func
28291 /* Override any GCC internal prototype to avoid an error.
28292 Use char because int might match the return type of a GCC
28293 builtin and then its argument prototype would still apply. */
28294 #ifdef __cplusplus
28295 extern "C"
28296 #endif
28297 char $ac_func ();
28298 /* The GNU C library defines this for functions which it implements
28299 to always fail with ENOSYS. Some functions are actually named
28300 something starting with __ and the normal name is an alias. */
28301 #if defined __stub_$ac_func || defined __stub___$ac_func
28302 choke me
28303 #endif
28306 main ()
28308 return $ac_func ();
28310 return 0;
28312 _ACEOF
28313 rm -f conftest.$ac_objext conftest$ac_exeext
28314 if { (ac_try="$ac_link"
28315 case "(($ac_try" in
28316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317 *) ac_try_echo=$ac_try;;
28318 esac
28319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320 (eval "$ac_link") 2>conftest.er1
28321 ac_status=$?
28322 grep -v '^ *+' conftest.er1 >conftest.err
28323 rm -f conftest.er1
28324 cat conftest.err >&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326 (exit $ac_status); } && {
28327 test -z "$ac_c_werror_flag" ||
28328 test ! -s conftest.err
28329 } && test -s conftest$ac_exeext &&
28330 $as_test_x conftest$ac_exeext; then
28331 eval "$as_ac_var=yes"
28332 else
28333 echo "$as_me: failed program was:" >&5
28334 sed 's/^/| /' conftest.$ac_ext >&5
28336 eval "$as_ac_var=no"
28339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28340 conftest$ac_exeext conftest.$ac_ext
28342 ac_res=`eval echo '${'$as_ac_var'}'`
28343 { echo "$as_me:$LINENO: result: $ac_res" >&5
28344 echo "${ECHO_T}$ac_res" >&6; }
28345 if test `eval echo '${'$as_ac_var'}'` = yes; then
28346 cat >>confdefs.h <<_ACEOF
28347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28348 _ACEOF
28349 have_sin=1
28351 done
28354 for ac_func in ceil
28356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28357 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28360 echo $ECHO_N "(cached) $ECHO_C" >&6
28361 else
28362 cat >conftest.$ac_ext <<_ACEOF
28363 /* confdefs.h. */
28364 _ACEOF
28365 cat confdefs.h >>conftest.$ac_ext
28366 cat >>conftest.$ac_ext <<_ACEOF
28367 /* end confdefs.h. */
28368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28370 #define $ac_func innocuous_$ac_func
28372 /* System header to define __stub macros and hopefully few prototypes,
28373 which can conflict with char $ac_func (); below.
28374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28375 <limits.h> exists even on freestanding compilers. */
28377 #ifdef __STDC__
28378 # include <limits.h>
28379 #else
28380 # include <assert.h>
28381 #endif
28383 #undef $ac_func
28385 /* Override any GCC internal prototype to avoid an error.
28386 Use char because int might match the return type of a GCC
28387 builtin and then its argument prototype would still apply. */
28388 #ifdef __cplusplus
28389 extern "C"
28390 #endif
28391 char $ac_func ();
28392 /* The GNU C library defines this for functions which it implements
28393 to always fail with ENOSYS. Some functions are actually named
28394 something starting with __ and the normal name is an alias. */
28395 #if defined __stub_$ac_func || defined __stub___$ac_func
28396 choke me
28397 #endif
28400 main ()
28402 return $ac_func ();
28404 return 0;
28406 _ACEOF
28407 rm -f conftest.$ac_objext conftest$ac_exeext
28408 if { (ac_try="$ac_link"
28409 case "(($ac_try" in
28410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28411 *) ac_try_echo=$ac_try;;
28412 esac
28413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28414 (eval "$ac_link") 2>conftest.er1
28415 ac_status=$?
28416 grep -v '^ *+' conftest.er1 >conftest.err
28417 rm -f conftest.er1
28418 cat conftest.err >&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } && {
28421 test -z "$ac_c_werror_flag" ||
28422 test ! -s conftest.err
28423 } && test -s conftest$ac_exeext &&
28424 $as_test_x conftest$ac_exeext; then
28425 eval "$as_ac_var=yes"
28426 else
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 eval "$as_ac_var=no"
28433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28434 conftest$ac_exeext conftest.$ac_ext
28436 ac_res=`eval echo '${'$as_ac_var'}'`
28437 { echo "$as_me:$LINENO: result: $ac_res" >&5
28438 echo "${ECHO_T}$ac_res" >&6; }
28439 if test `eval echo '${'$as_ac_var'}'` = yes; then
28440 cat >>confdefs.h <<_ACEOF
28441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28442 _ACEOF
28443 have_ceil=1
28445 done
28447 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28448 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28449 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28450 { echo "$as_me:$LINENO: result: yes" >&5
28451 echo "${ECHO_T}yes" >&6; }
28452 else
28453 { echo "$as_me:$LINENO: result: no" >&5
28454 echo "${ECHO_T}no" >&6; }
28455 # not sure we should warn the user, crash, etc.
28456 # expect link failure
28460 { echo "$as_me:$LINENO: checking for struct timeval" >&5
28461 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28462 cat >conftest.$ac_ext <<_ACEOF
28463 /* confdefs.h. */
28464 _ACEOF
28465 cat confdefs.h >>conftest.$ac_ext
28466 cat >>conftest.$ac_ext <<_ACEOF
28467 /* end confdefs.h. */
28468 #include <sys/time.h>
28470 main ()
28472 struct timeval x;
28474 return 0;
28476 _ACEOF
28477 rm -f conftest.$ac_objext
28478 if { (ac_try="$ac_compile"
28479 case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482 esac
28483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
28485 ac_status=$?
28486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490 (exit $ac_status); } && {
28491 test -z "$ac_c_werror_flag" ||
28492 test ! -s conftest.err
28493 } && test -s conftest.$ac_objext; then
28495 { echo "$as_me:$LINENO: result: yes" >&5
28496 echo "${ECHO_T}yes" >&6; }
28497 cat >>confdefs.h <<\_ACEOF
28498 #define BX_HAVE_STRUCT_TIMEVAL 1
28499 _ACEOF
28502 else
28503 echo "$as_me: failed program was:" >&5
28504 sed 's/^/| /' conftest.$ac_ext >&5
28506 { echo "$as_me:$LINENO: result: no" >&5
28507 echo "${ECHO_T}no" >&6; }
28510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28512 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28513 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28514 cat >conftest.$ac_ext <<_ACEOF
28515 /* confdefs.h. */
28516 _ACEOF
28517 cat confdefs.h >>conftest.$ac_ext
28518 cat >>conftest.$ac_ext <<_ACEOF
28519 /* end confdefs.h. */
28522 main ()
28524 typedef struct { } junk;
28526 return 0;
28528 _ACEOF
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
28531 case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28534 esac
28535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28536 (eval "$ac_compile") 2>conftest.er1
28537 ac_status=$?
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && {
28543 test -z "$ac_c_werror_flag" ||
28544 test ! -s conftest.err
28545 } && test -s conftest.$ac_objext; then
28546 { echo "$as_me:$LINENO: result: yes" >&5
28547 echo "${ECHO_T}yes" >&6; }
28548 else
28549 echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28553 cat >>confdefs.h <<\_ACEOF
28554 #define BX_NO_EMPTY_STRUCTS 1
28555 _ACEOF
28557 { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28564 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28565 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28566 cat >conftest.$ac_ext <<_ACEOF
28567 /* confdefs.h. */
28568 _ACEOF
28569 cat confdefs.h >>conftest.$ac_ext
28570 cat >>conftest.$ac_ext <<_ACEOF
28571 /* end confdefs.h. */
28574 main ()
28576 typedef struct { } __attribute__ ((packed)) junk;
28578 return 0;
28580 _ACEOF
28581 rm -f conftest.$ac_objext
28582 if { (ac_try="$ac_compile"
28583 case "(($ac_try" in
28584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585 *) ac_try_echo=$ac_try;;
28586 esac
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588 (eval "$ac_compile") 2>conftest.er1
28589 ac_status=$?
28590 grep -v '^ *+' conftest.er1 >conftest.err
28591 rm -f conftest.er1
28592 cat conftest.err >&5
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); } && {
28595 test -z "$ac_c_werror_flag" ||
28596 test ! -s conftest.err
28597 } && test -s conftest.$ac_objext; then
28598 { echo "$as_me:$LINENO: result: yes" >&5
28599 echo "${ECHO_T}yes" >&6; }
28600 else
28601 echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28605 { echo "$as_me:$LINENO: result: no" >&5
28606 echo "${ECHO_T}no" >&6; }
28607 cat >>confdefs.h <<\_ACEOF
28608 #define BX_NO_ATTRIBUTES 1
28609 _ACEOF
28614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28617 ac_ext=cpp
28618 ac_cpp='$CXXCPP $CPPFLAGS'
28619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28623 { echo "$as_me:$LINENO: checking for hash_map" >&5
28624 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28625 cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h. */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h. */
28631 #include <hash_map>
28633 main ()
28637 return 0;
28639 _ACEOF
28640 rm -f conftest.$ac_objext
28641 if { (ac_try="$ac_compile"
28642 case "(($ac_try" in
28643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28644 *) ac_try_echo=$ac_try;;
28645 esac
28646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28647 (eval "$ac_compile") 2>conftest.er1
28648 ac_status=$?
28649 grep -v '^ *+' conftest.er1 >conftest.err
28650 rm -f conftest.er1
28651 cat conftest.err >&5
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); } && {
28654 test -z "$ac_cxx_werror_flag" ||
28655 test ! -s conftest.err
28656 } && test -s conftest.$ac_objext; then
28658 { echo "$as_me:$LINENO: result: yes" >&5
28659 echo "${ECHO_T}yes" >&6; }
28660 cat >>confdefs.h <<\_ACEOF
28661 #define BX_HAVE_HASH_MAP 1
28662 _ACEOF
28665 else
28666 echo "$as_me: failed program was:" >&5
28667 sed 's/^/| /' conftest.$ac_ext >&5
28669 { echo "$as_me:$LINENO: result: no" >&5
28670 echo "${ECHO_T}no" >&6; }
28673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28674 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
28675 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28676 cat >conftest.$ac_ext <<_ACEOF
28677 /* confdefs.h. */
28678 _ACEOF
28679 cat confdefs.h >>conftest.$ac_ext
28680 cat >>conftest.$ac_ext <<_ACEOF
28681 /* end confdefs.h. */
28682 #include <hash_map.h>
28684 main ()
28688 return 0;
28690 _ACEOF
28691 rm -f conftest.$ac_objext
28692 if { (ac_try="$ac_compile"
28693 case "(($ac_try" in
28694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28695 *) ac_try_echo=$ac_try;;
28696 esac
28697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28698 (eval "$ac_compile") 2>conftest.er1
28699 ac_status=$?
28700 grep -v '^ *+' conftest.er1 >conftest.err
28701 rm -f conftest.er1
28702 cat conftest.err >&5
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); } && {
28705 test -z "$ac_cxx_werror_flag" ||
28706 test ! -s conftest.err
28707 } && test -s conftest.$ac_objext; then
28709 { echo "$as_me:$LINENO: result: yes" >&5
28710 echo "${ECHO_T}yes" >&6; }
28711 cat >>confdefs.h <<\_ACEOF
28712 #define BX_HAVE_HASH_MAP_H 1
28713 _ACEOF
28716 else
28717 echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28720 { echo "$as_me:$LINENO: result: no" >&5
28721 echo "${ECHO_T}no" >&6; }
28724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28725 { echo "$as_me:$LINENO: checking for set" >&5
28726 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28727 cat >conftest.$ac_ext <<_ACEOF
28728 /* confdefs.h. */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h. */
28733 #include <set>
28735 main ()
28739 return 0;
28741 _ACEOF
28742 rm -f conftest.$ac_objext
28743 if { (ac_try="$ac_compile"
28744 case "(($ac_try" in
28745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28746 *) ac_try_echo=$ac_try;;
28747 esac
28748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749 (eval "$ac_compile") 2>conftest.er1
28750 ac_status=$?
28751 grep -v '^ *+' conftest.er1 >conftest.err
28752 rm -f conftest.er1
28753 cat conftest.err >&5
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); } && {
28756 test -z "$ac_cxx_werror_flag" ||
28757 test ! -s conftest.err
28758 } && test -s conftest.$ac_objext; then
28760 { echo "$as_me:$LINENO: result: yes" >&5
28761 echo "${ECHO_T}yes" >&6; }
28762 cat >>confdefs.h <<\_ACEOF
28763 #define BX_HAVE_SET 1
28764 _ACEOF
28767 else
28768 echo "$as_me: failed program was:" >&5
28769 sed 's/^/| /' conftest.$ac_ext >&5
28771 { echo "$as_me:$LINENO: result: no" >&5
28772 echo "${ECHO_T}no" >&6; }
28775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28776 { echo "$as_me:$LINENO: checking for set.h" >&5
28777 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28778 cat >conftest.$ac_ext <<_ACEOF
28779 /* confdefs.h. */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h. */
28784 #include <set.h>
28786 main ()
28790 return 0;
28792 _ACEOF
28793 rm -f conftest.$ac_objext
28794 if { (ac_try="$ac_compile"
28795 case "(($ac_try" in
28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797 *) ac_try_echo=$ac_try;;
28798 esac
28799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800 (eval "$ac_compile") 2>conftest.er1
28801 ac_status=$?
28802 grep -v '^ *+' conftest.er1 >conftest.err
28803 rm -f conftest.er1
28804 cat conftest.err >&5
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); } && {
28807 test -z "$ac_cxx_werror_flag" ||
28808 test ! -s conftest.err
28809 } && test -s conftest.$ac_objext; then
28811 { echo "$as_me:$LINENO: result: yes" >&5
28812 echo "${ECHO_T}yes" >&6; }
28813 cat >>confdefs.h <<\_ACEOF
28814 #define BX_HAVE_SET_H 1
28815 _ACEOF
28818 else
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28822 { echo "$as_me:$LINENO: result: no" >&5
28823 echo "${ECHO_T}no" >&6; }
28826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28827 ac_ext=c
28828 ac_cpp='$CPP $CPPFLAGS'
28829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28834 if test "$with_all_libs" = yes; then
28835 if test "$cross_configure" = 1; then
28836 { 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
28837 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;}
28839 if test "$with_beos" != yes; then
28840 can_compile_beos=1
28841 if test "${ac_cv_header_app_Application_h+set}" = set; then
28842 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28843 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28844 if test "${ac_cv_header_app_Application_h+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28847 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28848 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28849 else
28850 # Is the header compilable?
28851 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
28852 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
28853 cat >conftest.$ac_ext <<_ACEOF
28854 /* confdefs.h. */
28855 _ACEOF
28856 cat confdefs.h >>conftest.$ac_ext
28857 cat >>conftest.$ac_ext <<_ACEOF
28858 /* end confdefs.h. */
28859 $ac_includes_default
28860 #include <app/Application.h>
28861 _ACEOF
28862 rm -f conftest.$ac_objext
28863 if { (ac_try="$ac_compile"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28867 esac
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869 (eval "$ac_compile") 2>conftest.er1
28870 ac_status=$?
28871 grep -v '^ *+' conftest.er1 >conftest.err
28872 rm -f conftest.er1
28873 cat conftest.err >&5
28874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875 (exit $ac_status); } && {
28876 test -z "$ac_c_werror_flag" ||
28877 test ! -s conftest.err
28878 } && test -s conftest.$ac_objext; then
28879 ac_header_compiler=yes
28880 else
28881 echo "$as_me: failed program was:" >&5
28882 sed 's/^/| /' conftest.$ac_ext >&5
28884 ac_header_compiler=no
28887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28889 echo "${ECHO_T}$ac_header_compiler" >&6; }
28891 # Is the header present?
28892 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
28893 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
28894 cat >conftest.$ac_ext <<_ACEOF
28895 /* confdefs.h. */
28896 _ACEOF
28897 cat confdefs.h >>conftest.$ac_ext
28898 cat >>conftest.$ac_ext <<_ACEOF
28899 /* end confdefs.h. */
28900 #include <app/Application.h>
28901 _ACEOF
28902 if { (ac_try="$ac_cpp conftest.$ac_ext"
28903 case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28906 esac
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28909 ac_status=$?
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } >/dev/null && {
28915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28917 }; then
28918 ac_header_preproc=yes
28919 else
28920 echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28923 ac_header_preproc=no
28926 rm -f conftest.err conftest.$ac_ext
28927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928 echo "${ECHO_T}$ac_header_preproc" >&6; }
28930 # So? What about this header?
28931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28932 yes:no: )
28933 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
28934 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
28936 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
28937 ac_header_preproc=yes
28939 no:yes:* )
28940 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
28941 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
28943 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
28945 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
28947 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
28949 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
28951 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
28954 esac
28955 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28956 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28957 if test "${ac_cv_header_app_Application_h+set}" = set; then
28958 echo $ECHO_N "(cached) $ECHO_C" >&6
28959 else
28960 ac_cv_header_app_Application_h=$ac_header_preproc
28962 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28963 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28966 if test $ac_cv_header_app_Application_h = yes; then
28968 else
28969 can_compile_beos=0
28973 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28974 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
28975 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
28976 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28977 echo $ECHO_N "(cached) $ECHO_C" >&6
28979 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
28980 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
28981 else
28982 # Is the header compilable?
28983 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
28984 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
28985 cat >conftest.$ac_ext <<_ACEOF
28986 /* confdefs.h. */
28987 _ACEOF
28988 cat confdefs.h >>conftest.$ac_ext
28989 cat >>conftest.$ac_ext <<_ACEOF
28990 /* end confdefs.h. */
28991 $ac_includes_default
28992 #include <interface/Window.h>
28993 _ACEOF
28994 rm -f conftest.$ac_objext
28995 if { (ac_try="$ac_compile"
28996 case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_compile") 2>conftest.er1
29002 ac_status=$?
29003 grep -v '^ *+' conftest.er1 >conftest.err
29004 rm -f conftest.er1
29005 cat conftest.err >&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } && {
29008 test -z "$ac_c_werror_flag" ||
29009 test ! -s conftest.err
29010 } && test -s conftest.$ac_objext; then
29011 ac_header_compiler=yes
29012 else
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 ac_header_compiler=no
29019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29021 echo "${ECHO_T}$ac_header_compiler" >&6; }
29023 # Is the header present?
29024 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29025 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29026 cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h. */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h. */
29032 #include <interface/Window.h>
29033 _ACEOF
29034 if { (ac_try="$ac_cpp conftest.$ac_ext"
29035 case "(($ac_try" in
29036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037 *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29041 ac_status=$?
29042 grep -v '^ *+' conftest.er1 >conftest.err
29043 rm -f conftest.er1
29044 cat conftest.err >&5
29045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046 (exit $ac_status); } >/dev/null && {
29047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29048 test ! -s conftest.err
29049 }; then
29050 ac_header_preproc=yes
29051 else
29052 echo "$as_me: failed program was:" >&5
29053 sed 's/^/| /' conftest.$ac_ext >&5
29055 ac_header_preproc=no
29058 rm -f conftest.err conftest.$ac_ext
29059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29060 echo "${ECHO_T}$ac_header_preproc" >&6; }
29062 # So? What about this header?
29063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29064 yes:no: )
29065 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29066 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29067 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
29068 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
29069 ac_header_preproc=yes
29071 no:yes:* )
29072 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29073 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29074 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
29075 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
29076 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29077 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
29079 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
29080 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
29081 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
29082 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29083 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29086 esac
29087 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29088 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29089 if test "${ac_cv_header_interface_Window_h+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092 ac_cv_header_interface_Window_h=$ac_header_preproc
29094 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29095 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29098 if test $ac_cv_header_interface_Window_h = yes; then
29100 else
29101 can_compile_beos=0
29105 if test "${ac_cv_header_interface_View_h+set}" = set; then
29106 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29107 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29108 if test "${ac_cv_header_interface_View_h+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29111 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29112 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29113 else
29114 # Is the header compilable?
29115 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29116 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29117 cat >conftest.$ac_ext <<_ACEOF
29118 /* confdefs.h. */
29119 _ACEOF
29120 cat confdefs.h >>conftest.$ac_ext
29121 cat >>conftest.$ac_ext <<_ACEOF
29122 /* end confdefs.h. */
29123 $ac_includes_default
29124 #include <interface/View.h>
29125 _ACEOF
29126 rm -f conftest.$ac_objext
29127 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29134 ac_status=$?
29135 grep -v '^ *+' conftest.er1 >conftest.err
29136 rm -f conftest.er1
29137 cat conftest.err >&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29139 (exit $ac_status); } && {
29140 test -z "$ac_c_werror_flag" ||
29141 test ! -s conftest.err
29142 } && test -s conftest.$ac_objext; then
29143 ac_header_compiler=yes
29144 else
29145 echo "$as_me: failed program was:" >&5
29146 sed 's/^/| /' conftest.$ac_ext >&5
29148 ac_header_compiler=no
29151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29153 echo "${ECHO_T}$ac_header_compiler" >&6; }
29155 # Is the header present?
29156 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29157 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29158 cat >conftest.$ac_ext <<_ACEOF
29159 /* confdefs.h. */
29160 _ACEOF
29161 cat confdefs.h >>conftest.$ac_ext
29162 cat >>conftest.$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29164 #include <interface/View.h>
29165 _ACEOF
29166 if { (ac_try="$ac_cpp conftest.$ac_ext"
29167 case "(($ac_try" in
29168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29169 *) ac_try_echo=$ac_try;;
29170 esac
29171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29173 ac_status=$?
29174 grep -v '^ *+' conftest.er1 >conftest.err
29175 rm -f conftest.er1
29176 cat conftest.err >&5
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); } >/dev/null && {
29179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29180 test ! -s conftest.err
29181 }; then
29182 ac_header_preproc=yes
29183 else
29184 echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.$ac_ext >&5
29187 ac_header_preproc=no
29190 rm -f conftest.err conftest.$ac_ext
29191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29192 echo "${ECHO_T}$ac_header_preproc" >&6; }
29194 # So? What about this header?
29195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29196 yes:no: )
29197 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29198 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29199 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
29200 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
29201 ac_header_preproc=yes
29203 no:yes:* )
29204 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29205 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29206 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
29207 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
29208 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29209 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
29211 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
29213 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29215 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29218 esac
29219 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29220 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29221 if test "${ac_cv_header_interface_View_h+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 else
29224 ac_cv_header_interface_View_h=$ac_header_preproc
29226 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29227 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29230 if test $ac_cv_header_interface_View_h = yes; then
29232 else
29233 can_compile_beos=0
29237 if test $can_compile_beos = 1; then
29238 with_beos=yes
29242 if test "$with_amigaos" != yes; then
29243 can_compile_amigaos=1
29244 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29245 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29246 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29247 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29250 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29251 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29252 else
29253 # Is the header compilable?
29254 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29255 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29256 cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h. */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h. */
29262 $ac_includes_default
29263 #include <proto/intuition.h>
29264 _ACEOF
29265 rm -f conftest.$ac_objext
29266 if { (ac_try="$ac_compile"
29267 case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29270 esac
29271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_compile") 2>conftest.er1
29273 ac_status=$?
29274 grep -v '^ *+' conftest.er1 >conftest.err
29275 rm -f conftest.er1
29276 cat conftest.err >&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } && {
29279 test -z "$ac_c_werror_flag" ||
29280 test ! -s conftest.err
29281 } && test -s conftest.$ac_objext; then
29282 ac_header_compiler=yes
29283 else
29284 echo "$as_me: failed program was:" >&5
29285 sed 's/^/| /' conftest.$ac_ext >&5
29287 ac_header_compiler=no
29290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29292 echo "${ECHO_T}$ac_header_compiler" >&6; }
29294 # Is the header present?
29295 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29296 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29297 cat >conftest.$ac_ext <<_ACEOF
29298 /* confdefs.h. */
29299 _ACEOF
29300 cat confdefs.h >>conftest.$ac_ext
29301 cat >>conftest.$ac_ext <<_ACEOF
29302 /* end confdefs.h. */
29303 #include <proto/intuition.h>
29304 _ACEOF
29305 if { (ac_try="$ac_cpp conftest.$ac_ext"
29306 case "(($ac_try" in
29307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29308 *) ac_try_echo=$ac_try;;
29309 esac
29310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29312 ac_status=$?
29313 grep -v '^ *+' conftest.er1 >conftest.err
29314 rm -f conftest.er1
29315 cat conftest.err >&5
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); } >/dev/null && {
29318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29319 test ! -s conftest.err
29320 }; then
29321 ac_header_preproc=yes
29322 else
29323 echo "$as_me: failed program was:" >&5
29324 sed 's/^/| /' conftest.$ac_ext >&5
29326 ac_header_preproc=no
29329 rm -f conftest.err conftest.$ac_ext
29330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331 echo "${ECHO_T}$ac_header_preproc" >&6; }
29333 # So? What about this header?
29334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 yes:no: )
29336 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29337 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
29339 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
29340 ac_header_preproc=yes
29342 no:yes:* )
29343 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29344 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
29346 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29348 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
29350 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
29352 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29354 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29357 esac
29358 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29359 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29360 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29361 echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363 ac_cv_header_proto_intuition_h=$ac_header_preproc
29365 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29366 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29369 if test $ac_cv_header_proto_intuition_h = yes; then
29371 else
29372 can_compile_amigaos=0
29376 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29377 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29378 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29379 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29380 echo $ECHO_N "(cached) $ECHO_C" >&6
29382 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29383 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29384 else
29385 # Is the header compilable?
29386 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29387 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29388 cat >conftest.$ac_ext <<_ACEOF
29389 /* confdefs.h. */
29390 _ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h. */
29394 $ac_includes_default
29395 #include <intuition/intuitionbase.h>
29396 _ACEOF
29397 rm -f conftest.$ac_objext
29398 if { (ac_try="$ac_compile"
29399 case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29402 esac
29403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_compile") 2>conftest.er1
29405 ac_status=$?
29406 grep -v '^ *+' conftest.er1 >conftest.err
29407 rm -f conftest.er1
29408 cat conftest.err >&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); } && {
29411 test -z "$ac_c_werror_flag" ||
29412 test ! -s conftest.err
29413 } && test -s conftest.$ac_objext; then
29414 ac_header_compiler=yes
29415 else
29416 echo "$as_me: failed program was:" >&5
29417 sed 's/^/| /' conftest.$ac_ext >&5
29419 ac_header_compiler=no
29422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29424 echo "${ECHO_T}$ac_header_compiler" >&6; }
29426 # Is the header present?
29427 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29428 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29429 cat >conftest.$ac_ext <<_ACEOF
29430 /* confdefs.h. */
29431 _ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h. */
29435 #include <intuition/intuitionbase.h>
29436 _ACEOF
29437 if { (ac_try="$ac_cpp conftest.$ac_ext"
29438 case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29441 esac
29442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29444 ac_status=$?
29445 grep -v '^ *+' conftest.er1 >conftest.err
29446 rm -f conftest.er1
29447 cat conftest.err >&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); } >/dev/null && {
29450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29451 test ! -s conftest.err
29452 }; then
29453 ac_header_preproc=yes
29454 else
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29458 ac_header_preproc=no
29461 rm -f conftest.err conftest.$ac_ext
29462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29463 echo "${ECHO_T}$ac_header_preproc" >&6; }
29465 # So? What about this header?
29466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29467 yes:no: )
29468 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29469 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29470 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
29471 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
29472 ac_header_preproc=yes
29474 no:yes:* )
29475 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29476 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29477 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
29478 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29480 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
29482 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
29484 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29486 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29489 esac
29490 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29491 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29492 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29493 echo $ECHO_N "(cached) $ECHO_C" >&6
29494 else
29495 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29497 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29498 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29501 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29503 else
29504 can_compile_amigaos=0
29508 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29509 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29510 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29511 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29512 echo $ECHO_N "(cached) $ECHO_C" >&6
29514 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29515 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29516 else
29517 # Is the header compilable?
29518 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29519 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29520 cat >conftest.$ac_ext <<_ACEOF
29521 /* confdefs.h. */
29522 _ACEOF
29523 cat confdefs.h >>conftest.$ac_ext
29524 cat >>conftest.$ac_ext <<_ACEOF
29525 /* end confdefs.h. */
29526 $ac_includes_default
29527 #include <cybergraphx/cybergraphics.h>
29528 _ACEOF
29529 rm -f conftest.$ac_objext
29530 if { (ac_try="$ac_compile"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_compile") 2>conftest.er1
29537 ac_status=$?
29538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } && {
29543 test -z "$ac_c_werror_flag" ||
29544 test ! -s conftest.err
29545 } && test -s conftest.$ac_objext; then
29546 ac_header_compiler=yes
29547 else
29548 echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29551 ac_header_compiler=no
29554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29556 echo "${ECHO_T}$ac_header_compiler" >&6; }
29558 # Is the header present?
29559 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29560 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29561 cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h. */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h. */
29567 #include <cybergraphx/cybergraphics.h>
29568 _ACEOF
29569 if { (ac_try="$ac_cpp conftest.$ac_ext"
29570 case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29573 esac
29574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29576 ac_status=$?
29577 grep -v '^ *+' conftest.er1 >conftest.err
29578 rm -f conftest.er1
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } >/dev/null && {
29582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29583 test ! -s conftest.err
29584 }; then
29585 ac_header_preproc=yes
29586 else
29587 echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29590 ac_header_preproc=no
29593 rm -f conftest.err conftest.$ac_ext
29594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29595 echo "${ECHO_T}$ac_header_preproc" >&6; }
29597 # So? What about this header?
29598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29599 yes:no: )
29600 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29601 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29602 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
29603 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
29604 ac_header_preproc=yes
29606 no:yes:* )
29607 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29608 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29609 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
29610 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
29611 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29612 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
29614 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
29616 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29618 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29621 esac
29622 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29623 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29624 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626 else
29627 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29629 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29630 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29633 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29635 else
29636 can_compile_amigaos=0
29640 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29641 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29642 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29643 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29644 echo $ECHO_N "(cached) $ECHO_C" >&6
29646 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29647 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29648 else
29649 # Is the header compilable?
29650 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29651 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29652 cat >conftest.$ac_ext <<_ACEOF
29653 /* confdefs.h. */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h. */
29658 $ac_includes_default
29659 #include <devices/trackdisk.h>
29660 _ACEOF
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_compile") 2>conftest.er1
29669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest.$ac_objext; then
29678 ac_header_compiler=yes
29679 else
29680 echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29683 ac_header_compiler=no
29686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688 echo "${ECHO_T}$ac_header_compiler" >&6; }
29690 # Is the header present?
29691 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29692 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29693 cat >conftest.$ac_ext <<_ACEOF
29694 /* confdefs.h. */
29695 _ACEOF
29696 cat confdefs.h >>conftest.$ac_ext
29697 cat >>conftest.$ac_ext <<_ACEOF
29698 /* end confdefs.h. */
29699 #include <devices/trackdisk.h>
29700 _ACEOF
29701 if { (ac_try="$ac_cpp conftest.$ac_ext"
29702 case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29705 esac
29706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29708 ac_status=$?
29709 grep -v '^ *+' conftest.er1 >conftest.err
29710 rm -f conftest.er1
29711 cat conftest.err >&5
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); } >/dev/null && {
29714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29715 test ! -s conftest.err
29716 }; then
29717 ac_header_preproc=yes
29718 else
29719 echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29722 ac_header_preproc=no
29725 rm -f conftest.err conftest.$ac_ext
29726 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29727 echo "${ECHO_T}$ac_header_preproc" >&6; }
29729 # So? What about this header?
29730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29731 yes:no: )
29732 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29733 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29734 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
29735 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
29736 ac_header_preproc=yes
29738 no:yes:* )
29739 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29740 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
29742 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29744 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
29746 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
29748 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29750 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29753 esac
29754 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29755 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29756 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29757 echo $ECHO_N "(cached) $ECHO_C" >&6
29758 else
29759 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29761 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29762 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29765 if test $ac_cv_header_devices_trackdisk_h = yes; then
29767 else
29768 can_compile_amigaos=0
29772 if test $can_compile_amigaos = 1; then
29773 with_amigaos=yes
29777 if test "$with_macos" != yes; then
29778 can_compile_macos=1
29779 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29780 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29781 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29782 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29783 echo $ECHO_N "(cached) $ECHO_C" >&6
29785 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29786 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29787 else
29788 # Is the header compilable?
29789 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29790 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29791 cat >conftest.$ac_ext <<_ACEOF
29792 /* confdefs.h. */
29793 _ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h. */
29797 $ac_includes_default
29798 #include <Quickdraw.h>
29799 _ACEOF
29800 rm -f conftest.$ac_objext
29801 if { (ac_try="$ac_compile"
29802 case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29805 esac
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_compile") 2>conftest.er1
29808 ac_status=$?
29809 grep -v '^ *+' conftest.er1 >conftest.err
29810 rm -f conftest.er1
29811 cat conftest.err >&5
29812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813 (exit $ac_status); } && {
29814 test -z "$ac_c_werror_flag" ||
29815 test ! -s conftest.err
29816 } && test -s conftest.$ac_objext; then
29817 ac_header_compiler=yes
29818 else
29819 echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29822 ac_header_compiler=no
29825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29827 echo "${ECHO_T}$ac_header_compiler" >&6; }
29829 # Is the header present?
29830 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
29831 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
29832 cat >conftest.$ac_ext <<_ACEOF
29833 /* confdefs.h. */
29834 _ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h. */
29838 #include <Quickdraw.h>
29839 _ACEOF
29840 if { (ac_try="$ac_cpp conftest.$ac_ext"
29841 case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29847 ac_status=$?
29848 grep -v '^ *+' conftest.er1 >conftest.err
29849 rm -f conftest.er1
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); } >/dev/null && {
29853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29854 test ! -s conftest.err
29855 }; then
29856 ac_header_preproc=yes
29857 else
29858 echo "$as_me: failed program was:" >&5
29859 sed 's/^/| /' conftest.$ac_ext >&5
29861 ac_header_preproc=no
29864 rm -f conftest.err conftest.$ac_ext
29865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29866 echo "${ECHO_T}$ac_header_preproc" >&6; }
29868 # So? What about this header?
29869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29870 yes:no: )
29871 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
29872 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29873 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
29874 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
29875 ac_header_preproc=yes
29877 no:yes:* )
29878 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
29879 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
29880 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
29881 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
29883 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
29885 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
29887 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
29889 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
29892 esac
29893 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29894 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29895 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29896 echo $ECHO_N "(cached) $ECHO_C" >&6
29897 else
29898 ac_cv_header_Quickdraw_h=$ac_header_preproc
29900 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29901 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29904 if test $ac_cv_header_Quickdraw_h = yes; then
29906 else
29907 can_compile_macos=0
29911 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29912 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
29913 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
29914 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29917 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
29918 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
29919 else
29920 # Is the header compilable?
29921 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
29922 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
29923 cat >conftest.$ac_ext <<_ACEOF
29924 /* confdefs.h. */
29925 _ACEOF
29926 cat confdefs.h >>conftest.$ac_ext
29927 cat >>conftest.$ac_ext <<_ACEOF
29928 /* end confdefs.h. */
29929 $ac_includes_default
29930 #include <Dialogs.h>
29931 _ACEOF
29932 rm -f conftest.$ac_objext
29933 if { (ac_try="$ac_compile"
29934 case "(($ac_try" in
29935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29936 *) ac_try_echo=$ac_try;;
29937 esac
29938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29939 (eval "$ac_compile") 2>conftest.er1
29940 ac_status=$?
29941 grep -v '^ *+' conftest.er1 >conftest.err
29942 rm -f conftest.er1
29943 cat conftest.err >&5
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); } && {
29946 test -z "$ac_c_werror_flag" ||
29947 test ! -s conftest.err
29948 } && test -s conftest.$ac_objext; then
29949 ac_header_compiler=yes
29950 else
29951 echo "$as_me: failed program was:" >&5
29952 sed 's/^/| /' conftest.$ac_ext >&5
29954 ac_header_compiler=no
29957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29959 echo "${ECHO_T}$ac_header_compiler" >&6; }
29961 # Is the header present?
29962 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
29963 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
29964 cat >conftest.$ac_ext <<_ACEOF
29965 /* confdefs.h. */
29966 _ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h. */
29970 #include <Dialogs.h>
29971 _ACEOF
29972 if { (ac_try="$ac_cpp conftest.$ac_ext"
29973 case "(($ac_try" in
29974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29975 *) ac_try_echo=$ac_try;;
29976 esac
29977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29979 ac_status=$?
29980 grep -v '^ *+' conftest.er1 >conftest.err
29981 rm -f conftest.er1
29982 cat conftest.err >&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); } >/dev/null && {
29985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29986 test ! -s conftest.err
29987 }; then
29988 ac_header_preproc=yes
29989 else
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ac_header_preproc=no
29996 rm -f conftest.err conftest.$ac_ext
29997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29998 echo "${ECHO_T}$ac_header_preproc" >&6; }
30000 # So? What about this header?
30001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30002 yes:no: )
30003 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30004 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30005 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
30006 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
30007 ac_header_preproc=yes
30009 no:yes:* )
30010 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30011 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30012 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
30013 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
30014 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30015 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
30017 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
30019 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30021 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30024 esac
30025 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30026 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30027 if test "${ac_cv_header_Dialogs_h+set}" = set; then
30028 echo $ECHO_N "(cached) $ECHO_C" >&6
30029 else
30030 ac_cv_header_Dialogs_h=$ac_header_preproc
30032 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30033 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30036 if test $ac_cv_header_Dialogs_h = yes; then
30038 else
30039 can_compile_macos=0
30043 if test $can_compile_macos = 1; then
30044 with_macos=yes
30048 if test "$with_carbon" != yes; then
30049 can_compile_carbon=1
30050 if test "${ac_cv_header_Carbon_h+set}" = set; then
30051 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30052 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30053 if test "${ac_cv_header_Carbon_h+set}" = set; then
30054 echo $ECHO_N "(cached) $ECHO_C" >&6
30056 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30057 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30058 else
30059 # Is the header compilable?
30060 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30061 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30062 cat >conftest.$ac_ext <<_ACEOF
30063 /* confdefs.h. */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h. */
30068 $ac_includes_default
30069 #include <Carbon.h>
30070 _ACEOF
30071 rm -f conftest.$ac_objext
30072 if { (ac_try="$ac_compile"
30073 case "(($ac_try" in
30074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30075 *) ac_try_echo=$ac_try;;
30076 esac
30077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30078 (eval "$ac_compile") 2>conftest.er1
30079 ac_status=$?
30080 grep -v '^ *+' conftest.er1 >conftest.err
30081 rm -f conftest.er1
30082 cat conftest.err >&5
30083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084 (exit $ac_status); } && {
30085 test -z "$ac_c_werror_flag" ||
30086 test ! -s conftest.err
30087 } && test -s conftest.$ac_objext; then
30088 ac_header_compiler=yes
30089 else
30090 echo "$as_me: failed program was:" >&5
30091 sed 's/^/| /' conftest.$ac_ext >&5
30093 ac_header_compiler=no
30096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30098 echo "${ECHO_T}$ac_header_compiler" >&6; }
30100 # Is the header present?
30101 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30102 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30103 cat >conftest.$ac_ext <<_ACEOF
30104 /* confdefs.h. */
30105 _ACEOF
30106 cat confdefs.h >>conftest.$ac_ext
30107 cat >>conftest.$ac_ext <<_ACEOF
30108 /* end confdefs.h. */
30109 #include <Carbon.h>
30110 _ACEOF
30111 if { (ac_try="$ac_cpp conftest.$ac_ext"
30112 case "(($ac_try" in
30113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30114 *) ac_try_echo=$ac_try;;
30115 esac
30116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30118 ac_status=$?
30119 grep -v '^ *+' conftest.er1 >conftest.err
30120 rm -f conftest.er1
30121 cat conftest.err >&5
30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30123 (exit $ac_status); } >/dev/null && {
30124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30125 test ! -s conftest.err
30126 }; then
30127 ac_header_preproc=yes
30128 else
30129 echo "$as_me: failed program was:" >&5
30130 sed 's/^/| /' conftest.$ac_ext >&5
30132 ac_header_preproc=no
30135 rm -f conftest.err conftest.$ac_ext
30136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30137 echo "${ECHO_T}$ac_header_preproc" >&6; }
30139 # So? What about this header?
30140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30141 yes:no: )
30142 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30143 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30144 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
30145 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
30146 ac_header_preproc=yes
30148 no:yes:* )
30149 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30150 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30151 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
30152 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
30153 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30154 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
30156 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
30158 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30160 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30163 esac
30164 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30165 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30166 if test "${ac_cv_header_Carbon_h+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 else
30169 ac_cv_header_Carbon_h=$ac_header_preproc
30171 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30172 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30175 if test $ac_cv_header_Carbon_h = yes; then
30177 else
30178 can_compile_carbon=0
30182 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30183 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30184 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30185 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30188 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30189 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30190 else
30191 # Is the header compilable?
30192 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30193 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30194 cat >conftest.$ac_ext <<_ACEOF
30195 /* confdefs.h. */
30196 _ACEOF
30197 cat confdefs.h >>conftest.$ac_ext
30198 cat >>conftest.$ac_ext <<_ACEOF
30199 /* end confdefs.h. */
30200 $ac_includes_default
30201 #include <ApplicationServices/ApplicationServices.h>
30202 _ACEOF
30203 rm -f conftest.$ac_objext
30204 if { (ac_try="$ac_compile"
30205 case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30208 esac
30209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
30211 ac_status=$?
30212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } && {
30217 test -z "$ac_c_werror_flag" ||
30218 test ! -s conftest.err
30219 } && test -s conftest.$ac_objext; then
30220 ac_header_compiler=yes
30221 else
30222 echo "$as_me: failed program was:" >&5
30223 sed 's/^/| /' conftest.$ac_ext >&5
30225 ac_header_compiler=no
30228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30230 echo "${ECHO_T}$ac_header_compiler" >&6; }
30232 # Is the header present?
30233 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30234 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30235 cat >conftest.$ac_ext <<_ACEOF
30236 /* confdefs.h. */
30237 _ACEOF
30238 cat confdefs.h >>conftest.$ac_ext
30239 cat >>conftest.$ac_ext <<_ACEOF
30240 /* end confdefs.h. */
30241 #include <ApplicationServices/ApplicationServices.h>
30242 _ACEOF
30243 if { (ac_try="$ac_cpp conftest.$ac_ext"
30244 case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30247 esac
30248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30250 ac_status=$?
30251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
30254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); } >/dev/null && {
30256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30257 test ! -s conftest.err
30258 }; then
30259 ac_header_preproc=yes
30260 else
30261 echo "$as_me: failed program was:" >&5
30262 sed 's/^/| /' conftest.$ac_ext >&5
30264 ac_header_preproc=no
30267 rm -f conftest.err conftest.$ac_ext
30268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30269 echo "${ECHO_T}$ac_header_preproc" >&6; }
30271 # So? What about this header?
30272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30273 yes:no: )
30274 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30275 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30276 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
30277 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
30278 ac_header_preproc=yes
30280 no:yes:* )
30281 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30282 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30283 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
30284 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
30285 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30286 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
30288 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
30290 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30292 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30295 esac
30296 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30297 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30298 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300 else
30301 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30303 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30304 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30307 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30309 else
30310 can_compile_carbon=0
30314 if test $can_compile_carbon = 1; then
30315 with_carbon=yes
30319 if test "$with_win32" != yes; then
30320 can_compile_win32=1
30321 if test "${ac_cv_header_windows_h+set}" = set; then
30322 { echo "$as_me:$LINENO: checking for windows.h" >&5
30323 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30324 if test "${ac_cv_header_windows_h+set}" = set; then
30325 echo $ECHO_N "(cached) $ECHO_C" >&6
30327 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30328 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30329 else
30330 # Is the header compilable?
30331 { echo "$as_me:$LINENO: checking windows.h usability" >&5
30332 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30333 cat >conftest.$ac_ext <<_ACEOF
30334 /* confdefs.h. */
30335 _ACEOF
30336 cat confdefs.h >>conftest.$ac_ext
30337 cat >>conftest.$ac_ext <<_ACEOF
30338 /* end confdefs.h. */
30339 $ac_includes_default
30340 #include <windows.h>
30341 _ACEOF
30342 rm -f conftest.$ac_objext
30343 if { (ac_try="$ac_compile"
30344 case "(($ac_try" in
30345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30346 *) ac_try_echo=$ac_try;;
30347 esac
30348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30349 (eval "$ac_compile") 2>conftest.er1
30350 ac_status=$?
30351 grep -v '^ *+' conftest.er1 >conftest.err
30352 rm -f conftest.er1
30353 cat conftest.err >&5
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); } && {
30356 test -z "$ac_c_werror_flag" ||
30357 test ! -s conftest.err
30358 } && test -s conftest.$ac_objext; then
30359 ac_header_compiler=yes
30360 else
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30364 ac_header_compiler=no
30367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30369 echo "${ECHO_T}$ac_header_compiler" >&6; }
30371 # Is the header present?
30372 { echo "$as_me:$LINENO: checking windows.h presence" >&5
30373 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30374 cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h. */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h. */
30380 #include <windows.h>
30381 _ACEOF
30382 if { (ac_try="$ac_cpp conftest.$ac_ext"
30383 case "(($ac_try" in
30384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385 *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30389 ac_status=$?
30390 grep -v '^ *+' conftest.er1 >conftest.err
30391 rm -f conftest.er1
30392 cat conftest.err >&5
30393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394 (exit $ac_status); } >/dev/null && {
30395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30396 test ! -s conftest.err
30397 }; then
30398 ac_header_preproc=yes
30399 else
30400 echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403 ac_header_preproc=no
30406 rm -f conftest.err conftest.$ac_ext
30407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30408 echo "${ECHO_T}$ac_header_preproc" >&6; }
30410 # So? What about this header?
30411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30412 yes:no: )
30413 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30414 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30415 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
30416 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
30417 ac_header_preproc=yes
30419 no:yes:* )
30420 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30421 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30422 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
30423 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30425 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
30427 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
30429 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30431 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30434 esac
30435 { echo "$as_me:$LINENO: checking for windows.h" >&5
30436 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30437 if test "${ac_cv_header_windows_h+set}" = set; then
30438 echo $ECHO_N "(cached) $ECHO_C" >&6
30439 else
30440 ac_cv_header_windows_h=$ac_header_preproc
30442 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30443 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30446 if test $ac_cv_header_windows_h = yes; then
30448 else
30449 can_compile_win32=0
30453 if test "${ac_cv_header_commctrl_h+set}" = set; then
30454 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30455 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30456 if test "${ac_cv_header_commctrl_h+set}" = set; then
30457 echo $ECHO_N "(cached) $ECHO_C" >&6
30459 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30460 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30461 else
30462 # Is the header compilable?
30463 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30464 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30465 cat >conftest.$ac_ext <<_ACEOF
30466 /* confdefs.h. */
30467 _ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h. */
30471 $ac_includes_default
30472 #include <commctrl.h>
30473 _ACEOF
30474 rm -f conftest.$ac_objext
30475 if { (ac_try="$ac_compile"
30476 case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30479 esac
30480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_compile") 2>conftest.er1
30482 ac_status=$?
30483 grep -v '^ *+' conftest.er1 >conftest.err
30484 rm -f conftest.er1
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487 (exit $ac_status); } && {
30488 test -z "$ac_c_werror_flag" ||
30489 test ! -s conftest.err
30490 } && test -s conftest.$ac_objext; then
30491 ac_header_compiler=yes
30492 else
30493 echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30496 ac_header_compiler=no
30499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30501 echo "${ECHO_T}$ac_header_compiler" >&6; }
30503 # Is the header present?
30504 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30505 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30506 cat >conftest.$ac_ext <<_ACEOF
30507 /* confdefs.h. */
30508 _ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30512 #include <commctrl.h>
30513 _ACEOF
30514 if { (ac_try="$ac_cpp conftest.$ac_ext"
30515 case "(($ac_try" in
30516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30517 *) ac_try_echo=$ac_try;;
30518 esac
30519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30521 ac_status=$?
30522 grep -v '^ *+' conftest.er1 >conftest.err
30523 rm -f conftest.er1
30524 cat conftest.err >&5
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); } >/dev/null && {
30527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30528 test ! -s conftest.err
30529 }; then
30530 ac_header_preproc=yes
30531 else
30532 echo "$as_me: failed program was:" >&5
30533 sed 's/^/| /' conftest.$ac_ext >&5
30535 ac_header_preproc=no
30538 rm -f conftest.err conftest.$ac_ext
30539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30540 echo "${ECHO_T}$ac_header_preproc" >&6; }
30542 # So? What about this header?
30543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30544 yes:no: )
30545 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30546 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30547 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
30548 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
30549 ac_header_preproc=yes
30551 no:yes:* )
30552 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30553 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30554 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
30555 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
30556 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30557 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
30559 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
30561 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30563 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30566 esac
30567 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30568 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30569 if test "${ac_cv_header_commctrl_h+set}" = set; then
30570 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 else
30572 ac_cv_header_commctrl_h=$ac_header_preproc
30574 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30575 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30578 if test $ac_cv_header_commctrl_h = yes; then
30580 else
30581 can_compile_win32=0
30585 if test $can_compile_win32 = 1; then
30586 with_win32=yes
30590 if test "$with_sdl" != yes; then
30591 can_compile_sdl=1
30592 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30593 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30594 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30595 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30599 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30600 else
30601 # Is the header compilable?
30602 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30603 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30604 cat >conftest.$ac_ext <<_ACEOF
30605 /* confdefs.h. */
30606 _ACEOF
30607 cat confdefs.h >>conftest.$ac_ext
30608 cat >>conftest.$ac_ext <<_ACEOF
30609 /* end confdefs.h. */
30610 $ac_includes_default
30611 #include <SDL/SDL.h>
30612 _ACEOF
30613 rm -f conftest.$ac_objext
30614 if { (ac_try="$ac_compile"
30615 case "(($ac_try" in
30616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30617 *) ac_try_echo=$ac_try;;
30618 esac
30619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30620 (eval "$ac_compile") 2>conftest.er1
30621 ac_status=$?
30622 grep -v '^ *+' conftest.er1 >conftest.err
30623 rm -f conftest.er1
30624 cat conftest.err >&5
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } && {
30627 test -z "$ac_c_werror_flag" ||
30628 test ! -s conftest.err
30629 } && test -s conftest.$ac_objext; then
30630 ac_header_compiler=yes
30631 else
30632 echo "$as_me: failed program was:" >&5
30633 sed 's/^/| /' conftest.$ac_ext >&5
30635 ac_header_compiler=no
30638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30640 echo "${ECHO_T}$ac_header_compiler" >&6; }
30642 # Is the header present?
30643 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30644 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
30645 cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h. */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h. */
30651 #include <SDL/SDL.h>
30652 _ACEOF
30653 if { (ac_try="$ac_cpp conftest.$ac_ext"
30654 case "(($ac_try" in
30655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30656 *) ac_try_echo=$ac_try;;
30657 esac
30658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30660 ac_status=$?
30661 grep -v '^ *+' conftest.er1 >conftest.err
30662 rm -f conftest.er1
30663 cat conftest.err >&5
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); } >/dev/null && {
30666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30667 test ! -s conftest.err
30668 }; then
30669 ac_header_preproc=yes
30670 else
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_header_preproc=no
30677 rm -f conftest.err conftest.$ac_ext
30678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30679 echo "${ECHO_T}$ac_header_preproc" >&6; }
30681 # So? What about this header?
30682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30683 yes:no: )
30684 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30685 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
30687 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
30688 ac_header_preproc=yes
30690 no:yes:* )
30691 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30692 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30693 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
30694 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
30695 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30696 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
30698 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
30700 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30702 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30705 esac
30706 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30707 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30708 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30709 echo $ECHO_N "(cached) $ECHO_C" >&6
30710 else
30711 ac_cv_header_SDL_SDL_h=$ac_header_preproc
30713 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30714 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30717 if test $ac_cv_header_SDL_SDL_h = yes; then
30719 else
30720 can_compile_sdl=0
30724 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30725 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30726 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30727 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30731 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30732 else
30733 # Is the header compilable?
30734 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30735 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30736 cat >conftest.$ac_ext <<_ACEOF
30737 /* confdefs.h. */
30738 _ACEOF
30739 cat confdefs.h >>conftest.$ac_ext
30740 cat >>conftest.$ac_ext <<_ACEOF
30741 /* end confdefs.h. */
30742 $ac_includes_default
30743 #include <SDL/SDL_main.h>
30744 _ACEOF
30745 rm -f conftest.$ac_objext
30746 if { (ac_try="$ac_compile"
30747 case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30750 esac
30751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_compile") 2>conftest.er1
30753 ac_status=$?
30754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } && {
30759 test -z "$ac_c_werror_flag" ||
30760 test ! -s conftest.err
30761 } && test -s conftest.$ac_objext; then
30762 ac_header_compiler=yes
30763 else
30764 echo "$as_me: failed program was:" >&5
30765 sed 's/^/| /' conftest.$ac_ext >&5
30767 ac_header_compiler=no
30770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30772 echo "${ECHO_T}$ac_header_compiler" >&6; }
30774 # Is the header present?
30775 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30776 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30777 cat >conftest.$ac_ext <<_ACEOF
30778 /* confdefs.h. */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h. */
30783 #include <SDL/SDL_main.h>
30784 _ACEOF
30785 if { (ac_try="$ac_cpp conftest.$ac_ext"
30786 case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30789 esac
30790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30792 ac_status=$?
30793 grep -v '^ *+' conftest.er1 >conftest.err
30794 rm -f conftest.er1
30795 cat conftest.err >&5
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); } >/dev/null && {
30798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30799 test ! -s conftest.err
30800 }; then
30801 ac_header_preproc=yes
30802 else
30803 echo "$as_me: failed program was:" >&5
30804 sed 's/^/| /' conftest.$ac_ext >&5
30806 ac_header_preproc=no
30809 rm -f conftest.err conftest.$ac_ext
30810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30811 echo "${ECHO_T}$ac_header_preproc" >&6; }
30813 # So? What about this header?
30814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30815 yes:no: )
30816 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
30817 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30818 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
30819 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
30820 ac_header_preproc=yes
30822 no:yes:* )
30823 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
30824 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
30826 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
30828 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
30830 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
30832 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
30834 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
30837 esac
30838 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30839 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30840 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30841 echo $ECHO_N "(cached) $ECHO_C" >&6
30842 else
30843 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
30845 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30846 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30849 if test $ac_cv_header_SDL_SDL_main_h = yes; then
30851 else
30852 can_compile_sdl=0
30856 if test $can_compile_sdl = 1; then
30857 with_sdl=yes
30861 if test "$with_svga" != yes; then
30862 can_compile_svga=1
30863 if test "${ac_cv_header_vga_h+set}" = set; then
30864 { echo "$as_me:$LINENO: checking for vga.h" >&5
30865 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30866 if test "${ac_cv_header_vga_h+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30869 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30870 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30871 else
30872 # Is the header compilable?
30873 { echo "$as_me:$LINENO: checking vga.h usability" >&5
30874 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
30875 cat >conftest.$ac_ext <<_ACEOF
30876 /* confdefs.h. */
30877 _ACEOF
30878 cat confdefs.h >>conftest.$ac_ext
30879 cat >>conftest.$ac_ext <<_ACEOF
30880 /* end confdefs.h. */
30881 $ac_includes_default
30882 #include <vga.h>
30883 _ACEOF
30884 rm -f conftest.$ac_objext
30885 if { (ac_try="$ac_compile"
30886 case "(($ac_try" in
30887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30889 esac
30890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30891 (eval "$ac_compile") 2>conftest.er1
30892 ac_status=$?
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } && {
30898 test -z "$ac_c_werror_flag" ||
30899 test ! -s conftest.err
30900 } && test -s conftest.$ac_objext; then
30901 ac_header_compiler=yes
30902 else
30903 echo "$as_me: failed program was:" >&5
30904 sed 's/^/| /' conftest.$ac_ext >&5
30906 ac_header_compiler=no
30909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30911 echo "${ECHO_T}$ac_header_compiler" >&6; }
30913 # Is the header present?
30914 { echo "$as_me:$LINENO: checking vga.h presence" >&5
30915 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
30916 cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h. */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30922 #include <vga.h>
30923 _ACEOF
30924 if { (ac_try="$ac_cpp conftest.$ac_ext"
30925 case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30928 esac
30929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30931 ac_status=$?
30932 grep -v '^ *+' conftest.er1 >conftest.err
30933 rm -f conftest.er1
30934 cat conftest.err >&5
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); } >/dev/null && {
30937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30938 test ! -s conftest.err
30939 }; then
30940 ac_header_preproc=yes
30941 else
30942 echo "$as_me: failed program was:" >&5
30943 sed 's/^/| /' conftest.$ac_ext >&5
30945 ac_header_preproc=no
30948 rm -f conftest.err conftest.$ac_ext
30949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30950 echo "${ECHO_T}$ac_header_preproc" >&6; }
30952 # So? What about this header?
30953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30954 yes:no: )
30955 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
30956 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30957 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
30958 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
30959 ac_header_preproc=yes
30961 no:yes:* )
30962 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
30963 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
30964 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
30965 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
30966 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
30967 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
30969 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
30971 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
30973 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
30976 esac
30977 { echo "$as_me:$LINENO: checking for vga.h" >&5
30978 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30979 if test "${ac_cv_header_vga_h+set}" = set; then
30980 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 else
30982 ac_cv_header_vga_h=$ac_header_preproc
30984 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30985 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30988 if test $ac_cv_header_vga_h = yes; then
30990 else
30991 can_compile_svga=0
30995 if test "${ac_cv_header_vgagl_h+set}" = set; then
30996 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
30997 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
30998 if test "${ac_cv_header_vgagl_h+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31001 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31002 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31003 else
31004 # Is the header compilable?
31005 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31006 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31007 cat >conftest.$ac_ext <<_ACEOF
31008 /* confdefs.h. */
31009 _ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h. */
31013 $ac_includes_default
31014 #include <vgagl.h>
31015 _ACEOF
31016 rm -f conftest.$ac_objext
31017 if { (ac_try="$ac_compile"
31018 case "(($ac_try" in
31019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020 *) ac_try_echo=$ac_try;;
31021 esac
31022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023 (eval "$ac_compile") 2>conftest.er1
31024 ac_status=$?
31025 grep -v '^ *+' conftest.er1 >conftest.err
31026 rm -f conftest.er1
31027 cat conftest.err >&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } && {
31030 test -z "$ac_c_werror_flag" ||
31031 test ! -s conftest.err
31032 } && test -s conftest.$ac_objext; then
31033 ac_header_compiler=yes
31034 else
31035 echo "$as_me: failed program was:" >&5
31036 sed 's/^/| /' conftest.$ac_ext >&5
31038 ac_header_compiler=no
31041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31043 echo "${ECHO_T}$ac_header_compiler" >&6; }
31045 # Is the header present?
31046 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31047 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31048 cat >conftest.$ac_ext <<_ACEOF
31049 /* confdefs.h. */
31050 _ACEOF
31051 cat confdefs.h >>conftest.$ac_ext
31052 cat >>conftest.$ac_ext <<_ACEOF
31053 /* end confdefs.h. */
31054 #include <vgagl.h>
31055 _ACEOF
31056 if { (ac_try="$ac_cpp conftest.$ac_ext"
31057 case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31060 esac
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31063 ac_status=$?
31064 grep -v '^ *+' conftest.er1 >conftest.err
31065 rm -f conftest.er1
31066 cat conftest.err >&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } >/dev/null && {
31069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31070 test ! -s conftest.err
31071 }; then
31072 ac_header_preproc=yes
31073 else
31074 echo "$as_me: failed program was:" >&5
31075 sed 's/^/| /' conftest.$ac_ext >&5
31077 ac_header_preproc=no
31080 rm -f conftest.err conftest.$ac_ext
31081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31082 echo "${ECHO_T}$ac_header_preproc" >&6; }
31084 # So? What about this header?
31085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31086 yes:no: )
31087 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31088 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31089 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
31090 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
31091 ac_header_preproc=yes
31093 no:yes:* )
31094 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31095 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31096 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
31097 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
31098 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31099 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
31101 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31102 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
31103 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
31104 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31105 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31108 esac
31109 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31110 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31111 if test "${ac_cv_header_vgagl_h+set}" = set; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31113 else
31114 ac_cv_header_vgagl_h=$ac_header_preproc
31116 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31117 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31120 if test $ac_cv_header_vgagl_h = yes; then
31122 else
31123 can_compile_svga=0
31127 if test $can_compile_svga = 1; then
31128 with_svga=yes
31132 if test "$with_x11" != yes; then
31133 can_compile_x11=1
31134 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31135 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31136 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31137 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31138 echo $ECHO_N "(cached) $ECHO_C" >&6
31140 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31141 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31142 else
31143 # Is the header compilable?
31144 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31145 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31146 cat >conftest.$ac_ext <<_ACEOF
31147 /* confdefs.h. */
31148 _ACEOF
31149 cat confdefs.h >>conftest.$ac_ext
31150 cat >>conftest.$ac_ext <<_ACEOF
31151 /* end confdefs.h. */
31152 $ac_includes_default
31153 #include <X11/Xlib.h>
31154 _ACEOF
31155 rm -f conftest.$ac_objext
31156 if { (ac_try="$ac_compile"
31157 case "(($ac_try" in
31158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31159 *) ac_try_echo=$ac_try;;
31160 esac
31161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31162 (eval "$ac_compile") 2>conftest.er1
31163 ac_status=$?
31164 grep -v '^ *+' conftest.er1 >conftest.err
31165 rm -f conftest.er1
31166 cat conftest.err >&5
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); } && {
31169 test -z "$ac_c_werror_flag" ||
31170 test ! -s conftest.err
31171 } && test -s conftest.$ac_objext; then
31172 ac_header_compiler=yes
31173 else
31174 echo "$as_me: failed program was:" >&5
31175 sed 's/^/| /' conftest.$ac_ext >&5
31177 ac_header_compiler=no
31180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31182 echo "${ECHO_T}$ac_header_compiler" >&6; }
31184 # Is the header present?
31185 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31186 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31187 cat >conftest.$ac_ext <<_ACEOF
31188 /* confdefs.h. */
31189 _ACEOF
31190 cat confdefs.h >>conftest.$ac_ext
31191 cat >>conftest.$ac_ext <<_ACEOF
31192 /* end confdefs.h. */
31193 #include <X11/Xlib.h>
31194 _ACEOF
31195 if { (ac_try="$ac_cpp conftest.$ac_ext"
31196 case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31199 esac
31200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31202 ac_status=$?
31203 grep -v '^ *+' conftest.er1 >conftest.err
31204 rm -f conftest.er1
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } >/dev/null && {
31208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31209 test ! -s conftest.err
31210 }; then
31211 ac_header_preproc=yes
31212 else
31213 echo "$as_me: failed program was:" >&5
31214 sed 's/^/| /' conftest.$ac_ext >&5
31216 ac_header_preproc=no
31219 rm -f conftest.err conftest.$ac_ext
31220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31221 echo "${ECHO_T}$ac_header_preproc" >&6; }
31223 # So? What about this header?
31224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31225 yes:no: )
31226 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31227 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31228 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
31229 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
31230 ac_header_preproc=yes
31232 no:yes:* )
31233 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31234 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31235 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
31236 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
31237 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31238 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
31240 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
31242 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31244 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31247 esac
31248 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31249 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31250 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253 ac_cv_header_X11_Xlib_h=$ac_header_preproc
31255 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31256 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31259 if test $ac_cv_header_X11_Xlib_h = yes; then
31261 else
31262 can_compile_x11=0
31266 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31267 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31268 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31269 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31270 echo $ECHO_N "(cached) $ECHO_C" >&6
31272 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31273 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31274 else
31275 # Is the header compilable?
31276 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31277 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31278 cat >conftest.$ac_ext <<_ACEOF
31279 /* confdefs.h. */
31280 _ACEOF
31281 cat confdefs.h >>conftest.$ac_ext
31282 cat >>conftest.$ac_ext <<_ACEOF
31283 /* end confdefs.h. */
31284 $ac_includes_default
31285 #include <X11/Xutil.h>
31286 _ACEOF
31287 rm -f conftest.$ac_objext
31288 if { (ac_try="$ac_compile"
31289 case "(($ac_try" in
31290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31291 *) ac_try_echo=$ac_try;;
31292 esac
31293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31294 (eval "$ac_compile") 2>conftest.er1
31295 ac_status=$?
31296 grep -v '^ *+' conftest.er1 >conftest.err
31297 rm -f conftest.er1
31298 cat conftest.err >&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); } && {
31301 test -z "$ac_c_werror_flag" ||
31302 test ! -s conftest.err
31303 } && test -s conftest.$ac_objext; then
31304 ac_header_compiler=yes
31305 else
31306 echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31309 ac_header_compiler=no
31312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31314 echo "${ECHO_T}$ac_header_compiler" >&6; }
31316 # Is the header present?
31317 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31318 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31319 cat >conftest.$ac_ext <<_ACEOF
31320 /* confdefs.h. */
31321 _ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h. */
31325 #include <X11/Xutil.h>
31326 _ACEOF
31327 if { (ac_try="$ac_cpp conftest.$ac_ext"
31328 case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31331 esac
31332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31334 ac_status=$?
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } >/dev/null && {
31340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31341 test ! -s conftest.err
31342 }; then
31343 ac_header_preproc=yes
31344 else
31345 echo "$as_me: failed program was:" >&5
31346 sed 's/^/| /' conftest.$ac_ext >&5
31348 ac_header_preproc=no
31351 rm -f conftest.err conftest.$ac_ext
31352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31353 echo "${ECHO_T}$ac_header_preproc" >&6; }
31355 # So? What about this header?
31356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31357 yes:no: )
31358 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31359 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31360 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
31361 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
31362 ac_header_preproc=yes
31364 no:yes:* )
31365 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31366 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31367 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
31368 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
31369 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31370 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31371 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
31372 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
31373 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
31374 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
31375 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31376 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31379 esac
31380 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31381 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31382 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 else
31385 ac_cv_header_X11_Xutil_h=$ac_header_preproc
31387 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31388 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31391 if test $ac_cv_header_X11_Xutil_h = yes; then
31393 else
31394 can_compile_x11=0
31398 if test $can_compile_x11 = 1; then
31399 with_x11=yes
31403 if test "$with_rfb" != yes; then
31404 can_compile_rfb=1
31405 case $target in
31406 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31407 if test "${ac_cv_header_winsock_h+set}" = set; then
31408 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31409 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31410 if test "${ac_cv_header_winsock_h+set}" = set; then
31411 echo $ECHO_N "(cached) $ECHO_C" >&6
31413 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31414 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31415 else
31416 # Is the header compilable?
31417 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
31418 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31419 cat >conftest.$ac_ext <<_ACEOF
31420 /* confdefs.h. */
31421 _ACEOF
31422 cat confdefs.h >>conftest.$ac_ext
31423 cat >>conftest.$ac_ext <<_ACEOF
31424 /* end confdefs.h. */
31425 $ac_includes_default
31426 #include <winsock.h>
31427 _ACEOF
31428 rm -f conftest.$ac_objext
31429 if { (ac_try="$ac_compile"
31430 case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31433 esac
31434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_compile") 2>conftest.er1
31436 ac_status=$?
31437 grep -v '^ *+' conftest.er1 >conftest.err
31438 rm -f conftest.er1
31439 cat conftest.err >&5
31440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31441 (exit $ac_status); } && {
31442 test -z "$ac_c_werror_flag" ||
31443 test ! -s conftest.err
31444 } && test -s conftest.$ac_objext; then
31445 ac_header_compiler=yes
31446 else
31447 echo "$as_me: failed program was:" >&5
31448 sed 's/^/| /' conftest.$ac_ext >&5
31450 ac_header_compiler=no
31453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31455 echo "${ECHO_T}$ac_header_compiler" >&6; }
31457 # Is the header present?
31458 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
31459 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31460 cat >conftest.$ac_ext <<_ACEOF
31461 /* confdefs.h. */
31462 _ACEOF
31463 cat confdefs.h >>conftest.$ac_ext
31464 cat >>conftest.$ac_ext <<_ACEOF
31465 /* end confdefs.h. */
31466 #include <winsock.h>
31467 _ACEOF
31468 if { (ac_try="$ac_cpp conftest.$ac_ext"
31469 case "(($ac_try" in
31470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471 *) ac_try_echo=$ac_try;;
31472 esac
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31475 ac_status=$?
31476 grep -v '^ *+' conftest.er1 >conftest.err
31477 rm -f conftest.er1
31478 cat conftest.err >&5
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); } >/dev/null && {
31481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31482 test ! -s conftest.err
31483 }; then
31484 ac_header_preproc=yes
31485 else
31486 echo "$as_me: failed program was:" >&5
31487 sed 's/^/| /' conftest.$ac_ext >&5
31489 ac_header_preproc=no
31492 rm -f conftest.err conftest.$ac_ext
31493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31494 echo "${ECHO_T}$ac_header_preproc" >&6; }
31496 # So? What about this header?
31497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31498 yes:no: )
31499 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31500 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31501 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
31502 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
31503 ac_header_preproc=yes
31505 no:yes:* )
31506 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31507 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31508 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
31509 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
31510 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31511 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31512 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
31513 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
31514 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
31515 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31517 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31520 esac
31521 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31522 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31523 if test "${ac_cv_header_winsock_h+set}" = set; then
31524 echo $ECHO_N "(cached) $ECHO_C" >&6
31525 else
31526 ac_cv_header_winsock_h=$ac_header_preproc
31528 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31529 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31532 if test $ac_cv_header_winsock_h = yes; then
31534 else
31535 can_compile_rfb=0
31539 if test "${ac_cv_header_process_h+set}" = set; then
31540 { echo "$as_me:$LINENO: checking for process.h" >&5
31541 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31542 if test "${ac_cv_header_process_h+set}" = set; then
31543 echo $ECHO_N "(cached) $ECHO_C" >&6
31545 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31546 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31547 else
31548 # Is the header compilable?
31549 { echo "$as_me:$LINENO: checking process.h usability" >&5
31550 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31551 cat >conftest.$ac_ext <<_ACEOF
31552 /* confdefs.h. */
31553 _ACEOF
31554 cat confdefs.h >>conftest.$ac_ext
31555 cat >>conftest.$ac_ext <<_ACEOF
31556 /* end confdefs.h. */
31557 $ac_includes_default
31558 #include <process.h>
31559 _ACEOF
31560 rm -f conftest.$ac_objext
31561 if { (ac_try="$ac_compile"
31562 case "(($ac_try" in
31563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564 *) ac_try_echo=$ac_try;;
31565 esac
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567 (eval "$ac_compile") 2>conftest.er1
31568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } && {
31574 test -z "$ac_c_werror_flag" ||
31575 test ! -s conftest.err
31576 } && test -s conftest.$ac_objext; then
31577 ac_header_compiler=yes
31578 else
31579 echo "$as_me: failed program was:" >&5
31580 sed 's/^/| /' conftest.$ac_ext >&5
31582 ac_header_compiler=no
31585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31587 echo "${ECHO_T}$ac_header_compiler" >&6; }
31589 # Is the header present?
31590 { echo "$as_me:$LINENO: checking process.h presence" >&5
31591 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31592 cat >conftest.$ac_ext <<_ACEOF
31593 /* confdefs.h. */
31594 _ACEOF
31595 cat confdefs.h >>conftest.$ac_ext
31596 cat >>conftest.$ac_ext <<_ACEOF
31597 /* end confdefs.h. */
31598 #include <process.h>
31599 _ACEOF
31600 if { (ac_try="$ac_cpp conftest.$ac_ext"
31601 case "(($ac_try" in
31602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31603 *) ac_try_echo=$ac_try;;
31604 esac
31605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31607 ac_status=$?
31608 grep -v '^ *+' conftest.er1 >conftest.err
31609 rm -f conftest.er1
31610 cat conftest.err >&5
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } >/dev/null && {
31613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31614 test ! -s conftest.err
31615 }; then
31616 ac_header_preproc=yes
31617 else
31618 echo "$as_me: failed program was:" >&5
31619 sed 's/^/| /' conftest.$ac_ext >&5
31621 ac_header_preproc=no
31624 rm -f conftest.err conftest.$ac_ext
31625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31626 echo "${ECHO_T}$ac_header_preproc" >&6; }
31628 # So? What about this header?
31629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31630 yes:no: )
31631 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31632 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31633 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
31634 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
31635 ac_header_preproc=yes
31637 no:yes:* )
31638 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31639 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31640 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
31641 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
31642 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31643 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31644 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
31645 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
31646 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
31647 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
31648 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31649 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31652 esac
31653 { echo "$as_me:$LINENO: checking for process.h" >&5
31654 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31655 if test "${ac_cv_header_process_h+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657 else
31658 ac_cv_header_process_h=$ac_header_preproc
31660 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31661 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31664 if test $ac_cv_header_process_h = yes; then
31666 else
31667 can_compile_rfb=0
31673 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31674 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31675 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31676 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31677 echo $ECHO_N "(cached) $ECHO_C" >&6
31679 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31680 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31681 else
31682 # Is the header compilable?
31683 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31684 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31685 cat >conftest.$ac_ext <<_ACEOF
31686 /* confdefs.h. */
31687 _ACEOF
31688 cat confdefs.h >>conftest.$ac_ext
31689 cat >>conftest.$ac_ext <<_ACEOF
31690 /* end confdefs.h. */
31691 $ac_includes_default
31692 #include <sys/socket.h>
31693 _ACEOF
31694 rm -f conftest.$ac_objext
31695 if { (ac_try="$ac_compile"
31696 case "(($ac_try" in
31697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31698 *) ac_try_echo=$ac_try;;
31699 esac
31700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31701 (eval "$ac_compile") 2>conftest.er1
31702 ac_status=$?
31703 grep -v '^ *+' conftest.er1 >conftest.err
31704 rm -f conftest.er1
31705 cat conftest.err >&5
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); } && {
31708 test -z "$ac_c_werror_flag" ||
31709 test ! -s conftest.err
31710 } && test -s conftest.$ac_objext; then
31711 ac_header_compiler=yes
31712 else
31713 echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31716 ac_header_compiler=no
31719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31720 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31721 echo "${ECHO_T}$ac_header_compiler" >&6; }
31723 # Is the header present?
31724 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31725 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31726 cat >conftest.$ac_ext <<_ACEOF
31727 /* confdefs.h. */
31728 _ACEOF
31729 cat confdefs.h >>conftest.$ac_ext
31730 cat >>conftest.$ac_ext <<_ACEOF
31731 /* end confdefs.h. */
31732 #include <sys/socket.h>
31733 _ACEOF
31734 if { (ac_try="$ac_cpp conftest.$ac_ext"
31735 case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31738 esac
31739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31741 ac_status=$?
31742 grep -v '^ *+' conftest.er1 >conftest.err
31743 rm -f conftest.er1
31744 cat conftest.err >&5
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); } >/dev/null && {
31747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31748 test ! -s conftest.err
31749 }; then
31750 ac_header_preproc=yes
31751 else
31752 echo "$as_me: failed program was:" >&5
31753 sed 's/^/| /' conftest.$ac_ext >&5
31755 ac_header_preproc=no
31758 rm -f conftest.err conftest.$ac_ext
31759 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31760 echo "${ECHO_T}$ac_header_preproc" >&6; }
31762 # So? What about this header?
31763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31764 yes:no: )
31765 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31766 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31767 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
31768 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
31769 ac_header_preproc=yes
31771 no:yes:* )
31772 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31773 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31774 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
31775 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
31776 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31777 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
31779 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
31781 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31783 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31786 esac
31787 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31788 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31789 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791 else
31792 ac_cv_header_sys_socket_h=$ac_header_preproc
31794 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31795 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31798 if test $ac_cv_header_sys_socket_h = yes; then
31800 else
31801 can_compile_rfb=0
31805 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31806 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31807 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31808 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31811 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31812 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31813 else
31814 # Is the header compilable?
31815 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
31816 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
31817 cat >conftest.$ac_ext <<_ACEOF
31818 /* confdefs.h. */
31819 _ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 $ac_includes_default
31824 #include <netinet/tcp.h>
31825 _ACEOF
31826 rm -f conftest.$ac_objext
31827 if { (ac_try="$ac_compile"
31828 case "(($ac_try" in
31829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31830 *) ac_try_echo=$ac_try;;
31831 esac
31832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31833 (eval "$ac_compile") 2>conftest.er1
31834 ac_status=$?
31835 grep -v '^ *+' conftest.er1 >conftest.err
31836 rm -f conftest.er1
31837 cat conftest.err >&5
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } && {
31840 test -z "$ac_c_werror_flag" ||
31841 test ! -s conftest.err
31842 } && test -s conftest.$ac_objext; then
31843 ac_header_compiler=yes
31844 else
31845 echo "$as_me: failed program was:" >&5
31846 sed 's/^/| /' conftest.$ac_ext >&5
31848 ac_header_compiler=no
31851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31853 echo "${ECHO_T}$ac_header_compiler" >&6; }
31855 # Is the header present?
31856 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
31857 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
31858 cat >conftest.$ac_ext <<_ACEOF
31859 /* confdefs.h. */
31860 _ACEOF
31861 cat confdefs.h >>conftest.$ac_ext
31862 cat >>conftest.$ac_ext <<_ACEOF
31863 /* end confdefs.h. */
31864 #include <netinet/tcp.h>
31865 _ACEOF
31866 if { (ac_try="$ac_cpp conftest.$ac_ext"
31867 case "(($ac_try" in
31868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869 *) ac_try_echo=$ac_try;;
31870 esac
31871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31873 ac_status=$?
31874 grep -v '^ *+' conftest.er1 >conftest.err
31875 rm -f conftest.er1
31876 cat conftest.err >&5
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); } >/dev/null && {
31879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31880 test ! -s conftest.err
31881 }; then
31882 ac_header_preproc=yes
31883 else
31884 echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31887 ac_header_preproc=no
31890 rm -f conftest.err conftest.$ac_ext
31891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31892 echo "${ECHO_T}$ac_header_preproc" >&6; }
31894 # So? What about this header?
31895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31896 yes:no: )
31897 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31898 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31899 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
31900 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
31901 ac_header_preproc=yes
31903 no:yes:* )
31904 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
31905 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
31906 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
31907 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
31908 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
31909 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
31911 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
31913 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
31914 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
31915 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
31918 esac
31919 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31920 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31921 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31922 echo $ECHO_N "(cached) $ECHO_C" >&6
31923 else
31924 ac_cv_header_netinet_tcp_h=$ac_header_preproc
31926 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31927 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31930 if test $ac_cv_header_netinet_tcp_h = yes; then
31932 else
31933 can_compile_rfb=0
31937 if test "${ac_cv_header_pthread_h+set}" = set; then
31938 { echo "$as_me:$LINENO: checking for pthread.h" >&5
31939 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
31940 if test "${ac_cv_header_pthread_h+set}" = set; then
31941 echo $ECHO_N "(cached) $ECHO_C" >&6
31943 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
31944 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
31945 else
31946 # Is the header compilable?
31947 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
31948 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
31949 cat >conftest.$ac_ext <<_ACEOF
31950 /* confdefs.h. */
31951 _ACEOF
31952 cat confdefs.h >>conftest.$ac_ext
31953 cat >>conftest.$ac_ext <<_ACEOF
31954 /* end confdefs.h. */
31955 $ac_includes_default
31956 #include <pthread.h>
31957 _ACEOF
31958 rm -f conftest.$ac_objext
31959 if { (ac_try="$ac_compile"
31960 case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963 esac
31964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965 (eval "$ac_compile") 2>conftest.er1
31966 ac_status=$?
31967 grep -v '^ *+' conftest.er1 >conftest.err
31968 rm -f conftest.er1
31969 cat conftest.err >&5
31970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971 (exit $ac_status); } && {
31972 test -z "$ac_c_werror_flag" ||
31973 test ! -s conftest.err
31974 } && test -s conftest.$ac_objext; then
31975 ac_header_compiler=yes
31976 else
31977 echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31980 ac_header_compiler=no
31983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31985 echo "${ECHO_T}$ac_header_compiler" >&6; }
31987 # Is the header present?
31988 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
31989 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
31990 cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h. */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h. */
31996 #include <pthread.h>
31997 _ACEOF
31998 if { (ac_try="$ac_cpp conftest.$ac_ext"
31999 case "(($ac_try" in
32000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32001 *) ac_try_echo=$ac_try;;
32002 esac
32003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32005 ac_status=$?
32006 grep -v '^ *+' conftest.er1 >conftest.err
32007 rm -f conftest.er1
32008 cat conftest.err >&5
32009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32010 (exit $ac_status); } >/dev/null && {
32011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32012 test ! -s conftest.err
32013 }; then
32014 ac_header_preproc=yes
32015 else
32016 echo "$as_me: failed program was:" >&5
32017 sed 's/^/| /' conftest.$ac_ext >&5
32019 ac_header_preproc=no
32022 rm -f conftest.err conftest.$ac_ext
32023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32024 echo "${ECHO_T}$ac_header_preproc" >&6; }
32026 # So? What about this header?
32027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32028 yes:no: )
32029 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32030 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32031 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
32032 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
32033 ac_header_preproc=yes
32035 no:yes:* )
32036 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32037 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32038 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
32039 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
32040 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32041 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
32043 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
32045 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32047 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32050 esac
32051 { echo "$as_me:$LINENO: checking for pthread.h" >&5
32052 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32053 if test "${ac_cv_header_pthread_h+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055 else
32056 ac_cv_header_pthread_h=$ac_header_preproc
32058 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32059 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32062 if test $ac_cv_header_pthread_h = yes; then
32064 else
32065 can_compile_rfb=0
32070 esac
32071 if test $can_compile_rfb = 1; then
32072 with_rfb=yes
32076 if test "$with_term" != yes; then
32077 can_compile_term=1
32078 if test "${ac_cv_header_curses_h+set}" = set; then
32079 { echo "$as_me:$LINENO: checking for curses.h" >&5
32080 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32081 if test "${ac_cv_header_curses_h+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32084 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32085 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32086 else
32087 # Is the header compilable?
32088 { echo "$as_me:$LINENO: checking curses.h usability" >&5
32089 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32090 cat >conftest.$ac_ext <<_ACEOF
32091 /* confdefs.h. */
32092 _ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h. */
32096 $ac_includes_default
32097 #include <curses.h>
32098 _ACEOF
32099 rm -f conftest.$ac_objext
32100 if { (ac_try="$ac_compile"
32101 case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_compile") 2>conftest.er1
32107 ac_status=$?
32108 grep -v '^ *+' conftest.er1 >conftest.err
32109 rm -f conftest.er1
32110 cat conftest.err >&5
32111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112 (exit $ac_status); } && {
32113 test -z "$ac_c_werror_flag" ||
32114 test ! -s conftest.err
32115 } && test -s conftest.$ac_objext; then
32116 ac_header_compiler=yes
32117 else
32118 echo "$as_me: failed program was:" >&5
32119 sed 's/^/| /' conftest.$ac_ext >&5
32121 ac_header_compiler=no
32124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32126 echo "${ECHO_T}$ac_header_compiler" >&6; }
32128 # Is the header present?
32129 { echo "$as_me:$LINENO: checking curses.h presence" >&5
32130 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32131 cat >conftest.$ac_ext <<_ACEOF
32132 /* confdefs.h. */
32133 _ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h. */
32137 #include <curses.h>
32138 _ACEOF
32139 if { (ac_try="$ac_cpp conftest.$ac_ext"
32140 case "(($ac_try" in
32141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32142 *) ac_try_echo=$ac_try;;
32143 esac
32144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32146 ac_status=$?
32147 grep -v '^ *+' conftest.er1 >conftest.err
32148 rm -f conftest.er1
32149 cat conftest.err >&5
32150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32151 (exit $ac_status); } >/dev/null && {
32152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32153 test ! -s conftest.err
32154 }; then
32155 ac_header_preproc=yes
32156 else
32157 echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32160 ac_header_preproc=no
32163 rm -f conftest.err conftest.$ac_ext
32164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32165 echo "${ECHO_T}$ac_header_preproc" >&6; }
32167 # So? What about this header?
32168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32169 yes:no: )
32170 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32171 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32172 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
32173 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
32174 ac_header_preproc=yes
32176 no:yes:* )
32177 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32178 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32179 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
32180 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
32181 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32182 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
32184 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
32185 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
32186 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32188 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32191 esac
32192 { echo "$as_me:$LINENO: checking for curses.h" >&5
32193 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32194 if test "${ac_cv_header_curses_h+set}" = set; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32196 else
32197 ac_cv_header_curses_h=$ac_header_preproc
32199 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32200 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32203 if test $ac_cv_header_curses_h = yes; then
32205 else
32206 can_compile_term=0
32210 if test "${ac_cv_header_signal_h+set}" = set; then
32211 { echo "$as_me:$LINENO: checking for signal.h" >&5
32212 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32213 if test "${ac_cv_header_signal_h+set}" = set; then
32214 echo $ECHO_N "(cached) $ECHO_C" >&6
32216 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32217 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32218 else
32219 # Is the header compilable?
32220 { echo "$as_me:$LINENO: checking signal.h usability" >&5
32221 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32222 cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h. */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32228 $ac_includes_default
32229 #include <signal.h>
32230 _ACEOF
32231 rm -f conftest.$ac_objext
32232 if { (ac_try="$ac_compile"
32233 case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236 esac
32237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_compile") 2>conftest.er1
32239 ac_status=$?
32240 grep -v '^ *+' conftest.er1 >conftest.err
32241 rm -f conftest.er1
32242 cat conftest.err >&5
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); } && {
32245 test -z "$ac_c_werror_flag" ||
32246 test ! -s conftest.err
32247 } && test -s conftest.$ac_objext; then
32248 ac_header_compiler=yes
32249 else
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 ac_header_compiler=no
32256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32258 echo "${ECHO_T}$ac_header_compiler" >&6; }
32260 # Is the header present?
32261 { echo "$as_me:$LINENO: checking signal.h presence" >&5
32262 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32263 cat >conftest.$ac_ext <<_ACEOF
32264 /* confdefs.h. */
32265 _ACEOF
32266 cat confdefs.h >>conftest.$ac_ext
32267 cat >>conftest.$ac_ext <<_ACEOF
32268 /* end confdefs.h. */
32269 #include <signal.h>
32270 _ACEOF
32271 if { (ac_try="$ac_cpp conftest.$ac_ext"
32272 case "(($ac_try" in
32273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32274 *) ac_try_echo=$ac_try;;
32275 esac
32276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32278 ac_status=$?
32279 grep -v '^ *+' conftest.er1 >conftest.err
32280 rm -f conftest.er1
32281 cat conftest.err >&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } >/dev/null && {
32284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32285 test ! -s conftest.err
32286 }; then
32287 ac_header_preproc=yes
32288 else
32289 echo "$as_me: failed program was:" >&5
32290 sed 's/^/| /' conftest.$ac_ext >&5
32292 ac_header_preproc=no
32295 rm -f conftest.err conftest.$ac_ext
32296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32297 echo "${ECHO_T}$ac_header_preproc" >&6; }
32299 # So? What about this header?
32300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32301 yes:no: )
32302 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32303 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32304 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
32305 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
32306 ac_header_preproc=yes
32308 no:yes:* )
32309 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32310 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32311 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
32312 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
32313 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32314 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
32316 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
32318 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32320 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32323 esac
32324 { echo "$as_me:$LINENO: checking for signal.h" >&5
32325 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32326 if test "${ac_cv_header_signal_h+set}" = set; then
32327 echo $ECHO_N "(cached) $ECHO_C" >&6
32328 else
32329 ac_cv_header_signal_h=$ac_header_preproc
32331 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32332 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32335 if test $ac_cv_header_signal_h = yes; then
32337 else
32338 can_compile_term=0
32342 if test $can_compile_term = 1; then
32343 with_term=yes
32347 if test "$with_nogui" != yes; then
32348 with_nogui=yes
32350 fi # end of if $with_all_libs = yes
32352 { echo "$as_me:$LINENO: checking for idle hack" >&5
32353 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32354 # Check whether --enable-idle-hack was given.
32355 if test "${enable_idle_hack+set}" = set; then
32356 enableval=$enable_idle_hack; if test "$enableval" = yes; then
32357 { echo "$as_me:$LINENO: result: yes" >&5
32358 echo "${ECHO_T}yes" >&6; }
32359 cat >>confdefs.h <<\_ACEOF
32360 #define BX_USE_IDLE_HACK 1
32361 _ACEOF
32363 else
32364 { echo "$as_me:$LINENO: result: no" >&5
32365 echo "${ECHO_T}no" >&6; }
32366 cat >>confdefs.h <<\_ACEOF
32367 #define BX_USE_IDLE_HACK 0
32368 _ACEOF
32371 else
32373 { echo "$as_me:$LINENO: result: no" >&5
32374 echo "${ECHO_T}no" >&6; }
32375 cat >>confdefs.h <<\_ACEOF
32376 #define BX_USE_IDLE_HACK 0
32377 _ACEOF
32385 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32386 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32387 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32388 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32389 echo $ECHO_N "(cached) $ECHO_C" >&6
32391 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32392 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32393 else
32394 # Is the header compilable?
32395 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32396 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32397 cat >conftest.$ac_ext <<_ACEOF
32398 /* confdefs.h. */
32399 _ACEOF
32400 cat confdefs.h >>conftest.$ac_ext
32401 cat >>conftest.$ac_ext <<_ACEOF
32402 /* end confdefs.h. */
32403 $ac_includes_default
32404 #include <dlfcn.h>
32405 _ACEOF
32406 rm -f conftest.$ac_objext
32407 if { (ac_try="$ac_compile"
32408 case "(($ac_try" in
32409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410 *) ac_try_echo=$ac_try;;
32411 esac
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413 (eval "$ac_compile") 2>conftest.er1
32414 ac_status=$?
32415 grep -v '^ *+' conftest.er1 >conftest.err
32416 rm -f conftest.er1
32417 cat conftest.err >&5
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); } && {
32420 test -z "$ac_c_werror_flag" ||
32421 test ! -s conftest.err
32422 } && test -s conftest.$ac_objext; then
32423 ac_header_compiler=yes
32424 else
32425 echo "$as_me: failed program was:" >&5
32426 sed 's/^/| /' conftest.$ac_ext >&5
32428 ac_header_compiler=no
32431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32433 echo "${ECHO_T}$ac_header_compiler" >&6; }
32435 # Is the header present?
32436 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32437 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32438 cat >conftest.$ac_ext <<_ACEOF
32439 /* confdefs.h. */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32444 #include <dlfcn.h>
32445 _ACEOF
32446 if { (ac_try="$ac_cpp conftest.$ac_ext"
32447 case "(($ac_try" in
32448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32449 *) ac_try_echo=$ac_try;;
32450 esac
32451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32453 ac_status=$?
32454 grep -v '^ *+' conftest.er1 >conftest.err
32455 rm -f conftest.er1
32456 cat conftest.err >&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } >/dev/null && {
32459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32460 test ! -s conftest.err
32461 }; then
32462 ac_header_preproc=yes
32463 else
32464 echo "$as_me: failed program was:" >&5
32465 sed 's/^/| /' conftest.$ac_ext >&5
32467 ac_header_preproc=no
32470 rm -f conftest.err conftest.$ac_ext
32471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32472 echo "${ECHO_T}$ac_header_preproc" >&6; }
32474 # So? What about this header?
32475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32476 yes:no: )
32477 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32478 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
32480 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
32481 ac_header_preproc=yes
32483 no:yes:* )
32484 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32485 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32486 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
32487 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
32488 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32489 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
32491 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
32493 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32495 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32498 esac
32499 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32500 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32501 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32502 echo $ECHO_N "(cached) $ECHO_C" >&6
32503 else
32504 ac_cv_header_dlfcn_h=$ac_header_preproc
32506 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32507 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32510 if test $ac_cv_header_dlfcn_h = yes; then
32511 cat >>confdefs.h <<\_ACEOF
32512 #define BX_HAVE_DLFCN_H 1
32513 _ACEOF
32518 if test "${ac_cv_header_assert_h+set}" = set; then
32519 { echo "$as_me:$LINENO: checking for assert.h" >&5
32520 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32521 if test "${ac_cv_header_assert_h+set}" = set; then
32522 echo $ECHO_N "(cached) $ECHO_C" >&6
32524 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32525 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32526 else
32527 # Is the header compilable?
32528 { echo "$as_me:$LINENO: checking assert.h usability" >&5
32529 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32530 cat >conftest.$ac_ext <<_ACEOF
32531 /* confdefs.h. */
32532 _ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h. */
32536 $ac_includes_default
32537 #include <assert.h>
32538 _ACEOF
32539 rm -f conftest.$ac_objext
32540 if { (ac_try="$ac_compile"
32541 case "(($ac_try" in
32542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32543 *) ac_try_echo=$ac_try;;
32544 esac
32545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32546 (eval "$ac_compile") 2>conftest.er1
32547 ac_status=$?
32548 grep -v '^ *+' conftest.er1 >conftest.err
32549 rm -f conftest.er1
32550 cat conftest.err >&5
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } && {
32553 test -z "$ac_c_werror_flag" ||
32554 test ! -s conftest.err
32555 } && test -s conftest.$ac_objext; then
32556 ac_header_compiler=yes
32557 else
32558 echo "$as_me: failed program was:" >&5
32559 sed 's/^/| /' conftest.$ac_ext >&5
32561 ac_header_compiler=no
32564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32566 echo "${ECHO_T}$ac_header_compiler" >&6; }
32568 # Is the header present?
32569 { echo "$as_me:$LINENO: checking assert.h presence" >&5
32570 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32571 cat >conftest.$ac_ext <<_ACEOF
32572 /* confdefs.h. */
32573 _ACEOF
32574 cat confdefs.h >>conftest.$ac_ext
32575 cat >>conftest.$ac_ext <<_ACEOF
32576 /* end confdefs.h. */
32577 #include <assert.h>
32578 _ACEOF
32579 if { (ac_try="$ac_cpp conftest.$ac_ext"
32580 case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583 esac
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32586 ac_status=$?
32587 grep -v '^ *+' conftest.er1 >conftest.err
32588 rm -f conftest.er1
32589 cat conftest.err >&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } >/dev/null && {
32592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32593 test ! -s conftest.err
32594 }; then
32595 ac_header_preproc=yes
32596 else
32597 echo "$as_me: failed program was:" >&5
32598 sed 's/^/| /' conftest.$ac_ext >&5
32600 ac_header_preproc=no
32603 rm -f conftest.err conftest.$ac_ext
32604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32605 echo "${ECHO_T}$ac_header_preproc" >&6; }
32607 # So? What about this header?
32608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32609 yes:no: )
32610 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32611 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32612 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
32613 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
32614 ac_header_preproc=yes
32616 no:yes:* )
32617 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32618 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32619 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
32620 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
32621 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32622 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32623 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
32624 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
32625 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
32626 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
32627 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32628 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32631 esac
32632 { echo "$as_me:$LINENO: checking for assert.h" >&5
32633 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32634 if test "${ac_cv_header_assert_h+set}" = set; then
32635 echo $ECHO_N "(cached) $ECHO_C" >&6
32636 else
32637 ac_cv_header_assert_h=$ac_header_preproc
32639 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32640 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32643 if test $ac_cv_header_assert_h = yes; then
32644 cat >>confdefs.h <<\_ACEOF
32645 #define HAVE_ASSERT_H 1
32646 _ACEOF
32652 { echo "$as_me:$LINENO: checking for plugins support" >&5
32653 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32654 # Check whether --enable-plugins was given.
32655 if test "${enable_plugins+set}" = set; then
32656 enableval=$enable_plugins; if test "$enableval" = yes; then
32657 bx_plugins=1
32658 else
32659 bx_plugins=0
32661 else
32663 bx_plugins=0
32669 if test "$bx_plugins" = 1; then
32670 { echo "$as_me:$LINENO: result: yes" >&5
32671 echo "${ECHO_T}yes" >&6; }
32672 cat >>confdefs.h <<\_ACEOF
32673 #define BX_PLUGINS 1
32674 _ACEOF
32676 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
32677 GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
32678 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32679 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32680 # by special link rules for the plugins that they support.
32681 LIBS="$LIBS $LIBADD_DL"
32682 PLUGIN_VAR='ltdl.o'
32683 PLUGIN_TARGET=bochs_plugins
32684 INSTALL_PLUGINS_VAR=install_libtool_plugins
32685 NONPLUGIN_GUI_LINK_OPTS=''
32686 else
32687 { echo "$as_me:$LINENO: result: no" >&5
32688 echo "${ECHO_T}no" >&6; }
32689 bx_plugins=0
32690 cat >>confdefs.h <<\_ACEOF
32691 #define BX_PLUGINS 0
32692 _ACEOF
32694 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
32695 GUI_PLUGIN_OBJS=''
32696 NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
32701 # copy gui variables into iodev variables. Later, we will add to the gui
32702 # objs list, according to which display libraries are enabled.
32703 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32704 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32706 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
32707 # It is provided by a library called dlcompat.
32708 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32709 have_dlopen=0
32710 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32711 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32713 echo $ECHO_N "(cached) $ECHO_C" >&6
32714 else
32715 ac_check_lib_save_LIBS=$LIBS
32716 LIBS="-ldl $LIBS"
32717 cat >conftest.$ac_ext <<_ACEOF
32718 /* confdefs.h. */
32719 _ACEOF
32720 cat confdefs.h >>conftest.$ac_ext
32721 cat >>conftest.$ac_ext <<_ACEOF
32722 /* end confdefs.h. */
32724 /* Override any GCC internal prototype to avoid an error.
32725 Use char because int might match the return type of a GCC
32726 builtin and then its argument prototype would still apply. */
32727 #ifdef __cplusplus
32728 extern "C"
32729 #endif
32730 char dlopen ();
32732 main ()
32734 return dlopen ();
32736 return 0;
32738 _ACEOF
32739 rm -f conftest.$ac_objext conftest$ac_exeext
32740 if { (ac_try="$ac_link"
32741 case "(($ac_try" in
32742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32743 *) ac_try_echo=$ac_try;;
32744 esac
32745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32746 (eval "$ac_link") 2>conftest.er1
32747 ac_status=$?
32748 grep -v '^ *+' conftest.er1 >conftest.err
32749 rm -f conftest.er1
32750 cat conftest.err >&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); } && {
32753 test -z "$ac_c_werror_flag" ||
32754 test ! -s conftest.err
32755 } && test -s conftest$ac_exeext &&
32756 $as_test_x conftest$ac_exeext; then
32757 ac_cv_lib_dl_dlopen=yes
32758 else
32759 echo "$as_me: failed program was:" >&5
32760 sed 's/^/| /' conftest.$ac_ext >&5
32762 ac_cv_lib_dl_dlopen=no
32765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32766 conftest$ac_exeext conftest.$ac_ext
32767 LIBS=$ac_check_lib_save_LIBS
32769 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32770 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32771 if test $ac_cv_lib_dl_dlopen = yes; then
32772 have_dlopen=1
32775 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32776 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32777 if test "$have_dlopen" = 0; then
32778 { echo "$as_me:$LINENO: result: no" >&5
32779 echo "${ECHO_T}no" >&6; }
32780 { { 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
32781 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;}
32782 { (exit 1); exit 1; }; }
32783 else
32784 { echo "$as_me:$LINENO: result: yes" >&5
32785 echo "${ECHO_T}yes" >&6; }
32789 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32790 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32791 cat >conftest.$ac_ext <<_ACEOF
32792 /* confdefs.h. */
32793 _ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32799 main ()
32801 { label1: }
32803 return 0;
32805 _ACEOF
32806 rm -f conftest.$ac_objext
32807 if { (ac_try="$ac_compile"
32808 case "(($ac_try" in
32809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32810 *) ac_try_echo=$ac_try;;
32811 esac
32812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32813 (eval "$ac_compile") 2>conftest.er1
32814 ac_status=$?
32815 grep -v '^ *+' conftest.er1 >conftest.err
32816 rm -f conftest.er1
32817 cat conftest.err >&5
32818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32819 (exit $ac_status); } && {
32820 test -z "$ac_c_werror_flag" ||
32821 test ! -s conftest.err
32822 } && test -s conftest.$ac_objext; then
32823 { echo "$as_me:$LINENO: result: yes" >&5
32824 echo "${ECHO_T}yes" >&6; }
32825 else
32826 echo "$as_me: failed program was:" >&5
32827 sed 's/^/| /' conftest.$ac_ext >&5
32830 { echo "$as_me:$LINENO: result: no" >&5
32831 echo "${ECHO_T}no" >&6; }
32832 cat >>confdefs.h <<\_ACEOF
32833 #define BX_NO_BLANK_LABELS 1
32834 _ACEOF
32839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32841 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
32842 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
32843 cat >conftest.$ac_ext <<_ACEOF
32844 /* confdefs.h. */
32845 _ACEOF
32846 cat confdefs.h >>conftest.$ac_ext
32847 cat >>conftest.$ac_ext <<_ACEOF
32848 /* end confdefs.h. */
32851 main ()
32853 { 42LL; }
32855 return 0;
32857 _ACEOF
32858 rm -f conftest.$ac_objext
32859 if { (ac_try="$ac_compile"
32860 case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32863 esac
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_compile") 2>conftest.er1
32866 ac_status=$?
32867 grep -v '^ *+' conftest.er1 >conftest.err
32868 rm -f conftest.er1
32869 cat conftest.err >&5
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); } && {
32872 test -z "$ac_c_werror_flag" ||
32873 test ! -s conftest.err
32874 } && test -s conftest.$ac_objext; then
32875 { echo "$as_me:$LINENO: result: yes" >&5
32876 echo "${ECHO_T}yes" >&6; }
32877 else
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32882 { echo "$as_me:$LINENO: result: no" >&5
32883 echo "${ECHO_T}no" >&6; }
32884 cat >>confdefs.h <<\_ACEOF
32885 #define BX_64BIT_CONSTANTS_USE_LL 0
32886 _ACEOF
32891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32893 use_x86_64=0
32894 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
32895 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
32896 # Check whether --enable-x86-64 was given.
32897 if test "${enable_x86_64+set}" = set; then
32898 enableval=$enable_x86_64; if test "$enableval" = yes; then
32899 { echo "$as_me:$LINENO: result: yes" >&5
32900 echo "${ECHO_T}yes" >&6; }
32901 OBJS64='$(OBJS64)'
32902 cat >>confdefs.h <<\_ACEOF
32903 #define BX_SUPPORT_X86_64 1
32904 _ACEOF
32906 use_x86_64=1
32907 else
32908 { echo "$as_me:$LINENO: result: no" >&5
32909 echo "${ECHO_T}no" >&6; }
32910 OBJS64=''
32911 cat >>confdefs.h <<\_ACEOF
32912 #define BX_SUPPORT_X86_64 0
32913 _ACEOF
32917 else
32919 { echo "$as_me:$LINENO: result: no" >&5
32920 echo "${ECHO_T}no" >&6; }
32921 OBJS64=''
32922 cat >>confdefs.h <<\_ACEOF
32923 #define BX_SUPPORT_X86_64 0
32924 _ACEOF
32932 use_smp=0
32933 { echo "$as_me:$LINENO: checking for SMP support" >&5
32934 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
32935 # Check whether --enable-smp was given.
32936 if test "${enable_smp+set}" = set; then
32937 enableval=$enable_smp; if test "$enableval" = yes; then
32938 { echo "$as_me:$LINENO: result: yes" >&5
32939 echo "${ECHO_T}yes" >&6; }
32940 cat >>confdefs.h <<\_ACEOF
32941 #define BX_SUPPORT_SMP 1
32942 _ACEOF
32944 cat >>confdefs.h <<\_ACEOF
32945 #define BX_USE_CPU_SMF 0
32946 _ACEOF
32948 use_smp=1
32949 else
32950 { echo "$as_me:$LINENO: result: no" >&5
32951 echo "${ECHO_T}no" >&6; }
32952 cat >>confdefs.h <<\_ACEOF
32953 #define BX_SUPPORT_SMP 0
32954 _ACEOF
32958 else
32960 { echo "$as_me:$LINENO: result: no" >&5
32961 echo "${ECHO_T}no" >&6; }
32962 cat >>confdefs.h <<\_ACEOF
32963 #define BX_SUPPORT_SMP 0
32964 _ACEOF
32971 { echo "$as_me:$LINENO: checking for cpu level" >&5
32972 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
32973 # Check whether --enable-cpu-level was given.
32974 if test "${enable_cpu_level+set}" = set; then
32975 enableval=$enable_cpu_level; case "$enableval" in
32977 { echo "$as_me:$LINENO: result: 3" >&5
32978 echo "${ECHO_T}3" >&6; }
32979 cat >>confdefs.h <<\_ACEOF
32980 #define BX_CPU_LEVEL 3
32981 _ACEOF
32983 cat >>confdefs.h <<\_ACEOF
32984 #define BX_CPU_LEVEL_HACKED 3
32985 _ACEOF
32989 { echo "$as_me:$LINENO: result: 4" >&5
32990 echo "${ECHO_T}4" >&6; }
32991 cat >>confdefs.h <<\_ACEOF
32992 #define BX_CPU_LEVEL 4
32993 _ACEOF
32995 cat >>confdefs.h <<\_ACEOF
32996 #define BX_CPU_LEVEL_HACKED 4
32997 _ACEOF
33001 { echo "$as_me:$LINENO: result: 5" >&5
33002 echo "${ECHO_T}5" >&6; }
33003 cat >>confdefs.h <<\_ACEOF
33004 #define BX_CPU_LEVEL 5
33005 _ACEOF
33007 cat >>confdefs.h <<\_ACEOF
33008 #define BX_CPU_LEVEL_HACKED 5
33009 _ACEOF
33013 { echo "$as_me:$LINENO: result: 6" >&5
33014 echo "${ECHO_T}6" >&6; }
33015 cat >>confdefs.h <<\_ACEOF
33016 #define BX_CPU_LEVEL 6
33017 _ACEOF
33019 cat >>confdefs.h <<\_ACEOF
33020 #define BX_CPU_LEVEL_HACKED 6
33021 _ACEOF
33025 echo " "
33026 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33027 exit 1
33029 esac
33030 bx_cpu_level=$enableval
33031 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33032 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33033 exit 1
33036 else
33038 # for multiprocessors or x86-64, cpu level must be 6
33039 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33040 { echo "$as_me:$LINENO: result: 6" >&5
33041 echo "${ECHO_T}6" >&6; }
33042 cat >>confdefs.h <<\_ACEOF
33043 #define BX_CPU_LEVEL 6
33044 _ACEOF
33046 cat >>confdefs.h <<\_ACEOF
33047 #define BX_CPU_LEVEL_HACKED 6
33048 _ACEOF
33050 bx_cpu_level=6
33051 else
33052 { echo "$as_me:$LINENO: result: 5" >&5
33053 echo "${ECHO_T}5" >&6; }
33054 cat >>confdefs.h <<\_ACEOF
33055 #define BX_CPU_LEVEL 5
33056 _ACEOF
33058 cat >>confdefs.h <<\_ACEOF
33059 #define BX_CPU_LEVEL_HACKED 5
33060 _ACEOF
33062 bx_cpu_level=5
33070 { echo "$as_me:$LINENO: checking for APIC support" >&5
33071 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33072 # Check whether --enable-apic was given.
33073 if test "${enable_apic+set}" = set; then
33074 enableval=$enable_apic; if test "$enableval" = yes; then
33075 { echo "$as_me:$LINENO: result: yes" >&5
33076 echo "${ECHO_T}yes" >&6; }
33077 cat >>confdefs.h <<\_ACEOF
33078 #define BX_SUPPORT_APIC 1
33079 _ACEOF
33081 IOAPIC_OBJS='ioapic.o'
33082 else
33083 { echo "$as_me:$LINENO: result: no" >&5
33084 echo "${ECHO_T}no" >&6; }
33085 if test "$use_smp" = 1; then
33086 echo "ERROR: With SMP configuration you must use --enable-apic"
33087 exit 1
33089 cat >>confdefs.h <<\_ACEOF
33090 #define BX_SUPPORT_APIC 0
33091 _ACEOF
33093 IOAPIC_OBJS=''
33096 else
33098 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33099 # enable APIC by default, if SMP configuration or if cpulevel>5
33100 { echo "$as_me:$LINENO: result: yes" >&5
33101 echo "${ECHO_T}yes" >&6; }
33102 cat >>confdefs.h <<\_ACEOF
33103 #define BX_SUPPORT_APIC 1
33104 _ACEOF
33106 IOAPIC_OBJS='ioapic.o'
33107 else
33108 { echo "$as_me:$LINENO: result: no" >&5
33109 echo "${ECHO_T}no" >&6; }
33110 cat >>confdefs.h <<\_ACEOF
33111 #define BX_SUPPORT_APIC 0
33112 _ACEOF
33114 IOAPIC_OBJS=''
33122 if test "${ac_cv_header_zlib_h+set}" = set; then
33123 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33124 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33125 if test "${ac_cv_header_zlib_h+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33128 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33129 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33130 else
33131 # Is the header compilable?
33132 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33133 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33134 cat >conftest.$ac_ext <<_ACEOF
33135 /* confdefs.h. */
33136 _ACEOF
33137 cat confdefs.h >>conftest.$ac_ext
33138 cat >>conftest.$ac_ext <<_ACEOF
33139 /* end confdefs.h. */
33140 $ac_includes_default
33141 #include <zlib.h>
33142 _ACEOF
33143 rm -f conftest.$ac_objext
33144 if { (ac_try="$ac_compile"
33145 case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33148 esac
33149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
33151 ac_status=$?
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } && {
33157 test -z "$ac_c_werror_flag" ||
33158 test ! -s conftest.err
33159 } && test -s conftest.$ac_objext; then
33160 ac_header_compiler=yes
33161 else
33162 echo "$as_me: failed program was:" >&5
33163 sed 's/^/| /' conftest.$ac_ext >&5
33165 ac_header_compiler=no
33168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33170 echo "${ECHO_T}$ac_header_compiler" >&6; }
33172 # Is the header present?
33173 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33174 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33175 cat >conftest.$ac_ext <<_ACEOF
33176 /* confdefs.h. */
33177 _ACEOF
33178 cat confdefs.h >>conftest.$ac_ext
33179 cat >>conftest.$ac_ext <<_ACEOF
33180 /* end confdefs.h. */
33181 #include <zlib.h>
33182 _ACEOF
33183 if { (ac_try="$ac_cpp conftest.$ac_ext"
33184 case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33187 esac
33188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33190 ac_status=$?
33191 grep -v '^ *+' conftest.er1 >conftest.err
33192 rm -f conftest.er1
33193 cat conftest.err >&5
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); } >/dev/null && {
33196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33197 test ! -s conftest.err
33198 }; then
33199 ac_header_preproc=yes
33200 else
33201 echo "$as_me: failed program was:" >&5
33202 sed 's/^/| /' conftest.$ac_ext >&5
33204 ac_header_preproc=no
33207 rm -f conftest.err conftest.$ac_ext
33208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33209 echo "${ECHO_T}$ac_header_preproc" >&6; }
33211 # So? What about this header?
33212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33213 yes:no: )
33214 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33215 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33216 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33217 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33218 ac_header_preproc=yes
33220 no:yes:* )
33221 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33222 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33223 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33224 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33226 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33227 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33228 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33230 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33232 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33235 esac
33236 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33237 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33238 if test "${ac_cv_header_zlib_h+set}" = set; then
33239 echo $ECHO_N "(cached) $ECHO_C" >&6
33240 else
33241 ac_cv_header_zlib_h=$ac_header_preproc
33243 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33244 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33247 if test $ac_cv_header_zlib_h = yes; then
33248 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33249 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33250 if test "${ac_cv_lib_z_gzopen+set}" = set; then
33251 echo $ECHO_N "(cached) $ECHO_C" >&6
33252 else
33253 ac_check_lib_save_LIBS=$LIBS
33254 LIBS="-lz $LIBS"
33255 cat >conftest.$ac_ext <<_ACEOF
33256 /* confdefs.h. */
33257 _ACEOF
33258 cat confdefs.h >>conftest.$ac_ext
33259 cat >>conftest.$ac_ext <<_ACEOF
33260 /* end confdefs.h. */
33262 /* Override any GCC internal prototype to avoid an error.
33263 Use char because int might match the return type of a GCC
33264 builtin and then its argument prototype would still apply. */
33265 #ifdef __cplusplus
33266 extern "C"
33267 #endif
33268 char gzopen ();
33270 main ()
33272 return gzopen ();
33274 return 0;
33276 _ACEOF
33277 rm -f conftest.$ac_objext conftest$ac_exeext
33278 if { (ac_try="$ac_link"
33279 case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33282 esac
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_link") 2>conftest.er1
33285 ac_status=$?
33286 grep -v '^ *+' conftest.er1 >conftest.err
33287 rm -f conftest.er1
33288 cat conftest.err >&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } && {
33291 test -z "$ac_c_werror_flag" ||
33292 test ! -s conftest.err
33293 } && test -s conftest$ac_exeext &&
33294 $as_test_x conftest$ac_exeext; then
33295 ac_cv_lib_z_gzopen=yes
33296 else
33297 echo "$as_me: failed program was:" >&5
33298 sed 's/^/| /' conftest.$ac_ext >&5
33300 ac_cv_lib_z_gzopen=no
33303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33304 conftest$ac_exeext conftest.$ac_ext
33305 LIBS=$ac_check_lib_save_LIBS
33307 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33308 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33309 if test $ac_cv_lib_z_gzopen = yes; then
33310 cat >>confdefs.h <<\_ACEOF
33311 #define BX_HAVE_ZLIB 1
33312 _ACEOF
33320 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33321 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33322 # Check whether --enable-compressed-hd was given.
33323 if test "${enable_compressed_hd+set}" = set; then
33324 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33325 { echo "$as_me:$LINENO: result: yes" >&5
33326 echo "${ECHO_T}yes" >&6; }
33327 cat >>confdefs.h <<\_ACEOF
33328 #define BX_COMPRESSED_HD_SUPPORT 1
33329 _ACEOF
33331 LIBS="$LIBS -lz"
33332 else
33333 { echo "$as_me:$LINENO: result: no" >&5
33334 echo "${ECHO_T}no" >&6; }
33335 cat >>confdefs.h <<\_ACEOF
33336 #define BX_COMPRESSED_HD_SUPPORT 0
33337 _ACEOF
33340 else
33342 { echo "$as_me:$LINENO: result: no" >&5
33343 echo "${ECHO_T}no" >&6; }
33344 cat >>confdefs.h <<\_ACEOF
33345 #define BX_COMPRESSED_HD_SUPPORT 0
33346 _ACEOF
33354 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
33355 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33356 # Check whether --enable-ne2000 was given.
33357 if test "${enable_ne2000+set}" = set; then
33358 enableval=$enable_ne2000; if test "$enableval" = yes; then
33359 { echo "$as_me:$LINENO: result: yes" >&5
33360 echo "${ECHO_T}yes" >&6; }
33361 cat >>confdefs.h <<\_ACEOF
33362 #define BX_SUPPORT_NE2K 1
33363 _ACEOF
33365 NE2K_OBJS='ne2k.o'
33366 networking=yes
33367 else
33368 { echo "$as_me:$LINENO: result: no" >&5
33369 echo "${ECHO_T}no" >&6; }
33370 cat >>confdefs.h <<\_ACEOF
33371 #define BX_SUPPORT_NE2K 0
33372 _ACEOF
33374 NE2K_OBJS=''
33375 networking=no
33377 else
33379 { echo "$as_me:$LINENO: result: no" >&5
33380 echo "${ECHO_T}no" >&6; }
33381 cat >>confdefs.h <<\_ACEOF
33382 #define BX_SUPPORT_NE2K 0
33383 _ACEOF
33385 NE2K_OBJS=''
33386 networking=no
33393 { echo "$as_me:$LINENO: checking for ACPI support" >&5
33394 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33395 # Check whether --enable-acpi was given.
33396 if test "${enable_acpi+set}" = set; then
33397 enableval=$enable_acpi; if test "$enableval" = yes; then
33398 { echo "$as_me:$LINENO: result: yes" >&5
33399 echo "${ECHO_T}yes" >&6; }
33400 cat >>confdefs.h <<\_ACEOF
33401 #define BX_SUPPORT_ACPI 1
33402 _ACEOF
33404 else
33405 { echo "$as_me:$LINENO: result: no" >&5
33406 echo "${ECHO_T}no" >&6; }
33407 cat >>confdefs.h <<\_ACEOF
33408 #define BX_SUPPORT_ACPI 0
33409 _ACEOF
33412 else
33414 { echo "$as_me:$LINENO: result: no" >&5
33415 echo "${ECHO_T}no" >&6; }
33416 cat >>confdefs.h <<\_ACEOF
33417 #define BX_SUPPORT_ACPI 0
33418 _ACEOF
33426 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33427 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33428 # Check whether --enable-pci was given.
33429 if test "${enable_pci+set}" = set; then
33430 enableval=$enable_pci; if test "$enableval" = yes; then
33431 { echo "$as_me:$LINENO: result: yes" >&5
33432 echo "${ECHO_T}yes" >&6; }
33433 cat >>confdefs.h <<\_ACEOF
33434 #define BX_SUPPORT_PCI 1
33435 _ACEOF
33437 pci=1
33438 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
33439 else
33440 { echo "$as_me:$LINENO: result: no" >&5
33441 echo "${ECHO_T}no" >&6; }
33442 cat >>confdefs.h <<\_ACEOF
33443 #define BX_SUPPORT_PCI 0
33444 _ACEOF
33446 pci=0
33447 PCI_OBJ=''
33449 else
33451 { echo "$as_me:$LINENO: result: no" >&5
33452 echo "${ECHO_T}no" >&6; }
33453 cat >>confdefs.h <<\_ACEOF
33454 #define BX_SUPPORT_PCI 0
33455 _ACEOF
33457 pci=0
33458 PCI_OBJ=''
33466 # PCI host device support
33468 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33469 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33470 # Check whether --enable-pcidev was given.
33471 if test "${enable_pcidev+set}" = set; then
33472 enableval=$enable_pcidev;
33473 if test "$enableval" = "yes"; then
33474 { echo "$as_me:$LINENO: result: yes" >&5
33475 echo "${ECHO_T}yes" >&6; }
33476 if test "$pci" != "1"; then
33477 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33478 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33479 { (exit 1); exit 1; }; }
33481 case "$target" in
33482 *-linux*)
33483 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33484 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33485 linux_version=`uname -r`
33486 case "$linux_version" in
33487 2.4*)
33488 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33489 KERNEL_MODULE_SUFFIX="o"
33491 2.6*)
33492 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33493 KERNEL_MODULE_SUFFIX="ko"
33496 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33497 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33498 { (exit 1); exit 1; }; }
33500 esac
33501 KERNELDIR="/lib/modules/$linux_version/build"
33502 LSMOD="lsmod"
33503 INSMOD="insmod"
33504 RMMOD="rmmod"
33505 DEPMOD="depmod"
33515 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33516 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33517 { (exit 1); exit 1; }; }
33519 esac
33520 cat >>confdefs.h <<\_ACEOF
33521 #define BX_SUPPORT_PCIDEV 1
33522 _ACEOF
33524 PCI_OBJ="$PCI_OBJ pcidev.o"
33525 else
33526 { echo "$as_me:$LINENO: result: no" >&5
33527 echo "${ECHO_T}no" >&6; }
33528 cat >>confdefs.h <<\_ACEOF
33529 #define BX_SUPPORT_PCIDEV 0
33530 _ACEOF
33534 else
33536 { echo "$as_me:$LINENO: result: no" >&5
33537 echo "${ECHO_T}no" >&6; }
33538 cat >>confdefs.h <<\_ACEOF
33539 #define BX_SUPPORT_PCIDEV 0
33540 _ACEOF
33547 USBDEV_OBJS=''
33548 SCSI_OBJS=''
33549 { echo "$as_me:$LINENO: checking for limited USB support" >&5
33550 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
33551 # Check whether --enable-usb was given.
33552 if test "${enable_usb+set}" = set; then
33553 enableval=$enable_usb; if test "$enableval" = yes; then
33554 { echo "$as_me:$LINENO: result: yes" >&5
33555 echo "${ECHO_T}yes" >&6; }
33556 cat >>confdefs.h <<\_ACEOF
33557 #define BX_SUPPORT_PCIUSB 1
33558 _ACEOF
33560 PCI_OBJ="$PCI_OBJ pciusb.o"
33561 USBDEV_OBJS="usb_hid.o usb_msd.o"
33562 SCSI_OBJS="scsi_device.o"
33563 else
33564 { echo "$as_me:$LINENO: result: no" >&5
33565 echo "${ECHO_T}no" >&6; }
33566 cat >>confdefs.h <<\_ACEOF
33567 #define BX_SUPPORT_PCIUSB 0
33568 _ACEOF
33571 else
33573 { echo "$as_me:$LINENO: result: no" >&5
33574 echo "${ECHO_T}no" >&6; }
33575 cat >>confdefs.h <<\_ACEOF
33576 #define BX_SUPPORT_PCIUSB 0
33577 _ACEOF
33587 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33588 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33589 # Check whether --enable-pnic was given.
33590 if test "${enable_pnic+set}" = set; then
33591 enableval=$enable_pnic; if test "$enableval" = yes; then
33592 { echo "$as_me:$LINENO: result: yes" >&5
33593 echo "${ECHO_T}yes" >&6; }
33594 cat >>confdefs.h <<\_ACEOF
33595 #define BX_SUPPORT_PCIPNIC 1
33596 _ACEOF
33598 PCI_OBJ="$PCI_OBJ pcipnic.o"
33599 networking=yes
33600 else
33601 { echo "$as_me:$LINENO: result: no" >&5
33602 echo "${ECHO_T}no" >&6; }
33603 cat >>confdefs.h <<\_ACEOF
33604 #define BX_SUPPORT_PCIPNIC 0
33605 _ACEOF
33608 else
33610 { echo "$as_me:$LINENO: result: no" >&5
33611 echo "${ECHO_T}no" >&6; }
33612 cat >>confdefs.h <<\_ACEOF
33613 #define BX_SUPPORT_PCIPNIC 0
33614 _ACEOF
33621 NETLOW_OBJS=''
33622 if test "$networking" = yes; then
33623 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
33624 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33625 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33626 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33627 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33630 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33631 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33632 else
33633 # Is the header compilable?
33634 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33635 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33636 cat >conftest.$ac_ext <<_ACEOF
33637 /* confdefs.h. */
33638 _ACEOF
33639 cat confdefs.h >>conftest.$ac_ext
33640 cat >>conftest.$ac_ext <<_ACEOF
33641 /* end confdefs.h. */
33642 $ac_includes_default
33643 #include <net/bpf.h>
33644 _ACEOF
33645 rm -f conftest.$ac_objext
33646 if { (ac_try="$ac_compile"
33647 case "(($ac_try" in
33648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33649 *) ac_try_echo=$ac_try;;
33650 esac
33651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33652 (eval "$ac_compile") 2>conftest.er1
33653 ac_status=$?
33654 grep -v '^ *+' conftest.er1 >conftest.err
33655 rm -f conftest.er1
33656 cat conftest.err >&5
33657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658 (exit $ac_status); } && {
33659 test -z "$ac_c_werror_flag" ||
33660 test ! -s conftest.err
33661 } && test -s conftest.$ac_objext; then
33662 ac_header_compiler=yes
33663 else
33664 echo "$as_me: failed program was:" >&5
33665 sed 's/^/| /' conftest.$ac_ext >&5
33667 ac_header_compiler=no
33670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33672 echo "${ECHO_T}$ac_header_compiler" >&6; }
33674 # Is the header present?
33675 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33676 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33677 cat >conftest.$ac_ext <<_ACEOF
33678 /* confdefs.h. */
33679 _ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h. */
33683 #include <net/bpf.h>
33684 _ACEOF
33685 if { (ac_try="$ac_cpp conftest.$ac_ext"
33686 case "(($ac_try" in
33687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33688 *) ac_try_echo=$ac_try;;
33689 esac
33690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33692 ac_status=$?
33693 grep -v '^ *+' conftest.er1 >conftest.err
33694 rm -f conftest.er1
33695 cat conftest.err >&5
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); } >/dev/null && {
33698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33699 test ! -s conftest.err
33700 }; then
33701 ac_header_preproc=yes
33702 else
33703 echo "$as_me: failed program was:" >&5
33704 sed 's/^/| /' conftest.$ac_ext >&5
33706 ac_header_preproc=no
33709 rm -f conftest.err conftest.$ac_ext
33710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33711 echo "${ECHO_T}$ac_header_preproc" >&6; }
33713 # So? What about this header?
33714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33715 yes:no: )
33716 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33717 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33718 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
33719 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
33720 ac_header_preproc=yes
33722 no:yes:* )
33723 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33724 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33725 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
33726 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
33727 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33728 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33729 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
33730 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
33731 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
33732 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
33733 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33734 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33737 esac
33738 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33739 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33740 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33741 echo $ECHO_N "(cached) $ECHO_C" >&6
33742 else
33743 ac_cv_header_net_bpf_h=$ac_header_preproc
33745 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33746 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33749 if test $ac_cv_header_net_bpf_h = yes; then
33750 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33754 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33755 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33756 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33757 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33760 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33761 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33762 else
33763 # Is the header compilable?
33764 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33765 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33766 cat >conftest.$ac_ext <<_ACEOF
33767 /* confdefs.h. */
33768 _ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33772 $ac_includes_default
33773 #include <netpacket/packet.h>
33774 _ACEOF
33775 rm -f conftest.$ac_objext
33776 if { (ac_try="$ac_compile"
33777 case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_compile") 2>conftest.er1
33783 ac_status=$?
33784 grep -v '^ *+' conftest.er1 >conftest.err
33785 rm -f conftest.er1
33786 cat conftest.err >&5
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); } && {
33789 test -z "$ac_c_werror_flag" ||
33790 test ! -s conftest.err
33791 } && test -s conftest.$ac_objext; then
33792 ac_header_compiler=yes
33793 else
33794 echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33797 ac_header_compiler=no
33800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33802 echo "${ECHO_T}$ac_header_compiler" >&6; }
33804 # Is the header present?
33805 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
33806 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
33807 cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h. */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h. */
33813 #include <netpacket/packet.h>
33814 _ACEOF
33815 if { (ac_try="$ac_cpp conftest.$ac_ext"
33816 case "(($ac_try" in
33817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818 *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33822 ac_status=$?
33823 grep -v '^ *+' conftest.er1 >conftest.err
33824 rm -f conftest.er1
33825 cat conftest.err >&5
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); } >/dev/null && {
33828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33829 test ! -s conftest.err
33830 }; then
33831 ac_header_preproc=yes
33832 else
33833 echo "$as_me: failed program was:" >&5
33834 sed 's/^/| /' conftest.$ac_ext >&5
33836 ac_header_preproc=no
33839 rm -f conftest.err conftest.$ac_ext
33840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33841 echo "${ECHO_T}$ac_header_preproc" >&6; }
33843 # So? What about this header?
33844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33845 yes:no: )
33846 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
33847 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33848 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
33849 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
33850 ac_header_preproc=yes
33852 no:yes:* )
33853 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
33854 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
33855 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
33856 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
33857 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
33858 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
33860 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
33861 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
33862 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
33863 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
33864 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
33867 esac
33868 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33869 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33870 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33871 echo $ECHO_N "(cached) $ECHO_C" >&6
33872 else
33873 ac_cv_header_netpacket_packet_h=$ac_header_preproc
33875 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33876 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33879 if test $ac_cv_header_netpacket_packet_h = yes; then
33880 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
33884 case "$target" in
33885 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
33886 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
33888 *-macosx* | *-darwin*)
33889 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
33890 cat >>confdefs.h <<\_ACEOF
33891 #define HAVE_TUNTAP 1
33892 _ACEOF
33896 { echo "$as_me:$LINENO: checking for net/if.h" >&5
33897 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
33898 if test "${ac_cv_header_net_if_h+set}" = set; then
33899 echo $ECHO_N "(cached) $ECHO_C" >&6
33900 else
33901 cat >conftest.$ac_ext <<_ACEOF
33902 /* confdefs.h. */
33903 _ACEOF
33904 cat confdefs.h >>conftest.$ac_ext
33905 cat >>conftest.$ac_ext <<_ACEOF
33906 /* end confdefs.h. */
33908 #include <sys/types.h>
33909 #include <sys/socket.h>
33912 #include <net/if.h>
33913 _ACEOF
33914 rm -f conftest.$ac_objext
33915 if { (ac_try="$ac_compile"
33916 case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33919 esac
33920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
33922 ac_status=$?
33923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } && {
33928 test -z "$ac_c_werror_flag" ||
33929 test ! -s conftest.err
33930 } && test -s conftest.$ac_objext; then
33931 ac_cv_header_net_if_h=yes
33932 else
33933 echo "$as_me: failed program was:" >&5
33934 sed 's/^/| /' conftest.$ac_ext >&5
33936 ac_cv_header_net_if_h=no
33939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33941 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
33942 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
33943 if test $ac_cv_header_net_if_h = yes; then
33945 use_ethertap=yes
33946 cat >>confdefs.h <<\_ACEOF
33947 #define BX_HAVE_NET_IF_H 1
33948 _ACEOF
33954 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
33955 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
33956 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
33957 echo $ECHO_N "(cached) $ECHO_C" >&6
33958 else
33959 cat >conftest.$ac_ext <<_ACEOF
33960 /* confdefs.h. */
33961 _ACEOF
33962 cat confdefs.h >>conftest.$ac_ext
33963 cat >>conftest.$ac_ext <<_ACEOF
33964 /* end confdefs.h. */
33966 #include <asm/types.h>
33967 #include <sys/socket.h>
33970 #include <linux/netlink.h>
33971 _ACEOF
33972 rm -f conftest.$ac_objext
33973 if { (ac_try="$ac_compile"
33974 case "(($ac_try" in
33975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976 *) ac_try_echo=$ac_try;;
33977 esac
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979 (eval "$ac_compile") 2>conftest.er1
33980 ac_status=$?
33981 grep -v '^ *+' conftest.er1 >conftest.err
33982 rm -f conftest.er1
33983 cat conftest.err >&5
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); } && {
33986 test -z "$ac_c_werror_flag" ||
33987 test ! -s conftest.err
33988 } && test -s conftest.$ac_objext; then
33989 ac_cv_header_linux_netlink_h=yes
33990 else
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33994 ac_cv_header_linux_netlink_h=no
33997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33999 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34000 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34001 if test $ac_cv_header_linux_netlink_h = yes; then
34003 use_ethertap=yes
34009 if test "$use_ethertap" = yes; then
34010 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34011 cat >>confdefs.h <<\_ACEOF
34012 #define HAVE_ETHERTAP 1
34013 _ACEOF
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_VDE 1
34017 _ACEOF
34021 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34022 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34023 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34024 echo $ECHO_N "(cached) $ECHO_C" >&6
34025 else
34026 cat >conftest.$ac_ext <<_ACEOF
34027 /* confdefs.h. */
34028 _ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h. */
34033 #include <sys/types.h>
34034 #include <sys/socket.h>
34035 #include <net/if.h>
34038 #include <net/if_tun.h>
34039 _ACEOF
34040 rm -f conftest.$ac_objext
34041 if { (ac_try="$ac_compile"
34042 case "(($ac_try" in
34043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34044 *) ac_try_echo=$ac_try;;
34045 esac
34046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34047 (eval "$ac_compile") 2>conftest.er1
34048 ac_status=$?
34049 grep -v '^ *+' conftest.er1 >conftest.err
34050 rm -f conftest.er1
34051 cat conftest.err >&5
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); } && {
34054 test -z "$ac_c_werror_flag" ||
34055 test ! -s conftest.err
34056 } && test -s conftest.$ac_objext; then
34057 ac_cv_header_net_if_tun_h=yes
34058 else
34059 echo "$as_me: failed program was:" >&5
34060 sed 's/^/| /' conftest.$ac_ext >&5
34062 ac_cv_header_net_if_tun_h=no
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34067 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34068 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34069 if test $ac_cv_header_net_if_tun_h = yes; then
34071 use_tuntap=yes
34076 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34077 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34078 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34079 echo $ECHO_N "(cached) $ECHO_C" >&6
34080 else
34081 cat >conftest.$ac_ext <<_ACEOF
34082 /* confdefs.h. */
34083 _ACEOF
34084 cat confdefs.h >>conftest.$ac_ext
34085 cat >>conftest.$ac_ext <<_ACEOF
34086 /* end confdefs.h. */
34088 #include <asm/types.h>
34089 #include <sys/socket.h>
34092 #include <linux/if_tun.h>
34093 _ACEOF
34094 rm -f conftest.$ac_objext
34095 if { (ac_try="$ac_compile"
34096 case "(($ac_try" in
34097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098 *) ac_try_echo=$ac_try;;
34099 esac
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101 (eval "$ac_compile") 2>conftest.er1
34102 ac_status=$?
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } && {
34108 test -z "$ac_c_werror_flag" ||
34109 test ! -s conftest.err
34110 } && test -s conftest.$ac_objext; then
34111 ac_cv_header_linux_if_tun_h=yes
34112 else
34113 echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34116 ac_cv_header_linux_if_tun_h=no
34119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34121 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34122 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34123 if test $ac_cv_header_linux_if_tun_h = yes; then
34125 use_tuntap=yes
34130 if test "$use_tuntap" = yes; then
34131 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34132 cat >>confdefs.h <<\_ACEOF
34133 #define HAVE_TUNTAP 1
34134 _ACEOF
34139 esac
34140 cat >>confdefs.h <<\_ACEOF
34141 #define BX_NETWORKING 1
34142 _ACEOF
34144 else
34145 cat >>confdefs.h <<\_ACEOF
34146 #define BX_NETWORKING 0
34147 _ACEOF
34154 { echo "$as_me:$LINENO: checking for large pages support" >&5
34155 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34156 # Check whether --enable-large-pages was given.
34157 if test "${enable_large_pages+set}" = set; then
34158 enableval=$enable_large_pages; if test "$enableval" = yes; then
34159 { echo "$as_me:$LINENO: result: yes" >&5
34160 echo "${ECHO_T}yes" >&6; }
34161 cat >>confdefs.h <<\_ACEOF
34162 #define BX_SUPPORT_LARGE_PAGES 1
34163 _ACEOF
34165 support_large_pages=1
34166 else
34167 { echo "$as_me:$LINENO: result: no" >&5
34168 echo "${ECHO_T}no" >&6; }
34169 cat >>confdefs.h <<\_ACEOF
34170 #define BX_SUPPORT_LARGE_PAGES 0
34171 _ACEOF
34173 support_large_pages=0
34175 else
34177 if test "$bx_cpu_level" -gt 4; then
34178 { echo "$as_me:$LINENO: result: yes" >&5
34179 echo "${ECHO_T}yes" >&6; }
34180 cat >>confdefs.h <<\_ACEOF
34181 #define BX_SUPPORT_LARGE_PAGES 1
34182 _ACEOF
34184 support_large_pages=1
34185 else
34186 { echo "$as_me:$LINENO: result: no" >&5
34187 echo "${ECHO_T}no" >&6; }
34188 cat >>confdefs.h <<\_ACEOF
34189 #define BX_SUPPORT_LARGE_PAGES 0
34190 _ACEOF
34192 support_large_pages=0
34200 { echo "$as_me:$LINENO: checking for PAE support" >&5
34201 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34202 # Check whether --enable-pae was given.
34203 if test "${enable_pae+set}" = set; then
34204 enableval=$enable_pae; if test "$enableval" = yes; then
34205 { echo "$as_me:$LINENO: result: yes" >&5
34206 echo "${ECHO_T}yes" >&6; }
34207 cat >>confdefs.h <<\_ACEOF
34208 #define BX_SUPPORT_PAE 1
34209 _ACEOF
34211 support_pae=1
34212 else
34213 { echo "$as_me:$LINENO: result: no" >&5
34214 echo "${ECHO_T}no" >&6; }
34215 cat >>confdefs.h <<\_ACEOF
34216 #define BX_SUPPORT_PAE 0
34217 _ACEOF
34219 support_pae=0
34221 else
34223 if test "$bx_cpu_level" -gt 5; then
34224 { echo "$as_me:$LINENO: result: yes" >&5
34225 echo "${ECHO_T}yes" >&6; }
34226 cat >>confdefs.h <<\_ACEOF
34227 #define BX_SUPPORT_PAE 1
34228 _ACEOF
34230 support_pae=1
34231 else
34232 { echo "$as_me:$LINENO: result: no" >&5
34233 echo "${ECHO_T}no" >&6; }
34234 cat >>confdefs.h <<\_ACEOF
34235 #define BX_SUPPORT_PAE 0
34236 _ACEOF
34238 support_pae=0
34245 { echo "$as_me:$LINENO: checking for global pages support" >&5
34246 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34247 # Check whether --enable-global-pages was given.
34248 if test "${enable_global_pages+set}" = set; then
34249 enableval=$enable_global_pages; if test "$enableval" = yes; then
34250 { echo "$as_me:$LINENO: result: yes" >&5
34251 echo "${ECHO_T}yes" >&6; }
34252 cat >>confdefs.h <<\_ACEOF
34253 #define BX_SUPPORT_GLOBAL_PAGES 1
34254 _ACEOF
34256 support_global_pages=1
34257 else
34258 { echo "$as_me:$LINENO: result: no" >&5
34259 echo "${ECHO_T}no" >&6; }
34260 cat >>confdefs.h <<\_ACEOF
34261 #define BX_SUPPORT_GLOBAL_PAGES 0
34262 _ACEOF
34264 support_global_pages=0
34266 else
34268 if test "$bx_cpu_level" -gt 5; then
34269 # enable by default
34270 { echo "$as_me:$LINENO: result: yes" >&5
34271 echo "${ECHO_T}yes" >&6; }
34272 cat >>confdefs.h <<\_ACEOF
34273 #define BX_SUPPORT_GLOBAL_PAGES 1
34274 _ACEOF
34276 support_global_pages=1
34277 else
34278 { echo "$as_me:$LINENO: result: no" >&5
34279 echo "${ECHO_T}no" >&6; }
34280 cat >>confdefs.h <<\_ACEOF
34281 #define BX_SUPPORT_GLOBAL_PAGES 0
34282 _ACEOF
34284 support_global_pages=0
34291 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34292 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34293 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34294 { (exit 1); exit 1; }; }
34297 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34298 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34299 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34300 { (exit 1); exit 1; }; }
34303 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34304 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34305 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34306 { (exit 1); exit 1; }; }
34309 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
34310 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34311 # Check whether --enable-mtrr was given.
34312 if test "${enable_mtrr+set}" = set; then
34313 enableval=$enable_mtrr; if test "$enableval" = yes; then
34314 { echo "$as_me:$LINENO: result: yes" >&5
34315 echo "${ECHO_T}yes" >&6; }
34316 cat >>confdefs.h <<\_ACEOF
34317 #define BX_SUPPORT_MTRR 1
34318 _ACEOF
34320 else
34321 { echo "$as_me:$LINENO: result: no" >&5
34322 echo "${ECHO_T}no" >&6; }
34323 cat >>confdefs.h <<\_ACEOF
34324 #define BX_SUPPORT_MTRR 0
34325 _ACEOF
34328 else
34330 if test "$bx_cpu_level" -gt 5; then
34331 # enable by default
34332 { echo "$as_me:$LINENO: result: yes" >&5
34333 echo "${ECHO_T}yes" >&6; }
34334 cat >>confdefs.h <<\_ACEOF
34335 #define BX_SUPPORT_MTRR 1
34336 _ACEOF
34338 else
34339 { echo "$as_me:$LINENO: result: no" >&5
34340 echo "${ECHO_T}no" >&6; }
34341 cat >>confdefs.h <<\_ACEOF
34342 #define BX_SUPPORT_MTRR 0
34343 _ACEOF
34351 { echo "$as_me:$LINENO: checking for guest to host TLB support" >&5
34352 echo $ECHO_N "checking for guest to host TLB support... $ECHO_C" >&6; }
34353 # Check whether --enable-guest2host-tlb was given.
34354 if test "${enable_guest2host_tlb+set}" = set; then
34355 enableval=$enable_guest2host_tlb; if test "$enableval" = yes; then
34356 { echo "$as_me:$LINENO: result: yes" >&5
34357 echo "${ECHO_T}yes" >&6; }
34358 speedup_guest2host_tlb=1
34359 else
34360 { echo "$as_me:$LINENO: result: no" >&5
34361 echo "${ECHO_T}no" >&6; }
34362 speedup_guest2host_tlb=0
34364 else
34366 { echo "$as_me:$LINENO: result: no" >&5
34367 echo "${ECHO_T}no" >&6; }
34368 speedup_guest2host_tlb=0
34374 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34375 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34376 # Check whether --enable-repeat-speedups was given.
34377 if test "${enable_repeat_speedups+set}" = set; then
34378 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34379 { echo "$as_me:$LINENO: result: yes" >&5
34380 echo "${ECHO_T}yes" >&6; }
34381 speedup_repeat=1
34382 else
34383 { echo "$as_me:$LINENO: result: no" >&5
34384 echo "${ECHO_T}no" >&6; }
34385 speedup_repeat=0
34387 else
34389 { echo "$as_me:$LINENO: result: no" >&5
34390 echo "${ECHO_T}no" >&6; }
34391 speedup_repeat=0
34397 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34398 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34399 # Check whether --enable-trace-cache was given.
34400 if test "${enable_trace_cache+set}" = set; then
34401 enableval=$enable_trace_cache; if test "$enableval" = yes; then
34402 { echo "$as_me:$LINENO: result: yes" >&5
34403 echo "${ECHO_T}yes" >&6; }
34404 speedup_TraceCache=1
34405 else
34406 { echo "$as_me:$LINENO: result: no" >&5
34407 echo "${ECHO_T}no" >&6; }
34408 speedup_TraceCache=0
34410 else
34412 if test "$speedup_TraceCache " = 1; then
34413 { echo "$as_me:$LINENO: result: yes" >&5
34414 echo "${ECHO_T}yes" >&6; }
34415 speedup_TraceCache=1
34416 else
34417 { echo "$as_me:$LINENO: result: no" >&5
34418 echo "${ECHO_T}no" >&6; }
34419 speedup_TraceCache=0
34426 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
34427 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34428 # Check whether --enable-icache was given.
34429 if test "${enable_icache+set}" = set; then
34430 enableval=$enable_icache; if test "$enableval" = yes; then
34431 { echo "$as_me:$LINENO: result: yes" >&5
34432 echo "${ECHO_T}yes" >&6; }
34433 speedup_iCache=1
34434 else
34435 { echo "$as_me:$LINENO: result: no" >&5
34436 echo "${ECHO_T}no" >&6; }
34437 speedup_iCache=0
34439 else
34441 { echo "$as_me:$LINENO: result: no" >&5
34442 echo "${ECHO_T}no" >&6; }
34443 speedup_iCache=0
34449 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34450 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34451 # Check whether --enable-fast-function-calls was given.
34452 if test "${enable_fast_function_calls+set}" = set; then
34453 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34454 { echo "$as_me:$LINENO: result: yes" >&5
34455 echo "${ECHO_T}yes" >&6; }
34456 speedup_fastcall=1
34457 else
34458 { echo "$as_me:$LINENO: result: no" >&5
34459 echo "${ECHO_T}no" >&6; }
34460 speedup_fastcall=0
34462 else
34464 { echo "$as_me:$LINENO: result: no" >&5
34465 echo "${ECHO_T}no" >&6; }
34466 speedup_fastcall=0
34472 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34473 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34474 # Check whether --enable-host-specific-asms was given.
34475 if test "${enable_host_specific_asms+set}" = set; then
34476 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34477 { echo "$as_me:$LINENO: result: yes" >&5
34478 echo "${ECHO_T}yes" >&6; }
34479 speedup_host_specific_asms=1
34480 else
34481 { echo "$as_me:$LINENO: result: no" >&5
34482 echo "${ECHO_T}no" >&6; }
34483 speedup_host_specific_asms=0
34485 else
34487 { echo "$as_me:$LINENO: result: no" >&5
34488 echo "${ECHO_T}no" >&6; }
34489 speedup_host_specific_asms=0
34495 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34496 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34497 # Check whether --enable-ignore-bad-msr was given.
34498 if test "${enable_ignore_bad_msr+set}" = set; then
34499 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34500 { echo "$as_me:$LINENO: result: yes" >&5
34501 echo "${ECHO_T}yes" >&6; }
34502 cat >>confdefs.h <<\_ACEOF
34503 #define BX_IGNORE_BAD_MSR 1
34504 _ACEOF
34506 else
34507 { echo "$as_me:$LINENO: result: no" >&5
34508 echo "${ECHO_T}no" >&6; }
34509 cat >>confdefs.h <<\_ACEOF
34510 #define BX_IGNORE_BAD_MSR 0
34511 _ACEOF
34514 else
34516 { echo "$as_me:$LINENO: result: yes" >&5
34517 echo "${ECHO_T}yes" >&6; }
34518 cat >>confdefs.h <<\_ACEOF
34519 #define BX_IGNORE_BAD_MSR 1
34520 _ACEOF
34527 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
34528 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34529 # Check whether --enable-port-e9-hack was given.
34530 if test "${enable_port_e9_hack+set}" = set; then
34531 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34532 { echo "$as_me:$LINENO: result: yes" >&5
34533 echo "${ECHO_T}yes" >&6; }
34534 cat >>confdefs.h <<\_ACEOF
34535 #define BX_PORT_E9_HACK 1
34536 _ACEOF
34538 else
34539 { echo "$as_me:$LINENO: result: no" >&5
34540 echo "${ECHO_T}no" >&6; }
34541 cat >>confdefs.h <<\_ACEOF
34542 #define BX_PORT_E9_HACK 0
34543 _ACEOF
34546 else
34548 { echo "$as_me:$LINENO: result: yes" >&5
34549 echo "${ECHO_T}yes" >&6; }
34550 cat >>confdefs.h <<\_ACEOF
34551 #define BX_PORT_E9_HACK 1
34552 _ACEOF
34559 { echo "$as_me:$LINENO: checking show IPS" >&5
34560 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34561 # Check whether --enable-show-ips was given.
34562 if test "${enable_show_ips+set}" = set; then
34563 enableval=$enable_show_ips; if test "$enableval" = yes; then
34564 { echo "$as_me:$LINENO: result: yes" >&5
34565 echo "${ECHO_T}yes" >&6; }
34566 cat >>confdefs.h <<\_ACEOF
34567 #define BX_SHOW_IPS 1
34568 _ACEOF
34570 else
34571 { echo "$as_me:$LINENO: result: no" >&5
34572 echo "${ECHO_T}no" >&6; }
34573 cat >>confdefs.h <<\_ACEOF
34574 #define BX_SHOW_IPS 0
34575 _ACEOF
34578 else
34580 { echo "$as_me:$LINENO: result: no" >&5
34581 echo "${ECHO_T}no" >&6; }
34582 cat >>confdefs.h <<\_ACEOF
34583 #define BX_SHOW_IPS 0
34584 _ACEOF
34591 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34592 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34593 # Check whether --enable-cpp was given.
34594 if test "${enable_cpp+set}" = set; then
34595 enableval=$enable_cpp; if test "$enableval" = yes; then
34596 { echo "$as_me:$LINENO: result: yes" >&5
34597 echo "${ECHO_T}yes" >&6; }
34598 SUFFIX_LINE='.SUFFIXES: .cpp'
34599 CPP_SUFFIX='cpp'
34600 else
34601 { echo "$as_me:$LINENO: result: no" >&5
34602 echo "${ECHO_T}no" >&6; }
34603 SUFFIX_LINE='.SUFFIXES: .cc'
34604 CPP_SUFFIX='cc'
34606 else
34608 { echo "$as_me:$LINENO: result: no" >&5
34609 echo "${ECHO_T}no" >&6; }
34610 SUFFIX_LINE='.SUFFIXES: .cc'
34611 CPP_SUFFIX='cc'
34619 if test "$enable_cpp" = yes; then
34620 echo "moving .cc source files to .cpp"
34621 sourcefiles=`find . -name "*.cc" -print`
34622 if test "$sourcefiles" != ""; then
34623 for ccname in $sourcefiles
34625 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34626 echo "mv $ccname $cppname"
34627 mv $ccname $cppname
34628 done
34629 else
34630 echo "no more .cc source files to rename"
34636 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34637 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34638 # Check whether --enable-debugger was given.
34639 if test "${enable_debugger+set}" = set; then
34640 enableval=$enable_debugger; if test "$enableval" = yes; then
34641 { echo "$as_me:$LINENO: result: yes" >&5
34642 echo "${ECHO_T}yes" >&6; }
34643 cat >>confdefs.h <<\_ACEOF
34644 #define BX_DEBUGGER 1
34645 _ACEOF
34647 DEBUGGER_VAR='$(DEBUGGER_LIB)'
34648 bx_debugger=1
34649 else
34650 { echo "$as_me:$LINENO: result: no" >&5
34651 echo "${ECHO_T}no" >&6; }
34652 cat >>confdefs.h <<\_ACEOF
34653 #define BX_DEBUGGER 0
34654 _ACEOF
34656 DEBUGGER_VAR=''
34657 bx_debugger=0
34660 else
34662 { echo "$as_me:$LINENO: result: no" >&5
34663 echo "${ECHO_T}no" >&6; }
34664 cat >>confdefs.h <<\_ACEOF
34665 #define BX_DEBUGGER 0
34666 _ACEOF
34668 DEBUGGER_VAR=''
34669 bx_debugger=0
34676 { echo "$as_me:$LINENO: checking for external debugger" >&5
34677 echo $ECHO_N "checking for external debugger... $ECHO_C" >&6; }
34678 EXT_DEBUG_OBJS=''
34679 # Check whether --enable-external-debugger was given.
34680 if test "${enable_external_debugger+set}" = set; then
34681 enableval=$enable_external_debugger; if test "$enableval" = yes; then
34682 case $target in
34683 *-pc-windows* | *-cygwin* | *-mingw32*)
34684 { echo "$as_me:$LINENO: result: yes" >&5
34685 echo "${ECHO_T}yes" >&6; }
34686 cat >>confdefs.h <<\_ACEOF
34687 #define BX_EXTERNAL_DEBUGGER 1
34688 _ACEOF
34690 EXT_DEBUG_OBJS=extdb.o
34693 echo "ERROR: external debugger is currently supported on win32 only"
34694 exit 1
34696 esac
34697 else
34698 { echo "$as_me:$LINENO: result: no" >&5
34699 echo "${ECHO_T}no" >&6; }
34701 else
34703 { echo "$as_me:$LINENO: result: no" >&5
34704 echo "${ECHO_T}no" >&6; }
34710 { echo "$as_me:$LINENO: checking for disassembler support" >&5
34711 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34712 # Check whether --enable-disasm was given.
34713 if test "${enable_disasm+set}" = set; then
34714 enableval=$enable_disasm; if test "$enableval" = yes; then
34715 { echo "$as_me:$LINENO: result: yes" >&5
34716 echo "${ECHO_T}yes" >&6; }
34717 cat >>confdefs.h <<\_ACEOF
34718 #define BX_DISASM 1
34719 _ACEOF
34721 DISASM_VAR='$(DISASM_LIB)'
34722 else
34723 { echo "$as_me:$LINENO: result: no" >&5
34724 echo "${ECHO_T}no" >&6; }
34725 if test "$bx_debugger" = 1; then
34726 echo "ERROR: debugger is enabled, so --enable-disasm is required"
34727 exit 1
34729 cat >>confdefs.h <<\_ACEOF
34730 #define BX_DISASM 0
34731 _ACEOF
34733 DISASM_VAR=''
34735 else
34737 { echo "$as_me:$LINENO: result: yes" >&5
34738 echo "${ECHO_T}yes" >&6; }
34739 cat >>confdefs.h <<\_ACEOF
34740 #define BX_DISASM 1
34741 _ACEOF
34743 DISASM_VAR='$(DISASM_LIB)'
34749 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
34750 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
34751 # Check whether --enable-all-optimizations was given.
34752 if test "${enable_all_optimizations+set}" = set; then
34753 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
34754 { echo "$as_me:$LINENO: result: yes" >&5
34755 echo "${ECHO_T}yes" >&6; }
34756 speedups_all=1
34757 else
34758 { echo "$as_me:$LINENO: result: no" >&5
34759 echo "${ECHO_T}no" >&6; }
34760 speedups_all=0
34763 else
34765 { echo "$as_me:$LINENO: result: no" >&5
34766 echo "${ECHO_T}no" >&6; }
34767 speedups_all=0
34774 # Optimizations section. Decide what the status of various optimizations
34775 # should be based on configure choices and other factors.
34778 if test "$speedups_all" = 1; then
34779 # Configure requested to force all options enabled.
34780 speedup_guest2host_tlb=1
34781 speedup_repeat=1
34782 speedup_iCache=1
34783 speedup_TraceCache=1
34784 speedup_fastcall=1
34787 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
34788 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
34789 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
34790 { (exit 1); exit 1; }; }
34793 if test "$speedup_guest2host_tlb" = 1; then
34794 cat >>confdefs.h <<\_ACEOF
34795 #define BX_SupportGuest2HostTLB 1
34796 _ACEOF
34798 else
34799 cat >>confdefs.h <<\_ACEOF
34800 #define BX_SupportGuest2HostTLB 0
34801 _ACEOF
34805 if test "$speedup_repeat" = 1; then
34806 cat >>confdefs.h <<\_ACEOF
34807 #define BX_SupportRepeatSpeedups 1
34808 _ACEOF
34810 else
34811 cat >>confdefs.h <<\_ACEOF
34812 #define BX_SupportRepeatSpeedups 0
34813 _ACEOF
34817 if test "$speedup_iCache" = 1; then
34818 cat >>confdefs.h <<\_ACEOF
34819 #define BX_SUPPORT_ICACHE 1
34820 _ACEOF
34822 else
34823 cat >>confdefs.h <<\_ACEOF
34824 #define BX_SUPPORT_ICACHE 0
34825 _ACEOF
34829 if test "$speedup_host_specific_asms" = 1; then
34830 cat >>confdefs.h <<\_ACEOF
34831 #define BX_SupportHostAsms 1
34832 _ACEOF
34834 else
34835 cat >>confdefs.h <<\_ACEOF
34836 #define BX_SupportHostAsms 0
34837 _ACEOF
34841 if test "$speedup_fastcall" = 1; then
34842 cat >>confdefs.h <<\_ACEOF
34843 #define BX_FAST_FUNC_CALL 1
34844 _ACEOF
34846 else
34847 cat >>confdefs.h <<\_ACEOF
34848 #define BX_FAST_FUNC_CALL 0
34849 _ACEOF
34853 if test "$speedup_TraceCache" = 1; then
34854 cat >>confdefs.h <<\_ACEOF
34855 #define BX_SUPPORT_TRACE_CACHE 1
34856 _ACEOF
34858 else
34859 cat >>confdefs.h <<\_ACEOF
34860 #define BX_SUPPORT_TRACE_CACHE 0
34861 _ACEOF
34866 READLINE_LIB=""
34867 rl_without_curses_ok=no
34868 rl_with_curses_ok=no
34870 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
34871 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
34872 # Check whether --enable-readline was given.
34873 if test "${enable_readline+set}" = set; then
34874 enableval=$enable_readline; if test "$enableval" = yes; then
34875 { echo "$as_me:$LINENO: result: yes" >&5
34876 echo "${ECHO_T}yes" >&6; }
34877 want_readline=yes
34878 else
34879 { echo "$as_me:$LINENO: result: no" >&5
34880 echo "${ECHO_T}no" >&6; }
34881 want_readline=no
34883 else
34885 { echo "$as_me:$LINENO: result: yes" >&5
34886 echo "${ECHO_T}yes" >&6; }
34887 want_readline=yes
34893 use_readline=0
34894 { echo "$as_me:$LINENO: checking whether to use readline" >&5
34895 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
34896 if test "$want_readline" = yes; then
34897 if test "$bx_debugger" = 1; then
34899 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
34900 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
34901 OLD_LIBS=$LIBS
34902 LIBS="$LIBS -lreadline"
34903 if test "$cross_compiling" = yes; then
34904 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34905 See \`config.log' for more details." >&5
34906 echo "$as_me: error: cannot run test program while cross compiling
34907 See \`config.log' for more details." >&2;}
34908 { (exit 1); exit 1; }; }
34909 else
34910 cat >conftest.$ac_ext <<_ACEOF
34911 /* confdefs.h. */
34912 _ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h. */
34917 #include <stdio.h>
34918 #include <readline/readline.h>
34919 int main() { rl_initialize(); exit(0); }
34921 _ACEOF
34922 rm -f conftest$ac_exeext
34923 if { (ac_try="$ac_link"
34924 case "(($ac_try" in
34925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34926 *) ac_try_echo=$ac_try;;
34927 esac
34928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34929 (eval "$ac_link") 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34933 { (case "(($ac_try" in
34934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34935 *) ac_try_echo=$ac_try;;
34936 esac
34937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34938 (eval "$ac_try") 2>&5
34939 ac_status=$?
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); }; }; then
34942 { echo "$as_me:$LINENO: result: yes" >&5
34943 echo "${ECHO_T}yes" >&6; }
34944 rl_without_curses_ok=yes
34945 else
34946 echo "$as_me: program exited with status $ac_status" >&5
34947 echo "$as_me: failed program was:" >&5
34948 sed 's/^/| /' conftest.$ac_ext >&5
34950 ( exit $ac_status )
34951 { echo "$as_me:$LINENO: result: no" >&5
34952 echo "${ECHO_T}no" >&6; }
34955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34959 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
34960 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
34961 LIBS="$LIBS -lcurses"
34962 if test "$cross_compiling" = yes; then
34963 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34964 See \`config.log' for more details." >&5
34965 echo "$as_me: error: cannot run test program while cross compiling
34966 See \`config.log' for more details." >&2;}
34967 { (exit 1); exit 1; }; }
34968 else
34969 cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h. */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34976 #include <stdio.h>
34977 #include <readline/readline.h>
34978 int main() { rl_initialize(); exit(0); }
34980 _ACEOF
34981 rm -f conftest$ac_exeext
34982 if { (ac_try="$ac_link"
34983 case "(($ac_try" in
34984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34985 *) ac_try_echo=$ac_try;;
34986 esac
34987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34988 (eval "$ac_link") 2>&5
34989 ac_status=$?
34990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34992 { (case "(($ac_try" in
34993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34994 *) ac_try_echo=$ac_try;;
34995 esac
34996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34997 (eval "$ac_try") 2>&5
34998 ac_status=$?
34999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000 (exit $ac_status); }; }; then
35001 { echo "$as_me:$LINENO: result: yes" >&5
35002 echo "${ECHO_T}yes" >&6; }
35003 rl_with_curses_ok=yes
35004 else
35005 echo "$as_me: program exited with status $ac_status" >&5
35006 echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35009 ( exit $ac_status )
35010 { echo "$as_me:$LINENO: result: no" >&5
35011 echo "${ECHO_T}no" >&6; }
35014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35018 LIBS=$OLD_LIBS
35020 if test "$rl_without_curses_ok" = yes; then
35021 { echo "$as_me:$LINENO: result: yes" >&5
35022 echo "${ECHO_T}yes" >&6; }
35023 cat >>confdefs.h <<\_ACEOF
35024 #define HAVE_LIBREADLINE 1
35025 _ACEOF
35027 READLINE_LIB="-lreadline"
35028 use_readline=1
35029 elif test "$rl_with_curses_ok" = yes; then
35030 { echo "$as_me:$LINENO: result: yes" >&5
35031 echo "${ECHO_T}yes" >&6; }
35032 cat >>confdefs.h <<\_ACEOF
35033 #define HAVE_LIBREADLINE 1
35034 _ACEOF
35036 READLINE_LIB="-lreadline -lcurses"
35037 use_readline=1
35038 else
35039 { echo "$as_me:$LINENO: result: no" >&5
35040 echo "${ECHO_T}no" >&6; }
35041 echo WARNING: The readline library was disabled because it was not found.
35043 else
35044 { echo "$as_me:$LINENO: result: no" >&5
35045 echo "${ECHO_T}no" >&6; }
35047 else
35048 { echo "$as_me:$LINENO: result: no" >&5
35049 echo "${ECHO_T}no" >&6; }
35053 if test "${ac_cv_header_readline_history_h+set}" = set; then
35054 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35055 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35056 if test "${ac_cv_header_readline_history_h+set}" = set; then
35057 echo $ECHO_N "(cached) $ECHO_C" >&6
35059 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35060 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35061 else
35062 # Is the header compilable?
35063 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
35064 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
35065 cat >conftest.$ac_ext <<_ACEOF
35066 /* confdefs.h. */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h. */
35071 $ac_includes_default
35072 #include <readline/history.h>
35073 _ACEOF
35074 rm -f conftest.$ac_objext
35075 if { (ac_try="$ac_compile"
35076 case "(($ac_try" in
35077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35078 *) ac_try_echo=$ac_try;;
35079 esac
35080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35081 (eval "$ac_compile") 2>conftest.er1
35082 ac_status=$?
35083 grep -v '^ *+' conftest.er1 >conftest.err
35084 rm -f conftest.er1
35085 cat conftest.err >&5
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); } && {
35088 test -z "$ac_c_werror_flag" ||
35089 test ! -s conftest.err
35090 } && test -s conftest.$ac_objext; then
35091 ac_header_compiler=yes
35092 else
35093 echo "$as_me: failed program was:" >&5
35094 sed 's/^/| /' conftest.$ac_ext >&5
35096 ac_header_compiler=no
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35100 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35101 echo "${ECHO_T}$ac_header_compiler" >&6; }
35103 # Is the header present?
35104 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
35105 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
35106 cat >conftest.$ac_ext <<_ACEOF
35107 /* confdefs.h. */
35108 _ACEOF
35109 cat confdefs.h >>conftest.$ac_ext
35110 cat >>conftest.$ac_ext <<_ACEOF
35111 /* end confdefs.h. */
35112 #include <readline/history.h>
35113 _ACEOF
35114 if { (ac_try="$ac_cpp conftest.$ac_ext"
35115 case "(($ac_try" in
35116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35117 *) ac_try_echo=$ac_try;;
35118 esac
35119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35121 ac_status=$?
35122 grep -v '^ *+' conftest.er1 >conftest.err
35123 rm -f conftest.er1
35124 cat conftest.err >&5
35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35126 (exit $ac_status); } >/dev/null && {
35127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35128 test ! -s conftest.err
35129 }; then
35130 ac_header_preproc=yes
35131 else
35132 echo "$as_me: failed program was:" >&5
35133 sed 's/^/| /' conftest.$ac_ext >&5
35135 ac_header_preproc=no
35138 rm -f conftest.err conftest.$ac_ext
35139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35140 echo "${ECHO_T}$ac_header_preproc" >&6; }
35142 # So? What about this header?
35143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35144 yes:no: )
35145 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
35146 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35147 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
35148 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
35149 ac_header_preproc=yes
35151 no:yes:* )
35152 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
35153 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
35154 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
35155 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
35156 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
35157 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
35158 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
35159 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
35160 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
35161 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
35162 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
35163 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
35166 esac
35167 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35168 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35169 if test "${ac_cv_header_readline_history_h+set}" = set; then
35170 echo $ECHO_N "(cached) $ECHO_C" >&6
35171 else
35172 ac_cv_header_readline_history_h=$ac_header_preproc
35174 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35175 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35178 if test $ac_cv_header_readline_history_h = yes; then
35179 cat >>confdefs.h <<\_ACEOF
35180 #define HAVE_READLINE_HISTORY_H 1
35181 _ACEOF
35188 INSTRUMENT_DIR='instrument/stubs'
35190 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
35191 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
35192 # Check whether --enable-instrumentation was given.
35193 if test "${enable_instrumentation+set}" = set; then
35194 enableval=$enable_instrumentation; if test "$enableval" = yes; then
35195 { echo "$as_me:$LINENO: result: yes" >&5
35196 echo "${ECHO_T}yes" >&6; }
35197 cat >>confdefs.h <<\_ACEOF
35198 #define BX_INSTRUMENTATION 1
35199 _ACEOF
35201 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35202 elif test "$enableval" = no; then
35203 { echo "$as_me:$LINENO: result: no" >&5
35204 echo "${ECHO_T}no" >&6; }
35205 cat >>confdefs.h <<\_ACEOF
35206 #define BX_INSTRUMENTATION 0
35207 _ACEOF
35209 INSTRUMENT_VAR=''
35210 else
35211 { echo "$as_me:$LINENO: result: yes" >&5
35212 echo "${ECHO_T}yes" >&6; }
35213 cat >>confdefs.h <<\_ACEOF
35214 #define BX_INSTRUMENTATION 1
35215 _ACEOF
35217 INSTRUMENT_DIR=$enableval
35218 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35220 else
35222 { echo "$as_me:$LINENO: result: no" >&5
35223 echo "${ECHO_T}no" >&6; }
35224 cat >>confdefs.h <<\_ACEOF
35225 #define BX_INSTRUMENTATION 0
35226 _ACEOF
35228 INSTRUMENT_VAR=''
35236 if test "$bx_plugins" = 0; then
35237 case $target in
35238 *-pc-windows*)
35239 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
35241 *-cygwin* | *-mingw32*)
35242 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35244 esac
35247 { echo "$as_me:$LINENO: checking enable logging" >&5
35248 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
35249 # Check whether --enable-logging was given.
35250 if test "${enable_logging+set}" = set; then
35251 enableval=$enable_logging; if test "$enableval" = yes; then
35252 { echo "$as_me:$LINENO: result: yes" >&5
35253 echo "${ECHO_T}yes" >&6; }
35254 cat >>confdefs.h <<\_ACEOF
35255 #define BX_NO_LOGGING 0
35256 _ACEOF
35258 else
35259 { echo "$as_me:$LINENO: result: no" >&5
35260 echo "${ECHO_T}no" >&6; }
35261 cat >>confdefs.h <<\_ACEOF
35262 #define BX_NO_LOGGING 1
35263 _ACEOF
35266 else
35268 { echo "$as_me:$LINENO: result: yes" >&5
35269 echo "${ECHO_T}yes" >&6; }
35270 cat >>confdefs.h <<\_ACEOF
35271 #define BX_NO_LOGGING 0
35272 _ACEOF
35279 { echo "$as_me:$LINENO: checking for raw serial support" >&5
35280 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
35281 # Check whether --enable-raw-serial was given.
35282 if test "${enable_raw_serial+set}" = set; then
35283 enableval=$enable_raw_serial; if test "$enableval" = yes; then
35284 { echo "$as_me:$LINENO: result: yes" >&5
35285 echo "${ECHO_T}yes" >&6; }
35286 cat >>confdefs.h <<\_ACEOF
35287 #define USE_RAW_SERIAL 1
35288 _ACEOF
35290 else
35291 { echo "$as_me:$LINENO: result: no" >&5
35292 echo "${ECHO_T}no" >&6; }
35293 cat >>confdefs.h <<\_ACEOF
35294 #define USE_RAW_SERIAL 0
35295 _ACEOF
35298 else
35300 { echo "$as_me:$LINENO: result: no" >&5
35301 echo "${ECHO_T}no" >&6; }
35302 cat >>confdefs.h <<\_ACEOF
35303 #define USE_RAW_SERIAL 0
35304 _ACEOF
35311 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
35312 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
35313 # Check whether --enable-vbe was given.
35314 if test "${enable_vbe+set}" = set; then
35315 enableval=$enable_vbe; if test "$enableval" = yes; then
35316 { echo "$as_me:$LINENO: result: yes" >&5
35317 echo "${ECHO_T}yes" >&6; }
35318 cat >>confdefs.h <<\_ACEOF
35319 #define BX_SUPPORT_VBE 1
35320 _ACEOF
35322 if test "$pci" = 1; then
35323 cat >>confdefs.h <<\_ACEOF
35324 #define BX_SUPPORT_PCIVGA 1
35325 _ACEOF
35328 else
35329 { echo "$as_me:$LINENO: result: no" >&5
35330 echo "${ECHO_T}no" >&6; }
35331 cat >>confdefs.h <<\_ACEOF
35332 #define BX_SUPPORT_VBE 0
35333 _ACEOF
35336 else
35338 { echo "$as_me:$LINENO: result: yes" >&5
35339 echo "${ECHO_T}yes" >&6; }
35340 cat >>confdefs.h <<\_ACEOF
35341 #define BX_SUPPORT_VBE 1
35342 _ACEOF
35344 if test "$pci" = 1; then
35345 cat >>confdefs.h <<\_ACEOF
35346 #define BX_SUPPORT_PCIVGA 1
35347 _ACEOF
35355 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
35356 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
35357 # Check whether --enable-clgd54xx was given.
35358 if test "${enable_clgd54xx+set}" = set; then
35359 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35360 { echo "$as_me:$LINENO: result: yes" >&5
35361 echo "${ECHO_T}yes" >&6; }
35362 cat >>confdefs.h <<\_ACEOF
35363 #define BX_SUPPORT_CLGD54XX 1
35364 _ACEOF
35366 else
35367 { echo "$as_me:$LINENO: result: no" >&5
35368 echo "${ECHO_T}no" >&6; }
35369 cat >>confdefs.h <<\_ACEOF
35370 #define BX_SUPPORT_CLGD54XX 0
35371 _ACEOF
35374 else
35376 { echo "$as_me:$LINENO: result: no" >&5
35377 echo "${ECHO_T}no" >&6; }
35378 cat >>confdefs.h <<\_ACEOF
35379 #define BX_SUPPORT_CLGD54XX 0
35380 _ACEOF
35387 support_fpu=1
35388 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
35389 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
35390 FPU_VAR=''
35391 # Check whether --enable-fpu was given.
35392 if test "${enable_fpu+set}" = set; then
35393 enableval=$enable_fpu; if test "$enableval" = yes; then
35394 { echo "$as_me:$LINENO: result: yes" >&5
35395 echo "${ECHO_T}yes" >&6; }
35396 cat >>confdefs.h <<\_ACEOF
35397 #define BX_SUPPORT_FPU 1
35398 _ACEOF
35400 FPU_VAR='$(FPU_LIB)'
35401 elif test "$enableval" = no; then
35402 { echo "$as_me:$LINENO: result: no" >&5
35403 echo "${ECHO_T}no" >&6; }
35404 cat >>confdefs.h <<\_ACEOF
35405 #define BX_SUPPORT_FPU 0
35406 _ACEOF
35408 support_fpu=0
35409 else
35410 echo " "
35411 echo "ERROR: --enable-fpu does not accept a path"
35412 exit 1
35415 else
35417 { echo "$as_me:$LINENO: result: yes" >&5
35418 echo "${ECHO_T}yes" >&6; }
35419 cat >>confdefs.h <<\_ACEOF
35420 #define BX_SUPPORT_FPU 1
35421 _ACEOF
35423 FPU_VAR='$(FPU_LIB)'
35430 { echo "$as_me:$LINENO: checking for VME support" >&5
35431 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
35432 # Check whether --enable-vme was given.
35433 if test "${enable_vme+set}" = set; then
35434 enableval=$enable_vme; if test "$enableval" = yes; then
35435 { echo "$as_me:$LINENO: result: yes" >&5
35436 echo "${ECHO_T}yes" >&6; }
35437 cat >>confdefs.h <<\_ACEOF
35438 #define BX_SUPPORT_VME 1
35439 _ACEOF
35441 elif test "$enableval" = no; then
35442 { echo "$as_me:$LINENO: result: no" >&5
35443 echo "${ECHO_T}no" >&6; }
35444 cat >>confdefs.h <<\_ACEOF
35445 #define BX_SUPPORT_VME 0
35446 _ACEOF
35450 else
35452 if test "$bx_cpu_level" -ge 5; then
35453 { echo "$as_me:$LINENO: result: yes" >&5
35454 echo "${ECHO_T}yes" >&6; }
35455 cat >>confdefs.h <<\_ACEOF
35456 #define BX_SUPPORT_VME 1
35457 _ACEOF
35465 support_mmx=1
35466 { echo "$as_me:$LINENO: checking for MMX support" >&5
35467 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
35468 # Check whether --enable-mmx was given.
35469 if test "${enable_mmx+set}" = set; then
35470 enableval=$enable_mmx; if test "$enableval" = yes; then
35471 { echo "$as_me:$LINENO: result: yes" >&5
35472 echo "${ECHO_T}yes" >&6; }
35473 cat >>confdefs.h <<\_ACEOF
35474 #define BX_SUPPORT_MMX 1
35475 _ACEOF
35477 elif test "$enableval" = no; then
35478 { echo "$as_me:$LINENO: result: no" >&5
35479 echo "${ECHO_T}no" >&6; }
35480 cat >>confdefs.h <<\_ACEOF
35481 #define BX_SUPPORT_MMX 0
35482 _ACEOF
35484 support_mmx=0
35487 else
35489 if test "$bx_cpu_level" -ge 5; then
35490 { echo "$as_me:$LINENO: result: yes" >&5
35491 echo "${ECHO_T}yes" >&6; }
35492 cat >>confdefs.h <<\_ACEOF
35493 #define BX_SUPPORT_MMX 1
35494 _ACEOF
35502 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
35503 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
35504 # Check whether --enable-3dnow was given.
35505 if test "${enable_3dnow+set}" = set; then
35506 enableval=$enable_3dnow; if test "$enableval" = yes; then
35507 { echo "$as_me:$LINENO: result: yes" >&5
35508 echo "${ECHO_T}yes" >&6; }
35509 cat >>confdefs.h <<\_ACEOF
35510 #define BX_SUPPORT_3DNOW 1
35511 _ACEOF
35513 elif test "$enableval" = no; then
35514 { echo "$as_me:$LINENO: result: no" >&5
35515 echo "${ECHO_T}no" >&6; }
35516 cat >>confdefs.h <<\_ACEOF
35517 #define BX_SUPPORT_3DNOW 0
35518 _ACEOF
35522 else
35524 { echo "$as_me:$LINENO: result: no" >&5
35525 echo "${ECHO_T}no" >&6; }
35526 cat >>confdefs.h <<\_ACEOF
35527 #define BX_SUPPORT_3DNOW 0
35528 _ACEOF
35535 support_sse=0
35536 { echo "$as_me:$LINENO: checking for SSE support" >&5
35537 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
35538 # Check whether --enable-sse was given.
35539 if test "${enable_sse+set}" = set; then
35540 enableval=$enable_sse; case "$enableval" in
35541 no | 0)
35542 support_sse=0
35543 { echo "$as_me:$LINENO: result: no" >&5
35544 echo "${ECHO_T}no" >&6; }
35546 yes | 1)
35547 support_sse=1
35548 { echo "$as_me:$LINENO: result: SSE1" >&5
35549 echo "${ECHO_T}SSE1" >&6; }
35552 support_sse=2
35553 { echo "$as_me:$LINENO: result: SSE2" >&5
35554 echo "${ECHO_T}SSE2" >&6; }
35557 support_sse=3
35558 { echo "$as_me:$LINENO: result: SSE3" >&5
35559 echo "${ECHO_T}SSE3" >&6; }
35562 support_sse=4
35563 { echo "$as_me:$LINENO: result: SSE4" >&5
35564 echo "${ECHO_T}SSE4" >&6; }
35567 echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
35568 exit 1
35570 esac
35572 else
35574 if test "$use_x86_64" = 1; then
35575 support_sse=2
35576 { echo "$as_me:$LINENO: result: SSE2" >&5
35577 echo "${ECHO_T}SSE2" >&6; }
35578 else
35579 { echo "$as_me:$LINENO: result: no" >&5
35580 echo "${ECHO_T}no" >&6; }
35587 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35588 { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
35589 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
35590 { (exit 1); exit 1; }; }
35593 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35594 { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
35595 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
35596 { (exit 1); exit 1; }; }
35599 if test "$support_sse" = 4; then
35600 cat >>confdefs.h <<\_ACEOF
35601 #define BX_SUPPORT_SSE 4
35602 _ACEOF
35604 elif test "$support_sse" = 3; then
35605 cat >>confdefs.h <<\_ACEOF
35606 #define BX_SUPPORT_SSE 3
35607 _ACEOF
35609 elif test "$support_sse" = 2; then
35610 cat >>confdefs.h <<\_ACEOF
35611 #define BX_SUPPORT_SSE 2
35612 _ACEOF
35614 elif test "$support_sse" = 1; then
35615 cat >>confdefs.h <<\_ACEOF
35616 #define BX_SUPPORT_SSE 1
35617 _ACEOF
35619 else
35620 cat >>confdefs.h <<\_ACEOF
35621 #define BX_SUPPORT_SSE 0
35622 _ACEOF
35626 support_sse_extensions=0
35627 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
35628 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
35629 # Check whether --enable-sse-extension was given.
35630 if test "${enable_sse_extension+set}" = set; then
35631 enableval=$enable_sse_extension; if test "$enableval" = yes; then
35632 { echo "$as_me:$LINENO: result: yes" >&5
35633 echo "${ECHO_T}yes" >&6; }
35634 cat >>confdefs.h <<\_ACEOF
35635 #define BX_SUPPORT_SSE_EXTENSION 1
35636 _ACEOF
35638 support_sse_extensions=1
35639 elif test "$enableval" = no; then
35640 { echo "$as_me:$LINENO: result: no" >&5
35641 echo "${ECHO_T}no" >&6; }
35642 cat >>confdefs.h <<\_ACEOF
35643 #define BX_SUPPORT_SSE_EXTENSION 0
35644 _ACEOF
35648 else
35650 { echo "$as_me:$LINENO: result: no" >&5
35651 echo "${ECHO_T}no" >&6; }
35652 cat >>confdefs.h <<\_ACEOF
35653 #define BX_SUPPORT_SSE_EXTENSION 0
35654 _ACEOF
35661 { echo "$as_me:$LINENO: checking for DAZ support" >&5
35662 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
35663 # Check whether --enable-daz was given.
35664 if test "${enable_daz+set}" = set; then
35665 enableval=$enable_daz; if test "$enableval" = yes; then
35666 { echo "$as_me:$LINENO: result: yes" >&5
35667 echo "${ECHO_T}yes" >&6; }
35668 cat >>confdefs.h <<\_ACEOF
35669 #define BX_SUPPORT_DAZ 1
35670 _ACEOF
35672 elif test "$enableval" = no; then
35673 { echo "$as_me:$LINENO: result: no" >&5
35674 echo "${ECHO_T}no" >&6; }
35675 cat >>confdefs.h <<\_ACEOF
35676 #define BX_SUPPORT_DAZ 0
35677 _ACEOF
35681 else
35683 if test "$support_sse" -ge 2; then
35684 { echo "$as_me:$LINENO: result: yes" >&5
35685 echo "${ECHO_T}yes" >&6; }
35686 cat >>confdefs.h <<\_ACEOF
35687 #define BX_SUPPORT_DAZ 1
35688 _ACEOF
35690 else
35691 { echo "$as_me:$LINENO: result: no" >&5
35692 echo "${ECHO_T}no" >&6; }
35693 cat >>confdefs.h <<\_ACEOF
35694 #define BX_SUPPORT_DAZ 0
35695 _ACEOF
35703 use_xsave=0
35704 { echo "$as_me:$LINENO: checking for XSAVE/XRSTOR support" >&5
35705 echo $ECHO_N "checking for XSAVE/XRSTOR support... $ECHO_C" >&6; }
35706 # Check whether --enable-xsave was given.
35707 if test "${enable_xsave+set}" = set; then
35708 enableval=$enable_xsave; if test "$enableval" = yes; then
35709 { echo "$as_me:$LINENO: result: yes" >&5
35710 echo "${ECHO_T}yes" >&6; }
35711 cat >>confdefs.h <<\_ACEOF
35712 #define BX_SUPPORT_XSAVE 1
35713 _ACEOF
35715 use_xsave=1
35716 elif test "$enableval" = no; then
35717 { echo "$as_me:$LINENO: result: no" >&5
35718 echo "${ECHO_T}no" >&6; }
35719 cat >>confdefs.h <<\_ACEOF
35720 #define BX_SUPPORT_XSAVE 0
35721 _ACEOF
35725 else
35727 { echo "$as_me:$LINENO: result: no" >&5
35728 echo "${ECHO_T}no" >&6; }
35729 cat >>confdefs.h <<\_ACEOF
35730 #define BX_SUPPORT_XSAVE 0
35731 _ACEOF
35738 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
35739 { { echo "$as_me:$LINENO: error: XSAVE requires SSE support!" >&5
35740 echo "$as_me: error: XSAVE requires SSE support!" >&2;}
35741 { (exit 1); exit 1; }; }
35744 { echo "$as_me:$LINENO: checking for alignment check support" >&5
35745 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
35746 # Check whether --enable-alignment-check was given.
35747 if test "${enable_alignment_check+set}" = set; then
35748 enableval=$enable_alignment_check; if test "$enableval" = yes; then
35749 { echo "$as_me:$LINENO: result: yes" >&5
35750 echo "${ECHO_T}yes" >&6; }
35751 cat >>confdefs.h <<\_ACEOF
35752 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35753 _ACEOF
35755 elif test "$enableval" = no; then
35756 { echo "$as_me:$LINENO: result: no" >&5
35757 echo "${ECHO_T}no" >&6; }
35758 cat >>confdefs.h <<\_ACEOF
35759 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35760 _ACEOF
35764 else
35766 if test "$bx_cpu_level" -gt 3; then
35767 { echo "$as_me:$LINENO: result: yes" >&5
35768 echo "${ECHO_T}yes" >&6; }
35769 cat >>confdefs.h <<\_ACEOF
35770 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35771 _ACEOF
35773 else
35774 { echo "$as_me:$LINENO: result: no" >&5
35775 echo "${ECHO_T}no" >&6; }
35776 cat >>confdefs.h <<\_ACEOF
35777 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35778 _ACEOF
35786 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
35787 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
35788 # Check whether --enable-misaligned-sse was given.
35789 if test "${enable_misaligned_sse+set}" = set; then
35790 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
35791 { echo "$as_me:$LINENO: result: yes" >&5
35792 echo "${ECHO_T}yes" >&6; }
35793 cat >>confdefs.h <<\_ACEOF
35794 #define BX_SUPPORT_MISALIGNED_SSE 1
35795 _ACEOF
35797 elif test "$enableval" = no; then
35798 { echo "$as_me:$LINENO: result: no" >&5
35799 echo "${ECHO_T}no" >&6; }
35800 cat >>confdefs.h <<\_ACEOF
35801 #define BX_SUPPORT_MISALIGNED_SSE 0
35802 _ACEOF
35806 else
35808 { echo "$as_me:$LINENO: result: no" >&5
35809 echo "${ECHO_T}no" >&6; }
35810 cat >>confdefs.h <<\_ACEOF
35811 #define BX_SUPPORT_MISALIGNED_SSE 0
35812 _ACEOF
35819 { echo "$as_me:$LINENO: checking for SEP support" >&5
35820 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
35821 # Check whether --enable-sep was given.
35822 if test "${enable_sep+set}" = set; then
35823 enableval=$enable_sep; if test "$enableval" = yes; then
35824 { echo "$as_me:$LINENO: result: yes" >&5
35825 echo "${ECHO_T}yes" >&6; }
35826 cat >>confdefs.h <<\_ACEOF
35827 #define BX_SUPPORT_SEP 1
35828 _ACEOF
35830 elif test "$enableval" = no; then
35831 { echo "$as_me:$LINENO: result: no" >&5
35832 echo "${ECHO_T}no" >&6; }
35833 cat >>confdefs.h <<\_ACEOF
35834 #define BX_SUPPORT_SEP 0
35835 _ACEOF
35839 else
35841 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
35842 { echo "$as_me:$LINENO: result: yes" >&5
35843 echo "${ECHO_T}yes" >&6; }
35844 cat >>confdefs.h <<\_ACEOF
35845 #define BX_SUPPORT_SEP 1
35846 _ACEOF
35848 else
35849 { echo "$as_me:$LINENO: result: no" >&5
35850 echo "${ECHO_T}no" >&6; }
35851 cat >>confdefs.h <<\_ACEOF
35852 #define BX_SUPPORT_SEP 0
35853 _ACEOF
35861 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
35862 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
35863 # Check whether --enable-popcnt was given.
35864 if test "${enable_popcnt+set}" = set; then
35865 enableval=$enable_popcnt; if test "$enableval" = yes; then
35866 { echo "$as_me:$LINENO: result: yes" >&5
35867 echo "${ECHO_T}yes" >&6; }
35868 cat >>confdefs.h <<\_ACEOF
35869 #define BX_SUPPORT_POPCNT 1
35870 _ACEOF
35872 elif test "$enableval" = no; then
35873 { echo "$as_me:$LINENO: result: no" >&5
35874 echo "${ECHO_T}no" >&6; }
35875 cat >>confdefs.h <<\_ACEOF
35876 #define BX_SUPPORT_POPCNT 0
35877 _ACEOF
35881 else
35883 if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
35884 { echo "$as_me:$LINENO: result: yes" >&5
35885 echo "${ECHO_T}yes" >&6; }
35886 cat >>confdefs.h <<\_ACEOF
35887 #define BX_SUPPORT_POPCNT 1
35888 _ACEOF
35890 else
35891 { echo "$as_me:$LINENO: result: no" >&5
35892 echo "${ECHO_T}no" >&6; }
35893 cat >>confdefs.h <<\_ACEOF
35894 #define BX_SUPPORT_POPCNT 0
35895 _ACEOF
35903 { echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
35904 echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
35905 # Check whether --enable-monitor_mwait was given.
35906 if test "${enable_monitor_mwait+set}" = set; then
35907 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
35908 { echo "$as_me:$LINENO: result: yes" >&5
35909 echo "${ECHO_T}yes" >&6; }
35910 cat >>confdefs.h <<\_ACEOF
35911 #define BX_SUPPORT_MONITOR_MWAIT 1
35912 _ACEOF
35914 elif test "$enableval" = no; then
35915 { echo "$as_me:$LINENO: result: no" >&5
35916 echo "${ECHO_T}no" >&6; }
35917 cat >>confdefs.h <<\_ACEOF
35918 #define BX_SUPPORT_MONITOR_MWAIT 0
35919 _ACEOF
35923 else
35925 { echo "$as_me:$LINENO: result: no" >&5
35926 echo "${ECHO_T}no" >&6; }
35927 cat >>confdefs.h <<\_ACEOF
35928 #define BX_SUPPORT_MONITOR_MWAIT 0
35929 _ACEOF
35936 { echo "$as_me:$LINENO: checking for x86 debugger support" >&5
35937 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
35938 # Check whether --enable-x86-debugger was given.
35939 if test "${enable_x86_debugger+set}" = set; then
35940 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
35941 { echo "$as_me:$LINENO: result: yes" >&5
35942 echo "${ECHO_T}yes" >&6; }
35943 cat >>confdefs.h <<\_ACEOF
35944 #define BX_X86_DEBUGGER 1
35945 _ACEOF
35947 elif test "$enableval" = no; then
35948 { echo "$as_me:$LINENO: result: no" >&5
35949 echo "${ECHO_T}no" >&6; }
35950 cat >>confdefs.h <<\_ACEOF
35951 #define BX_X86_DEBUGGER 0
35952 _ACEOF
35954 else
35955 { echo "$as_me:$LINENO: result: yes" >&5
35956 echo "${ECHO_T}yes" >&6; }
35957 cat >>confdefs.h <<\_ACEOF
35958 #define BX_X86_DEBUGGER 1
35959 _ACEOF
35962 else
35964 { echo "$as_me:$LINENO: result: no" >&5
35965 echo "${ECHO_T}no" >&6; }
35966 cat >>confdefs.h <<\_ACEOF
35967 #define BX_X86_DEBUGGER 0
35968 _ACEOF
35975 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
35976 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
35977 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
35978 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35981 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
35982 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
35983 else
35984 # Is the header compilable?
35985 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
35986 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
35987 cat >conftest.$ac_ext <<_ACEOF
35988 /* confdefs.h. */
35989 _ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h. */
35993 $ac_includes_default
35994 #include <IOKit/storage/IOCDMedia.h>
35995 _ACEOF
35996 rm -f conftest.$ac_objext
35997 if { (ac_try="$ac_compile"
35998 case "(($ac_try" in
35999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000 *) ac_try_echo=$ac_try;;
36001 esac
36002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36003 (eval "$ac_compile") 2>conftest.er1
36004 ac_status=$?
36005 grep -v '^ *+' conftest.er1 >conftest.err
36006 rm -f conftest.er1
36007 cat conftest.err >&5
36008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36009 (exit $ac_status); } && {
36010 test -z "$ac_c_werror_flag" ||
36011 test ! -s conftest.err
36012 } && test -s conftest.$ac_objext; then
36013 ac_header_compiler=yes
36014 else
36015 echo "$as_me: failed program was:" >&5
36016 sed 's/^/| /' conftest.$ac_ext >&5
36018 ac_header_compiler=no
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36023 echo "${ECHO_T}$ac_header_compiler" >&6; }
36025 # Is the header present?
36026 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
36027 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
36028 cat >conftest.$ac_ext <<_ACEOF
36029 /* confdefs.h. */
36030 _ACEOF
36031 cat confdefs.h >>conftest.$ac_ext
36032 cat >>conftest.$ac_ext <<_ACEOF
36033 /* end confdefs.h. */
36034 #include <IOKit/storage/IOCDMedia.h>
36035 _ACEOF
36036 if { (ac_try="$ac_cpp conftest.$ac_ext"
36037 case "(($ac_try" in
36038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36039 *) ac_try_echo=$ac_try;;
36040 esac
36041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36043 ac_status=$?
36044 grep -v '^ *+' conftest.er1 >conftest.err
36045 rm -f conftest.er1
36046 cat conftest.err >&5
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); } >/dev/null && {
36049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36050 test ! -s conftest.err
36051 }; then
36052 ac_header_preproc=yes
36053 else
36054 echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36057 ac_header_preproc=no
36060 rm -f conftest.err conftest.$ac_ext
36061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36062 echo "${ECHO_T}$ac_header_preproc" >&6; }
36064 # So? What about this header?
36065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36066 yes:no: )
36067 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
36068 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36069 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
36070 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
36071 ac_header_preproc=yes
36073 no:yes:* )
36074 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
36075 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
36076 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&5
36077 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&2;}
36078 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
36079 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
36080 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&5
36081 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&2;}
36082 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
36083 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
36085 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
36088 esac
36089 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
36090 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
36091 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36092 echo $ECHO_N "(cached) $ECHO_C" >&6
36093 else
36094 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
36096 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36097 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36100 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
36101 can_use_osx_cdrom=yes
36107 { echo "$as_me:$LINENO: checking for CDROM support" >&5
36108 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
36109 # Check whether --enable-cdrom was given.
36110 if test "${enable_cdrom+set}" = set; then
36111 enableval=$enable_cdrom; if test "$enableval" = no; then
36112 bx_cdrom=0
36113 else
36114 bx_cdrom=1
36116 else
36117 bx_cdrom=1
36122 if test "$bx_cdrom" = 1; then
36123 { echo "$as_me:$LINENO: result: yes" >&5
36124 echo "${ECHO_T}yes" >&6; }
36125 CDROM_OBJS='cdrom.o'
36126 if test "$with_amigaos" = yes; then
36127 # use the amiga cdrom file instead.
36128 CDROM_OBJS="cdrom_amigaos.o"
36129 elif test "$can_use_osx_cdrom" = yes; then
36130 # use cdrom_osx
36131 { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
36132 echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
36133 CDROM_OBJS="cdrom.o"
36134 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
36136 case $target in
36137 *-beos*)
36138 # use the beos cdrom file instead
36139 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
36140 esac
36141 cat >>confdefs.h <<\_ACEOF
36142 #define BX_SUPPORT_CDROM 1
36143 _ACEOF
36145 else
36146 { echo "$as_me:$LINENO: result: no" >&5
36147 echo "${ECHO_T}no" >&6; }
36148 CDROM_OBJS=''
36149 cat >>confdefs.h <<\_ACEOF
36150 #define BX_SUPPORT_CDROM 0
36151 _ACEOF
36158 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
36159 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
36160 SB16_OBJS=''
36161 SOUNDLOW_OBJS=''
36162 GAME_OBJS=''
36163 gameport_present=0
36164 # Check whether --enable-sb16 was given.
36165 if test "${enable_sb16+set}" = set; then
36166 enableval=$enable_sb16; if test "$enableval" = no; then
36167 { echo "$as_me:$LINENO: result: no" >&5
36168 echo "${ECHO_T}no" >&6; }
36169 cat >>confdefs.h <<\_ACEOF
36170 #define BX_SUPPORT_SB16 0
36171 _ACEOF
36173 else
36174 case "$enableval" in
36175 dummy)
36176 SOUNDLOW_OBJS=''
36177 cat >>confdefs.h <<\_ACEOF
36178 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36179 _ACEOF
36181 { echo "$as_me:$LINENO: result: dummy" >&5
36182 echo "${ECHO_T}dummy" >&6; }
36184 freebsd|linux)
36185 SOUNDLOW_OBJS='soundlnx.o'
36186 cat >>confdefs.h <<\_ACEOF
36187 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36188 _ACEOF
36190 { echo "$as_me:$LINENO: result: linux" >&5
36191 echo "${ECHO_T}linux" >&6; }
36193 win)
36194 SOUNDLOW_OBJS='soundwin.o'
36195 cat >>confdefs.h <<\_ACEOF
36196 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36197 _ACEOF
36199 { echo "$as_me:$LINENO: result: win" >&5
36200 echo "${ECHO_T}win" >&6; }
36201 case $target in
36202 *-pc-windows*)
36203 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36206 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36208 esac
36210 osx)
36211 SOUNDLOW_OBJS='soundosx.o'
36212 cat >>confdefs.h <<\_ACEOF
36213 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36214 _ACEOF
36216 { echo "$as_me:$LINENO: result: osx" >&5
36217 echo "${ECHO_T}osx" >&6; }
36218 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36220 yes)
36221 case "$target" in
36222 *-linux* | *-freebsd*)
36223 SOUNDLOW_OBJS='soundlnx.o'
36224 cat >>confdefs.h <<\_ACEOF
36225 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36226 _ACEOF
36228 { echo "$as_me:$LINENO: result: linux" >&5
36229 echo "${ECHO_T}linux" >&6; }
36231 *-pc-windows*)
36232 SOUNDLOW_OBJS='soundwin.o'
36233 cat >>confdefs.h <<\_ACEOF
36234 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36235 _ACEOF
36237 { echo "$as_me:$LINENO: result: win" >&5
36238 echo "${ECHO_T}win" >&6; }
36239 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36241 *-cygwin* | *-mingw32*)
36242 SOUNDLOW_OBJS='soundwin.o'
36243 cat >>confdefs.h <<\_ACEOF
36244 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36245 _ACEOF
36247 { echo "$as_me:$LINENO: result: win" >&5
36248 echo "${ECHO_T}win" >&6; }
36249 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36251 *-macosx* | *-macos*)
36252 SOUNDLOW_OBJS='soundosx.o'
36253 cat >>confdefs.h <<\_ACEOF
36254 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36255 _ACEOF
36257 { echo "$as_me:$LINENO: result: osx" >&5
36258 echo "${ECHO_T}osx" >&6; }
36259 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36262 SOUNDLOW_OBJS=''
36263 cat >>confdefs.h <<\_ACEOF
36264 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36265 _ACEOF
36267 { echo "$as_me:$LINENO: result: dummy" >&5
36268 echo "${ECHO_T}dummy" >&6; }
36270 esac
36273 echo " "
36274 echo \!\!\!Error\!\!\!
36275 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
36276 exit 1 ;;
36277 esac
36278 SB16_OBJS='sb16.o'
36279 cat >>confdefs.h <<\_ACEOF
36280 #define BX_SUPPORT_SB16 1
36281 _ACEOF
36283 GAME_OBJS='gameport.o'
36284 gameport_present=1
36286 else
36288 { echo "$as_me:$LINENO: result: no" >&5
36289 echo "${ECHO_T}no" >&6; }
36290 cat >>confdefs.h <<\_ACEOF
36291 #define BX_SUPPORT_SB16 0
36292 _ACEOF
36302 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
36303 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
36304 # Check whether --enable-gameport was given.
36305 if test "${enable_gameport+set}" = set; then
36306 enableval=$enable_gameport; if test "$enableval" = yes; then
36307 { echo "$as_me:$LINENO: result: yes" >&5
36308 echo "${ECHO_T}yes" >&6; }
36309 cat >>confdefs.h <<\_ACEOF
36310 #define BX_SUPPORT_GAMEPORT 1
36311 _ACEOF
36313 if test "$gameport_present" = 0; then
36314 GAME_OBJS='gameport.o'
36315 case $target in
36316 *-cygwin* | *-mingw32*)
36317 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36319 esac
36321 else
36322 { echo "$as_me:$LINENO: result: no" >&5
36323 echo "${ECHO_T}no" >&6; }
36324 GAME_OBJS=''
36325 cat >>confdefs.h <<\_ACEOF
36326 #define BX_SUPPORT_GAMEPORT 0
36327 _ACEOF
36330 else
36332 if test "$gameport_present" = 1; then
36333 cat >>confdefs.h <<\_ACEOF
36334 #define BX_SUPPORT_GAMEPORT 1
36335 _ACEOF
36337 { echo "$as_me:$LINENO: result: yes" >&5
36338 echo "${ECHO_T}yes" >&6; }
36339 else
36340 cat >>confdefs.h <<\_ACEOF
36341 #define BX_SUPPORT_GAMEPORT 0
36342 _ACEOF
36344 { echo "$as_me:$LINENO: result: no" >&5
36345 echo "${ECHO_T}no" >&6; }
36353 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
36354 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
36355 # Check whether --enable-gdb-stub was given.
36356 if test "${enable_gdb_stub+set}" = set; then
36357 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36358 { echo "$as_me:$LINENO: result: yes" >&5
36359 echo "${ECHO_T}yes" >&6; }
36360 cat >>confdefs.h <<\_ACEOF
36361 #define BX_GDBSTUB 1
36362 _ACEOF
36364 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36365 if test "$bx_debugger" = 1; then
36366 { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
36367 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
36368 { (exit 1); exit 1; }; }
36370 else
36371 { echo "$as_me:$LINENO: result: no" >&5
36372 echo "${ECHO_T}no" >&6; }
36373 cat >>confdefs.h <<\_ACEOF
36374 #define BX_GDBSTUB 0
36375 _ACEOF
36377 GDBSTUB_VAR=''
36379 else
36381 { echo "$as_me:$LINENO: result: no" >&5
36382 echo "${ECHO_T}no" >&6; }
36383 cat >>confdefs.h <<\_ACEOF
36384 #define BX_GDBSTUB 0
36385 _ACEOF
36387 GDBSTUB_VAR=''
36395 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
36396 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
36397 IODEBUG_OBJS=''
36398 # Check whether --enable-iodebug was given.
36399 if test "${enable_iodebug+set}" = set; then
36400 enableval=$enable_iodebug; if test "$enableval" = yes; then
36401 { echo "$as_me:$LINENO: result: yes" >&5
36402 echo "${ECHO_T}yes" >&6; }
36403 cat >>confdefs.h <<\_ACEOF
36404 #define BX_SUPPORT_IODEBUG 1
36405 _ACEOF
36407 IODEBUG_OBJS='iodebug.o'
36408 else
36409 { echo "$as_me:$LINENO: result: no" >&5
36410 echo "${ECHO_T}no" >&6; }
36411 cat >>confdefs.h <<\_ACEOF
36412 #define BX_SUPPORT_IODEBUG 0
36413 _ACEOF
36417 else
36419 if test "" = 1; then
36420 # enable by default if debugger is on
36421 { echo "$as_me:$LINENO: result: yes" >&5
36422 echo "${ECHO_T}yes" >&6; }
36423 cat >>confdefs.h <<\_ACEOF
36424 #define BX_SUPPORT_IODEBUG 1
36425 _ACEOF
36427 IODEBUG_OBJS='iodebug.o'
36428 else
36429 { echo "$as_me:$LINENO: result: no" >&5
36430 echo "${ECHO_T}no" >&6; }
36439 # Extract the first word of "docbook2html", so it can be a program name with args.
36440 set dummy docbook2html; ac_word=$2
36441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36443 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
36444 echo $ECHO_N "(cached) $ECHO_C" >&6
36445 else
36446 case $DOCBOOK2HTML in
36447 [\\/]* | ?:[\\/]*)
36448 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
36451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36452 for as_dir in $PATH
36454 IFS=$as_save_IFS
36455 test -z "$as_dir" && as_dir=.
36456 for ac_exec_ext in '' $ac_executable_extensions; do
36457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36458 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
36459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36460 break 2
36462 done
36463 done
36464 IFS=$as_save_IFS
36466 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
36468 esac
36470 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
36471 if test -n "$DOCBOOK2HTML"; then
36472 { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
36473 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
36474 else
36475 { echo "$as_me:$LINENO: result: no" >&5
36476 echo "${ECHO_T}no" >&6; }
36480 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
36481 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
36482 build_docbook=0
36483 # Check whether --enable-docbook was given.
36484 if test "${enable_docbook+set}" = set; then
36485 enableval=$enable_docbook;
36486 if test "$enableval" = yes; then build_docbook=1; fi
36488 else
36490 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
36496 if test $build_docbook = 1; then
36497 { echo "$as_me:$LINENO: result: yes" >&5
36498 echo "${ECHO_T}yes" >&6; }
36499 BUILD_DOCBOOK_VAR=build_docbook
36500 INSTALL_DOCBOOK_VAR=install_docbook
36501 if test "$DOCBOOK2HTML" = not_found; then
36502 echo "ERROR: docbook2html must be installed to build the documentation"
36503 exit 1
36505 else
36506 { echo "$as_me:$LINENO: result: no" >&5
36507 echo "${ECHO_T}no" >&6; }
36513 PRIMARY_TARGET='bochs'
36514 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
36516 cat >>confdefs.h <<\_ACEOF
36517 #define BX_PROVIDE_DEVICE_MODELS 1
36518 _ACEOF
36520 IODEV_LIB_VAR='iodev/libiodev.a'
36521 cat >>confdefs.h <<\_ACEOF
36522 #define BX_PROVIDE_CPU_MEMORY 1
36523 _ACEOF
36525 NONINLINE_VAR='$(NONINLINE_OBJS)'
36537 # Check whether --with-x11 was given.
36538 if test "${with_x11+set}" = set; then
36539 withval=$with_x11;
36544 # Check whether --with-beos was given.
36545 if test "${with_beos+set}" = set; then
36546 withval=$with_beos;
36551 # Check whether --with-win32 was given.
36552 if test "${with_win32+set}" = set; then
36553 withval=$with_win32;
36558 # Check whether --with-macos was given.
36559 if test "${with_macos+set}" = set; then
36560 withval=$with_macos;
36565 # Check whether --with-carbon was given.
36566 if test "${with_carbon+set}" = set; then
36567 withval=$with_carbon;
36572 # Check whether --with-nogui was given.
36573 if test "${with_nogui+set}" = set; then
36574 withval=$with_nogui;
36579 # Check whether --with-term was given.
36580 if test "${with_term+set}" = set; then
36581 withval=$with_term;
36586 # Check whether --with-rfb was given.
36587 if test "${with_rfb+set}" = set; then
36588 withval=$with_rfb;
36593 # Check whether --with-amigaos was given.
36594 if test "${with_amigaos+set}" = set; then
36595 withval=$with_amigaos;
36600 # Check whether --with-sdl was given.
36601 if test "${with_sdl+set}" = set; then
36602 withval=$with_sdl;
36607 # Check whether --with-svga was given.
36608 if test "${with_svga+set}" = set; then
36609 withval=$with_svga;
36614 # Check whether --with-wx was given.
36615 if test "${with_wx+set}" = set; then
36616 withval=$with_wx;
36621 # Check whether --with-all-libs was given.
36622 if test "${with_all_libs+set}" = set; then
36623 withval=$with_all_libs;
36627 DASH="-"
36628 SLASH="/"
36629 CXXFP=""
36630 CFP=""
36631 OFP="-o "
36632 MAKELIB="ar rv \$@"
36633 RMCOMMAND="rm -f "
36634 # first define link variables without libtool
36635 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
36636 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
36637 # unless NO_LT is set, add libtool to the front of the link command
36638 if test "$NO_LT" != 1; then
36639 LINK="\$(LIBTOOL) --mode=link $LINK"
36640 LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
36642 EXE=""
36643 COMMAND_SEPARATOR="&& \\"
36644 CD_UP_ONE="echo done"
36645 CD_UP_TWO="echo done"
36646 CD_UP_THREE="echo done"
36648 INSTALL_TARGET=install_unix
36649 INSTALL_LIST_FOR_PLATFORM=
36651 # check for existence of and usable version of wxWidgets. This comes
36652 # early so that it could affect which one gets chosen.
36653 if test x$WX_CONFIG = x; then
36654 # Extract the first word of " wx-config --version ", so it can be a program name with args.
36655 set dummy wx-config --version ; ac_word=$2
36656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36658 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
36659 echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661 if test -n "$WX_CONFIG"; then
36662 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36663 else
36664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36665 for as_dir in $PATH
36667 IFS=$as_save_IFS
36668 test -z "$as_dir" && as_dir=.
36669 for ac_exec_ext in '' $ac_executable_extensions; do
36670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36671 ac_cv_prog_WX_CONFIG="wx-config"
36672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36673 break 2
36675 done
36676 done
36677 IFS=$as_save_IFS
36679 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
36682 WX_CONFIG=$ac_cv_prog_WX_CONFIG
36683 if test -n "$WX_CONFIG"; then
36684 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36685 echo "${ECHO_T}$WX_CONFIG" >&6; }
36686 else
36687 { echo "$as_me:$LINENO: result: no" >&5
36688 echo "${ECHO_T}no" >&6; }
36693 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
36694 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
36695 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36696 echo "${ECHO_T}$WX_CONFIG" >&6; }
36698 ok_wx_version=0
36699 wx_multi_lib=0
36700 wx_needs_gtk2=0
36701 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
36702 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
36703 if test x$WX_CONFIG != xnot_found; then
36704 WX_VERSION=`$WX_CONFIG --version`
36705 WX_BASENAME=`$WX_CONFIG --basename`
36707 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
36708 case x$WX_VERSION in
36709 x2.[012]*) ;; # less than version 2.3.x
36710 x2.3.[01]) ;; # less than version 2.3.2
36711 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
36712 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
36713 x2.[6-9]*) # version 2.6 or greater
36714 ok_wx_version=1
36715 wx_multi_lib=1
36716 case x$WX_BASENAME in
36717 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36718 *) ;;
36719 esac
36721 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36722 *) ;; # who knows?
36723 esac
36726 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
36727 echo "${ECHO_T}$WX_VERSION" >&6; }
36728 if test "$cross_configure" = 0; then
36729 if test "$ok_wx_version" = 1; then
36730 # detected a usable version
36731 if test "$with_all_libs" = yes; then
36732 with_wx=yes
36734 else
36735 if test "$with_wx" = yes; then
36736 { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
36737 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
36739 with_wx=no
36743 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
36744 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
36745 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
36746 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
36748 display_libs=""
36750 # the $with_* variable tells the gui library to use, but does NOT necessarily
36751 # indicate the platform. Settings that depend on the platform should be
36752 # handled later.
36754 XPM_LIB=''
36755 if test "$with_x11" = yes; then
36756 display_libs="$display_libs X11"
36757 if test "$no_x" = yes; then
36758 echo ERROR: X windows gui was selected, but X windows libraries were not found.
36759 exit 1
36761 cat >>confdefs.h <<\_ACEOF
36762 #define BX_WITH_X11 1
36763 _ACEOF
36765 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
36766 GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
36767 GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
36768 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
36769 check_xpm=0
36770 { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
36771 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
36772 # Check whether --enable-xpm was given.
36773 if test "${enable_xpm+set}" = set; then
36774 enableval=$enable_xpm; if test "$enableval" = yes; then
36775 check_xpm=0
36776 { echo "$as_me:$LINENO: result: yes" >&5
36777 echo "${ECHO_T}yes" >&6; }
36778 check_xpm=1
36779 else
36780 { echo "$as_me:$LINENO: result: no" >&5
36781 echo "${ECHO_T}no" >&6; }
36782 check_xpm=0
36784 else
36786 { echo "$as_me:$LINENO: result: yes" >&5
36787 echo "${ECHO_T}yes" >&6; }
36788 check_xpm=1
36793 if test $check_xpm = 1; then
36794 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
36795 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
36796 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
36797 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
36798 echo $ECHO_N "(cached) $ECHO_C" >&6
36800 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
36801 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
36802 else
36803 # Is the header compilable?
36804 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
36805 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
36806 cat >conftest.$ac_ext <<_ACEOF
36807 /* confdefs.h. */
36808 _ACEOF
36809 cat confdefs.h >>conftest.$ac_ext
36810 cat >>conftest.$ac_ext <<_ACEOF
36811 /* end confdefs.h. */
36812 $ac_includes_default
36813 #include <X11/xpm.h>
36814 _ACEOF
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36820 esac
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822 (eval "$ac_compile") 2>conftest.er1
36823 ac_status=$?
36824 grep -v '^ *+' conftest.er1 >conftest.err
36825 rm -f conftest.er1
36826 cat conftest.err >&5
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); } && {
36829 test -z "$ac_c_werror_flag" ||
36830 test ! -s conftest.err
36831 } && test -s conftest.$ac_objext; then
36832 ac_header_compiler=yes
36833 else
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36837 ac_header_compiler=no
36840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36842 echo "${ECHO_T}$ac_header_compiler" >&6; }
36844 # Is the header present?
36845 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
36846 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
36847 cat >conftest.$ac_ext <<_ACEOF
36848 /* confdefs.h. */
36849 _ACEOF
36850 cat confdefs.h >>conftest.$ac_ext
36851 cat >>conftest.$ac_ext <<_ACEOF
36852 /* end confdefs.h. */
36853 #include <X11/xpm.h>
36854 _ACEOF
36855 if { (ac_try="$ac_cpp conftest.$ac_ext"
36856 case "(($ac_try" in
36857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36858 *) ac_try_echo=$ac_try;;
36859 esac
36860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36862 ac_status=$?
36863 grep -v '^ *+' conftest.er1 >conftest.err
36864 rm -f conftest.er1
36865 cat conftest.err >&5
36866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867 (exit $ac_status); } >/dev/null && {
36868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36869 test ! -s conftest.err
36870 }; then
36871 ac_header_preproc=yes
36872 else
36873 echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36876 ac_header_preproc=no
36879 rm -f conftest.err conftest.$ac_ext
36880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36881 echo "${ECHO_T}$ac_header_preproc" >&6; }
36883 # So? What about this header?
36884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36885 yes:no: )
36886 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
36887 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36888 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
36889 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
36890 ac_header_preproc=yes
36892 no:yes:* )
36893 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
36894 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
36895 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
36896 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
36897 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
36898 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
36899 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
36900 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
36901 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
36902 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
36903 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
36904 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
36907 esac
36908 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
36909 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
36910 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
36911 echo $ECHO_N "(cached) $ECHO_C" >&6
36912 else
36913 ac_cv_header_X11_xpm_h=$ac_header_preproc
36915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
36916 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
36919 if test $ac_cv_header_X11_xpm_h = yes; then
36921 cat >>confdefs.h <<\_ACEOF
36922 #define BX_HAVE_XPM_H 1
36923 _ACEOF
36925 XPM_LIB='-lXpm'
36934 if test "$with_beos" = yes; then
36935 display_libs="$display_libs beos"
36936 cat >>confdefs.h <<\_ACEOF
36937 #define BX_WITH_BEOS 1
36938 _ACEOF
36940 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
36941 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
36944 if test "$with_sdl" = yes; then
36945 display_libs="$display_libs sdl"
36946 cat >>confdefs.h <<\_ACEOF
36947 #define BX_WITH_SDL 1
36948 _ACEOF
36950 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
36951 # GUI_*FLAGS are added to the compilation of every bochs file, not just
36952 # the files in gui/*.cc.
36953 SDL_CFLAGS=`sdl-config --cflags`
36954 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
36955 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
36956 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
36957 if test "$with_win32" != yes -a "$with_wx" != yes; then
36958 case $target in
36959 *-pc-windows*)
36960 RC_CMD="rc /fo"
36961 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
36963 *-cygwin* | *-mingw32*)
36964 RC_CMD="windres -o "
36965 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
36967 esac
36971 if test "$with_svga" = yes; then
36972 display_libs="$display_libs svga"
36973 cat >>confdefs.h <<\_ACEOF
36974 #define BX_WITH_SVGA 1
36975 _ACEOF
36977 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
36978 # GUI_*FLAGS are added to the compilation of every bochs file, not just
36979 # the files in gui/*.cc.
36980 GUI_CFLAGS="$GUI_CFLAGS"
36981 GUI_CXXFLAGS="$GUI_CXXFLAGS"
36982 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
36985 if test "$with_rfb" = yes; then
36986 display_libs="$display_libs rfb"
36987 cat >>confdefs.h <<\_ACEOF
36988 #define BX_WITH_RFB 1
36989 _ACEOF
36991 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
36992 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
36995 if test "$with_amigaos" = yes; then
36996 display_libs="$display_libs amigaos"
36997 cat >>confdefs.h <<\_ACEOF
36998 #define BX_WITH_AMIGAOS 1
36999 _ACEOF
37001 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
37002 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
37005 if test "$with_win32" = yes; then
37006 display_libs="$display_libs win32"
37007 cat >>confdefs.h <<\_ACEOF
37008 #define BX_WITH_WIN32 1
37009 _ACEOF
37011 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
37012 case $target in
37013 *-pc-windows*)
37014 if test "$with_wx" != yes; then
37015 RC_CMD="rc /fo"
37016 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37018 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
37020 *-cygwin* | *-mingw32*)
37021 if test "$with_wx" != yes; then
37022 RC_CMD="windres -o "
37023 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37025 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
37027 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37029 esac
37032 if test "$with_macos" = yes; then
37033 display_libs="$display_libs macos"
37034 cat >>confdefs.h <<\_ACEOF
37035 #define BX_WITH_MACOS 1
37036 _ACEOF
37038 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
37039 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
37042 if test "$with_carbon" = yes; then
37043 display_libs="$display_libs carbon"
37044 cat >>confdefs.h <<\_ACEOF
37045 #define BX_WITH_CARBON 1
37046 _ACEOF
37048 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
37049 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
37050 if test "$bx_plugins" = 1; then
37051 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
37052 else
37053 PRIMARY_TARGET=bochs.app/.build # only for carbon application
37055 INSTALL_TARGET='install_macosx'
37058 if test "$with_term" = yes; then
37059 display_libs="$display_libs term"
37060 cat >>confdefs.h <<\_ACEOF
37061 #define BX_WITH_TERM 1
37062 _ACEOF
37064 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
37065 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
37066 use_curses=yes
37069 if test "$with_wx" = yes; then
37070 display_libs="$display_libs wxWidgets"
37071 if test "$cross_configure" = 1; then
37072 true # do not insist, if configuring for another machine
37073 else
37074 if test x$ok_wx_version != x1; then
37075 echo ERROR: A usable version of wxWidgets was not found.
37076 echo Upgrade the library or choose another gui.
37077 exit 1
37080 cat >>confdefs.h <<\_ACEOF
37081 #define BX_WITH_WX 1
37082 _ACEOF
37084 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
37085 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
37086 WX_CFLAGS="`$WX_CONFIG --cflags`"
37087 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37088 if test "$wx_multi_lib" = 1; then
37089 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37090 else
37091 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37093 if test "$wx_needs_gtk2" = 1; then
37096 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37097 if test -n "$ac_tool_prefix"; then
37098 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37099 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37102 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37103 echo $ECHO_N "(cached) $ECHO_C" >&6
37104 else
37105 case $PKG_CONFIG in
37106 [\\/]* | ?:[\\/]*)
37107 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37111 for as_dir in $PATH
37113 IFS=$as_save_IFS
37114 test -z "$as_dir" && as_dir=.
37115 for ac_exec_ext in '' $ac_executable_extensions; do
37116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37117 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37119 break 2
37121 done
37122 done
37123 IFS=$as_save_IFS
37126 esac
37128 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37129 if test -n "$PKG_CONFIG"; then
37130 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37131 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37132 else
37133 { echo "$as_me:$LINENO: result: no" >&5
37134 echo "${ECHO_T}no" >&6; }
37139 if test -z "$ac_cv_path_PKG_CONFIG"; then
37140 ac_pt_PKG_CONFIG=$PKG_CONFIG
37141 # Extract the first word of "pkg-config", so it can be a program name with args.
37142 set dummy pkg-config; ac_word=$2
37143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37145 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37146 echo $ECHO_N "(cached) $ECHO_C" >&6
37147 else
37148 case $ac_pt_PKG_CONFIG in
37149 [\\/]* | ?:[\\/]*)
37150 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37154 for as_dir in $PATH
37156 IFS=$as_save_IFS
37157 test -z "$as_dir" && as_dir=.
37158 for ac_exec_ext in '' $ac_executable_extensions; do
37159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37162 break 2
37164 done
37165 done
37166 IFS=$as_save_IFS
37169 esac
37171 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37172 if test -n "$ac_pt_PKG_CONFIG"; then
37173 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37174 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37175 else
37176 { echo "$as_me:$LINENO: result: no" >&5
37177 echo "${ECHO_T}no" >&6; }
37180 if test "x$ac_pt_PKG_CONFIG" = x; then
37181 PKG_CONFIG=""
37182 else
37183 case $cross_compiling:$ac_tool_warned in
37184 yes:)
37185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37186 whose name does not start with the host triplet. If you think this
37187 configuration is useful to you, please write to autoconf@gnu.org." >&5
37188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37189 whose name does not start with the host triplet. If you think this
37190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37191 ac_tool_warned=yes ;;
37192 esac
37193 PKG_CONFIG=$ac_pt_PKG_CONFIG
37195 else
37196 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37200 if test -n "$PKG_CONFIG"; then
37201 _pkg_min_version=0.9.0
37202 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37203 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37204 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37205 { echo "$as_me:$LINENO: result: yes" >&5
37206 echo "${ECHO_T}yes" >&6; }
37207 else
37208 { echo "$as_me:$LINENO: result: no" >&5
37209 echo "${ECHO_T}no" >&6; }
37210 PKG_CONFIG=""
37215 pkg_failed=no
37216 { echo "$as_me:$LINENO: checking for GTK" >&5
37217 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
37219 if test -n "$PKG_CONFIG"; then
37220 if test -n "$GTK_CFLAGS"; then
37221 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
37222 else
37223 if test -n "$PKG_CONFIG" && \
37224 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37225 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37226 ac_status=$?
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); }; then
37229 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
37230 else
37231 pkg_failed=yes
37234 else
37235 pkg_failed=untried
37237 if test -n "$PKG_CONFIG"; then
37238 if test -n "$GTK_LIBS"; then
37239 pkg_cv_GTK_LIBS="$GTK_LIBS"
37240 else
37241 if test -n "$PKG_CONFIG" && \
37242 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37243 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37244 ac_status=$?
37245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37246 (exit $ac_status); }; then
37247 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
37248 else
37249 pkg_failed=yes
37252 else
37253 pkg_failed=untried
37258 if test $pkg_failed = yes; then
37260 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37261 _pkg_short_errors_supported=yes
37262 else
37263 _pkg_short_errors_supported=no
37265 if test $_pkg_short_errors_supported = yes; then
37266 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
37267 else
37268 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
37270 # Put the nasty error message in config.log where it belongs
37271 echo "$GTK_PKG_ERRORS" >&5
37273 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
37275 $GTK_PKG_ERRORS
37277 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37278 installed software in a non-standard prefix.
37280 Alternatively, you may set the environment variables GTK_CFLAGS
37281 and GTK_LIBS to avoid the need to call pkg-config.
37282 See the pkg-config man page for more details.
37283 " >&5
37284 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
37286 $GTK_PKG_ERRORS
37288 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37289 installed software in a non-standard prefix.
37291 Alternatively, you may set the environment variables GTK_CFLAGS
37292 and GTK_LIBS to avoid the need to call pkg-config.
37293 See the pkg-config man page for more details.
37294 " >&2;}
37295 { (exit 1); exit 1; }; }
37296 elif test $pkg_failed = untried; then
37297 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
37298 is in your PATH or set the PKG_CONFIG environment variable to the full
37299 path to pkg-config.
37301 Alternatively, you may set the environment variables GTK_CFLAGS
37302 and GTK_LIBS to avoid the need to call pkg-config.
37303 See the pkg-config man page for more details.
37305 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37306 See \`config.log' for more details." >&5
37307 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
37308 is in your PATH or set the PKG_CONFIG environment variable to the full
37309 path to pkg-config.
37311 Alternatively, you may set the environment variables GTK_CFLAGS
37312 and GTK_LIBS to avoid the need to call pkg-config.
37313 See the pkg-config man page for more details.
37315 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37316 See \`config.log' for more details." >&2;}
37317 { (exit 1); exit 1; }; }
37318 else
37319 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
37320 GTK_LIBS=$pkg_cv_GTK_LIBS
37321 { echo "$as_me:$LINENO: result: yes" >&5
37322 echo "${ECHO_T}yes" >&6; }
37324 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
37325 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
37328 else
37329 # if gtk-config exists, then add it to the cflags.
37330 gtkconf=`gtk-config --cflags`
37331 if test $? = 0; then
37332 # gtk-config was found and returned 0, so it must return valid output
37333 WX_CFLAGS="$WX_CFLAGS $gtkconf"
37334 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
37337 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37338 # the files in gui/*.cc. They are not used when building other things
37339 # such as bximage.
37340 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37341 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37342 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37343 # using debugger with readline is failing due to thread/signal handler
37344 # problems.
37345 case $target in
37346 *-pc-windows* | *-cygwin* | *-mingw32*)
37347 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37348 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37350 esac
37353 if test "$with_nogui" = yes; then
37354 display_libs="$display_libs nogui"
37355 cat >>confdefs.h <<\_ACEOF
37356 #define BX_WITH_NOGUI 1
37357 _ACEOF
37359 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37362 { echo "$as_me:$LINENO: checking for display libraries" >&5
37363 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37364 { echo "$as_me:$LINENO: result: $display_libs" >&5
37365 echo "${ECHO_T}$display_libs" >&6; }
37367 if test "$display_libs" = ""; then
37368 echo "No display libraries were selected. Use --with-* options to enable"
37369 echo "individual display libraries, or --with-all-libs to detect the ones"
37370 echo "that Bochs supports."
37371 exit 1
37374 if test "$display_libs" = " wxWidgets"; then
37375 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37376 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37377 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37378 echo "${ECHO_T}wxWidgets" >&6; }
37379 { echo "$as_me:$LINENO: checking for default display library" >&5
37380 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37381 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37382 echo "${ECHO_T}wxWidgets" >&6; }
37383 cat >>confdefs.h <<\_ACEOF
37384 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
37385 _ACEOF
37387 cat >>confdefs.h <<\_ACEOF
37388 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37389 _ACEOF
37391 cat >>confdefs.h <<\_ACEOF
37392 #define BX_USE_TEXTCONFIG 0
37393 _ACEOF
37395 else
37396 cat >>confdefs.h <<\_ACEOF
37397 #define BX_USE_TEXTCONFIG 1
37398 _ACEOF
37402 if test "$bx_plugins" = 1; then
37403 # every item in this list will be compiled as a plugin. Do not include
37404 # support objs; they will be mentioned in plugin-specific makefile rules.
37405 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37406 else
37407 # include support objs
37408 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37417 for ac_prog in wget curl fetch
37419 # Extract the first word of "$ac_prog", so it can be a program name with args.
37420 set dummy $ac_prog; ac_word=$2
37421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37423 if test "${ac_cv_prog_WGET+set}" = set; then
37424 echo $ECHO_N "(cached) $ECHO_C" >&6
37425 else
37426 if test -n "$WGET"; then
37427 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37428 else
37429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37430 for as_dir in $PATH
37432 IFS=$as_save_IFS
37433 test -z "$as_dir" && as_dir=.
37434 for ac_exec_ext in '' $ac_executable_extensions; do
37435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37436 ac_cv_prog_WGET="$ac_prog"
37437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37438 break 2
37440 done
37441 done
37442 IFS=$as_save_IFS
37446 WGET=$ac_cv_prog_WGET
37447 if test -n "$WGET"; then
37448 { echo "$as_me:$LINENO: result: $WGET" >&5
37449 echo "${ECHO_T}$WGET" >&6; }
37450 else
37451 { echo "$as_me:$LINENO: result: no" >&5
37452 echo "${ECHO_T}no" >&6; }
37456 test -n "$WGET" && break
37457 done
37458 test -n "$WGET" || WGET="not_found"
37460 if test "$WGET" = not_found; then
37461 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37462 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37464 # everybody has to re-invent the wheel. differently.
37465 test "${WGET}" = "curl" && WGET="curl -O"
37467 # modify settings based on target platform
37468 case "$target" in
37469 *-macosx*)
37470 cat >>confdefs.h <<\_ACEOF
37471 #define BX_HAVE_STRDUP 0
37472 _ACEOF
37475 *-macos*)
37476 cat >>confdefs.h <<\_ACEOF
37477 #define BX_HAVE_STRDUP 0
37478 _ACEOF
37480 cat >>confdefs.h <<\_ACEOF
37481 #define BX_PLUGINS 0
37482 _ACEOF
37484 cat >>confdefs.h <<\_ACEOF
37485 #define BX_HAVE_DLFCN_H 0
37486 _ACEOF
37488 cat >>confdefs.h <<\_ACEOF
37489 #define BX_HAVE_SOCKLEN_T 0
37490 _ACEOF
37492 cat >>confdefs.h <<\_ACEOF
37493 #define BX_HAVE_SELECT 0
37494 _ACEOF
37496 cat >>confdefs.h <<\_ACEOF
37497 #define BX_HAVE_GETTIMEOFDAY 0
37498 _ACEOF
37500 cat >>confdefs.h <<\_ACEOF
37501 #define BX_NO_ATTRIBUTES 1
37502 _ACEOF
37504 cat >>confdefs.h <<\_ACEOF
37505 #define HAVE_TUNTAP 0
37506 _ACEOF
37508 cat >>confdefs.h <<\_ACEOF
37509 #define HAVE_ETHERTAP 0
37510 _ACEOF
37512 cat >>confdefs.h <<\_ACEOF
37513 #define BX_HAVE_HASH_MAP 0
37514 _ACEOF
37517 *-pc-windows*)
37518 INSTALL_TARGET='install_win32'
37519 CC="cl"
37520 CXX="$CC"
37521 #C_OPT="/Zi" # for debugging
37522 C_OPT="/Ox" # optimize for speed
37523 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37524 CXXFLAGS="$CFLAGS"
37525 DASH="/"
37526 SLASH="\\"
37527 CXXFP="/Tp"
37528 CFP="/Tc"
37529 OFP="/Fo"
37530 MAKE=nmake
37531 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37532 RMCOMMAND="-del"
37533 RANLIB="echo"
37534 #L_OPT="/debug" # for debugging
37535 L_OPT="" # no debug info
37536 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37537 LINK_CONSOLE=$LINK
37538 EXE=".exe"
37539 PRIMARY_TARGET="bochs.exe"
37540 BXIMAGE_LINK_OPTS="user32.lib"
37541 # also compile niclist if networking is on
37542 if test "$networking" = yes; then
37543 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37545 COMMAND_SEPARATOR=""
37546 CD_UP_ONE="cd .."
37547 CD_UP_TWO="cd ..\.."
37548 CD_UP_THREE="cd ..\..\.."
37549 have_gettimeofday=0 # even though it may exist in build environment
37550 cat >>confdefs.h <<\_ACEOF
37551 #define BX_64BIT_CONSTANTS_USE_LL 0
37552 _ACEOF
37554 cat >>confdefs.h <<\_ACEOF
37555 #define inline __inline
37556 _ACEOF
37558 cat >>confdefs.h <<\_ACEOF
37559 #define BX_NO_EMPTY_STRUCTS 1
37560 _ACEOF
37562 cat >>confdefs.h <<\_ACEOF
37563 #define BX_NO_ATTRIBUTES 1
37564 _ACEOF
37566 cat >>confdefs.h <<\_ACEOF
37567 #define BX_HAVE_HASH_MAP 0
37568 _ACEOF
37570 cat >>confdefs.h <<\_ACEOF
37571 #define BX_HAVE_HASH_MAP_H 0
37572 _ACEOF
37574 cat >>confdefs.h <<\_ACEOF
37575 #define BX_HAVE_STRTOULL 0
37576 _ACEOF
37578 cat >>confdefs.h <<\_ACEOF
37579 #define BX_HAVE_STRTOUQ 0
37580 _ACEOF
37582 cat >>confdefs.h <<\_ACEOF
37583 #define HAVE_LIBREADLINE 0
37584 _ACEOF
37586 cat >>confdefs.h <<\_ACEOF
37587 #define BX_HAVE_GETTIMEOFDAY 0
37588 _ACEOF
37590 cat >>confdefs.h <<\_ACEOF
37591 #define BX_HAVE_DLFCN_H 0
37592 _ACEOF
37594 cat >>confdefs.h <<\_ACEOF
37595 #define BX_HAVE_MKSTEMP 0
37596 _ACEOF
37598 cat >>confdefs.h <<\_ACEOF
37599 #define BX_HAVE_SYS_MMAN_H 0
37600 _ACEOF
37602 cat >>confdefs.h <<\_ACEOF
37603 #define BX_HAVE_USLEEP 0
37604 _ACEOF
37606 cat >>confdefs.h <<\_ACEOF
37607 #define HAVE_ETHERTAP 0
37608 _ACEOF
37610 cat >>confdefs.h <<\_ACEOF
37611 #define BX_HAVE_SELECT 1
37612 _ACEOF
37614 cat >>confdefs.h <<\_ACEOF
37615 #define BX_HAVE_SOCKLEN_T 0
37616 _ACEOF
37619 *-pc-cygwin*)
37620 EXE=".exe"
37621 PRIMARY_TARGET="bochs.exe"
37622 BXIMAGE_LINK_OPTS="-luser32"
37623 if test "$networking" = yes; then
37624 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37626 cat >>confdefs.h <<\_ACEOF
37627 #define BX_HAVE_SELECT 1
37628 _ACEOF
37631 *-pc-mingw*)
37632 BXIMAGE_LINK_OPTS="-luser32"
37633 if test "$networking" = yes; then
37634 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
37636 cat >>confdefs.h <<\_ACEOF
37637 #define BX_HAVE_SELECT 1
37638 _ACEOF
37641 *-beos*)
37642 PRIMARY_TARGET=.bochs_beos_target
37644 esac
37646 DIALOG_OBJS=""
37647 EXPORT_DYNAMIC="-export-dynamic"
37648 case $target in
37649 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
37650 if test "$bx_plugins" = 1; then
37651 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
37652 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
37653 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
37654 echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37656 ac_check_lib_save_LIBS=$LIBS
37657 LIBS="-lmingwex $LIBS"
37658 cat >conftest.$ac_ext <<_ACEOF
37659 /* confdefs.h. */
37660 _ACEOF
37661 cat confdefs.h >>conftest.$ac_ext
37662 cat >>conftest.$ac_ext <<_ACEOF
37663 /* end confdefs.h. */
37665 /* Override any GCC internal prototype to avoid an error.
37666 Use char because int might match the return type of a GCC
37667 builtin and then its argument prototype would still apply. */
37668 #ifdef __cplusplus
37669 extern "C"
37670 #endif
37671 char opendir ();
37673 main ()
37675 return opendir ();
37677 return 0;
37679 _ACEOF
37680 rm -f conftest.$ac_objext conftest$ac_exeext
37681 if { (ac_try="$ac_link"
37682 case "(($ac_try" in
37683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37684 *) ac_try_echo=$ac_try;;
37685 esac
37686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37687 (eval "$ac_link") 2>conftest.er1
37688 ac_status=$?
37689 grep -v '^ *+' conftest.er1 >conftest.err
37690 rm -f conftest.er1
37691 cat conftest.err >&5
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); } && {
37694 test -z "$ac_c_werror_flag" ||
37695 test ! -s conftest.err
37696 } && test -s conftest$ac_exeext &&
37697 $as_test_x conftest$ac_exeext; then
37698 ac_cv_lib_mingwex_opendir=yes
37699 else
37700 echo "$as_me: failed program was:" >&5
37701 sed 's/^/| /' conftest.$ac_ext >&5
37703 ac_cv_lib_mingwex_opendir=no
37706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37707 conftest$ac_exeext conftest.$ac_ext
37708 LIBS=$ac_check_lib_save_LIBS
37710 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
37711 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
37712 if test $ac_cv_lib_mingwex_opendir = yes; then
37713 LIBS="$LIBS -lmingwex"
37716 # set variables for building DLL plugins
37717 PRIMARY_TARGET=".win32_dll_plugin_target"
37718 PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
37719 INSTALL_PLUGINS_VAR=install_dll_plugins
37720 else
37721 if test "$with_win32" != yes; then
37722 LIBS="$LIBS -lcomctl32"
37725 DIALOG_OBJS="win32dialog.o"
37726 EXPORT_DYNAMIC=""
37728 esac
37732 if test "$use_curses" = yes -a "$cross_configure" = 0; then
37733 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
37734 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
37735 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
37736 echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37738 ac_check_lib_save_LIBS=$LIBS
37739 LIBS="-lcurses $LIBS"
37740 cat >conftest.$ac_ext <<_ACEOF
37741 /* confdefs.h. */
37742 _ACEOF
37743 cat confdefs.h >>conftest.$ac_ext
37744 cat >>conftest.$ac_ext <<_ACEOF
37745 /* end confdefs.h. */
37747 /* Override any GCC internal prototype to avoid an error.
37748 Use char because int might match the return type of a GCC
37749 builtin and then its argument prototype would still apply. */
37750 #ifdef __cplusplus
37751 extern "C"
37752 #endif
37753 char mvaddch ();
37755 main ()
37757 return mvaddch ();
37759 return 0;
37761 _ACEOF
37762 rm -f conftest.$ac_objext conftest$ac_exeext
37763 if { (ac_try="$ac_link"
37764 case "(($ac_try" in
37765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37766 *) ac_try_echo=$ac_try;;
37767 esac
37768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37769 (eval "$ac_link") 2>conftest.er1
37770 ac_status=$?
37771 grep -v '^ *+' conftest.er1 >conftest.err
37772 rm -f conftest.er1
37773 cat conftest.err >&5
37774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775 (exit $ac_status); } && {
37776 test -z "$ac_c_werror_flag" ||
37777 test ! -s conftest.err
37778 } && test -s conftest$ac_exeext &&
37779 $as_test_x conftest$ac_exeext; then
37780 ac_cv_lib_curses_mvaddch=yes
37781 else
37782 echo "$as_me: failed program was:" >&5
37783 sed 's/^/| /' conftest.$ac_ext >&5
37785 ac_cv_lib_curses_mvaddch=no
37788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37789 conftest$ac_exeext conftest.$ac_ext
37790 LIBS=$ac_check_lib_save_LIBS
37792 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
37793 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
37794 if test $ac_cv_lib_curses_mvaddch = yes; then
37795 GUI_LINK_OPTS_TERM='-lcurses'
37798 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
37799 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
37800 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37802 else
37803 ac_check_lib_save_LIBS=$LIBS
37804 LIBS="-lncurses $LIBS"
37805 cat >conftest.$ac_ext <<_ACEOF
37806 /* confdefs.h. */
37807 _ACEOF
37808 cat confdefs.h >>conftest.$ac_ext
37809 cat >>conftest.$ac_ext <<_ACEOF
37810 /* end confdefs.h. */
37812 /* Override any GCC internal prototype to avoid an error.
37813 Use char because int might match the return type of a GCC
37814 builtin and then its argument prototype would still apply. */
37815 #ifdef __cplusplus
37816 extern "C"
37817 #endif
37818 char mvaddch ();
37820 main ()
37822 return mvaddch ();
37824 return 0;
37826 _ACEOF
37827 rm -f conftest.$ac_objext conftest$ac_exeext
37828 if { (ac_try="$ac_link"
37829 case "(($ac_try" in
37830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37831 *) ac_try_echo=$ac_try;;
37832 esac
37833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37834 (eval "$ac_link") 2>conftest.er1
37835 ac_status=$?
37836 grep -v '^ *+' conftest.er1 >conftest.err
37837 rm -f conftest.er1
37838 cat conftest.err >&5
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); } && {
37841 test -z "$ac_c_werror_flag" ||
37842 test ! -s conftest.err
37843 } && test -s conftest$ac_exeext &&
37844 $as_test_x conftest$ac_exeext; then
37845 ac_cv_lib_ncurses_mvaddch=yes
37846 else
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 ac_cv_lib_ncurses_mvaddch=no
37853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37854 conftest$ac_exeext conftest.$ac_ext
37855 LIBS=$ac_check_lib_save_LIBS
37857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
37858 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
37859 if test $ac_cv_lib_ncurses_mvaddch = yes; then
37860 GUI_LINK_OPTS_TERM='-lncurses'
37863 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
37864 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
37865 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867 else
37868 ac_check_lib_save_LIBS=$LIBS
37869 LIBS="-ltermlib $LIBS"
37870 cat >conftest.$ac_ext <<_ACEOF
37871 /* confdefs.h. */
37872 _ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h. */
37877 /* Override any GCC internal prototype to avoid an error.
37878 Use char because int might match the return type of a GCC
37879 builtin and then its argument prototype would still apply. */
37880 #ifdef __cplusplus
37881 extern "C"
37882 #endif
37883 char mvaddch ();
37885 main ()
37887 return mvaddch ();
37889 return 0;
37891 _ACEOF
37892 rm -f conftest.$ac_objext conftest$ac_exeext
37893 if { (ac_try="$ac_link"
37894 case "(($ac_try" in
37895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37896 *) ac_try_echo=$ac_try;;
37897 esac
37898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37899 (eval "$ac_link") 2>conftest.er1
37900 ac_status=$?
37901 grep -v '^ *+' conftest.er1 >conftest.err
37902 rm -f conftest.er1
37903 cat conftest.err >&5
37904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905 (exit $ac_status); } && {
37906 test -z "$ac_c_werror_flag" ||
37907 test ! -s conftest.err
37908 } && test -s conftest$ac_exeext &&
37909 $as_test_x conftest$ac_exeext; then
37910 ac_cv_lib_termlib_mvaddch=yes
37911 else
37912 echo "$as_me: failed program was:" >&5
37913 sed 's/^/| /' conftest.$ac_ext >&5
37915 ac_cv_lib_termlib_mvaddch=no
37918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37919 conftest$ac_exeext conftest.$ac_ext
37920 LIBS=$ac_check_lib_save_LIBS
37922 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
37923 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
37924 if test $ac_cv_lib_termlib_mvaddch = yes; then
37925 GUI_LINK_OPTS_TERM='-ltermlib'
37928 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
37929 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
37930 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
37931 echo $ECHO_N "(cached) $ECHO_C" >&6
37932 else
37933 ac_check_lib_save_LIBS=$LIBS
37934 LIBS="-lpdcurses $LIBS"
37935 cat >conftest.$ac_ext <<_ACEOF
37936 /* confdefs.h. */
37937 _ACEOF
37938 cat confdefs.h >>conftest.$ac_ext
37939 cat >>conftest.$ac_ext <<_ACEOF
37940 /* end confdefs.h. */
37942 /* Override any GCC internal prototype to avoid an error.
37943 Use char because int might match the return type of a GCC
37944 builtin and then its argument prototype would still apply. */
37945 #ifdef __cplusplus
37946 extern "C"
37947 #endif
37948 char mvaddch ();
37950 main ()
37952 return mvaddch ();
37954 return 0;
37956 _ACEOF
37957 rm -f conftest.$ac_objext conftest$ac_exeext
37958 if { (ac_try="$ac_link"
37959 case "(($ac_try" in
37960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37961 *) ac_try_echo=$ac_try;;
37962 esac
37963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37964 (eval "$ac_link") 2>conftest.er1
37965 ac_status=$?
37966 grep -v '^ *+' conftest.er1 >conftest.err
37967 rm -f conftest.er1
37968 cat conftest.err >&5
37969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37970 (exit $ac_status); } && {
37971 test -z "$ac_c_werror_flag" ||
37972 test ! -s conftest.err
37973 } && test -s conftest$ac_exeext &&
37974 $as_test_x conftest$ac_exeext; then
37975 ac_cv_lib_pdcurses_mvaddch=yes
37976 else
37977 echo "$as_me: failed program was:" >&5
37978 sed 's/^/| /' conftest.$ac_ext >&5
37980 ac_cv_lib_pdcurses_mvaddch=no
37983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37984 conftest$ac_exeext conftest.$ac_ext
37985 LIBS=$ac_check_lib_save_LIBS
37987 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
37988 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
37989 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
37990 GUI_LINK_OPTS_TERM='-lpdcurses'
37993 if test "$GUI_LINK_OPTS_TERM" = ""; then
37994 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
37995 exit 1
37999 if test "$with_term" = yes; then
38000 old_LIBS="$LIBS"
38001 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38003 for ac_func in color_set
38005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38009 echo $ECHO_N "(cached) $ECHO_C" >&6
38010 else
38011 cat >conftest.$ac_ext <<_ACEOF
38012 /* confdefs.h. */
38013 _ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h. */
38017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38019 #define $ac_func innocuous_$ac_func
38021 /* System header to define __stub macros and hopefully few prototypes,
38022 which can conflict with char $ac_func (); below.
38023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38024 <limits.h> exists even on freestanding compilers. */
38026 #ifdef __STDC__
38027 # include <limits.h>
38028 #else
38029 # include <assert.h>
38030 #endif
38032 #undef $ac_func
38034 /* Override any GCC internal prototype to avoid an error.
38035 Use char because int might match the return type of a GCC
38036 builtin and then its argument prototype would still apply. */
38037 #ifdef __cplusplus
38038 extern "C"
38039 #endif
38040 char $ac_func ();
38041 /* The GNU C library defines this for functions which it implements
38042 to always fail with ENOSYS. Some functions are actually named
38043 something starting with __ and the normal name is an alias. */
38044 #if defined __stub_$ac_func || defined __stub___$ac_func
38045 choke me
38046 #endif
38049 main ()
38051 return $ac_func ();
38053 return 0;
38055 _ACEOF
38056 rm -f conftest.$ac_objext conftest$ac_exeext
38057 if { (ac_try="$ac_link"
38058 case "(($ac_try" in
38059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38060 *) ac_try_echo=$ac_try;;
38061 esac
38062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38063 (eval "$ac_link") 2>conftest.er1
38064 ac_status=$?
38065 grep -v '^ *+' conftest.er1 >conftest.err
38066 rm -f conftest.er1
38067 cat conftest.err >&5
38068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); } && {
38070 test -z "$ac_c_werror_flag" ||
38071 test ! -s conftest.err
38072 } && test -s conftest$ac_exeext &&
38073 $as_test_x conftest$ac_exeext; then
38074 eval "$as_ac_var=yes"
38075 else
38076 echo "$as_me: failed program was:" >&5
38077 sed 's/^/| /' conftest.$ac_ext >&5
38079 eval "$as_ac_var=no"
38082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38083 conftest$ac_exeext conftest.$ac_ext
38085 ac_res=`eval echo '${'$as_ac_var'}'`
38086 { echo "$as_me:$LINENO: result: $ac_res" >&5
38087 echo "${ECHO_T}$ac_res" >&6; }
38088 if test `eval echo '${'$as_ac_var'}'` = yes; then
38089 cat >>confdefs.h <<_ACEOF
38090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38091 _ACEOF
38092 cat >>confdefs.h <<\_ACEOF
38093 #define BX_HAVE_COLOR_SET 1
38094 _ACEOF
38097 done
38100 for ac_func in mvhline
38102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38106 echo $ECHO_N "(cached) $ECHO_C" >&6
38107 else
38108 cat >conftest.$ac_ext <<_ACEOF
38109 /* confdefs.h. */
38110 _ACEOF
38111 cat confdefs.h >>conftest.$ac_ext
38112 cat >>conftest.$ac_ext <<_ACEOF
38113 /* end confdefs.h. */
38114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38116 #define $ac_func innocuous_$ac_func
38118 /* System header to define __stub macros and hopefully few prototypes,
38119 which can conflict with char $ac_func (); below.
38120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38121 <limits.h> exists even on freestanding compilers. */
38123 #ifdef __STDC__
38124 # include <limits.h>
38125 #else
38126 # include <assert.h>
38127 #endif
38129 #undef $ac_func
38131 /* Override any GCC internal prototype to avoid an error.
38132 Use char because int might match the return type of a GCC
38133 builtin and then its argument prototype would still apply. */
38134 #ifdef __cplusplus
38135 extern "C"
38136 #endif
38137 char $ac_func ();
38138 /* The GNU C library defines this for functions which it implements
38139 to always fail with ENOSYS. Some functions are actually named
38140 something starting with __ and the normal name is an alias. */
38141 #if defined __stub_$ac_func || defined __stub___$ac_func
38142 choke me
38143 #endif
38146 main ()
38148 return $ac_func ();
38150 return 0;
38152 _ACEOF
38153 rm -f conftest.$ac_objext conftest$ac_exeext
38154 if { (ac_try="$ac_link"
38155 case "(($ac_try" in
38156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38157 *) ac_try_echo=$ac_try;;
38158 esac
38159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38160 (eval "$ac_link") 2>conftest.er1
38161 ac_status=$?
38162 grep -v '^ *+' conftest.er1 >conftest.err
38163 rm -f conftest.er1
38164 cat conftest.err >&5
38165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38166 (exit $ac_status); } && {
38167 test -z "$ac_c_werror_flag" ||
38168 test ! -s conftest.err
38169 } && test -s conftest$ac_exeext &&
38170 $as_test_x conftest$ac_exeext; then
38171 eval "$as_ac_var=yes"
38172 else
38173 echo "$as_me: failed program was:" >&5
38174 sed 's/^/| /' conftest.$ac_ext >&5
38176 eval "$as_ac_var=no"
38179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38180 conftest$ac_exeext conftest.$ac_ext
38182 ac_res=`eval echo '${'$as_ac_var'}'`
38183 { echo "$as_me:$LINENO: result: $ac_res" >&5
38184 echo "${ECHO_T}$ac_res" >&6; }
38185 if test `eval echo '${'$as_ac_var'}'` = yes; then
38186 cat >>confdefs.h <<_ACEOF
38187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38188 _ACEOF
38189 cat >>confdefs.h <<\_ACEOF
38190 #define BX_HAVE_MVHLINE 1
38191 _ACEOF
38194 done
38197 for ac_func in mvvline
38199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38203 echo $ECHO_N "(cached) $ECHO_C" >&6
38204 else
38205 cat >conftest.$ac_ext <<_ACEOF
38206 /* confdefs.h. */
38207 _ACEOF
38208 cat confdefs.h >>conftest.$ac_ext
38209 cat >>conftest.$ac_ext <<_ACEOF
38210 /* end confdefs.h. */
38211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38213 #define $ac_func innocuous_$ac_func
38215 /* System header to define __stub macros and hopefully few prototypes,
38216 which can conflict with char $ac_func (); below.
38217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38218 <limits.h> exists even on freestanding compilers. */
38220 #ifdef __STDC__
38221 # include <limits.h>
38222 #else
38223 # include <assert.h>
38224 #endif
38226 #undef $ac_func
38228 /* Override any GCC internal prototype to avoid an error.
38229 Use char because int might match the return type of a GCC
38230 builtin and then its argument prototype would still apply. */
38231 #ifdef __cplusplus
38232 extern "C"
38233 #endif
38234 char $ac_func ();
38235 /* The GNU C library defines this for functions which it implements
38236 to always fail with ENOSYS. Some functions are actually named
38237 something starting with __ and the normal name is an alias. */
38238 #if defined __stub_$ac_func || defined __stub___$ac_func
38239 choke me
38240 #endif
38243 main ()
38245 return $ac_func ();
38247 return 0;
38249 _ACEOF
38250 rm -f conftest.$ac_objext conftest$ac_exeext
38251 if { (ac_try="$ac_link"
38252 case "(($ac_try" in
38253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38254 *) ac_try_echo=$ac_try;;
38255 esac
38256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38257 (eval "$ac_link") 2>conftest.er1
38258 ac_status=$?
38259 grep -v '^ *+' conftest.er1 >conftest.err
38260 rm -f conftest.er1
38261 cat conftest.err >&5
38262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263 (exit $ac_status); } && {
38264 test -z "$ac_c_werror_flag" ||
38265 test ! -s conftest.err
38266 } && test -s conftest$ac_exeext &&
38267 $as_test_x conftest$ac_exeext; then
38268 eval "$as_ac_var=yes"
38269 else
38270 echo "$as_me: failed program was:" >&5
38271 sed 's/^/| /' conftest.$ac_ext >&5
38273 eval "$as_ac_var=no"
38276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38277 conftest$ac_exeext conftest.$ac_ext
38279 ac_res=`eval echo '${'$as_ac_var'}'`
38280 { echo "$as_me:$LINENO: result: $ac_res" >&5
38281 echo "${ECHO_T}$ac_res" >&6; }
38282 if test `eval echo '${'$as_ac_var'}'` = yes; then
38283 cat >>confdefs.h <<_ACEOF
38284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38285 _ACEOF
38286 cat >>confdefs.h <<\_ACEOF
38287 #define BX_HAVE_MVVLINE 1
38288 _ACEOF
38291 done
38293 LIBS="$old_LIBS"
38296 if test "$with_rfb" = yes; then
38297 # we need the socket function
38298 case $target in
38299 *-pc-windows*)
38300 # is this okay without a check ?
38301 RFB_LIBS="$RFB_LIBS wsock32.lib"
38302 have_socket=yes
38304 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38305 # is this okay without a check ?
38306 RFB_LIBS="$RFB_LIBS -lwsock32"
38307 have_socket=yes
38311 for ac_func in socket
38313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38314 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38317 echo $ECHO_N "(cached) $ECHO_C" >&6
38318 else
38319 cat >conftest.$ac_ext <<_ACEOF
38320 /* confdefs.h. */
38321 _ACEOF
38322 cat confdefs.h >>conftest.$ac_ext
38323 cat >>conftest.$ac_ext <<_ACEOF
38324 /* end confdefs.h. */
38325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38327 #define $ac_func innocuous_$ac_func
38329 /* System header to define __stub macros and hopefully few prototypes,
38330 which can conflict with char $ac_func (); below.
38331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38332 <limits.h> exists even on freestanding compilers. */
38334 #ifdef __STDC__
38335 # include <limits.h>
38336 #else
38337 # include <assert.h>
38338 #endif
38340 #undef $ac_func
38342 /* Override any GCC internal prototype to avoid an error.
38343 Use char because int might match the return type of a GCC
38344 builtin and then its argument prototype would still apply. */
38345 #ifdef __cplusplus
38346 extern "C"
38347 #endif
38348 char $ac_func ();
38349 /* The GNU C library defines this for functions which it implements
38350 to always fail with ENOSYS. Some functions are actually named
38351 something starting with __ and the normal name is an alias. */
38352 #if defined __stub_$ac_func || defined __stub___$ac_func
38353 choke me
38354 #endif
38357 main ()
38359 return $ac_func ();
38361 return 0;
38363 _ACEOF
38364 rm -f conftest.$ac_objext conftest$ac_exeext
38365 if { (ac_try="$ac_link"
38366 case "(($ac_try" in
38367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38368 *) ac_try_echo=$ac_try;;
38369 esac
38370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38371 (eval "$ac_link") 2>conftest.er1
38372 ac_status=$?
38373 grep -v '^ *+' conftest.er1 >conftest.err
38374 rm -f conftest.er1
38375 cat conftest.err >&5
38376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38377 (exit $ac_status); } && {
38378 test -z "$ac_c_werror_flag" ||
38379 test ! -s conftest.err
38380 } && test -s conftest$ac_exeext &&
38381 $as_test_x conftest$ac_exeext; then
38382 eval "$as_ac_var=yes"
38383 else
38384 echo "$as_me: failed program was:" >&5
38385 sed 's/^/| /' conftest.$ac_ext >&5
38387 eval "$as_ac_var=no"
38390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38391 conftest$ac_exeext conftest.$ac_ext
38393 ac_res=`eval echo '${'$as_ac_var'}'`
38394 { echo "$as_me:$LINENO: result: $ac_res" >&5
38395 echo "${ECHO_T}$ac_res" >&6; }
38396 if test `eval echo '${'$as_ac_var'}'` = yes; then
38397 cat >>confdefs.h <<_ACEOF
38398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38399 _ACEOF
38400 have_socket=yes
38402 done
38404 if test "$have_socket" != yes; then
38405 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38406 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38407 if test "${ac_cv_lib_socket_socket+set}" = set; then
38408 echo $ECHO_N "(cached) $ECHO_C" >&6
38409 else
38410 ac_check_lib_save_LIBS=$LIBS
38411 LIBS="-lsocket $LIBS"
38412 cat >conftest.$ac_ext <<_ACEOF
38413 /* confdefs.h. */
38414 _ACEOF
38415 cat confdefs.h >>conftest.$ac_ext
38416 cat >>conftest.$ac_ext <<_ACEOF
38417 /* end confdefs.h. */
38419 /* Override any GCC internal prototype to avoid an error.
38420 Use char because int might match the return type of a GCC
38421 builtin and then its argument prototype would still apply. */
38422 #ifdef __cplusplus
38423 extern "C"
38424 #endif
38425 char socket ();
38427 main ()
38429 return socket ();
38431 return 0;
38433 _ACEOF
38434 rm -f conftest.$ac_objext conftest$ac_exeext
38435 if { (ac_try="$ac_link"
38436 case "(($ac_try" in
38437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38438 *) ac_try_echo=$ac_try;;
38439 esac
38440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38441 (eval "$ac_link") 2>conftest.er1
38442 ac_status=$?
38443 grep -v '^ *+' conftest.er1 >conftest.err
38444 rm -f conftest.er1
38445 cat conftest.err >&5
38446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447 (exit $ac_status); } && {
38448 test -z "$ac_c_werror_flag" ||
38449 test ! -s conftest.err
38450 } && test -s conftest$ac_exeext &&
38451 $as_test_x conftest$ac_exeext; then
38452 ac_cv_lib_socket_socket=yes
38453 else
38454 echo "$as_me: failed program was:" >&5
38455 sed 's/^/| /' conftest.$ac_ext >&5
38457 ac_cv_lib_socket_socket=no
38460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38461 conftest$ac_exeext conftest.$ac_ext
38462 LIBS=$ac_check_lib_save_LIBS
38464 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38465 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38466 if test $ac_cv_lib_socket_socket = yes; then
38468 RFB_LIBS="$RFB_LIBS -lsocket"
38469 have_socket=yes
38475 esac
38476 if test "$have_socket" != yes; then
38477 echo 'ERROR: socket function required for RFB compile'
38478 exit 1
38482 # The ACX_PTHREAD function was written by
38483 # Steven G. Johnson <stevenj@alum.mit.edu> and
38484 # Alejandro Forero Cuervo <bachue@bachue.com>
38485 # I found it in the ac-archive project on Source Forge.
38488 pthread_ok=no
38491 acx_pthread_ok=no
38493 # First, check if the POSIX threads header, pthread.h, is available.
38494 # If it isn't, don't bother looking for the threads libraries.
38495 if test "${ac_cv_header_pthread_h+set}" = set; then
38496 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38497 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38498 if test "${ac_cv_header_pthread_h+set}" = set; then
38499 echo $ECHO_N "(cached) $ECHO_C" >&6
38501 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38502 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38503 else
38504 # Is the header compilable?
38505 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
38506 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38507 cat >conftest.$ac_ext <<_ACEOF
38508 /* confdefs.h. */
38509 _ACEOF
38510 cat confdefs.h >>conftest.$ac_ext
38511 cat >>conftest.$ac_ext <<_ACEOF
38512 /* end confdefs.h. */
38513 $ac_includes_default
38514 #include <pthread.h>
38515 _ACEOF
38516 rm -f conftest.$ac_objext
38517 if { (ac_try="$ac_compile"
38518 case "(($ac_try" in
38519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38520 *) ac_try_echo=$ac_try;;
38521 esac
38522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38523 (eval "$ac_compile") 2>conftest.er1
38524 ac_status=$?
38525 grep -v '^ *+' conftest.er1 >conftest.err
38526 rm -f conftest.er1
38527 cat conftest.err >&5
38528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38529 (exit $ac_status); } && {
38530 test -z "$ac_c_werror_flag" ||
38531 test ! -s conftest.err
38532 } && test -s conftest.$ac_objext; then
38533 ac_header_compiler=yes
38534 else
38535 echo "$as_me: failed program was:" >&5
38536 sed 's/^/| /' conftest.$ac_ext >&5
38538 ac_header_compiler=no
38541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38543 echo "${ECHO_T}$ac_header_compiler" >&6; }
38545 # Is the header present?
38546 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
38547 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38548 cat >conftest.$ac_ext <<_ACEOF
38549 /* confdefs.h. */
38550 _ACEOF
38551 cat confdefs.h >>conftest.$ac_ext
38552 cat >>conftest.$ac_ext <<_ACEOF
38553 /* end confdefs.h. */
38554 #include <pthread.h>
38555 _ACEOF
38556 if { (ac_try="$ac_cpp conftest.$ac_ext"
38557 case "(($ac_try" in
38558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38559 *) ac_try_echo=$ac_try;;
38560 esac
38561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38563 ac_status=$?
38564 grep -v '^ *+' conftest.er1 >conftest.err
38565 rm -f conftest.er1
38566 cat conftest.err >&5
38567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38568 (exit $ac_status); } >/dev/null && {
38569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38570 test ! -s conftest.err
38571 }; then
38572 ac_header_preproc=yes
38573 else
38574 echo "$as_me: failed program was:" >&5
38575 sed 's/^/| /' conftest.$ac_ext >&5
38577 ac_header_preproc=no
38580 rm -f conftest.err conftest.$ac_ext
38581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38582 echo "${ECHO_T}$ac_header_preproc" >&6; }
38584 # So? What about this header?
38585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38586 yes:no: )
38587 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38588 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38589 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
38590 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
38591 ac_header_preproc=yes
38593 no:yes:* )
38594 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38595 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38596 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
38597 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
38598 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38599 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38600 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
38601 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
38602 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
38603 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
38604 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38605 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38608 esac
38609 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38610 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38611 if test "${ac_cv_header_pthread_h+set}" = set; then
38612 echo $ECHO_N "(cached) $ECHO_C" >&6
38613 else
38614 ac_cv_header_pthread_h=$ac_header_preproc
38616 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38617 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38620 if test $ac_cv_header_pthread_h = yes; then
38622 else
38623 acx_pthread_ok=noheader
38628 # We must check for the threads library under a number of different
38629 # names; the ordering is very important because some systems
38630 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
38631 # libraries is broken (non-POSIX).
38633 # First of all, check if the user has set any of the PTHREAD_LIBS,
38634 # etcetera environment variables, and if threads linking works using
38635 # them:
38636 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38637 save_CFLAGS="$CFLAGS"
38638 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38639 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38640 save_LIBS="$LIBS"
38641 LIBS="$PTHREAD_LIBS $LIBS"
38642 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
38643 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
38644 cat >conftest.$ac_ext <<_ACEOF
38645 /* confdefs.h. */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38651 /* Override any GCC internal prototype to avoid an error.
38652 Use char because int might match the return type of a GCC
38653 builtin and then its argument prototype would still apply. */
38654 #ifdef __cplusplus
38655 extern "C"
38656 #endif
38657 char pthread_join ();
38659 main ()
38661 return pthread_join ();
38663 return 0;
38665 _ACEOF
38666 rm -f conftest.$ac_objext conftest$ac_exeext
38667 if { (ac_try="$ac_link"
38668 case "(($ac_try" in
38669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38670 *) ac_try_echo=$ac_try;;
38671 esac
38672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38673 (eval "$ac_link") 2>conftest.er1
38674 ac_status=$?
38675 grep -v '^ *+' conftest.er1 >conftest.err
38676 rm -f conftest.er1
38677 cat conftest.err >&5
38678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38679 (exit $ac_status); } && {
38680 test -z "$ac_c_werror_flag" ||
38681 test ! -s conftest.err
38682 } && test -s conftest$ac_exeext &&
38683 $as_test_x conftest$ac_exeext; then
38684 acx_pthread_ok=yes
38685 else
38686 echo "$as_me: failed program was:" >&5
38687 sed 's/^/| /' conftest.$ac_ext >&5
38692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38693 conftest$ac_exeext conftest.$ac_ext
38694 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38695 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38696 if test x"$acx_pthread_ok" = xno; then
38697 PTHREAD_LIBS=""
38698 PTHREAD_CFLAGS=""
38700 LIBS="$save_LIBS"
38701 CFLAGS="$save_CFLAGS"
38704 # Create a list of thread flags to try. Items starting with a "-" are
38705 # C compiler flags, and other items are library names, except for "none"
38706 # which indicates that we try without any flags at all.
38708 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
38710 # The ordering *is* (sometimes) important. Some notes on the
38711 # individual items follow:
38713 # pthreads: AIX (must check this before -lpthread)
38714 # none: in case threads are in libc; should be tried before -Kthread and
38715 # other compiler flags to prevent continual compiler warnings
38716 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
38717 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
38718 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
38719 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
38720 # -pthreads: Solaris/gcc
38721 # -mthreads: Mingw32/gcc, Lynx/gcc
38722 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
38723 # doesn't hurt to check since this sometimes defines pthreads too;
38724 # also defines -D_REENTRANT)
38725 # pthread: Linux, etcetera
38726 # --thread-safe: KAI C++
38728 case "${host_cpu}-${host_os}" in
38729 *solaris*)
38731 # On Solaris (at least, for some versions), libc contains stubbed
38732 # (non-functional) versions of the pthreads routines, so link-based
38733 # tests will erroneously succeed. (We need to link with -pthread or
38734 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
38735 # a function called by this macro, so we could check for that, but
38736 # who knows whether they'll stub that too in a future libc.) So,
38737 # we'll just look for -pthreads and -lpthread first:
38739 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
38741 esac
38743 if test x"$acx_pthread_ok" = xno; then
38744 for flag in $acx_pthread_flags; do
38746 case $flag in
38747 none)
38748 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38749 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38753 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38754 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38755 PTHREAD_CFLAGS="$flag"
38759 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38760 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38761 PTHREAD_LIBS="-l$flag"
38763 esac
38765 save_LIBS="$LIBS"
38766 save_CFLAGS="$CFLAGS"
38767 LIBS="$PTHREAD_LIBS $LIBS"
38768 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38770 # Check for various functions. We must include pthread.h,
38771 # since some functions may be macros. (On the Sequent, we
38772 # need a special flag -Kthread to make this header compile.)
38773 # We check for pthread_join because it is in -lpthread on IRIX
38774 # while pthread_create is in libc. We check for pthread_attr_init
38775 # due to DEC craziness with -lpthreads. We check for
38776 # pthread_cleanup_push because it is one of the few pthread
38777 # functions on Solaris that doesn't have a non-functional libc stub.
38778 # We try pthread_create on general principles.
38779 cat >conftest.$ac_ext <<_ACEOF
38780 /* confdefs.h. */
38781 _ACEOF
38782 cat confdefs.h >>conftest.$ac_ext
38783 cat >>conftest.$ac_ext <<_ACEOF
38784 /* end confdefs.h. */
38785 #include <pthread.h>
38787 main ()
38789 pthread_t th; pthread_join(th, 0);
38790 pthread_attr_init(0); pthread_cleanup_push(0, 0);
38791 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
38793 return 0;
38795 _ACEOF
38796 rm -f conftest.$ac_objext conftest$ac_exeext
38797 if { (ac_try="$ac_link"
38798 case "(($ac_try" in
38799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38800 *) ac_try_echo=$ac_try;;
38801 esac
38802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38803 (eval "$ac_link") 2>conftest.er1
38804 ac_status=$?
38805 grep -v '^ *+' conftest.er1 >conftest.err
38806 rm -f conftest.er1
38807 cat conftest.err >&5
38808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809 (exit $ac_status); } && {
38810 test -z "$ac_c_werror_flag" ||
38811 test ! -s conftest.err
38812 } && test -s conftest$ac_exeext &&
38813 $as_test_x conftest$ac_exeext; then
38814 acx_pthread_ok=yes
38815 else
38816 echo "$as_me: failed program was:" >&5
38817 sed 's/^/| /' conftest.$ac_ext >&5
38822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38823 conftest$ac_exeext conftest.$ac_ext
38825 LIBS="$save_LIBS"
38826 CFLAGS="$save_CFLAGS"
38828 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38829 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38830 if test "x$acx_pthread_ok" = xyes; then
38831 break;
38834 PTHREAD_LIBS=""
38835 PTHREAD_CFLAGS=""
38836 done
38839 # Various other checks:
38840 if test "x$acx_pthread_ok" = xyes; then
38841 save_LIBS="$LIBS"
38842 LIBS="$PTHREAD_LIBS $LIBS"
38843 save_CFLAGS="$CFLAGS"
38844 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38846 # Detect AIX lossage: threads are created detached by default
38847 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
38848 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
38849 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
38850 cat >conftest.$ac_ext <<_ACEOF
38851 /* confdefs.h. */
38852 _ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h. */
38856 #include <pthread.h>
38858 main ()
38860 int attr=PTHREAD_CREATE_JOINABLE;
38862 return 0;
38864 _ACEOF
38865 rm -f conftest.$ac_objext conftest$ac_exeext
38866 if { (ac_try="$ac_link"
38867 case "(($ac_try" in
38868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38869 *) ac_try_echo=$ac_try;;
38870 esac
38871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38872 (eval "$ac_link") 2>conftest.er1
38873 ac_status=$?
38874 grep -v '^ *+' conftest.er1 >conftest.err
38875 rm -f conftest.er1
38876 cat conftest.err >&5
38877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); } && {
38879 test -z "$ac_c_werror_flag" ||
38880 test ! -s conftest.err
38881 } && test -s conftest$ac_exeext &&
38882 $as_test_x conftest$ac_exeext; then
38883 ok=PTHREAD_CREATE_JOINABLE
38884 else
38885 echo "$as_me: failed program was:" >&5
38886 sed 's/^/| /' conftest.$ac_ext >&5
38888 ok=unknown
38891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38892 conftest$ac_exeext conftest.$ac_ext
38893 if test x"$ok" = xunknown; then
38894 cat >conftest.$ac_ext <<_ACEOF
38895 /* confdefs.h. */
38896 _ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h. */
38900 #include <pthread.h>
38902 main ()
38904 int attr=PTHREAD_CREATE_UNDETACHED;
38906 return 0;
38908 _ACEOF
38909 rm -f conftest.$ac_objext conftest$ac_exeext
38910 if { (ac_try="$ac_link"
38911 case "(($ac_try" in
38912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38913 *) ac_try_echo=$ac_try;;
38914 esac
38915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38916 (eval "$ac_link") 2>conftest.er1
38917 ac_status=$?
38918 grep -v '^ *+' conftest.er1 >conftest.err
38919 rm -f conftest.er1
38920 cat conftest.err >&5
38921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922 (exit $ac_status); } && {
38923 test -z "$ac_c_werror_flag" ||
38924 test ! -s conftest.err
38925 } && test -s conftest$ac_exeext &&
38926 $as_test_x conftest$ac_exeext; then
38927 ok=PTHREAD_CREATE_UNDETACHED
38928 else
38929 echo "$as_me: failed program was:" >&5
38930 sed 's/^/| /' conftest.$ac_ext >&5
38932 ok=unknown
38935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38936 conftest$ac_exeext conftest.$ac_ext
38938 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
38940 cat >>confdefs.h <<\_ACEOF
38941 #define PTHREAD_CREATE_JOINABLE $ok
38942 _ACEOF
38945 { echo "$as_me:$LINENO: result: ${ok}" >&5
38946 echo "${ECHO_T}${ok}" >&6; }
38947 if test x"$ok" = xunknown; then
38948 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
38949 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
38952 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
38953 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
38954 flag=no
38955 case "${host_cpu}-${host_os}" in
38956 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
38957 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
38958 esac
38959 { echo "$as_me:$LINENO: result: ${flag}" >&5
38960 echo "${ECHO_T}${flag}" >&6; }
38961 if test "x$flag" != xno; then
38962 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
38965 LIBS="$save_LIBS"
38966 CFLAGS="$save_CFLAGS"
38968 # More AIX lossage: must compile with cc_r
38969 # Extract the first word of "cc_r", so it can be a program name with args.
38970 set dummy cc_r; ac_word=$2
38971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38973 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
38974 echo $ECHO_N "(cached) $ECHO_C" >&6
38975 else
38976 if test -n "$PTHREAD_CC"; then
38977 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
38978 else
38979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38980 for as_dir in $PATH
38982 IFS=$as_save_IFS
38983 test -z "$as_dir" && as_dir=.
38984 for ac_exec_ext in '' $ac_executable_extensions; do
38985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38986 ac_cv_prog_PTHREAD_CC="cc_r"
38987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38988 break 2
38990 done
38991 done
38992 IFS=$as_save_IFS
38994 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
38997 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
38998 if test -n "$PTHREAD_CC"; then
38999 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39000 echo "${ECHO_T}$PTHREAD_CC" >&6; }
39001 else
39002 { echo "$as_me:$LINENO: result: no" >&5
39003 echo "${ECHO_T}no" >&6; }
39007 else
39008 PTHREAD_CC="$CC"
39015 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39016 if test x"$acx_pthread_ok" = xyes; then
39018 pthread_ok=yes
39019 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39020 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39021 #echo Using PTHREAD_CC=$PTHREAD_CC
39024 else
39025 acx_pthread_ok=no
39032 # since RFB (usually) needs pthread library, check that it was found.
39033 # But on win32 platforms, the pthread library is not needed.
39034 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39035 if test "$pthread_ok" = yes; then
39036 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39037 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39038 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39039 CC="$PTHREAD_CC"
39040 else
39041 case "$target" in
39042 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39043 # pthread not needed for win32 platform
39046 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39047 esac
39052 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39053 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39054 # Check whether --enable-magic-breakpoints was given.
39055 if test "${enable_magic_breakpoints+set}" = set; then
39056 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39057 echo "${ECHO_T}$enableval" >&6; }
39058 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39059 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39060 { (exit 1); exit 1; }; }
39062 else
39064 { echo "$as_me:$LINENO: result: no" >&5
39065 echo "${ECHO_T}no" >&6; }
39070 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39071 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39072 # Check whether --enable-save-restore was given.
39073 if test "${enable_save_restore+set}" = set; then
39074 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39075 echo "${ECHO_T}$enableval" >&6; }
39076 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39077 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39078 { (exit 1); exit 1; }; }
39080 else
39082 { echo "$as_me:$LINENO: result: no" >&5
39083 echo "${ECHO_T}no" >&6; }
39088 # Create some subdirectories for when you run configure from some other
39089 # directory.
39090 if test ! -d instrument; then mkdir instrument; fi
39091 if test ! -d build; then mkdir build; fi
39092 if test ! -d build/linux; then mkdir build/linux; fi
39093 if test ! -d build/win32; then mkdir build/win32; fi
39094 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39134 # Extract the first word of "gzip", so it can be a program name with args.
39135 set dummy gzip; ac_word=$2
39136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39138 if test "${ac_cv_path_GZIP+set}" = set; then
39139 echo $ECHO_N "(cached) $ECHO_C" >&6
39140 else
39141 case $GZIP in
39142 [\\/]* | ?:[\\/]*)
39143 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39147 for as_dir in $PATH
39149 IFS=$as_save_IFS
39150 test -z "$as_dir" && as_dir=.
39151 for ac_exec_ext in '' $ac_executable_extensions; do
39152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39153 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39155 break 2
39157 done
39158 done
39159 IFS=$as_save_IFS
39162 esac
39164 GZIP=$ac_cv_path_GZIP
39165 if test -n "$GZIP"; then
39166 { echo "$as_me:$LINENO: result: $GZIP" >&5
39167 echo "${ECHO_T}$GZIP" >&6; }
39168 else
39169 { echo "$as_me:$LINENO: result: no" >&5
39170 echo "${ECHO_T}no" >&6; }
39174 # Extract the first word of "tar", so it can be a program name with args.
39175 set dummy tar; ac_word=$2
39176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39178 if test "${ac_cv_path_TAR+set}" = set; then
39179 echo $ECHO_N "(cached) $ECHO_C" >&6
39180 else
39181 case $TAR in
39182 [\\/]* | ?:[\\/]*)
39183 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39187 for as_dir in $PATH
39189 IFS=$as_save_IFS
39190 test -z "$as_dir" && as_dir=.
39191 for ac_exec_ext in '' $ac_executable_extensions; do
39192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39193 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39195 break 2
39197 done
39198 done
39199 IFS=$as_save_IFS
39202 esac
39204 TAR=$ac_cv_path_TAR
39205 if test -n "$TAR"; then
39206 { echo "$as_me:$LINENO: result: $TAR" >&5
39207 echo "${ECHO_T}$TAR" >&6; }
39208 else
39209 { echo "$as_me:$LINENO: result: no" >&5
39210 echo "${ECHO_T}no" >&6; }
39215 ac_config_files="$ac_config_files Makefile iodev/Makefile bx_debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx bxversion.h bxversion.rc build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
39217 cat >confcache <<\_ACEOF
39218 # This file is a shell script that caches the results of configure
39219 # tests run on this system so they can be shared between configure
39220 # scripts and configure runs, see configure's option --config-cache.
39221 # It is not useful on other systems. If it contains results you don't
39222 # want to keep, you may remove or edit it.
39224 # config.status only pays attention to the cache file if you give it
39225 # the --recheck option to rerun configure.
39227 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39228 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39229 # following values.
39231 _ACEOF
39233 # The following way of writing the cache mishandles newlines in values,
39234 # but we know of no workaround that is simple, portable, and efficient.
39235 # So, we kill variables containing newlines.
39236 # Ultrix sh set writes to stderr and can't be redirected directly,
39237 # and sets the high bit in the cache file unless we assign to the vars.
39239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39240 eval ac_val=\$$ac_var
39241 case $ac_val in #(
39242 *${as_nl}*)
39243 case $ac_var in #(
39244 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39245 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39246 esac
39247 case $ac_var in #(
39248 _ | IFS | as_nl) ;; #(
39249 *) $as_unset $ac_var ;;
39250 esac ;;
39251 esac
39252 done
39254 (set) 2>&1 |
39255 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39256 *${as_nl}ac_space=\ *)
39257 # `set' does not quote correctly, so add quotes (double-quote
39258 # substitution turns \\\\ into \\, and sed turns \\ into \).
39259 sed -n \
39260 "s/'/'\\\\''/g;
39261 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39262 ;; #(
39264 # `set' quotes correctly as required by POSIX, so do not add quotes.
39265 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39267 esac |
39268 sort
39270 sed '
39271 /^ac_cv_env_/b end
39272 t clear
39273 :clear
39274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39275 t end
39276 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39277 :end' >>confcache
39278 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39279 if test -w "$cache_file"; then
39280 test "x$cache_file" != "x/dev/null" &&
39281 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39282 echo "$as_me: updating cache $cache_file" >&6;}
39283 cat confcache >$cache_file
39284 else
39285 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39286 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39289 rm -f confcache
39291 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39292 # Let make expand exec_prefix.
39293 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39295 DEFS=-DHAVE_CONFIG_H
39297 ac_libobjs=
39298 ac_ltlibobjs=
39299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39300 # 1. Remove the extension, and $U if already installed.
39301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39302 ac_i=`echo "$ac_i" | sed "$ac_script"`
39303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39304 # will be set to the directory where LIBOBJS objects are built.
39305 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39306 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39307 done
39308 LIBOBJS=$ac_libobjs
39310 LTLIBOBJS=$ac_ltlibobjs
39314 : ${CONFIG_STATUS=./config.status}
39315 ac_clean_files_save=$ac_clean_files
39316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39317 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39318 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39319 cat >$CONFIG_STATUS <<_ACEOF
39320 #! $SHELL
39321 # Generated by $as_me.
39322 # Run this file to recreate the current configuration.
39323 # Compiler output produced by configure, useful for debugging
39324 # configure, is in config.log if it exists.
39326 debug=false
39327 ac_cs_recheck=false
39328 ac_cs_silent=false
39329 SHELL=\${CONFIG_SHELL-$SHELL}
39330 _ACEOF
39332 cat >>$CONFIG_STATUS <<\_ACEOF
39333 ## --------------------- ##
39334 ## M4sh Initialization. ##
39335 ## --------------------- ##
39337 # Be more Bourne compatible
39338 DUALCASE=1; export DUALCASE # for MKS sh
39339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39340 emulate sh
39341 NULLCMD=:
39342 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39343 # is contrary to our usage. Disable this feature.
39344 alias -g '${1+"$@"}'='"$@"'
39345 setopt NO_GLOB_SUBST
39346 else
39347 case `(set -o) 2>/dev/null` in
39348 *posix*) set -o posix ;;
39349 esac
39356 # PATH needs CR
39357 # Avoid depending upon Character Ranges.
39358 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39359 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39360 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39361 as_cr_digits='0123456789'
39362 as_cr_alnum=$as_cr_Letters$as_cr_digits
39364 # The user is always right.
39365 if test "${PATH_SEPARATOR+set}" != set; then
39366 echo "#! /bin/sh" >conf$$.sh
39367 echo "exit 0" >>conf$$.sh
39368 chmod +x conf$$.sh
39369 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39370 PATH_SEPARATOR=';'
39371 else
39372 PATH_SEPARATOR=:
39374 rm -f conf$$.sh
39377 # Support unset when possible.
39378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39379 as_unset=unset
39380 else
39381 as_unset=false
39385 # IFS
39386 # We need space, tab and new line, in precisely that order. Quoting is
39387 # there to prevent editors from complaining about space-tab.
39388 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39389 # splitting by setting IFS to empty value.)
39390 as_nl='
39392 IFS=" "" $as_nl"
39394 # Find who we are. Look in the path if we contain no directory separator.
39395 case $0 in
39396 *[\\/]* ) as_myself=$0 ;;
39397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39398 for as_dir in $PATH
39400 IFS=$as_save_IFS
39401 test -z "$as_dir" && as_dir=.
39402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39403 done
39404 IFS=$as_save_IFS
39407 esac
39408 # We did not find ourselves, most probably we were run as `sh COMMAND'
39409 # in which case we are not to be found in the path.
39410 if test "x$as_myself" = x; then
39411 as_myself=$0
39413 if test ! -f "$as_myself"; then
39414 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39415 { (exit 1); exit 1; }
39418 # Work around bugs in pre-3.0 UWIN ksh.
39419 for as_var in ENV MAIL MAILPATH
39420 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39421 done
39422 PS1='$ '
39423 PS2='> '
39424 PS4='+ '
39426 # NLS nuisances.
39427 for as_var in \
39428 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39429 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39430 LC_TELEPHONE LC_TIME
39432 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39433 eval $as_var=C; export $as_var
39434 else
39435 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39437 done
39439 # Required to use basename.
39440 if expr a : '\(a\)' >/dev/null 2>&1 &&
39441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39442 as_expr=expr
39443 else
39444 as_expr=false
39447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39448 as_basename=basename
39449 else
39450 as_basename=false
39454 # Name of the executable.
39455 as_me=`$as_basename -- "$0" ||
39456 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39457 X"$0" : 'X\(//\)$' \| \
39458 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39459 echo X/"$0" |
39460 sed '/^.*\/\([^/][^/]*\)\/*$/{
39461 s//\1/
39464 /^X\/\(\/\/\)$/{
39465 s//\1/
39468 /^X\/\(\/\).*/{
39469 s//\1/
39472 s/.*/./; q'`
39474 # CDPATH.
39475 $as_unset CDPATH
39479 as_lineno_1=$LINENO
39480 as_lineno_2=$LINENO
39481 test "x$as_lineno_1" != "x$as_lineno_2" &&
39482 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39484 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39485 # uniformly replaced by the line number. The first 'sed' inserts a
39486 # line-number line after each line using $LINENO; the second 'sed'
39487 # does the real work. The second script uses 'N' to pair each
39488 # line-number line with the line containing $LINENO, and appends
39489 # trailing '-' during substitution so that $LINENO is not a special
39490 # case at line end.
39491 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39492 # scripts with optimization help from Paolo Bonzini. Blame Lee
39493 # E. McMahon (1931-1989) for sed's syntax. :-)
39494 sed -n '
39496 /[$]LINENO/=
39497 ' <$as_myself |
39498 sed '
39499 s/[$]LINENO.*/&-/
39500 t lineno
39502 :lineno
39504 :loop
39505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39506 t loop
39507 s/-\n.*//
39508 ' >$as_me.lineno &&
39509 chmod +x "$as_me.lineno" ||
39510 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39511 { (exit 1); exit 1; }; }
39513 # Don't try to exec as it changes $[0], causing all sort of problems
39514 # (the dirname of $[0] is not the place where we might find the
39515 # original and so on. Autoconf is especially sensitive to this).
39516 . "./$as_me.lineno"
39517 # Exit status is that of the last command.
39518 exit
39522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39523 as_dirname=dirname
39524 else
39525 as_dirname=false
39528 ECHO_C= ECHO_N= ECHO_T=
39529 case `echo -n x` in
39530 -n*)
39531 case `echo 'x\c'` in
39532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39533 *) ECHO_C='\c';;
39534 esac;;
39536 ECHO_N='-n';;
39537 esac
39539 if expr a : '\(a\)' >/dev/null 2>&1 &&
39540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39541 as_expr=expr
39542 else
39543 as_expr=false
39546 rm -f conf$$ conf$$.exe conf$$.file
39547 if test -d conf$$.dir; then
39548 rm -f conf$$.dir/conf$$.file
39549 else
39550 rm -f conf$$.dir
39551 mkdir conf$$.dir
39553 echo >conf$$.file
39554 if ln -s conf$$.file conf$$ 2>/dev/null; then
39555 as_ln_s='ln -s'
39556 # ... but there are two gotchas:
39557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39559 # In both cases, we have to default to `cp -p'.
39560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39561 as_ln_s='cp -p'
39562 elif ln conf$$.file conf$$ 2>/dev/null; then
39563 as_ln_s=ln
39564 else
39565 as_ln_s='cp -p'
39567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39568 rmdir conf$$.dir 2>/dev/null
39570 if mkdir -p . 2>/dev/null; then
39571 as_mkdir_p=:
39572 else
39573 test -d ./-p && rmdir ./-p
39574 as_mkdir_p=false
39577 if test -x / >/dev/null 2>&1; then
39578 as_test_x='test -x'
39579 else
39580 if ls -dL / >/dev/null 2>&1; then
39581 as_ls_L_option=L
39582 else
39583 as_ls_L_option=
39585 as_test_x='
39586 eval sh -c '\''
39587 if test -d "$1"; then
39588 test -d "$1/.";
39589 else
39590 case $1 in
39591 -*)set "./$1";;
39592 esac;
39593 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39594 ???[sx]*):;;*)false;;esac;fi
39595 '\'' sh
39598 as_executable_p=$as_test_x
39600 # Sed expression to map a string onto a valid CPP name.
39601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39603 # Sed expression to map a string onto a valid variable name.
39604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39607 exec 6>&1
39609 # Save the log message, to keep $[0] and so on meaningful, and to
39610 # report actual input values of CONFIG_FILES etc. instead of their
39611 # values after options handling.
39612 ac_log="
39613 This file was extended by $as_me, which was
39614 generated by GNU Autoconf 2.61. Invocation command line was
39616 CONFIG_FILES = $CONFIG_FILES
39617 CONFIG_HEADERS = $CONFIG_HEADERS
39618 CONFIG_LINKS = $CONFIG_LINKS
39619 CONFIG_COMMANDS = $CONFIG_COMMANDS
39620 $ $0 $@
39622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39625 _ACEOF
39627 cat >>$CONFIG_STATUS <<_ACEOF
39628 # Files that config.status was made for.
39629 config_files="$ac_config_files"
39630 config_headers="$ac_config_headers"
39632 _ACEOF
39634 cat >>$CONFIG_STATUS <<\_ACEOF
39635 ac_cs_usage="\
39636 \`$as_me' instantiates files from templates according to the
39637 current configuration.
39639 Usage: $0 [OPTIONS] [FILE]...
39641 -h, --help print this help, then exit
39642 -V, --version print version number and configuration settings, then exit
39643 -q, --quiet do not print progress messages
39644 -d, --debug don't remove temporary files
39645 --recheck update $as_me by reconfiguring in the same conditions
39646 --file=FILE[:TEMPLATE]
39647 instantiate the configuration file FILE
39648 --header=FILE[:TEMPLATE]
39649 instantiate the configuration header FILE
39651 Configuration files:
39652 $config_files
39654 Configuration headers:
39655 $config_headers
39657 Report bugs to <bug-autoconf@gnu.org>."
39659 _ACEOF
39660 cat >>$CONFIG_STATUS <<_ACEOF
39661 ac_cs_version="\\
39662 config.status
39663 configured by $0, generated by GNU Autoconf 2.61,
39664 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39666 Copyright (C) 2006 Free Software Foundation, Inc.
39667 This config.status script is free software; the Free Software Foundation
39668 gives unlimited permission to copy, distribute and modify it."
39670 ac_pwd='$ac_pwd'
39671 srcdir='$srcdir'
39672 _ACEOF
39674 cat >>$CONFIG_STATUS <<\_ACEOF
39675 # If no file are specified by the user, then we need to provide default
39676 # value. By we need to know if files were specified by the user.
39677 ac_need_defaults=:
39678 while test $# != 0
39680 case $1 in
39681 --*=*)
39682 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39683 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39684 ac_shift=:
39687 ac_option=$1
39688 ac_optarg=$2
39689 ac_shift=shift
39691 esac
39693 case $ac_option in
39694 # Handling of the options.
39695 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39696 ac_cs_recheck=: ;;
39697 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39698 echo "$ac_cs_version"; exit ;;
39699 --debug | --debu | --deb | --de | --d | -d )
39700 debug=: ;;
39701 --file | --fil | --fi | --f )
39702 $ac_shift
39703 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39704 ac_need_defaults=false;;
39705 --header | --heade | --head | --hea )
39706 $ac_shift
39707 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39708 ac_need_defaults=false;;
39709 --he | --h)
39710 # Conflict between --help and --header
39711 { echo "$as_me: error: ambiguous option: $1
39712 Try \`$0 --help' for more information." >&2
39713 { (exit 1); exit 1; }; };;
39714 --help | --hel | -h )
39715 echo "$ac_cs_usage"; exit ;;
39716 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39717 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39718 ac_cs_silent=: ;;
39720 # This is an error.
39721 -*) { echo "$as_me: error: unrecognized option: $1
39722 Try \`$0 --help' for more information." >&2
39723 { (exit 1); exit 1; }; } ;;
39725 *) ac_config_targets="$ac_config_targets $1"
39726 ac_need_defaults=false ;;
39728 esac
39729 shift
39730 done
39732 ac_configure_extra_args=
39734 if $ac_cs_silent; then
39735 exec 6>/dev/null
39736 ac_configure_extra_args="$ac_configure_extra_args --silent"
39739 _ACEOF
39740 cat >>$CONFIG_STATUS <<_ACEOF
39741 if \$ac_cs_recheck; then
39742 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39743 CONFIG_SHELL=$SHELL
39744 export CONFIG_SHELL
39745 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39748 _ACEOF
39749 cat >>$CONFIG_STATUS <<\_ACEOF
39750 exec 5>>config.log
39752 echo
39753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39754 ## Running $as_me. ##
39755 _ASBOX
39756 echo "$ac_log"
39757 } >&5
39759 _ACEOF
39760 cat >>$CONFIG_STATUS <<_ACEOF
39761 _ACEOF
39763 cat >>$CONFIG_STATUS <<\_ACEOF
39765 # Handling of arguments.
39766 for ac_config_target in $ac_config_targets
39768 case $ac_config_target in
39769 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39770 "ltdlconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
39771 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39772 "iodev/Makefile") CONFIG_FILES="$CONFIG_FILES iodev/Makefile" ;;
39773 "bx_debug/Makefile") CONFIG_FILES="$CONFIG_FILES bx_debug/Makefile" ;;
39774 "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
39775 "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
39776 "memory/Makefile") CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
39777 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
39778 "disasm/Makefile") CONFIG_FILES="$CONFIG_FILES disasm/Makefile" ;;
39779 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
39780 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
39781 "fpu/Makefile") CONFIG_FILES="$CONFIG_FILES fpu/Makefile" ;;
39782 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
39783 "build/linux/bochs-dlx") CONFIG_FILES="$CONFIG_FILES build/linux/bochs-dlx" ;;
39784 "bxversion.h") CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
39785 "bxversion.rc") CONFIG_FILES="$CONFIG_FILES bxversion.rc" ;;
39786 "build/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
39787 "build/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/Makefile" ;;
39788 "build/win32/nsis/bochs.nsi") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
39789 "host/linux/pcidev/Makefile") CONFIG_FILES="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
39791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39792 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39793 { (exit 1); exit 1; }; };;
39794 esac
39795 done
39798 # If the user did not use the arguments to specify the items to instantiate,
39799 # then the envvar interface is used. Set only those that are not.
39800 # We use the long form for the default assignment because of an extremely
39801 # bizarre bug on SunOS 4.1.3.
39802 if $ac_need_defaults; then
39803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39807 # Have a temporary directory for convenience. Make it in the build tree
39808 # simply because there is no reason against having it here, and in addition,
39809 # creating and moving files from /tmp can sometimes cause problems.
39810 # Hook for its removal unless debugging.
39811 # Note that there is a small window in which the directory will not be cleaned:
39812 # after its creation but before its name has been assigned to `$tmp'.
39813 $debug ||
39815 tmp=
39816 trap 'exit_status=$?
39817 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39819 trap '{ (exit 1); exit 1; }' 1 2 13 15
39821 # Create a (secure) tmp directory for tmp files.
39824 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39825 test -n "$tmp" && test -d "$tmp"
39826 } ||
39828 tmp=./conf$$-$RANDOM
39829 (umask 077 && mkdir "$tmp")
39830 } ||
39832 echo "$me: cannot create a temporary directory in ." >&2
39833 { (exit 1); exit 1; }
39837 # Set up the sed scripts for CONFIG_FILES section.
39840 # No need to generate the scripts if there are no CONFIG_FILES.
39841 # This happens for instance when ./config.status config.h
39842 if test -n "$CONFIG_FILES"; then
39844 _ACEOF
39848 ac_delim='%!_!# '
39849 for ac_last_try in false false false false false :; do
39850 cat >conf$$subs.sed <<_ACEOF
39851 SHELL!$SHELL$ac_delim
39852 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39853 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39854 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39855 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39856 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39857 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39858 exec_prefix!$exec_prefix$ac_delim
39859 prefix!$prefix$ac_delim
39860 program_transform_name!$program_transform_name$ac_delim
39861 bindir!$bindir$ac_delim
39862 sbindir!$sbindir$ac_delim
39863 libexecdir!$libexecdir$ac_delim
39864 datarootdir!$datarootdir$ac_delim
39865 datadir!$datadir$ac_delim
39866 sysconfdir!$sysconfdir$ac_delim
39867 sharedstatedir!$sharedstatedir$ac_delim
39868 localstatedir!$localstatedir$ac_delim
39869 includedir!$includedir$ac_delim
39870 oldincludedir!$oldincludedir$ac_delim
39871 docdir!$docdir$ac_delim
39872 infodir!$infodir$ac_delim
39873 htmldir!$htmldir$ac_delim
39874 dvidir!$dvidir$ac_delim
39875 pdfdir!$pdfdir$ac_delim
39876 psdir!$psdir$ac_delim
39877 libdir!$libdir$ac_delim
39878 localedir!$localedir$ac_delim
39879 mandir!$mandir$ac_delim
39880 DEFS!$DEFS$ac_delim
39881 ECHO_C!$ECHO_C$ac_delim
39882 ECHO_N!$ECHO_N$ac_delim
39883 ECHO_T!$ECHO_T$ac_delim
39884 LIBS!$LIBS$ac_delim
39885 build_alias!$build_alias$ac_delim
39886 host_alias!$host_alias$ac_delim
39887 target_alias!$target_alias$ac_delim
39888 build!$build$ac_delim
39889 build_cpu!$build_cpu$ac_delim
39890 build_vendor!$build_vendor$ac_delim
39891 build_os!$build_os$ac_delim
39892 host!$host$ac_delim
39893 host_cpu!$host_cpu$ac_delim
39894 host_vendor!$host_vendor$ac_delim
39895 host_os!$host_os$ac_delim
39896 target!$target$ac_delim
39897 target_cpu!$target_cpu$ac_delim
39898 target_vendor!$target_vendor$ac_delim
39899 target_os!$target_os$ac_delim
39900 CC!$CC$ac_delim
39901 CFLAGS!$CFLAGS$ac_delim
39902 LDFLAGS!$LDFLAGS$ac_delim
39903 CPPFLAGS!$CPPFLAGS$ac_delim
39904 ac_ct_CC!$ac_ct_CC$ac_delim
39905 EXEEXT!$EXEEXT$ac_delim
39906 OBJEXT!$OBJEXT$ac_delim
39907 CXX!$CXX$ac_delim
39908 CXXFLAGS!$CXXFLAGS$ac_delim
39909 ac_ct_CXX!$ac_ct_CXX$ac_delim
39910 SET_MAKE!$SET_MAKE$ac_delim
39911 GREP!$GREP$ac_delim
39912 EGREP!$EGREP$ac_delim
39913 LN_S!$LN_S$ac_delim
39914 ECHO!$ECHO$ac_delim
39915 AR!$AR$ac_delim
39916 RANLIB!$RANLIB$ac_delim
39917 STRIP!$STRIP$ac_delim
39918 CPP!$CPP$ac_delim
39919 CXXCPP!$CXXCPP$ac_delim
39920 F77!$F77$ac_delim
39921 FFLAGS!$FFLAGS$ac_delim
39922 ac_ct_F77!$ac_ct_F77$ac_delim
39923 LIBTOOL!$LIBTOOL$ac_delim
39924 LIBADD_DL!$LIBADD_DL$ac_delim
39925 XMKMF!$XMKMF$ac_delim
39926 X_CFLAGS!$X_CFLAGS$ac_delim
39927 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
39928 X_LIBS!$X_LIBS$ac_delim
39929 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
39930 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
39931 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
39932 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
39933 OBJS64!$OBJS64$ac_delim
39934 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
39935 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
39936 NE2K_OBJS!$NE2K_OBJS$ac_delim
39937 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
39938 PCI_OBJ!$PCI_OBJ$ac_delim
39939 KERNELDIR!$KERNELDIR$ac_delim
39940 LSMOD!$LSMOD$ac_delim
39941 INSMOD!$INSMOD$ac_delim
39942 RMMOD!$RMMOD$ac_delim
39943 DEPMOD!$DEPMOD$ac_delim
39944 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
39945 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
39946 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
39947 SCSI_OBJS!$SCSI_OBJS$ac_delim
39948 _ACEOF
39950 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39951 break
39952 elif $ac_last_try; then
39953 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39954 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39955 { (exit 1); exit 1; }; }
39956 else
39957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39959 done
39961 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39962 if test -n "$ac_eof"; then
39963 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39964 ac_eof=`expr $ac_eof + 1`
39967 cat >>$CONFIG_STATUS <<_ACEOF
39968 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39970 _ACEOF
39971 sed '
39972 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39973 s/^/s,@/; s/!/@,|#_!!_#|/
39976 s/'"$ac_delim"'$/,g/; t
39977 s/$/\\/; p
39978 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39979 ' >>$CONFIG_STATUS <conf$$subs.sed
39980 rm -f conf$$subs.sed
39981 cat >>$CONFIG_STATUS <<_ACEOF
39982 CEOF$ac_eof
39983 _ACEOF
39986 ac_delim='%!_!# '
39987 for ac_last_try in false false false false false :; do
39988 cat >conf$$subs.sed <<_ACEOF
39989 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
39990 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
39991 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
39992 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
39993 BX_EXTERNAL_DEBUGGER!$BX_EXTERNAL_DEBUGGER$ac_delim
39994 DISASM_VAR!$DISASM_VAR$ac_delim
39995 READLINE_LIB!$READLINE_LIB$ac_delim
39996 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
39997 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
39998 FPU_VAR!$FPU_VAR$ac_delim
39999 CDROM_OBJS!$CDROM_OBJS$ac_delim
40000 SB16_OBJS!$SB16_OBJS$ac_delim
40001 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40002 GAME_OBJS!$GAME_OBJS$ac_delim
40003 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40004 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40005 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40006 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40007 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40008 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40009 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40010 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40011 INLINE_VAR!$INLINE_VAR$ac_delim
40012 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40013 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
40014 RC_CMD!$RC_CMD$ac_delim
40015 WX_CONFIG!$WX_CONFIG$ac_delim
40016 XPM_LIB!$XPM_LIB$ac_delim
40017 PKG_CONFIG!$PKG_CONFIG$ac_delim
40018 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
40019 GTK_LIBS!$GTK_LIBS$ac_delim
40020 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40021 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40022 WX_CFLAGS!$WX_CFLAGS$ac_delim
40023 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40024 WGET!$WGET$ac_delim
40025 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40026 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40027 PTHREAD_CC!$PTHREAD_CC$ac_delim
40028 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40029 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40030 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40031 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40032 RFB_LIBS!$RFB_LIBS$ac_delim
40033 GUI_OBJS!$GUI_OBJS$ac_delim
40034 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40035 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40036 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40037 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40038 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40039 DASH!$DASH$ac_delim
40040 SLASH!$SLASH$ac_delim
40041 CXXFP!$CXXFP$ac_delim
40042 CFP!$CFP$ac_delim
40043 OFP!$OFP$ac_delim
40044 MAKELIB!$MAKELIB$ac_delim
40045 RMCOMMAND!$RMCOMMAND$ac_delim
40046 LINK!$LINK$ac_delim
40047 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40048 EXE!$EXE$ac_delim
40049 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40050 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40051 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40052 CD_UP_ONE!$CD_UP_ONE$ac_delim
40053 CD_UP_TWO!$CD_UP_TWO$ac_delim
40054 CD_UP_THREE!$CD_UP_THREE$ac_delim
40055 VERSION!$VERSION$ac_delim
40056 VER_STRING!$VER_STRING$ac_delim
40057 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40058 REL_STRING!$REL_STRING$ac_delim
40059 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40060 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40061 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40062 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40063 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40064 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40065 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40066 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40067 GZIP!$GZIP$ac_delim
40068 TAR!$TAR$ac_delim
40069 LIBOBJS!$LIBOBJS$ac_delim
40070 LTLIBOBJS!$LTLIBOBJS$ac_delim
40071 _ACEOF
40073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40074 break
40075 elif $ac_last_try; then
40076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40078 { (exit 1); exit 1; }; }
40079 else
40080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40082 done
40084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40085 if test -n "$ac_eof"; then
40086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40087 ac_eof=`expr $ac_eof + 1`
40090 cat >>$CONFIG_STATUS <<_ACEOF
40091 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40093 _ACEOF
40094 sed '
40095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40096 s/^/s,@/; s/!/@,|#_!!_#|/
40099 s/'"$ac_delim"'$/,g/; t
40100 s/$/\\/; p
40101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40102 ' >>$CONFIG_STATUS <conf$$subs.sed
40103 rm -f conf$$subs.sed
40104 cat >>$CONFIG_STATUS <<_ACEOF
40105 :end
40106 s/|#_!!_#|//g
40107 CEOF$ac_eof
40108 _ACEOF
40111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40113 # trailing colons and then remove the whole line if VPATH becomes empty
40114 # (actually we leave an empty line to preserve line numbers).
40115 if test "x$srcdir" = x.; then
40116 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40117 s/:*\$(srcdir):*/:/
40118 s/:*\${srcdir}:*/:/
40119 s/:*@srcdir@:*/:/
40120 s/^\([^=]*=[ ]*\):*/\1/
40121 s/:*$//
40122 s/^[^=]*=[ ]*$//
40126 cat >>$CONFIG_STATUS <<\_ACEOF
40127 fi # test -n "$CONFIG_FILES"
40130 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
40132 case $ac_tag in
40133 :[FHLC]) ac_mode=$ac_tag; continue;;
40134 esac
40135 case $ac_mode$ac_tag in
40136 :[FHL]*:*);;
40137 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40138 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40139 { (exit 1); exit 1; }; };;
40140 :[FH]-) ac_tag=-:-;;
40141 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40142 esac
40143 ac_save_IFS=$IFS
40144 IFS=:
40145 set x $ac_tag
40146 IFS=$ac_save_IFS
40147 shift
40148 ac_file=$1
40149 shift
40151 case $ac_mode in
40152 :L) ac_source=$1;;
40153 :[FH])
40154 ac_file_inputs=
40155 for ac_f
40157 case $ac_f in
40158 -) ac_f="$tmp/stdin";;
40159 *) # Look for the file first in the build tree, then in the source tree
40160 # (if the path is not absolute). The absolute path cannot be DOS-style,
40161 # because $ac_f cannot contain `:'.
40162 test -f "$ac_f" ||
40163 case $ac_f in
40164 [\\/$]*) false;;
40165 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40166 esac ||
40167 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40168 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40169 { (exit 1); exit 1; }; };;
40170 esac
40171 ac_file_inputs="$ac_file_inputs $ac_f"
40172 done
40174 # Let's still pretend it is `configure' which instantiates (i.e., don't
40175 # use $as_me), people would be surprised to read:
40176 # /* config.h. Generated by config.status. */
40177 configure_input="Generated from "`IFS=:
40178 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40179 if test x"$ac_file" != x-; then
40180 configure_input="$ac_file. $configure_input"
40181 { echo "$as_me:$LINENO: creating $ac_file" >&5
40182 echo "$as_me: creating $ac_file" >&6;}
40185 case $ac_tag in
40186 *:-:* | *:-) cat >"$tmp/stdin";;
40187 esac
40189 esac
40191 ac_dir=`$as_dirname -- "$ac_file" ||
40192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40193 X"$ac_file" : 'X\(//\)[^/]' \| \
40194 X"$ac_file" : 'X\(//\)$' \| \
40195 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40196 echo X"$ac_file" |
40197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40198 s//\1/
40201 /^X\(\/\/\)[^/].*/{
40202 s//\1/
40205 /^X\(\/\/\)$/{
40206 s//\1/
40209 /^X\(\/\).*/{
40210 s//\1/
40213 s/.*/./; q'`
40214 { as_dir="$ac_dir"
40215 case $as_dir in #(
40216 -*) as_dir=./$as_dir;;
40217 esac
40218 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40219 as_dirs=
40220 while :; do
40221 case $as_dir in #(
40222 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40223 *) as_qdir=$as_dir;;
40224 esac
40225 as_dirs="'$as_qdir' $as_dirs"
40226 as_dir=`$as_dirname -- "$as_dir" ||
40227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40228 X"$as_dir" : 'X\(//\)[^/]' \| \
40229 X"$as_dir" : 'X\(//\)$' \| \
40230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40231 echo X"$as_dir" |
40232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40233 s//\1/
40236 /^X\(\/\/\)[^/].*/{
40237 s//\1/
40240 /^X\(\/\/\)$/{
40241 s//\1/
40244 /^X\(\/\).*/{
40245 s//\1/
40248 s/.*/./; q'`
40249 test -d "$as_dir" && break
40250 done
40251 test -z "$as_dirs" || eval "mkdir $as_dirs"
40252 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40254 { (exit 1); exit 1; }; }; }
40255 ac_builddir=.
40257 case "$ac_dir" in
40258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40260 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40261 # A ".." for each directory in $ac_dir_suffix.
40262 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40263 case $ac_top_builddir_sub in
40264 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40265 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40266 esac ;;
40267 esac
40268 ac_abs_top_builddir=$ac_pwd
40269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40270 # for backward compatibility:
40271 ac_top_builddir=$ac_top_build_prefix
40273 case $srcdir in
40274 .) # We are building in place.
40275 ac_srcdir=.
40276 ac_top_srcdir=$ac_top_builddir_sub
40277 ac_abs_top_srcdir=$ac_pwd ;;
40278 [\\/]* | ?:[\\/]* ) # Absolute name.
40279 ac_srcdir=$srcdir$ac_dir_suffix;
40280 ac_top_srcdir=$srcdir
40281 ac_abs_top_srcdir=$srcdir ;;
40282 *) # Relative name.
40283 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40284 ac_top_srcdir=$ac_top_build_prefix$srcdir
40285 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40286 esac
40287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40290 case $ac_mode in
40293 # CONFIG_FILE
40296 _ACEOF
40298 cat >>$CONFIG_STATUS <<\_ACEOF
40299 # If the template does not know about datarootdir, expand it.
40300 # FIXME: This hack should be removed a few years after 2.60.
40301 ac_datarootdir_hack=; ac_datarootdir_seen=
40303 case `sed -n '/datarootdir/ {
40307 /@datadir@/p
40308 /@docdir@/p
40309 /@infodir@/p
40310 /@localedir@/p
40311 /@mandir@/p
40312 ' $ac_file_inputs` in
40313 *datarootdir*) ac_datarootdir_seen=yes;;
40314 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40315 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40316 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40317 _ACEOF
40318 cat >>$CONFIG_STATUS <<_ACEOF
40319 ac_datarootdir_hack='
40320 s&@datadir@&$datadir&g
40321 s&@docdir@&$docdir&g
40322 s&@infodir@&$infodir&g
40323 s&@localedir@&$localedir&g
40324 s&@mandir@&$mandir&g
40325 s&\\\${datarootdir}&$datarootdir&g' ;;
40326 esac
40327 _ACEOF
40329 # Neutralize VPATH when `$srcdir' = `.'.
40330 # Shell code in configure.ac might set extrasub.
40331 # FIXME: do we really want to maintain this feature?
40332 cat >>$CONFIG_STATUS <<_ACEOF
40333 sed "$ac_vpsub
40334 $extrasub
40335 _ACEOF
40336 cat >>$CONFIG_STATUS <<\_ACEOF
40338 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40339 s&@configure_input@&$configure_input&;t t
40340 s&@top_builddir@&$ac_top_builddir_sub&;t t
40341 s&@srcdir@&$ac_srcdir&;t t
40342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40343 s&@top_srcdir@&$ac_top_srcdir&;t t
40344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40345 s&@builddir@&$ac_builddir&;t t
40346 s&@abs_builddir@&$ac_abs_builddir&;t t
40347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40348 $ac_datarootdir_hack
40349 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40354 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40355 which seems to be undefined. Please make sure it is defined." >&5
40356 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40357 which seems to be undefined. Please make sure it is defined." >&2;}
40359 rm -f "$tmp/stdin"
40360 case $ac_file in
40361 -) cat "$tmp/out"; rm -f "$tmp/out";;
40362 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40363 esac
40367 # CONFIG_HEADER
40369 _ACEOF
40371 # Transform confdefs.h into a sed script `conftest.defines', that
40372 # substitutes the proper values into config.h.in to produce config.h.
40373 rm -f conftest.defines conftest.tail
40374 # First, append a space to every undef/define line, to ease matching.
40375 echo 's/$/ /' >conftest.defines
40376 # Then, protect against being on the right side of a sed subst, or in
40377 # an unquoted here document, in config.status. If some macros were
40378 # called several times there might be several #defines for the same
40379 # symbol, which is useless. But do not sort them, since the last
40380 # AC_DEFINE must be honored.
40381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40382 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40383 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40384 # PARAMS is the parameter list in the macro definition--in most cases, it's
40385 # just an empty string.
40386 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40387 ac_dB='\\)[ (].*,\\1define\\2'
40388 ac_dC=' '
40389 ac_dD=' ,'
40391 uniq confdefs.h |
40392 sed -n '
40393 t rset
40394 :rset
40395 s/^[ ]*#[ ]*define[ ][ ]*//
40396 t ok
40399 s/[\\&,]/\\&/g
40400 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40401 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40402 ' >>conftest.defines
40404 # Remove the space that was appended to ease matching.
40405 # Then replace #undef with comments. This is necessary, for
40406 # example, in the case of _POSIX_SOURCE, which is predefined and required
40407 # on some systems where configure will not decide to define it.
40408 # (The regexp can be short, since the line contains either #define or #undef.)
40409 echo 's/ $//
40410 s,^[ #]*u.*,/* & */,' >>conftest.defines
40412 # Break up conftest.defines:
40413 ac_max_sed_lines=50
40415 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40416 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40417 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40418 # et cetera.
40419 ac_in='$ac_file_inputs'
40420 ac_out='"$tmp/out1"'
40421 ac_nxt='"$tmp/out2"'
40423 while :
40425 # Write a here document:
40426 cat >>$CONFIG_STATUS <<_ACEOF
40427 # First, check the format of the line:
40428 cat >"\$tmp/defines.sed" <<\\CEOF
40429 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40430 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40432 :def
40433 _ACEOF
40434 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40435 echo 'CEOF
40436 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40437 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40438 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40439 grep . conftest.tail >/dev/null || break
40440 rm -f conftest.defines
40441 mv conftest.tail conftest.defines
40442 done
40443 rm -f conftest.defines conftest.tail
40445 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40446 cat >>$CONFIG_STATUS <<\_ACEOF
40447 if test x"$ac_file" != x-; then
40448 echo "/* $configure_input */" >"$tmp/config.h"
40449 cat "$ac_result" >>"$tmp/config.h"
40450 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40452 echo "$as_me: $ac_file is unchanged" >&6;}
40453 else
40454 rm -f $ac_file
40455 mv "$tmp/config.h" $ac_file
40457 else
40458 echo "/* $configure_input */"
40459 cat "$ac_result"
40461 rm -f "$tmp/out12"
40465 esac
40467 done # for ac_tag
40470 { (exit 0); exit 0; }
40471 _ACEOF
40472 chmod +x $CONFIG_STATUS
40473 ac_clean_files=$ac_clean_files_save
40476 # configure is writing to config.log, and then calls config.status.
40477 # config.status does its own redirection, appending to config.log.
40478 # Unfortunately, on DOS this fails, as config.log is still kept open
40479 # by configure, so config.status won't be able to write to it; its
40480 # output is simply discarded. So we exec the FD to /dev/null,
40481 # effectively closing config.log, so it can be properly (re)opened and
40482 # appended to by config.status. When coming back to configure, we
40483 # need to make the FD available again.
40484 if test "$no_create" != yes; then
40485 ac_cs_success=:
40486 ac_config_status_args=
40487 test "$silent" = yes &&
40488 ac_config_status_args="$ac_config_status_args --quiet"
40489 exec 5>/dev/null
40490 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40491 exec 5>>config.log
40492 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40493 # would make configure fail if this is the last instruction.
40494 $ac_cs_success || { (exit 1); exit 1; }