- added instructions how to update the online documentation
[bochs-mirror.git] / configure
blob151f9909cdef19d743cb35cf0e5a2cfba49b347e
1 #! /bin/sh
2 # From configure.in Id: configure.in,v 1.376 2008/12/11 21:00:01 sshwarts Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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 DISASM_VAR
873 READLINE_LIB
874 INSTRUMENT_DIR
875 INSTRUMENT_VAR
876 FPU_VAR
877 CDROM_OBJS
878 SB16_OBJS
879 SOUNDLOW_OBJS
880 SOUND_LINK_OPTS
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-1g-pages support for 1G pages in long mode
1571 --enable-mtrr support for MTRRs
1572 --enable-repeat-speedups support repeated IO and mem copy speedups
1573 --enable-trace-cache support instruction trace cache
1574 --enable-icache support instruction cache
1575 --enable-fast-function-calls support for fast function calls (gcc on x86 only)
1576 --enable-host-specific-asms support for host specific inline assembly
1577 --enable-ignore-bad-msr ignore bad MSR references
1578 --enable-port-e9-hack writes to port e9 go to console
1579 --enable-show-ips show IPS in Bochs log file
1580 --enable-cpp use .cpp as C++ suffix
1581 --enable-debugger compile in support for Bochs internal debugger
1582 --enable-disasm compile in support for disassembler
1583 --enable-all-optimizations compile in all possible optimizations
1584 --enable-readline use readline library, if available
1585 --enable-instrumentation compile in support for instrumentation
1586 --enable-logging enable logging
1587 --enable-assert-checks enable BX_ASSERT checks
1588 --enable-raw-serial use raw serial port access
1589 --enable-vbe use VESA BIOS extensions
1590 --enable-clgd54xx enable CLGD54XX emulation
1591 --enable-fpu compile in FPU emulation
1592 --enable-vme virtual 8086 mode extensions
1593 --enable-mmx MMX support
1594 --enable-3dnow 3DNow! support (incomplete)
1595 --enable-sse SSE support (--enable-sse=no|1|2|3|4)
1596 --enable-sse-extension support for SSE extensions
1597 --enable-daz denormals-are-zeroes support
1598 --enable-xsave support for XSAVE/XRSTOR extensions
1599 --enable-aes support for AES instructions
1600 --enable-alignment-check alignment check (#AC) support
1601 --enable-misaligned-sse misaligned SSE support
1602 --enable-sep SYSENTER/SYSEXIT support
1603 --enable-popcnt support for POPCNT instruction
1604 --enable-movbe support for MOVBE Intel Atom(R) instruction
1605 --enable-monitor-mwait support for MONITOR/MWAIT instructions (experimental)
1606 --enable-x86-debugger x86 debugger support
1607 --enable-cdrom CDROM support
1608 --enable-sb16=xxx Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1609 --enable-gameport enable standard PC gameport support
1610 --enable-gdb-stub enable gdb stub support
1611 --enable-iodebug enable I/O interface to debugger
1612 --enable-docbook build the Docbook documentation
1613 --enable-xpm enable the check for XPM support
1614 --enable-guest2host-tlb enables guest to host addr TLB for speed (deprecated)
1615 --enable-external-debugger enables external debugger interface (deprecated)
1616 --enable-magic-breakpoints enables magic breakpoints (deprecated)
1617 --enable-save-restore enables save/restore (deprecated)
1619 Optional Packages:
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1623 --with-pic try to use only PIC/non-PIC objects [default=use
1624 both]
1625 --with-tags[=TAGS] include additional configurations [automatic]
1626 --with-x use the X Window System
1627 --with-x11 use X11 GUI
1628 --with-beos use BeOS GUI
1629 --with-win32 use Win32 GUI
1630 --with-macos use Macintosh/CodeWarrior environment
1631 --with-carbon compile for MacOS X with Carbon GUI
1632 --with-nogui no native GUI, just use blank stubs
1633 --with-term textmode terminal environment
1634 --with-rfb use RFB protocol, works with VNC viewer
1635 --with-amigaos use AmigaOS (or MorphOS) GUI
1636 --with-sdl use SDL libraries
1637 --with-svga use SVGALib libraries
1638 --with-wx use wxWidgets libraries
1639 --with-all-libs compile all guis that Bochs supports
1641 Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
1646 LIBS libraries to pass to the linker, e.g. -l<library>
1647 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1648 you have headers in a nonstandard directory <include dir>
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
1651 CPP C preprocessor
1652 CXXCPP C++ preprocessor
1653 F77 Fortran 77 compiler command
1654 FFLAGS Fortran 77 compiler flags
1655 XMKMF Path to xmkmf, Makefile generator for X Window System
1656 PKG_CONFIG path to pkg-config utility
1657 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1658 GTK_LIBS linker flags for GTK, overriding pkg-config
1660 Use these variables to override the choices made by `configure' or to help
1661 it to find libraries and programs with nonstandard names/locations.
1663 _ACEOF
1664 ac_status=$?
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" || continue
1671 ac_builddir=.
1673 case "$ac_dir" in
1674 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1677 # A ".." for each directory in $ac_dir_suffix.
1678 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683 esac
1684 ac_abs_top_builddir=$ac_pwd
1685 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686 # for backward compatibility:
1687 ac_top_builddir=$ac_top_build_prefix
1689 case $srcdir in
1690 .) # We are building in place.
1691 ac_srcdir=.
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
1695 ac_srcdir=$srcdir$ac_dir_suffix;
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 esac
1703 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
1713 else
1714 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
1717 done
1720 test -n "$ac_init_help" && exit $ac_status
1721 if $ac_init_version; then
1722 cat <<\_ACEOF
1723 configure
1724 generated by GNU Autoconf 2.61
1726 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1727 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1728 This configure script is free software; the Free Software Foundation
1729 gives unlimited permission to copy, distribute and modify it.
1730 _ACEOF
1731 exit
1733 cat >config.log <<_ACEOF
1734 This file contains any messages produced by compilers while
1735 running configure, to aid debugging if configure makes a mistake.
1737 It was created by $as_me, which was
1738 generated by GNU Autoconf 2.61. Invocation command line was
1740 $ $0 $@
1742 _ACEOF
1743 exec 5>>config.log
1745 cat <<_ASUNAME
1746 ## --------- ##
1747 ## Platform. ##
1748 ## --------- ##
1750 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1756 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1759 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1762 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1763 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1767 _ASUNAME
1769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770 for as_dir in $PATH
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
1774 echo "PATH: $as_dir"
1775 done
1776 IFS=$as_save_IFS
1778 } >&5
1780 cat >&5 <<_ACEOF
1783 ## ----------- ##
1784 ## Core tests. ##
1785 ## ----------- ##
1787 _ACEOF
1790 # Keep a trace of the command line.
1791 # Strip out --no-create and --no-recursion so they do not pile up.
1792 # Strip out --silent because we don't want to record it for future runs.
1793 # Also quote any args containing shell meta-characters.
1794 # Make two passes to allow for proper duplicate-argument suppression.
1795 ac_configure_args=
1796 ac_configure_args0=
1797 ac_configure_args1=
1798 ac_must_keep_next=false
1799 for ac_pass in 1 2
1801 for ac_arg
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
1808 *\'*)
1809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
1816 ac_must_keep_next=false # Got value, back to normal.
1817 else
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1827 -* ) ac_must_keep_next=true ;;
1828 esac
1830 ac_configure_args="$ac_configure_args '$ac_arg'"
1832 esac
1833 done
1834 done
1835 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1838 # When interrupted or exit'd, cleanup temporary files, and complete
1839 # config.log. We remove comments because anyway the quotes in there
1840 # would cause problems or look ugly.
1841 # WARNING: Use '\'' to represent an apostrophe within the trap.
1842 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1843 trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1846 echo
1848 cat <<\_ASBOX
1849 ## ---------------- ##
1850 ## Cache variables. ##
1851 ## ---------------- ##
1852 _ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
1861 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1862 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
1866 *) $as_unset $ac_var ;;
1867 esac ;;
1868 esac
1869 done
1870 (set) 2>&1 |
1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872 *${as_nl}ac_space=\ *)
1873 sed -n \
1874 "s/'\''/'\''\\\\'\'''\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876 ;; #(
1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 esac |
1881 sort
1883 echo
1885 cat <<\_ASBOX
1886 ## ----------------- ##
1887 ## Output variables. ##
1888 ## ----------------- ##
1889 _ASBOX
1890 echo
1891 for ac_var in $ac_subst_vars
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
1895 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1896 esac
1897 echo "$ac_var='\''$ac_val'\''"
1898 done | sort
1899 echo
1901 if test -n "$ac_subst_files"; then
1902 cat <<\_ASBOX
1903 ## ------------------- ##
1904 ## File substitutions. ##
1905 ## ------------------- ##
1906 _ASBOX
1907 echo
1908 for ac_var in $ac_subst_files
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 echo "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1919 if test -s confdefs.h; then
1920 cat <<\_ASBOX
1921 ## ----------- ##
1922 ## confdefs.h. ##
1923 ## ----------- ##
1924 _ASBOX
1925 echo
1926 cat confdefs.h
1927 echo
1929 test "$ac_signal" != 0 &&
1930 echo "$as_me: caught signal $ac_signal"
1931 echo "$as_me: exit $exit_status"
1932 } >&5
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1935 exit $exit_status
1937 for ac_signal in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1939 done
1940 ac_signal=0
1942 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1943 rm -f -r conftest* confdefs.h
1945 # Predefined preprocessor variables.
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_NAME "$PACKAGE_NAME"
1949 _ACEOF
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954 _ACEOF
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1959 _ACEOF
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_STRING "$PACKAGE_STRING"
1964 _ACEOF
1967 cat >>confdefs.h <<_ACEOF
1968 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969 _ACEOF
1972 # Let the site file select an alternate cache file if it wants to.
1973 # Prefer explicitly selected file to automatically selected ones.
1974 if test -n "$CONFIG_SITE"; then
1975 set x "$CONFIG_SITE"
1976 elif test "x$prefix" != xNONE; then
1977 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1978 else
1979 set x "$ac_default_prefix/share/config.site" \
1980 "$ac_default_prefix/etc/config.site"
1982 shift
1983 for ac_site_file
1985 if test -r "$ac_site_file"; then
1986 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1987 echo "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file"
1991 done
1993 if test -r "$cache_file"; then
1994 # Some versions of bash will fail to source /dev/null (special
1995 # files actually), so we avoid doing that.
1996 if test -f "$cache_file"; then
1997 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1998 echo "$as_me: loading cache $cache_file" >&6;}
1999 case $cache_file in
2000 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2001 *) . "./$cache_file";;
2002 esac
2004 else
2005 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2006 echo "$as_me: creating cache $cache_file" >&6;}
2007 >$cache_file
2010 # Check that the precious variables saved in the cache have kept the same
2011 # value.
2012 ac_cache_corrupted=false
2013 for ac_var in $ac_precious_vars; do
2014 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2015 eval ac_new_set=\$ac_env_${ac_var}_set
2016 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2017 eval ac_new_val=\$ac_env_${ac_var}_value
2018 case $ac_old_set,$ac_new_set in
2019 set,)
2020 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2021 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2022 ac_cache_corrupted=: ;;
2023 ,set)
2024 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2026 ac_cache_corrupted=: ;;
2027 ,);;
2029 if test "x$ac_old_val" != "x$ac_new_val"; then
2030 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2031 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2032 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2033 echo "$as_me: former value: $ac_old_val" >&2;}
2034 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2035 echo "$as_me: current value: $ac_new_val" >&2;}
2036 ac_cache_corrupted=:
2037 fi;;
2038 esac
2039 # Pass precious variables to config.status.
2040 if test "$ac_new_set" = set; then
2041 case $ac_new_val in
2042 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2043 *) ac_arg=$ac_var=$ac_new_val ;;
2044 esac
2045 case " $ac_configure_args " in
2046 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2047 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2048 esac
2050 done
2051 if $ac_cache_corrupted; then
2052 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2053 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2054 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2055 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2056 { (exit 1); exit 1; }; }
2075 ac_ext=c
2076 ac_cpp='$CPP $CPPFLAGS'
2077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 ac_config_headers="$ac_config_headers config.h"
2085 ac_config_headers="$ac_config_headers ltdlconf.h"
2088 VERSION="2.3.7.cvs"
2089 VER_STRING="2.3.7.cvs"
2090 WIN_VER_STRING="2, 3, 7, 1"
2091 REL_STRING="Build from CVS snapshot, after release 2.3.7"
2096 ac_aux_dir=
2097 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2098 if 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/install.sh"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install.sh -c"
2105 break
2106 elif test -f "$ac_dir/shtool"; then
2107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/shtool install -c"
2109 break
2111 done
2112 if test -z "$ac_aux_dir"; then
2113 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2114 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2115 { (exit 1); exit 1; }; }
2118 # These three variables are undocumented and unsupported,
2119 # and are intended to be withdrawn in a future Autoconf release.
2120 # They can cause serious problems if a builder's source tree is in a directory
2121 # whose full name contains unusual characters.
2122 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2123 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2124 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127 # Make sure we can run config.sub.
2128 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2129 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2130 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2131 { (exit 1); exit 1; }; }
2133 { echo "$as_me:$LINENO: checking build system type" >&5
2134 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2135 if test "${ac_cv_build+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 ac_build_alias=$build_alias
2139 test "x$ac_build_alias" = x &&
2140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2141 test "x$ac_build_alias" = x &&
2142 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2143 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2144 { (exit 1); exit 1; }; }
2145 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2146 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2147 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2148 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2152 echo "${ECHO_T}$ac_cv_build" >&6; }
2153 case $ac_cv_build in
2154 *-*-*) ;;
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2156 echo "$as_me: error: invalid value of canonical build" >&2;}
2157 { (exit 1); exit 1; }; };;
2158 esac
2159 build=$ac_cv_build
2160 ac_save_IFS=$IFS; IFS='-'
2161 set x $ac_cv_build
2162 shift
2163 build_cpu=$1
2164 build_vendor=$2
2165 shift; shift
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2168 build_os=$*
2169 IFS=$ac_save_IFS
2170 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173 { echo "$as_me:$LINENO: checking host system type" >&5
2174 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2175 if test "${ac_cv_host+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test "x$host_alias" = x; then
2179 ac_cv_host=$ac_cv_build
2180 else
2181 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2182 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2183 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2184 { (exit 1); exit 1; }; }
2188 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2189 echo "${ECHO_T}$ac_cv_host" >&6; }
2190 case $ac_cv_host in
2191 *-*-*) ;;
2192 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2193 echo "$as_me: error: invalid value of canonical host" >&2;}
2194 { (exit 1); exit 1; }; };;
2195 esac
2196 host=$ac_cv_host
2197 ac_save_IFS=$IFS; IFS='-'
2198 set x $ac_cv_host
2199 shift
2200 host_cpu=$1
2201 host_vendor=$2
2202 shift; shift
2203 # Remember, the first character of IFS is used to create $*,
2204 # except with old shells:
2205 host_os=$*
2206 IFS=$ac_save_IFS
2207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210 { echo "$as_me:$LINENO: checking target system type" >&5
2211 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2212 if test "${ac_cv_target+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 else
2215 if test "x$target_alias" = x; then
2216 ac_cv_target=$ac_cv_host
2217 else
2218 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2219 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2220 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2221 { (exit 1); exit 1; }; }
2225 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2226 echo "${ECHO_T}$ac_cv_target" >&6; }
2227 case $ac_cv_target in
2228 *-*-*) ;;
2229 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2230 echo "$as_me: error: invalid value of canonical target" >&2;}
2231 { (exit 1); exit 1; }; };;
2232 esac
2233 target=$ac_cv_target
2234 ac_save_IFS=$IFS; IFS='-'
2235 set x $ac_cv_target
2236 shift
2237 target_cpu=$1
2238 target_vendor=$2
2239 shift; shift
2240 # Remember, the first character of IFS is used to create $*,
2241 # except with old shells:
2242 target_os=$*
2243 IFS=$ac_save_IFS
2244 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2247 # The aliases save the names the user supplied, while $host etc.
2248 # will get canonicalized.
2249 test -n "$target_alias" &&
2250 test "$program_prefix$program_suffix$program_transform_name" = \
2251 NONENONEs,x,x, &&
2252 program_prefix=${target_alias}-
2254 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2255 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2256 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2257 { echo "$as_me:$LINENO: result: yes" >&5
2258 echo "${ECHO_T}yes" >&6; }
2259 cross_configure=1
2260 else
2261 { echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6; }
2263 cross_configure=0
2266 # this case statement defines the compile flags which are needed to
2267 # compile bochs on a platform. Don't put things like optimization settings
2268 # into the configure.in file, since people will want to be able to change
2269 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2270 NO_LT=0
2271 need_dlcompat_for_plugins=0
2272 case "$target" in
2273 *-pc-windows* | *-pc-winnt*)
2274 DEFAULT_GUI=win32 # default to win32 gui
2276 *-pc-cygwin* | *-pc-mingw32*)
2277 NO_LT=1 # do not use libtool at all on cygwin
2278 if test "$with_term" = yes; then
2279 # ncurses won't compile with -mno-cygwin or -DWIN32
2280 # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2281 # see /usr/include/curses.h for details.
2282 ADD_FLAGS="-DBROKEN_LINKER=1"
2283 else
2284 # default case
2285 ADD_FLAGS="-mno-cygwin -DWIN32" # required for cygwin compile+win32 gui
2286 DEFAULT_GUI=win32 # default to win32 gui
2289 *-macosx* | *-darwin*)
2290 ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh" # required for macosx compile
2291 DEFAULT_GUI=carbon # default to carbon
2292 need_dlcompat_for_plugins=1
2294 *-macos*)
2295 DEFAULT_GUI=macos # macos defaults to macos
2297 *-beos*)
2298 ADD_FLAGS="-Wno-multichar"
2299 DEFAULT_GUI=beos # beos defaults to beos
2301 *-amigaos* | *-morphos*)
2302 DEFAULT_GUI=amigaos # amigaos or morphos defaults to amigaos gui
2304 *-solaris*)
2305 ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__" # required for correct function prototypes
2306 LIBS="$LIBS -lsocket -lnsl"
2307 DEFAULT_GUI=x11
2310 DEFAULT_GUI=x11
2312 esac
2313 if test "${ADD_FLAGS:+set}" = set; then
2314 CFLAGS="$CFLAGS $ADD_FLAGS"
2315 CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2316 CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2319 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2320 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2321 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2322 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2324 if (test "$with_sdl" != yes) && \
2325 (test "$with_svga" != yes) && \
2326 (test "$with_x11" != yes) && \
2327 (test "$with_beos" != yes) && \
2328 (test "$with_win32" != yes) && \
2329 (test "$with_nogui" != yes) && \
2330 (test "$with_term" != yes) && \
2331 (test "$with_rfb" != yes) && \
2332 (test "$with_amigaos" != yes) && \
2333 (test "$with_carbon" != yes) && \
2334 (test "$with_wx" != yes) && \
2335 (test "$with_macos" != yes); then
2336 # use DEFAULT_GUI. Set the appropriate variable.
2337 # DEFAULT_GUI must be set to one of the names above. Otherwise, no
2338 # valid $with_* variable will be set and who knows what will happen?
2339 eval "with_${DEFAULT_GUI}=yes"
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 if test -n "$ac_tool_prefix"; then
2348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2349 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352 if test "${ac_cv_prog_CC+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 if test -n "$CC"; then
2356 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2361 IFS=$as_save_IFS
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 break 2
2369 done
2370 done
2371 IFS=$as_save_IFS
2375 CC=$ac_cv_prog_CC
2376 if test -n "$CC"; then
2377 { echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6; }
2379 else
2380 { echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6; }
2386 if test -z "$ac_cv_prog_CC"; then
2387 ac_ct_CC=$CC
2388 # Extract the first word of "gcc", so it can be a program name with args.
2389 set dummy gcc; ac_word=$2
2390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 if test -n "$ac_ct_CC"; then
2396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2397 else
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2401 IFS=$as_save_IFS
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 ac_cv_prog_ac_ct_CC="gcc"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407 break 2
2409 done
2410 done
2411 IFS=$as_save_IFS
2415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2416 if test -n "$ac_ct_CC"; then
2417 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2418 echo "${ECHO_T}$ac_ct_CC" >&6; }
2419 else
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2424 if test "x$ac_ct_CC" = x; then
2425 CC=""
2426 else
2427 case $cross_compiling:$ac_tool_warned in
2428 yes:)
2429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430 whose name does not start with the host triplet. If you think this
2431 configuration is useful to you, please write to autoconf@gnu.org." >&5
2432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433 whose name does not start with the host triplet. If you think this
2434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435 ac_tool_warned=yes ;;
2436 esac
2437 CC=$ac_ct_CC
2439 else
2440 CC="$ac_cv_prog_CC"
2443 if test -z "$CC"; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}cc; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}cc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2466 done
2467 done
2468 IFS=$as_save_IFS
2472 CC=$ac_cv_prog_CC
2473 if test -n "$CC"; then
2474 { echo "$as_me:$LINENO: result: $CC" >&5
2475 echo "${ECHO_T}$CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2484 if test -z "$CC"; then
2485 # Extract the first word of "cc", so it can be a program name with args.
2486 set dummy cc; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_CC+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492 if test -n "$CC"; then
2493 ac_cv_prog_CC="$CC" # Let the user override the test.
2494 else
2495 ac_prog_rejected=no
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2504 ac_prog_rejected=yes
2505 continue
2507 ac_cv_prog_CC="cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2511 done
2512 done
2513 IFS=$as_save_IFS
2515 if test $ac_prog_rejected = yes; then
2516 # We found a bogon in the path, so make sure we never use it.
2517 set dummy $ac_cv_prog_CC
2518 shift
2519 if test $# != 0; then
2520 # We chose a different compiler from the bogus one.
2521 # However, it has the same basename, so the bogon will be chosen
2522 # first if we set CC to just the basename; use the full file name.
2523 shift
2524 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531 { echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6; }
2533 else
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2540 if test -z "$CC"; then
2541 if test -n "$ac_tool_prefix"; then
2542 for ac_prog in cl.exe
2544 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2545 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2548 if test "${ac_cv_prog_CC+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 else
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2553 else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2561 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2565 done
2566 done
2567 IFS=$as_save_IFS
2571 CC=$ac_cv_prog_CC
2572 if test -n "$CC"; then
2573 { echo "$as_me:$LINENO: result: $CC" >&5
2574 echo "${ECHO_T}$CC" >&6; }
2575 else
2576 { echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6; }
2581 test -n "$CC" && break
2582 done
2584 if test -z "$CC"; then
2585 ac_ct_CC=$CC
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_prog", so it can be a program name with args.
2589 set dummy $ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595 if test -n "$ac_ct_CC"; then
2596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_ac_ct_CC="$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 break 2
2609 done
2610 done
2611 IFS=$as_save_IFS
2615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6; }
2619 else
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$ac_ct_CC" && break
2626 done
2628 if test "x$ac_ct_CC" = x; then
2629 CC=""
2630 else
2631 case $cross_compiling:$ac_tool_warned in
2632 yes:)
2633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2634 whose name does not start with the host triplet. If you think this
2635 configuration is useful to you, please write to autoconf@gnu.org." >&5
2636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2637 whose name does not start with the host triplet. If you think this
2638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2639 ac_tool_warned=yes ;;
2640 esac
2641 CC=$ac_ct_CC
2648 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&2;}
2652 { (exit 1); exit 1; }; }
2654 # Provide some information about the compiler.
2655 echo "$as_me:$LINENO: checking for C compiler version" >&5
2656 ac_compiler=`set X $ac_compile; echo $2`
2657 { (ac_try="$ac_compiler --version >&5"
2658 case "(($ac_try" in
2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660 *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663 (eval "$ac_compiler --version >&5") 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }
2667 { (ac_try="$ac_compiler -v >&5"
2668 case "(($ac_try" in
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler -v >&5") 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (ac_try="$ac_compiler -V >&5"
2678 case "(($ac_try" in
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -V >&5") 2>&5
2684 ac_status=$?
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2696 main ()
2700 return 0;
2702 _ACEOF
2703 ac_clean_files_save=$ac_clean_files
2704 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2705 # Try to create an executable without -o first, disregard a.out.
2706 # It will help us diagnose broken compilers, and finding out an intuition
2707 # of exeext.
2708 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2709 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2710 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2712 # List of possible output files, starting from the most likely.
2713 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2714 # only as a last resort. b.out is created by i960 compilers.
2715 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2717 # The IRIX 6 linker writes into existing files which may not be
2718 # executable, retaining their permissions. Remove them first so a
2719 # subsequent execution test works.
2720 ac_rmfiles=
2721 for ac_file in $ac_files
2723 case $ac_file in
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2726 esac
2727 done
2728 rm -f $ac_rmfiles
2730 if { (ac_try="$ac_link_default"
2731 case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734 esac
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_link_default") 2>&5
2737 ac_status=$?
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; then
2740 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2741 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2742 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2743 # so that the user can short-circuit this test for compilers unknown to
2744 # Autoconf.
2745 for ac_file in $ac_files ''
2747 test -f "$ac_file" || continue
2748 case $ac_file in
2749 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2751 [ab].out )
2752 # We found the default executable, but exeext='' is most
2753 # certainly right.
2754 break;;
2755 *.* )
2756 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2757 then :; else
2758 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2760 # We set ac_cv_exeext here because the later test for it is not
2761 # safe: cross compilers may not add the suffix if given an `-o'
2762 # argument, so we may need to know it at that point already.
2763 # Even if this section looks crufty: it has the advantage of
2764 # actually working.
2765 break;;
2767 break;;
2768 esac
2769 done
2770 test "$ac_cv_exeext" = no && ac_cv_exeext=
2772 else
2773 ac_file=''
2776 { echo "$as_me:$LINENO: result: $ac_file" >&5
2777 echo "${ECHO_T}$ac_file" >&6; }
2778 if test -z "$ac_file"; then
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: C compiler cannot create executables
2785 See \`config.log' for more details." >&2;}
2786 { (exit 77); exit 77; }; }
2789 ac_exeext=$ac_cv_exeext
2791 # Check that the compiler produces executables we can run. If not, either
2792 # the compiler is broken, or we cross compile.
2793 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2794 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2795 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2796 # If not cross compiling, check that we can run a simple program.
2797 if test "$cross_compiling" != yes; then
2798 if { ac_try='./$ac_file'
2799 { (case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_try") 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 cross_compiling=no
2809 else
2810 if test "$cross_compiling" = maybe; then
2811 cross_compiling=yes
2812 else
2813 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2814 If you meant to cross compile, use \`--host'.
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: cannot run C compiled programs.
2817 If you meant to cross compile, use \`--host'.
2818 See \`config.log' for more details." >&2;}
2819 { (exit 1); exit 1; }; }
2823 { echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6; }
2826 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2827 ac_clean_files=$ac_clean_files_save
2828 # Check that the compiler produces executables we can run. If not, either
2829 # the compiler is broken, or we cross compile.
2830 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2831 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2832 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2833 echo "${ECHO_T}$cross_compiling" >&6; }
2835 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2836 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2837 if { (ac_try="$ac_link"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_link") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; then
2847 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2848 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2849 # work properly (i.e., refer to `conftest.exe'), while it won't with
2850 # `rm'.
2851 for ac_file in conftest.exe conftest conftest.*; do
2852 test -f "$ac_file" || continue
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2855 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 break;;
2857 * ) break;;
2858 esac
2859 done
2860 else
2861 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2862 See \`config.log' for more details." >&5
2863 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2864 See \`config.log' for more details." >&2;}
2865 { (exit 1); exit 1; }; }
2868 rm -f conftest$ac_cv_exeext
2869 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2870 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2872 rm -f conftest.$ac_ext
2873 EXEEXT=$ac_cv_exeext
2874 ac_exeext=$EXEEXT
2875 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2876 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2877 if test "${ac_cv_objext+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880 cat >conftest.$ac_ext <<_ACEOF
2881 /* confdefs.h. */
2882 _ACEOF
2883 cat confdefs.h >>conftest.$ac_ext
2884 cat >>conftest.$ac_ext <<_ACEOF
2885 /* end confdefs.h. */
2888 main ()
2892 return 0;
2894 _ACEOF
2895 rm -f conftest.o conftest.obj
2896 if { (ac_try="$ac_compile"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 for ac_file in conftest.o conftest.obj conftest.*; do
2907 test -f "$ac_file" || continue;
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2911 break;;
2912 esac
2913 done
2914 else
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2918 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2919 See \`config.log' for more details." >&5
2920 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2921 See \`config.log' for more details." >&2;}
2922 { (exit 1); exit 1; }; }
2925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2927 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2928 echo "${ECHO_T}$ac_cv_objext" >&6; }
2929 OBJEXT=$ac_cv_objext
2930 ac_objext=$OBJEXT
2931 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2932 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2933 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h. */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h. */
2944 main ()
2946 #ifndef __GNUC__
2947 choke me
2948 #endif
2951 return 0;
2953 _ACEOF
2954 rm -f conftest.$ac_objext
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } && {
2968 test -z "$ac_c_werror_flag" ||
2969 test ! -s conftest.err
2970 } && test -s conftest.$ac_objext; then
2971 ac_compiler_gnu=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 ac_compiler_gnu=no
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2983 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2985 GCC=`test $ac_compiler_gnu = yes && echo yes`
2986 ac_test_CFLAGS=${CFLAGS+set}
2987 ac_save_CFLAGS=$CFLAGS
2988 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2989 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_cc_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 ac_save_c_werror_flag=$ac_c_werror_flag
2994 ac_c_werror_flag=yes
2995 ac_cv_prog_cc_g=no
2996 CFLAGS="-g"
2997 cat >conftest.$ac_ext <<_ACEOF
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3005 main ()
3009 return 0;
3011 _ACEOF
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3014 case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3020 ac_status=$?
3021 grep -v '^ *+' conftest.er1 >conftest.err
3022 rm -f conftest.er1
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } && {
3026 test -z "$ac_c_werror_flag" ||
3027 test ! -s conftest.err
3028 } && test -s conftest.$ac_objext; then
3029 ac_cv_prog_cc_g=yes
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 CFLAGS=""
3035 cat >conftest.$ac_ext <<_ACEOF
3036 /* confdefs.h. */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3043 main ()
3047 return 0;
3049 _ACEOF
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3052 case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
3068 else
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3072 ac_c_werror_flag=$ac_save_c_werror_flag
3073 CFLAGS="-g"
3074 cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h. */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3082 main ()
3086 return 0;
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3097 ac_status=$?
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3106 ac_cv_prog_cc_g=yes
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_c_werror_flag=$ac_save_c_werror_flag
3123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3124 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3125 if test "$ac_test_CFLAGS" = set; then
3126 CFLAGS=$ac_save_CFLAGS
3127 elif test $ac_cv_prog_cc_g = yes; then
3128 if test "$GCC" = yes; then
3129 CFLAGS="-g -O2"
3130 else
3131 CFLAGS="-g"
3133 else
3134 if test "$GCC" = yes; then
3135 CFLAGS="-O2"
3136 else
3137 CFLAGS=
3140 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3141 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3142 if test "${ac_cv_prog_cc_c89+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 ac_cv_prog_cc_c89=no
3146 ac_save_CC=$CC
3147 cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 #include <stdarg.h>
3154 #include <stdio.h>
3155 #include <sys/types.h>
3156 #include <sys/stat.h>
3157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3158 struct buf { int x; };
3159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3160 static char *e (p, i)
3161 char **p;
3162 int i;
3164 return p[i];
3166 static char *f (char * (*g) (char **, int), char **p, ...)
3168 char *s;
3169 va_list v;
3170 va_start (v,p);
3171 s = g (p, va_arg (v,int));
3172 va_end (v);
3173 return s;
3176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3177 function prototypes and stuff, but not '\xHH' hex character constants.
3178 These don't provoke an error unfortunately, instead are silently treated
3179 as 'x'. The following induces an error, until -std is added to get
3180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3181 array size at least. It's necessary to write '\x00'==0 to get something
3182 that's true only with -std. */
3183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3186 inside strings and character constants. */
3187 #define FOO(x) 'x'
3188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190 int test (int i, double x);
3191 struct s1 {int (*f) (int a);};
3192 struct s2 {int (*f) (double a);};
3193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3194 int argc;
3195 char **argv;
3197 main ()
3199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 return 0;
3203 _ACEOF
3204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207 CC="$ac_save_CC $ac_arg"
3208 rm -f conftest.$ac_objext
3209 if { (ac_try="$ac_compile"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compile") 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } && {
3222 test -z "$ac_c_werror_flag" ||
3223 test ! -s conftest.err
3224 } && test -s conftest.$ac_objext; then
3225 ac_cv_prog_cc_c89=$ac_arg
3226 else
3227 echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3233 rm -f core conftest.err conftest.$ac_objext
3234 test "x$ac_cv_prog_cc_c89" != "xno" && break
3235 done
3236 rm -f conftest.$ac_ext
3237 CC=$ac_save_CC
3240 # AC_CACHE_VAL
3241 case "x$ac_cv_prog_cc_c89" in
3243 { echo "$as_me:$LINENO: result: none needed" >&5
3244 echo "${ECHO_T}none needed" >&6; } ;;
3245 xno)
3246 { echo "$as_me:$LINENO: result: unsupported" >&5
3247 echo "${ECHO_T}unsupported" >&6; } ;;
3249 CC="$CC $ac_cv_prog_cc_c89"
3250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3252 esac
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 ac_ext=cpp
3262 ac_cpp='$CXXCPP $CPPFLAGS'
3263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3266 if test -z "$CXX"; then
3267 if test -n "$CCC"; then
3268 CXX=$CCC
3269 else
3270 if test -n "$ac_tool_prefix"; then
3271 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3273 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CXX+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 if test -n "$CXX"; then
3281 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3286 IFS=$as_save_IFS
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 break 2
3294 done
3295 done
3296 IFS=$as_save_IFS
3300 CXX=$ac_cv_prog_CXX
3301 if test -n "$CXX"; then
3302 { echo "$as_me:$LINENO: result: $CXX" >&5
3303 echo "${ECHO_T}$CXX" >&6; }
3304 else
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3310 test -n "$CXX" && break
3311 done
3313 if test -z "$CXX"; then
3314 ac_ct_CXX=$CXX
3315 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3317 # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 if test -n "$ac_ct_CXX"; then
3325 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334 ac_cv_prog_ac_ct_CXX="$ac_prog"
3335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3345 if test -n "$ac_ct_CXX"; then
3346 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3347 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3348 else
3349 { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3354 test -n "$ac_ct_CXX" && break
3355 done
3357 if test "x$ac_ct_CXX" = x; then
3358 CXX="g++"
3359 else
3360 case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3363 whose name does not start with the host triplet. If you think this
3364 configuration is useful to you, please write to autoconf@gnu.org." >&5
3365 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3366 whose name does not start with the host triplet. If you think this
3367 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3368 ac_tool_warned=yes ;;
3369 esac
3370 CXX=$ac_ct_CXX
3376 # Provide some information about the compiler.
3377 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3378 ac_compiler=`set X $ac_compile; echo $2`
3379 { (ac_try="$ac_compiler --version >&5"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compiler --version >&5") 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }
3389 { (ac_try="$ac_compiler -v >&5"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_compiler -v >&5") 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }
3399 { (ac_try="$ac_compiler -V >&5"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_compiler -V >&5") 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }
3410 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3411 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3412 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3423 main ()
3425 #ifndef __GNUC__
3426 choke me
3427 #endif
3430 return 0;
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (ac_try="$ac_compile"
3435 case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438 esac
3439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3440 (eval "$ac_compile") 2>conftest.er1
3441 ac_status=$?
3442 grep -v '^ *+' conftest.er1 >conftest.err
3443 rm -f conftest.er1
3444 cat conftest.err >&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && {
3447 test -z "$ac_cxx_werror_flag" ||
3448 test ! -s conftest.err
3449 } && test -s conftest.$ac_objext; then
3450 ac_compiler_gnu=yes
3451 else
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 ac_compiler_gnu=no
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3462 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3463 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3464 GXX=`test $ac_compiler_gnu = yes && echo yes`
3465 ac_test_CXXFLAGS=${CXXFLAGS+set}
3466 ac_save_CXXFLAGS=$CXXFLAGS
3467 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3469 if test "${ac_cv_prog_cxx_g+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3473 ac_cxx_werror_flag=yes
3474 ac_cv_prog_cxx_g=no
3475 CXXFLAGS="-g"
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h. */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h. */
3484 main ()
3488 return 0;
3490 _ACEOF
3491 rm -f conftest.$ac_objext
3492 if { (ac_try="$ac_compile"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_compile") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && {
3505 test -z "$ac_cxx_werror_flag" ||
3506 test ! -s conftest.err
3507 } && test -s conftest.$ac_objext; then
3508 ac_cv_prog_cxx_g=yes
3509 else
3510 echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 CXXFLAGS=""
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3522 main ()
3526 return 0;
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_compile") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } && {
3543 test -z "$ac_cxx_werror_flag" ||
3544 test ! -s conftest.err
3545 } && test -s conftest.$ac_objext; then
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3552 CXXFLAGS="-g"
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_cxx_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 ac_cv_prog_cxx_g=yes
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3602 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3603 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3604 if test "$ac_test_CXXFLAGS" = set; then
3605 CXXFLAGS=$ac_save_CXXFLAGS
3606 elif test $ac_cv_prog_cxx_g = yes; then
3607 if test "$GXX" = yes; then
3608 CXXFLAGS="-g -O2"
3609 else
3610 CXXFLAGS="-g"
3612 else
3613 if test "$GXX" = yes; then
3614 CXXFLAGS="-O2"
3615 else
3616 CXXFLAGS=
3619 ac_ext=c
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3626 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3627 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3628 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631 cat >conftest.make <<\_ACEOF
3632 SHELL = /bin/sh
3633 all:
3634 @echo '@@@%%%=$(MAKE)=@@@%%%'
3635 _ACEOF
3636 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3638 *@@@%%%=?*=@@@%%%*)
3639 eval ac_cv_prog_make_${ac_make}_set=yes;;
3641 eval ac_cv_prog_make_${ac_make}_set=no;;
3642 esac
3643 rm -f conftest.make
3645 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3646 { echo "$as_me:$LINENO: result: yes" >&5
3647 echo "${ECHO_T}yes" >&6; }
3648 SET_MAKE=
3649 else
3650 { echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6; }
3652 SET_MAKE="MAKE=${MAKE-make}"
3656 # Check whether --enable-static was given.
3657 if test "${enable_static+set}" = set; then
3658 enableval=$enable_static; p=${PACKAGE-default}
3659 case $enableval in
3660 yes) enable_static=yes ;;
3661 no) enable_static=no ;;
3663 enable_static=no
3664 # Look at the argument we got. We use all the common list separators.
3665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3666 for pkg in $enableval; do
3667 IFS="$lt_save_ifs"
3668 if test "X$pkg" = "X$p"; then
3669 enable_static=yes
3671 done
3672 IFS="$lt_save_ifs"
3674 esac
3675 else
3676 enable_static=no
3683 # Check whether --enable-shared was given.
3684 if test "${enable_shared+set}" = set; then
3685 enableval=$enable_shared; p=${PACKAGE-default}
3686 case $enableval in
3687 yes) enable_shared=yes ;;
3688 no) enable_shared=no ;;
3690 enable_shared=no
3691 # Look at the argument we got. We use all the common list separators.
3692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3693 for pkg in $enableval; do
3694 IFS="$lt_save_ifs"
3695 if test "X$pkg" = "X$p"; then
3696 enable_shared=yes
3698 done
3699 IFS="$lt_save_ifs"
3701 esac
3702 else
3703 enable_shared=yes
3707 # Check whether --enable-fast-install was given.
3708 if test "${enable_fast_install+set}" = set; then
3709 enableval=$enable_fast_install; p=${PACKAGE-default}
3710 case $enableval in
3711 yes) enable_fast_install=yes ;;
3712 no) enable_fast_install=no ;;
3714 enable_fast_install=no
3715 # Look at the argument we got. We use all the common list separators.
3716 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3717 for pkg in $enableval; do
3718 IFS="$lt_save_ifs"
3719 if test "X$pkg" = "X$p"; then
3720 enable_fast_install=yes
3722 done
3723 IFS="$lt_save_ifs"
3725 esac
3726 else
3727 enable_fast_install=yes
3731 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3732 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3733 if test "${lt_cv_path_SED+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 # Loop through the user's path and test for sed and gsed.
3737 # Then use that list of sed's as ones to test for truncation.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for lt_ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3746 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3748 done
3749 done
3750 done
3751 lt_ac_max=0
3752 lt_ac_count=0
3753 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3754 # along with /bin/sed that truncates output.
3755 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3756 test ! -f $lt_ac_sed && break
3757 cat /dev/null > conftest.in
3758 lt_ac_count=0
3759 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3760 # Check for GNU sed and select it if it is found.
3761 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3762 lt_cv_path_SED=$lt_ac_sed
3763 break
3765 while true; do
3766 cat conftest.in conftest.in >conftest.tmp
3767 mv conftest.tmp conftest.in
3768 cp conftest.in conftest.nl
3769 echo >>conftest.nl
3770 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3771 cmp -s conftest.out conftest.nl || break
3772 # 10000 chars as input seems more than enough
3773 test $lt_ac_count -gt 10 && break
3774 lt_ac_count=`expr $lt_ac_count + 1`
3775 if test $lt_ac_count -gt $lt_ac_max; then
3776 lt_ac_max=$lt_ac_count
3777 lt_cv_path_SED=$lt_ac_sed
3779 done
3780 done
3781 SED=$lt_cv_path_SED
3785 { echo "$as_me:$LINENO: result: $SED" >&5
3786 echo "${ECHO_T}$SED" >&6; }
3788 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3789 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3790 if test "${ac_cv_path_GREP+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 # Extract the first word of "grep ggrep" to use in msg output
3794 if test -z "$GREP"; then
3795 set dummy grep ggrep; ac_prog_name=$2
3796 if test "${ac_cv_path_GREP+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 ac_path_GREP_found=false
3800 # Loop through the user's path and test for each of PROGNAME-LIST
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804 IFS=$as_save_IFS
3805 test -z "$as_dir" && as_dir=.
3806 for ac_prog in grep ggrep; do
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3809 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3810 # Check for GNU ac_path_GREP and select it if it is found.
3811 # Check for GNU $ac_path_GREP
3812 case `"$ac_path_GREP" --version 2>&1` in
3813 *GNU*)
3814 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3816 ac_count=0
3817 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3818 while :
3820 cat "conftest.in" "conftest.in" >"conftest.tmp"
3821 mv "conftest.tmp" "conftest.in"
3822 cp "conftest.in" "conftest.nl"
3823 echo 'GREP' >> "conftest.nl"
3824 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3826 ac_count=`expr $ac_count + 1`
3827 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3828 # Best one so far, save it but keep looking for a better one
3829 ac_cv_path_GREP="$ac_path_GREP"
3830 ac_path_GREP_max=$ac_count
3832 # 10*(2^10) chars as input seems more than enough
3833 test $ac_count -gt 10 && break
3834 done
3835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3836 esac
3839 $ac_path_GREP_found && break 3
3840 done
3841 done
3843 done
3844 IFS=$as_save_IFS
3849 GREP="$ac_cv_path_GREP"
3850 if test -z "$GREP"; then
3851 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3852 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3853 { (exit 1); exit 1; }; }
3856 else
3857 ac_cv_path_GREP=$GREP
3862 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3863 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3864 GREP="$ac_cv_path_GREP"
3867 { echo "$as_me:$LINENO: checking for egrep" >&5
3868 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3869 if test "${ac_cv_path_EGREP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3873 then ac_cv_path_EGREP="$GREP -E"
3874 else
3875 # Extract the first word of "egrep" to use in msg output
3876 if test -z "$EGREP"; then
3877 set dummy egrep; ac_prog_name=$2
3878 if test "${ac_cv_path_EGREP+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 else
3881 ac_path_EGREP_found=false
3882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_prog in egrep; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3892 # Check for GNU ac_path_EGREP and select it if it is found.
3893 # Check for GNU $ac_path_EGREP
3894 case `"$ac_path_EGREP" --version 2>&1` in
3895 *GNU*)
3896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3898 ac_count=0
3899 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3900 while :
3902 cat "conftest.in" "conftest.in" >"conftest.tmp"
3903 mv "conftest.tmp" "conftest.in"
3904 cp "conftest.in" "conftest.nl"
3905 echo 'EGREP' >> "conftest.nl"
3906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908 ac_count=`expr $ac_count + 1`
3909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_EGREP="$ac_path_EGREP"
3912 ac_path_EGREP_max=$ac_count
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3916 done
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918 esac
3921 $ac_path_EGREP_found && break 3
3922 done
3923 done
3925 done
3926 IFS=$as_save_IFS
3931 EGREP="$ac_cv_path_EGREP"
3932 if test -z "$EGREP"; then
3933 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3934 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3935 { (exit 1); exit 1; }; }
3938 else
3939 ac_cv_path_EGREP=$EGREP
3945 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3946 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3947 EGREP="$ac_cv_path_EGREP"
3951 # Check whether --with-gnu-ld was given.
3952 if test "${with_gnu_ld+set}" = set; then
3953 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3954 else
3955 with_gnu_ld=no
3958 ac_prog=ld
3959 if test "$GCC" = yes; then
3960 # Check if gcc -print-prog-name=ld gives a path.
3961 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3962 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3963 case $host in
3964 *-*-mingw*)
3965 # gcc leaves a trailing carriage return which upsets mingw
3966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3969 esac
3970 case $ac_prog in
3971 # Accept absolute paths.
3972 [\\/]* | ?:[\\/]*)
3973 re_direlt='/[^/][^/]*/\.\./'
3974 # Canonicalize the pathname of ld
3975 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3976 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3977 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3978 done
3979 test -z "$LD" && LD="$ac_prog"
3982 # If it fails, then pretend we aren't using GCC.
3983 ac_prog=ld
3986 # If it is relative, then search for the first ld in PATH.
3987 with_gnu_ld=unknown
3989 esac
3990 elif test "$with_gnu_ld" = yes; then
3991 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3992 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3993 else
3994 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3995 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3997 if test "${lt_cv_path_LD+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
3999 else
4000 if test -z "$LD"; then
4001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4002 for ac_dir in $PATH; do
4003 IFS="$lt_save_ifs"
4004 test -z "$ac_dir" && ac_dir=.
4005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4006 lt_cv_path_LD="$ac_dir/$ac_prog"
4007 # Check to see if the program is GNU ld. I'd rather use --version,
4008 # but apparently some GNU ld's only accept -v.
4009 # Break only if it was the GNU/non-GNU ld that we prefer.
4010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4011 *GNU* | *'with BFD'*)
4012 test "$with_gnu_ld" != no && break
4015 test "$with_gnu_ld" != yes && break
4017 esac
4019 done
4020 IFS="$lt_save_ifs"
4021 else
4022 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4026 LD="$lt_cv_path_LD"
4027 if test -n "$LD"; then
4028 { echo "$as_me:$LINENO: result: $LD" >&5
4029 echo "${ECHO_T}$LD" >&6; }
4030 else
4031 { echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6; }
4034 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4035 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4036 { (exit 1); exit 1; }; }
4037 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4038 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4039 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4043 case `$LD -v 2>&1 </dev/null` in
4044 *GNU* | *'with BFD'*)
4045 lt_cv_prog_gnu_ld=yes
4048 lt_cv_prog_gnu_ld=no
4050 esac
4052 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4053 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4054 with_gnu_ld=$lt_cv_prog_gnu_ld
4057 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4058 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4059 if test "${lt_cv_ld_reload_flag+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062 lt_cv_ld_reload_flag='-r'
4064 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4065 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4066 reload_flag=$lt_cv_ld_reload_flag
4067 case $reload_flag in
4068 "" | " "*) ;;
4069 *) reload_flag=" $reload_flag" ;;
4070 esac
4071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4073 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4074 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4075 if test "${lt_cv_path_NM+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078 if test -n "$NM"; then
4079 # Let the user override the test.
4080 lt_cv_path_NM="$NM"
4081 else
4082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4083 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4084 IFS="$lt_save_ifs"
4085 test -z "$ac_dir" && ac_dir=.
4086 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4087 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4088 # Check to see if the nm accepts a BSD-compat flag.
4089 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4090 # nm: unknown option "B" ignored
4091 # Tru64's nm complains that /dev/null is an invalid object file
4092 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4093 */dev/null* | *'Invalid file or object type'*)
4094 lt_cv_path_NM="$tmp_nm -B"
4095 break
4098 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4099 */dev/null*)
4100 lt_cv_path_NM="$tmp_nm -p"
4101 break
4104 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4105 continue # so that we can try to find one that supports BSD flags
4107 esac
4108 esac
4110 done
4111 IFS="$lt_save_ifs"
4112 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4115 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4116 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4117 NM="$lt_cv_path_NM"
4119 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4120 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4121 LN_S=$as_ln_s
4122 if test "$LN_S" = "ln -s"; then
4123 { echo "$as_me:$LINENO: result: yes" >&5
4124 echo "${ECHO_T}yes" >&6; }
4125 else
4126 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4127 echo "${ECHO_T}no, using $LN_S" >&6; }
4130 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4131 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4132 if test "${lt_cv_deplibs_check_method+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 lt_cv_file_magic_cmd='$MAGIC_CMD'
4136 lt_cv_file_magic_test_file=
4137 lt_cv_deplibs_check_method='unknown'
4138 # Need to set the preceding variable on all platforms that support
4139 # interlibrary dependencies.
4140 # 'none' -- dependencies not supported.
4141 # `unknown' -- same as none, but documents that we really don't know.
4142 # 'pass_all' -- all dependencies passed with no checks.
4143 # 'test_compile' -- check by making test program.
4144 # 'file_magic [[regex]]' -- check by looking for files in library path
4145 # which responds to the $file_magic_cmd with a given extended regex.
4146 # If you have `file' or equivalent on your system and you're not sure
4147 # whether `pass_all' will *always* work, you probably want this one.
4149 case $host_os in
4150 aix4* | aix5*)
4151 lt_cv_deplibs_check_method=pass_all
4154 beos*)
4155 lt_cv_deplibs_check_method=pass_all
4158 bsdi4*)
4159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4160 lt_cv_file_magic_cmd='/usr/bin/file -L'
4161 lt_cv_file_magic_test_file=/shlib/libc.so
4164 cygwin* | mingw* | pw32*)
4165 # win32_libid is a shell function defined in ltmain.sh
4166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4167 lt_cv_file_magic_cmd='win32_libid'
4170 darwin* | rhapsody*)
4171 # this will be overwritten by pass_all, but leave it in just in case
4172 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4173 lt_cv_file_magic_cmd='/usr/bin/file -L'
4174 case "$host_os" in
4175 rhapsody* | darwin1.[012])
4176 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4178 *) # Darwin 1.3 on
4179 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4181 esac
4182 lt_cv_deplibs_check_method=pass_all
4185 freebsd* | kfreebsd*-gnu)
4186 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4187 case $host_cpu in
4188 i*86 )
4189 # Not sure whether the presence of OpenBSD here was a mistake.
4190 # Let's accept both of them until this is cleared up.
4191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4192 lt_cv_file_magic_cmd=/usr/bin/file
4193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4195 esac
4196 else
4197 lt_cv_deplibs_check_method=pass_all
4201 gnu*)
4202 lt_cv_deplibs_check_method=pass_all
4205 hpux10.20* | hpux11*)
4206 lt_cv_file_magic_cmd=/usr/bin/file
4207 case "$host_cpu" in
4208 ia64*)
4209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4210 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4212 hppa*64*)
4213 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4214 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4218 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4220 esac
4223 irix5* | irix6* | nonstopux*)
4224 case $host_os in
4225 irix5* | nonstopux*)
4226 # this will be overridden with pass_all, but let us keep it just in case
4227 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4230 case $LD in
4231 *-32|*"-32 ") libmagic=32-bit;;
4232 *-n32|*"-n32 ") libmagic=N32;;
4233 *-64|*"-64 ") libmagic=64-bit;;
4234 *) libmagic=never-match;;
4235 esac
4236 # this will be overridden with pass_all, but let us keep it just in case
4237 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4239 esac
4240 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4241 lt_cv_deplibs_check_method=pass_all
4244 # This must be Linux ELF.
4245 linux*)
4246 case $host_cpu in
4247 alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4248 lt_cv_deplibs_check_method=pass_all ;;
4250 # glibc up to 2.1.1 does not perform some relocations on ARM
4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4252 esac
4253 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4256 netbsd*)
4257 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4259 else
4260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4264 newos6*)
4265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4266 lt_cv_file_magic_cmd=/usr/bin/file
4267 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4270 nto-qnx*)
4271 lt_cv_deplibs_check_method=unknown
4274 openbsd*)
4275 lt_cv_file_magic_cmd=/usr/bin/file
4276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4279 else
4280 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4284 osf3* | osf4* | osf5*)
4285 # this will be overridden with pass_all, but let us keep it just in case
4286 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4287 lt_cv_file_magic_test_file=/shlib/libc.so
4288 lt_cv_deplibs_check_method=pass_all
4291 sco3.2v5*)
4292 lt_cv_deplibs_check_method=pass_all
4295 solaris*)
4296 lt_cv_deplibs_check_method=pass_all
4297 lt_cv_file_magic_test_file=/lib/libc.so
4300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4301 case $host_vendor in
4302 motorola)
4303 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4306 ncr)
4307 lt_cv_deplibs_check_method=pass_all
4309 sequent)
4310 lt_cv_file_magic_cmd='/bin/file'
4311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4313 sni)
4314 lt_cv_file_magic_cmd='/bin/file'
4315 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4316 lt_cv_file_magic_test_file=/lib/libc.so
4318 siemens)
4319 lt_cv_deplibs_check_method=pass_all
4321 esac
4324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4325 lt_cv_deplibs_check_method=pass_all
4327 esac
4330 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4331 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4332 file_magic_cmd=$lt_cv_file_magic_cmd
4333 deplibs_check_method=$lt_cv_deplibs_check_method
4334 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4339 # If no C compiler was specified, use CC.
4340 LTCC=${LTCC-"$CC"}
4342 # Allow CC to be a program name with arguments.
4343 compiler=$CC
4346 # Check whether --enable-libtool-lock was given.
4347 if test "${enable_libtool_lock+set}" = set; then
4348 enableval=$enable_libtool_lock;
4351 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4353 # Some flags need to be propagated to the compiler or linker for good
4354 # libtool support.
4355 case $host in
4356 ia64-*-hpux*)
4357 # Find out which ABI we are using.
4358 echo 'int i;' > conftest.$ac_ext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
4364 case `/usr/bin/file conftest.$ac_objext` in
4365 *ELF-32*)
4366 HPUX_IA64_MODE="32"
4368 *ELF-64*)
4369 HPUX_IA64_MODE="64"
4371 esac
4373 rm -rf conftest*
4375 *-*-irix6*)
4376 # Find out which ABI we are using.
4377 echo '#line 4377 "configure"' > conftest.$ac_ext
4378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>&5
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; then
4383 if test "$lt_cv_prog_gnu_ld" = yes; then
4384 case `/usr/bin/file conftest.$ac_objext` in
4385 *32-bit*)
4386 LD="${LD-ld} -melf32bsmip"
4388 *N32*)
4389 LD="${LD-ld} -melf32bmipn32"
4391 *64-bit*)
4392 LD="${LD-ld} -melf64bmip"
4394 esac
4395 else
4396 case `/usr/bin/file conftest.$ac_objext` in
4397 *32-bit*)
4398 LD="${LD-ld} -32"
4400 *N32*)
4401 LD="${LD-ld} -n32"
4403 *64-bit*)
4404 LD="${LD-ld} -64"
4406 esac
4409 rm -rf conftest*
4412 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4413 # Find out which ABI we are using.
4414 echo 'int i;' > conftest.$ac_ext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4417 ac_status=$?
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; then
4420 case "`/usr/bin/file conftest.o`" in
4421 *32-bit*)
4422 case $host in
4423 x86_64-*linux*)
4424 LD="${LD-ld} -m elf_i386"
4426 ppc64-*linux*|powerpc64-*linux*)
4427 LD="${LD-ld} -m elf32ppclinux"
4429 s390x-*linux*)
4430 LD="${LD-ld} -m elf_s390"
4432 sparc64-*linux*)
4433 LD="${LD-ld} -m elf32_sparc"
4435 esac
4437 *64-bit*)
4438 case $host in
4439 x86_64-*linux*)
4440 LD="${LD-ld} -m elf_x86_64"
4442 ppc*-*linux*|powerpc*-*linux*)
4443 LD="${LD-ld} -m elf64ppc"
4445 s390*-*linux*)
4446 LD="${LD-ld} -m elf64_s390"
4448 sparc*-*linux*)
4449 LD="${LD-ld} -m elf64_sparc"
4451 esac
4453 esac
4455 rm -rf conftest*
4458 *-*-sco3.2v5*)
4459 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4460 SAVE_CFLAGS="$CFLAGS"
4461 CFLAGS="$CFLAGS -belf"
4462 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4463 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4464 if test "${lt_cv_cc_needs_belf+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 ac_ext=c
4468 ac_cpp='$CPP $CPPFLAGS'
4469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 cat >conftest.$ac_ext <<_ACEOF
4474 /* confdefs.h. */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (ac_try="$ac_link"
4490 case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4495 (eval "$ac_link") 2>conftest.er1
4496 ac_status=$?
4497 grep -v '^ *+' conftest.er1 >conftest.err
4498 rm -f conftest.er1
4499 cat conftest.err >&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } && {
4502 test -z "$ac_c_werror_flag" ||
4503 test ! -s conftest.err
4504 } && test -s conftest$ac_exeext &&
4505 $as_test_x conftest$ac_exeext; then
4506 lt_cv_cc_needs_belf=yes
4507 else
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 lt_cv_cc_needs_belf=no
4514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4515 conftest$ac_exeext conftest.$ac_ext
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4523 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4524 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4525 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4526 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4527 CFLAGS="$SAVE_CFLAGS"
4531 esac
4533 need_locks="$enable_libtool_lock"
4536 ac_ext=c
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4541 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4542 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4543 # On Suns, sometimes $CPP names a directory.
4544 if test -n "$CPP" && test -d "$CPP"; then
4545 CPP=
4547 if test -z "$CPP"; then
4548 if test "${ac_cv_prog_CPP+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 # Double quotes because CPP needs to be expanded
4552 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4554 ac_preproc_ok=false
4555 for ac_c_preproc_warn_flag in '' yes
4557 # Use a header file that comes with gcc, so configuring glibc
4558 # with a fresh cross-compiler works.
4559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560 # <limits.h> exists even on freestanding compilers.
4561 # On the NeXT, cc -E runs the code through the compiler's parser,
4562 # not just through cpp. "Syntax error" is here to catch this case.
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 #ifdef __STDC__
4570 # include <limits.h>
4571 #else
4572 # include <assert.h>
4573 #endif
4574 Syntax error
4575 _ACEOF
4576 if { (ac_try="$ac_cpp conftest.$ac_ext"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null && {
4589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4590 test ! -s conftest.err
4591 }; then
4593 else
4594 echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4597 # Broken: fails on valid input.
4598 continue
4601 rm -f conftest.err conftest.$ac_ext
4603 # OK, works on sane cases. Now check whether nonexistent headers
4604 # can be detected and how.
4605 cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h. */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4611 #include <ac_nonexistent.h>
4612 _ACEOF
4613 if { (ac_try="$ac_cpp conftest.$ac_ext"
4614 case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4620 ac_status=$?
4621 grep -v '^ *+' conftest.er1 >conftest.err
4622 rm -f conftest.er1
4623 cat conftest.err >&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); } >/dev/null && {
4626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627 test ! -s conftest.err
4628 }; then
4629 # Broken: success on invalid input.
4630 continue
4631 else
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 # Passes both tests.
4636 ac_preproc_ok=:
4637 break
4640 rm -f conftest.err conftest.$ac_ext
4642 done
4643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4644 rm -f conftest.err conftest.$ac_ext
4645 if $ac_preproc_ok; then
4646 break
4649 done
4650 ac_cv_prog_CPP=$CPP
4653 CPP=$ac_cv_prog_CPP
4654 else
4655 ac_cv_prog_CPP=$CPP
4657 { echo "$as_me:$LINENO: result: $CPP" >&5
4658 echo "${ECHO_T}$CPP" >&6; }
4659 ac_preproc_ok=false
4660 for ac_c_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #ifdef __STDC__
4675 # include <limits.h>
4676 #else
4677 # include <assert.h>
4678 #endif
4679 Syntax error
4680 _ACEOF
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null && {
4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 }; then
4698 else
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 # Broken: fails on valid input.
4703 continue
4706 rm -f conftest.err conftest.$ac_ext
4708 # OK, works on sane cases. Now check whether nonexistent headers
4709 # can be detected and how.
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4717 _ACEOF
4718 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 ac_status=$?
4726 grep -v '^ *+' conftest.er1 >conftest.err
4727 rm -f conftest.er1
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4733 }; then
4734 # Broken: success on invalid input.
4735 continue
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 # Passes both tests.
4741 ac_preproc_ok=:
4742 break
4745 rm -f conftest.err conftest.$ac_ext
4747 done
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4752 else
4753 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4754 See \`config.log' for more details." >&5
4755 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4756 See \`config.log' for more details." >&2;}
4757 { (exit 1); exit 1; }; }
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4768 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4769 if test "${ac_cv_header_stdc+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4771 else
4772 cat >conftest.$ac_ext <<_ACEOF
4773 /* confdefs.h. */
4774 _ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4778 #include <stdlib.h>
4779 #include <stdarg.h>
4780 #include <string.h>
4781 #include <float.h>
4784 main ()
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_header_stdc=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_header_stdc=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat >conftest.$ac_ext <<_ACEOF
4821 /* confdefs.h. */
4822 _ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <string.h>
4828 _ACEOF
4829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4830 $EGREP "memchr" >/dev/null 2>&1; then
4832 else
4833 ac_cv_header_stdc=no
4835 rm -f conftest*
4839 if test $ac_cv_header_stdc = yes; then
4840 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h. */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4847 #include <stdlib.h>
4849 _ACEOF
4850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4851 $EGREP "free" >/dev/null 2>&1; then
4853 else
4854 ac_cv_header_stdc=no
4856 rm -f conftest*
4860 if test $ac_cv_header_stdc = yes; then
4861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4862 if test "$cross_compiling" = yes; then
4864 else
4865 cat >conftest.$ac_ext <<_ACEOF
4866 /* confdefs.h. */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 #include <ctype.h>
4872 #include <stdlib.h>
4873 #if ((' ' & 0x0FF) == 0x020)
4874 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4875 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4876 #else
4877 # define ISLOWER(c) \
4878 (('a' <= (c) && (c) <= 'i') \
4879 || ('j' <= (c) && (c) <= 'r') \
4880 || ('s' <= (c) && (c) <= 'z'))
4881 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4882 #endif
4884 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4886 main ()
4888 int i;
4889 for (i = 0; i < 256; i++)
4890 if (XOR (islower (i), ISLOWER (i))
4891 || toupper (i) != TOUPPER (i))
4892 return 2;
4893 return 0;
4895 _ACEOF
4896 rm -f conftest$ac_exeext
4897 if { (ac_try="$ac_link"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>&5
4904 ac_status=$?
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4907 { (case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912 (eval "$ac_try") 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; }; then
4917 else
4918 echo "$as_me: program exited with status $ac_status" >&5
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4922 ( exit $ac_status )
4923 ac_cv_header_stdc=no
4925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4932 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4933 if test $ac_cv_header_stdc = yes; then
4935 cat >>confdefs.h <<\_ACEOF
4936 #define STDC_HEADERS 1
4937 _ACEOF
4941 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4951 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4952 inttypes.h stdint.h unistd.h
4954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960 cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 $ac_includes_default
4968 #include <$ac_header>
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (ac_try="$ac_compile"
4972 case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975 esac
4976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_compile") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest.$ac_objext; then
4987 eval "$as_ac_Header=yes"
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4992 eval "$as_ac_Header=no"
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4997 ac_res=`eval echo '${'$as_ac_Header'}'`
4998 { echo "$as_me:$LINENO: result: $ac_res" >&5
4999 echo "${ECHO_T}$ac_res" >&6; }
5000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001 cat >>confdefs.h <<_ACEOF
5002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003 _ACEOF
5007 done
5011 for ac_header in dlfcn.h
5013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 ac_res=`eval echo '${'$as_ac_Header'}'`
5021 { echo "$as_me:$LINENO: result: $ac_res" >&5
5022 echo "${ECHO_T}$ac_res" >&6; }
5023 else
5024 # Is the header compilable?
5025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5027 cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 $ac_includes_default
5034 #include <$ac_header>
5035 _ACEOF
5036 rm -f conftest.$ac_objext
5037 if { (ac_try="$ac_compile"
5038 case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041 esac
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5044 ac_status=$?
5045 grep -v '^ *+' conftest.er1 >conftest.err
5046 rm -f conftest.er1
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_header_compiler=yes
5054 else
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_header_compiler=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5063 echo "${ECHO_T}$ac_header_compiler" >&6; }
5065 # Is the header present?
5066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5068 cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h. */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 #include <$ac_header>
5075 _ACEOF
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5077 case "(($ac_try" in
5078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5079 *) ac_try_echo=$ac_try;;
5080 esac
5081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev/null && {
5089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5091 }; then
5092 ac_header_preproc=yes
5093 else
5094 echo "$as_me: failed program was:" >&5
5095 sed 's/^/| /' conftest.$ac_ext >&5
5097 ac_header_preproc=no
5100 rm -f conftest.err conftest.$ac_ext
5101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5102 echo "${ECHO_T}$ac_header_preproc" >&6; }
5104 # So? What about this header?
5105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5106 yes:no: )
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5111 ac_header_preproc=yes
5113 no:yes:* )
5114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5128 esac
5129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 eval "$as_ac_Header=\$ac_header_preproc"
5136 ac_res=`eval echo '${'$as_ac_Header'}'`
5137 { echo "$as_me:$LINENO: result: $ac_res" >&5
5138 echo "${ECHO_T}$ac_res" >&6; }
5141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5142 cat >>confdefs.h <<_ACEOF
5143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5144 _ACEOF
5148 done
5150 ac_ext=cpp
5151 ac_cpp='$CXXCPP $CPPFLAGS'
5152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5155 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5156 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5157 if test -z "$CXXCPP"; then
5158 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 # Double quotes because CXXCPP needs to be expanded
5162 for CXXCPP in "$CXX -E" "/lib/cpp"
5164 ac_preproc_ok=false
5165 for ac_cxx_preproc_warn_flag in '' yes
5167 # Use a header file that comes with gcc, so configuring glibc
5168 # with a fresh cross-compiler works.
5169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5170 # <limits.h> exists even on freestanding compilers.
5171 # On the NeXT, cc -E runs the code through the compiler's parser,
5172 # not just through cpp. "Syntax error" is here to catch this case.
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #ifdef __STDC__
5180 # include <limits.h>
5181 #else
5182 # include <assert.h>
5183 #endif
5184 Syntax error
5185 _ACEOF
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5187 case "(($ac_try" in
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5190 esac
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5200 test ! -s conftest.err
5201 }; then
5203 else
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5208 continue
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } >/dev/null && {
5236 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5237 test ! -s conftest.err
5238 }; then
5239 # Broken: success on invalid input.
5240 continue
5241 else
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 # Passes both tests.
5246 ac_preproc_ok=:
5247 break
5250 rm -f conftest.err conftest.$ac_ext
5252 done
5253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5254 rm -f conftest.err conftest.$ac_ext
5255 if $ac_preproc_ok; then
5256 break
5259 done
5260 ac_cv_prog_CXXCPP=$CXXCPP
5263 CXXCPP=$ac_cv_prog_CXXCPP
5264 else
5265 ac_cv_prog_CXXCPP=$CXXCPP
5267 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5268 echo "${ECHO_T}$CXXCPP" >&6; }
5269 ac_preproc_ok=false
5270 for ac_cxx_preproc_warn_flag in '' yes
5272 # Use a header file that comes with gcc, so configuring glibc
5273 # with a fresh cross-compiler works.
5274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5275 # <limits.h> exists even on freestanding compilers.
5276 # On the NeXT, cc -E runs the code through the compiler's parser,
5277 # not just through cpp. "Syntax error" is here to catch this case.
5278 cat >conftest.$ac_ext <<_ACEOF
5279 /* confdefs.h. */
5280 _ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #ifdef __STDC__
5285 # include <limits.h>
5286 #else
5287 # include <assert.h>
5288 #endif
5289 Syntax error
5290 _ACEOF
5291 if { (ac_try="$ac_cpp conftest.$ac_ext"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null && {
5304 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5305 test ! -s conftest.err
5306 }; then
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 # Broken: fails on valid input.
5313 continue
5316 rm -f conftest.err conftest.$ac_ext
5318 # OK, works on sane cases. Now check whether nonexistent headers
5319 # can be detected and how.
5320 cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h. */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <ac_nonexistent.h>
5327 _ACEOF
5328 if { (ac_try="$ac_cpp conftest.$ac_ext"
5329 case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5335 ac_status=$?
5336 grep -v '^ *+' conftest.er1 >conftest.err
5337 rm -f conftest.er1
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } >/dev/null && {
5341 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5342 test ! -s conftest.err
5343 }; then
5344 # Broken: success on invalid input.
5345 continue
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 # Passes both tests.
5351 ac_preproc_ok=:
5352 break
5355 rm -f conftest.err conftest.$ac_ext
5357 done
5358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5359 rm -f conftest.err conftest.$ac_ext
5360 if $ac_preproc_ok; then
5362 else
5363 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5364 See \`config.log' for more details." >&5
5365 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5366 See \`config.log' for more details." >&2;}
5367 { (exit 1); exit 1; }; }
5370 ac_ext=cpp
5371 ac_cpp='$CXXCPP $CPPFLAGS'
5372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5377 ac_ext=f
5378 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5379 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5381 if test -n "$ac_tool_prefix"; then
5382 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5388 if test "${ac_cv_prog_F77+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 if test -n "$F77"; then
5392 ac_cv_prog_F77="$F77" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 F77=$ac_cv_prog_F77
5412 if test -n "$F77"; then
5413 { echo "$as_me:$LINENO: result: $F77" >&5
5414 echo "${ECHO_T}$F77" >&6; }
5415 else
5416 { echo "$as_me:$LINENO: result: no" >&5
5417 echo "${ECHO_T}no" >&6; }
5421 test -n "$F77" && break
5422 done
5424 if test -z "$F77"; then
5425 ac_ct_F77=$F77
5426 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5428 # Extract the first word of "$ac_prog", so it can be a program name with args.
5429 set dummy $ac_prog; ac_word=$2
5430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 if test -n "$ac_ct_F77"; then
5436 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_prog_ac_ct_F77="$ac_prog"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5449 done
5450 done
5451 IFS=$as_save_IFS
5455 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5456 if test -n "$ac_ct_F77"; then
5457 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5458 echo "${ECHO_T}$ac_ct_F77" >&6; }
5459 else
5460 { echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6; }
5465 test -n "$ac_ct_F77" && break
5466 done
5468 if test "x$ac_ct_F77" = x; then
5469 F77=""
5470 else
5471 case $cross_compiling:$ac_tool_warned in
5472 yes:)
5473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5474 whose name does not start with the host triplet. If you think this
5475 configuration is useful to you, please write to autoconf@gnu.org." >&5
5476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5477 whose name does not start with the host triplet. If you think this
5478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5479 ac_tool_warned=yes ;;
5480 esac
5481 F77=$ac_ct_F77
5486 # Provide some information about the compiler.
5487 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5488 ac_compiler=`set X $ac_compile; echo $2`
5489 { (ac_try="$ac_compiler --version >&5"
5490 case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493 esac
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compiler --version >&5") 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try="$ac_compiler -v >&5"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compiler -v >&5") 2>&5
5506 ac_status=$?
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }
5509 { (ac_try="$ac_compiler -V >&5"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_compiler -V >&5") 2>&5
5516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }
5519 rm -f a.out
5521 # If we don't use `.F' as extension, the preprocessor is not run on the
5522 # input file. (Note that this only needs to work for GNU compilers.)
5523 ac_save_ext=$ac_ext
5524 ac_ext=F
5525 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5526 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5527 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 else
5530 cat >conftest.$ac_ext <<_ACEOF
5531 program main
5532 #ifndef __GNUC__
5533 choke me
5534 #endif
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_f77_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_compiler_gnu=yes
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5560 ac_compiler_gnu=no
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5567 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5568 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5569 ac_ext=$ac_save_ext
5570 ac_test_FFLAGS=${FFLAGS+set}
5571 ac_save_FFLAGS=$FFLAGS
5572 FFLAGS=
5573 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5574 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_f77_g+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 else
5578 FFLAGS=-g
5579 cat >conftest.$ac_ext <<_ACEOF
5580 program main
5583 _ACEOF
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5586 case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589 esac
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_f77_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_cv_prog_f77_g=yes
5602 else
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ac_cv_prog_f77_g=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5613 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5614 if test "$ac_test_FFLAGS" = set; then
5615 FFLAGS=$ac_save_FFLAGS
5616 elif test $ac_cv_prog_f77_g = yes; then
5617 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5618 FFLAGS="-g -O2"
5619 else
5620 FFLAGS="-g"
5622 else
5623 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5624 FFLAGS="-O2"
5625 else
5626 FFLAGS=
5630 G77=`test $ac_compiler_gnu = yes && echo yes`
5631 ac_ext=c
5632 ac_cpp='$CPP $CPPFLAGS'
5633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5641 # find the maximum length of command line arguments
5642 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5643 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5644 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5648 testring="ABCD"
5650 case $build_os in
5651 msdosdjgpp*)
5652 # On DJGPP, this test can blow up pretty badly due to problems in libc
5653 # (any single argument exceeding 2000 bytes causes a buffer overrun
5654 # during glob expansion). Even if it were fixed, the result of this
5655 # check would be larger than it should be.
5656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5659 gnu*)
5660 # Under GNU Hurd, this test is not required because there is
5661 # no limit to the length of command line arguments.
5662 # Libtool will interpret -1 as no limit whatsoever
5663 lt_cv_sys_max_cmd_len=-1;
5666 cygwin* | mingw*)
5667 # On Win9x/ME, this test blows up -- it succeeds, but takes
5668 # about 5 minutes as the teststring grows exponentially.
5669 # Worse, since 9x/ME are not pre-emptively multitasking,
5670 # you end up with a "frozen" computer, even though with patience
5671 # the test eventually succeeds (with a max line length of 256k).
5672 # Instead, let's just punt: use the minimum linelength reported by
5673 # all of the supported platforms: 8192 (on NT/2K/XP).
5674 lt_cv_sys_max_cmd_len=8192;
5677 amigaos* | morphos*)
5678 # On AmigaOS with pdksh, this test takes hours, literally.
5679 # So we just punt and use a minimum line length of 8192.
5680 lt_cv_sys_max_cmd_len=8192;
5684 # If test is not a shell built-in, we'll probably end up computing a
5685 # maximum length that is only half of the actual maximum length, but
5686 # we can't tell.
5687 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5688 = "XX$testring") >/dev/null 2>&1 &&
5689 new_result=`expr "X$testring" : ".*" 2>&1` &&
5690 lt_cv_sys_max_cmd_len=$new_result &&
5691 test $i != 17 # 1/2 MB should be enough
5693 i=`expr $i + 1`
5694 testring=$testring$testring
5695 done
5696 testring=
5697 # Add a significant safety factor because C++ compilers can tack on massive
5698 # amounts of additional arguments before passing them to the linker.
5699 # It appears as though 1/2 is a usable value.
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5702 esac
5706 if test -n $lt_cv_sys_max_cmd_len ; then
5707 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5708 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5709 else
5710 { echo "$as_me:$LINENO: result: none" >&5
5711 echo "${ECHO_T}none" >&6; }
5717 # Check for command to grab the raw symbol name followed by C symbol from nm.
5718 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5719 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5720 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5724 # These are sane defaults that work on at least a few old systems.
5725 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5727 # Character class describing NM global symbol codes.
5728 symcode='[BCDEGRST]'
5730 # Regexp to match symbols that can be accessed directly from C.
5731 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5733 # Transform the above into a raw symbol and a C symbol.
5734 symxfrm='\1 \2\3 \3'
5736 # Transform an extracted symbol line into a proper C declaration
5737 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5739 # Transform an extracted symbol line into symbol name and symbol address
5740 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5742 # Define system-specific variables.
5743 case $host_os in
5744 aix*)
5745 symcode='[BCDT]'
5747 cygwin* | mingw* | pw32*)
5748 symcode='[ABCDGISTW]'
5750 hpux*) # Its linker distinguishes data from code symbols
5751 if test "$host_cpu" = ia64; then
5752 symcode='[ABCDEGRST]'
5754 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5755 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5757 irix* | nonstopux*)
5758 symcode='[BCDEGRST]'
5760 osf*)
5761 symcode='[BCDEGQRST]'
5763 solaris* | sysv5*)
5764 symcode='[BDRT]'
5766 sysv4)
5767 symcode='[DFNSTU]'
5769 esac
5771 # Handle CRLF in mingw tool chain
5772 opt_cr=
5773 case $build_os in
5774 mingw*)
5775 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5777 esac
5779 # If we're using GNU nm, then use its standard symbol codes.
5780 case `$NM -V 2>&1` in
5781 *GNU* | *'with BFD'*)
5782 symcode='[ABCDGIRSTW]' ;;
5783 esac
5785 # Try without a prefix undercore, then with it.
5786 for ac_symprfx in "" "_"; do
5788 # Write the raw and C identifiers.
5789 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5791 # Check to see that the pipe works correctly.
5792 pipe_works=no
5794 rm -f conftest*
5795 cat > conftest.$ac_ext <<EOF
5796 #ifdef __cplusplus
5797 extern "C" {
5798 #endif
5799 char nm_test_var;
5800 void nm_test_func(){}
5801 #ifdef __cplusplus
5803 #endif
5804 int main(){nm_test_var='a';nm_test_func();return(0);}
5807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5808 (eval $ac_compile) 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; then
5812 # Now try to grab the symbols.
5813 nlist=conftest.nm
5814 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5815 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && test -s "$nlist"; then
5819 # Try sorting and uniquifying the output.
5820 if sort "$nlist" | uniq > "$nlist"T; then
5821 mv -f "$nlist"T "$nlist"
5822 else
5823 rm -f "$nlist"T
5826 # Make sure that we snagged all the symbols we need.
5827 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5828 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5829 cat <<EOF > conftest.$ac_ext
5830 #ifdef __cplusplus
5831 extern "C" {
5832 #endif
5835 # Now generate the symbol file.
5836 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5838 cat <<EOF >> conftest.$ac_ext
5839 #if defined (__STDC__) && __STDC__
5840 # define lt_ptr_t void *
5841 #else
5842 # define lt_ptr_t char *
5843 # define const
5844 #endif
5846 /* The mapping between symbol names and symbols. */
5847 const struct {
5848 const char *name;
5849 lt_ptr_t address;
5851 lt_preloaded_symbols[] =
5854 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5855 cat <<\EOF >> conftest.$ac_ext
5856 {0, (lt_ptr_t) 0}
5859 #ifdef __cplusplus
5861 #endif
5863 # Now try linking the two files.
5864 mv conftest.$ac_objext conftstm.$ac_objext
5865 lt_save_LIBS="$LIBS"
5866 lt_save_CFLAGS="$CFLAGS"
5867 LIBS="conftstm.$ac_objext"
5868 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870 (eval $ac_link) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5874 pipe_works=yes
5876 LIBS="$lt_save_LIBS"
5877 CFLAGS="$lt_save_CFLAGS"
5878 else
5879 echo "cannot find nm_test_func in $nlist" >&5
5881 else
5882 echo "cannot find nm_test_var in $nlist" >&5
5884 else
5885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5887 else
5888 echo "$progname: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5891 rm -f conftest* conftst*
5893 # Do not use the global_symbol_pipe unless it works.
5894 if test "$pipe_works" = yes; then
5895 break
5896 else
5897 lt_cv_sys_global_symbol_pipe=
5899 done
5903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5904 lt_cv_sys_global_symbol_to_cdecl=
5906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5907 { echo "$as_me:$LINENO: result: failed" >&5
5908 echo "${ECHO_T}failed" >&6; }
5909 else
5910 { echo "$as_me:$LINENO: result: ok" >&5
5911 echo "${ECHO_T}ok" >&6; }
5914 { echo "$as_me:$LINENO: checking for objdir" >&5
5915 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5916 if test "${lt_cv_objdir+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919 rm -f .libs 2>/dev/null
5920 mkdir .libs 2>/dev/null
5921 if test -d .libs; then
5922 lt_cv_objdir=.libs
5923 else
5924 # MS-DOS does not allow filenames that begin with a dot.
5925 lt_cv_objdir=_libs
5927 rmdir .libs 2>/dev/null
5929 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5930 echo "${ECHO_T}$lt_cv_objdir" >&6; }
5931 objdir=$lt_cv_objdir
5937 case $host_os in
5938 aix3*)
5939 # AIX sometimes has problems with the GCC collect2 program. For some
5940 # reason, if we set the COLLECT_NAMES environment variable, the problems
5941 # vanish in a puff of smoke.
5942 if test "X${COLLECT_NAMES+set}" != Xset; then
5943 COLLECT_NAMES=
5944 export COLLECT_NAMES
5947 esac
5949 # Sed substitution that helps us do robust quoting. It backslashifies
5950 # metacharacters that are still active within double-quoted strings.
5951 Xsed='sed -e s/^X//'
5952 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5954 # Same as above, but do not quote variable references.
5955 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5957 # Sed substitution to delay expansion of an escaped shell variable in a
5958 # double_quote_subst'ed string.
5959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5961 # Sed substitution to avoid accidental globbing in evaled expressions
5962 no_glob_subst='s/\*/\\\*/g'
5964 # Constants:
5965 rm="rm -f"
5967 # Global variables:
5968 default_ofile=libtool
5969 can_build_shared=yes
5971 # All known linkers require a `.a' archive for static linking (except M$VC,
5972 # which needs '.lib').
5973 libext=a
5974 ltmain="$ac_aux_dir/ltmain.sh"
5975 ofile="$default_ofile"
5976 with_gnu_ld="$lt_cv_prog_gnu_ld"
5978 if test -n "$ac_tool_prefix"; then
5979 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5980 set dummy ${ac_tool_prefix}ar; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_prog_AR+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 if test -n "$AR"; then
5987 ac_cv_prog_AR="$AR" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_AR="${ac_tool_prefix}ar"
5997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6002 IFS=$as_save_IFS
6006 AR=$ac_cv_prog_AR
6007 if test -n "$AR"; then
6008 { echo "$as_me:$LINENO: result: $AR" >&5
6009 echo "${ECHO_T}$AR" >&6; }
6010 else
6011 { echo "$as_me:$LINENO: result: no" >&5
6012 echo "${ECHO_T}no" >&6; }
6017 if test -z "$ac_cv_prog_AR"; then
6018 ac_ct_AR=$AR
6019 # Extract the first word of "ar", so it can be a program name with args.
6020 set dummy ar; ac_word=$2
6021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6023 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 if test -n "$ac_ct_AR"; then
6027 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6028 else
6029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030 for as_dir in $PATH
6032 IFS=$as_save_IFS
6033 test -z "$as_dir" && as_dir=.
6034 for ac_exec_ext in '' $ac_executable_extensions; do
6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6036 ac_cv_prog_ac_ct_AR="ar"
6037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 break 2
6040 done
6041 done
6042 IFS=$as_save_IFS
6046 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6047 if test -n "$ac_ct_AR"; then
6048 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6049 echo "${ECHO_T}$ac_ct_AR" >&6; }
6050 else
6051 { echo "$as_me:$LINENO: result: no" >&5
6052 echo "${ECHO_T}no" >&6; }
6055 if test "x$ac_ct_AR" = x; then
6056 AR="false"
6057 else
6058 case $cross_compiling:$ac_tool_warned in
6059 yes:)
6060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6061 whose name does not start with the host triplet. If you think this
6062 configuration is useful to you, please write to autoconf@gnu.org." >&5
6063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6064 whose name does not start with the host triplet. If you think this
6065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6066 ac_tool_warned=yes ;;
6067 esac
6068 AR=$ac_ct_AR
6070 else
6071 AR="$ac_cv_prog_AR"
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082 if test -n "$RANLIB"; then
6083 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 RANLIB=$ac_cv_prog_RANLIB
6103 if test -n "$RANLIB"; then
6104 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6105 echo "${ECHO_T}$RANLIB" >&6; }
6106 else
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6113 if test -z "$ac_cv_prog_RANLIB"; then
6114 ac_ct_RANLIB=$RANLIB
6115 # Extract the first word of "ranlib", so it can be a program name with args.
6116 set dummy ranlib; ac_word=$2
6117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6119 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 else
6122 if test -n "$ac_ct_RANLIB"; then
6123 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6128 IFS=$as_save_IFS
6129 test -z "$as_dir" && as_dir=.
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132 ac_cv_prog_ac_ct_RANLIB="ranlib"
6133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 break 2
6136 done
6137 done
6138 IFS=$as_save_IFS
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6145 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6146 else
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6151 if test "x$ac_ct_RANLIB" = x; then
6152 RANLIB=":"
6153 else
6154 case $cross_compiling:$ac_tool_warned in
6155 yes:)
6156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6157 whose name does not start with the host triplet. If you think this
6158 configuration is useful to you, please write to autoconf@gnu.org." >&5
6159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6160 whose name does not start with the host triplet. If you think this
6161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164 RANLIB=$ac_ct_RANLIB
6166 else
6167 RANLIB="$ac_cv_prog_RANLIB"
6170 if test -n "$ac_tool_prefix"; then
6171 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6172 set dummy ${ac_tool_prefix}strip; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_STRIP+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 if test -n "$STRIP"; then
6179 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
6187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6192 done
6193 done
6194 IFS=$as_save_IFS
6198 STRIP=$ac_cv_prog_STRIP
6199 if test -n "$STRIP"; then
6200 { echo "$as_me:$LINENO: result: $STRIP" >&5
6201 echo "${ECHO_T}$STRIP" >&6; }
6202 else
6203 { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6209 if test -z "$ac_cv_prog_STRIP"; then
6210 ac_ct_STRIP=$STRIP
6211 # Extract the first word of "strip", so it can be a program name with args.
6212 set dummy strip; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 else
6218 if test -n "$ac_ct_STRIP"; then
6219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6220 else
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 for as_dir in $PATH
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_ac_ct_STRIP="strip"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 break 2
6232 done
6233 done
6234 IFS=$as_save_IFS
6238 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6239 if test -n "$ac_ct_STRIP"; then
6240 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6241 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6242 else
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6247 if test "x$ac_ct_STRIP" = x; then
6248 STRIP=":"
6249 else
6250 case $cross_compiling:$ac_tool_warned in
6251 yes:)
6252 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&5
6255 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet. If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260 STRIP=$ac_ct_STRIP
6262 else
6263 STRIP="$ac_cv_prog_STRIP"
6267 old_CC="$CC"
6268 old_CFLAGS="$CFLAGS"
6270 # Set sane defaults for various variables
6271 test -z "$AR" && AR=ar
6272 test -z "$AR_FLAGS" && AR_FLAGS=cru
6273 test -z "$AS" && AS=as
6274 test -z "$CC" && CC=cc
6275 test -z "$LTCC" && LTCC=$CC
6276 test -z "$DLLTOOL" && DLLTOOL=dlltool
6277 test -z "$LD" && LD=ld
6278 test -z "$LN_S" && LN_S="ln -s"
6279 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6280 test -z "$NM" && NM=nm
6281 test -z "$SED" && SED=sed
6282 test -z "$OBJDUMP" && OBJDUMP=objdump
6283 test -z "$RANLIB" && RANLIB=:
6284 test -z "$STRIP" && STRIP=:
6285 test -z "$ac_objext" && ac_objext=o
6287 # Determine commands to create old-style static archives.
6288 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6289 old_postinstall_cmds='chmod 644 $oldlib'
6290 old_postuninstall_cmds=
6292 if test -n "$RANLIB"; then
6293 case $host_os in
6294 openbsd*)
6295 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6298 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6300 esac
6301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6304 # Only perform the check for file, if the check method requires it
6305 case $deplibs_check_method in
6306 file_magic*)
6307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6308 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6309 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313 case $MAGIC_CMD in
6314 [\\/*] | ?:[\\/]*)
6315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6318 lt_save_MAGIC_CMD="$MAGIC_CMD"
6319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6321 for ac_dir in $ac_dummy; do
6322 IFS="$lt_save_ifs"
6323 test -z "$ac_dir" && ac_dir=.
6324 if test -f $ac_dir/${ac_tool_prefix}file; then
6325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6326 if test -n "$file_magic_test_file"; then
6327 case $deplibs_check_method in
6328 "file_magic "*)
6329 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6332 $EGREP "$file_magic_regex" > /dev/null; then
6334 else
6335 cat <<EOF 1>&2
6337 *** Warning: the command libtool uses to detect shared libraries,
6338 *** $file_magic_cmd, produces output that libtool cannot recognize.
6339 *** The result is that libtool may fail to recognize shared libraries
6340 *** as such. This will affect the creation of libtool libraries that
6341 *** depend on shared libraries, but programs linked with such libtool
6342 *** libraries will work regardless of this problem. Nevertheless, you
6343 *** may want to report the problem to your system manager and/or to
6344 *** bug-libtool@gnu.org
6347 fi ;;
6348 esac
6350 break
6352 done
6353 IFS="$lt_save_ifs"
6354 MAGIC_CMD="$lt_save_MAGIC_CMD"
6356 esac
6359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6360 if test -n "$MAGIC_CMD"; then
6361 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6362 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6368 if test -z "$lt_cv_path_MAGIC_CMD"; then
6369 if test -n "$ac_tool_prefix"; then
6370 { echo "$as_me:$LINENO: checking for file" >&5
6371 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375 case $MAGIC_CMD in
6376 [\\/*] | ?:[\\/]*)
6377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6380 lt_save_MAGIC_CMD="$MAGIC_CMD"
6381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6383 for ac_dir in $ac_dummy; do
6384 IFS="$lt_save_ifs"
6385 test -z "$ac_dir" && ac_dir=.
6386 if test -f $ac_dir/file; then
6387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6388 if test -n "$file_magic_test_file"; then
6389 case $deplibs_check_method in
6390 "file_magic "*)
6391 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6394 $EGREP "$file_magic_regex" > /dev/null; then
6396 else
6397 cat <<EOF 1>&2
6399 *** Warning: the command libtool uses to detect shared libraries,
6400 *** $file_magic_cmd, produces output that libtool cannot recognize.
6401 *** The result is that libtool may fail to recognize shared libraries
6402 *** as such. This will affect the creation of libtool libraries that
6403 *** depend on shared libraries, but programs linked with such libtool
6404 *** libraries will work regardless of this problem. Nevertheless, you
6405 *** may want to report the problem to your system manager and/or to
6406 *** bug-libtool@gnu.org
6409 fi ;;
6410 esac
6412 break
6414 done
6415 IFS="$lt_save_ifs"
6416 MAGIC_CMD="$lt_save_MAGIC_CMD"
6418 esac
6421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6422 if test -n "$MAGIC_CMD"; then
6423 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6424 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6425 else
6426 { echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6; }
6430 else
6431 MAGIC_CMD=:
6437 esac
6439 enable_dlopen=yes
6440 enable_win32_dll=no
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then
6444 enableval=$enable_libtool_lock;
6447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6450 # Check whether --with-pic was given.
6451 if test "${with_pic+set}" = set; then
6452 withval=$with_pic; pic_mode="$withval"
6453 else
6454 pic_mode=default
6457 test -z "$pic_mode" && pic_mode=default
6459 # Use C for the default configuration in the libtool script
6460 tagname=
6461 lt_save_CC="$CC"
6462 ac_ext=c
6463 ac_cpp='$CPP $CPPFLAGS'
6464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6469 # Source file extension for C test sources.
6470 ac_ext=c
6472 # Object file extension for compiled C test sources.
6473 objext=o
6474 objext=$objext
6476 # Code to be used in simple compile tests
6477 lt_simple_compile_test_code="int some_variable = 0;\n"
6479 # Code to be used in simple link tests
6480 lt_simple_link_test_code='int main(){return(0);}\n'
6483 # If no C compiler was specified, use CC.
6484 LTCC=${LTCC-"$CC"}
6486 # Allow CC to be a program name with arguments.
6487 compiler=$CC
6491 # Check for any special shared library compilation flags.
6493 lt_prog_cc_shlib=
6494 if test "$GCC" = no; then
6495 case $host_os in
6496 sco3.2v5*)
6497 lt_prog_cc_shlib='-belf'
6499 esac
6501 if test -n "$lt_prog_cc_shlib"; then
6502 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6503 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6504 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6505 else
6506 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6507 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6508 lt_cv_prog_cc_can_build_shared=no
6514 # Check to make sure the static flag actually works.
6516 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6517 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6518 if test "${lt_prog_compiler_static_works+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 lt_prog_compiler_static_works=no
6522 save_LDFLAGS="$LDFLAGS"
6523 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6524 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6526 # The compiler can only warn and ignore the option if not recognized
6527 # So say no if there are warnings
6528 if test -s conftest.err; then
6529 # Append any errors to the config.log.
6530 cat conftest.err 1>&5
6531 else
6532 lt_prog_compiler_static_works=yes
6535 $rm conftest*
6536 LDFLAGS="$save_LDFLAGS"
6539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6540 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6542 if test x"$lt_prog_compiler_static_works" = xyes; then
6544 else
6545 lt_prog_compiler_static=
6550 ## CAVEAT EMPTOR:
6551 ## There is no encapsulation within the following macros, do not change
6552 ## the running order or otherwise move them around unless you know exactly
6553 ## what you are doing...
6555 lt_prog_compiler_no_builtin_flag=
6557 if test "$GCC" = yes; then
6558 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6561 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6562 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6563 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566 lt_cv_prog_compiler_rtti_exceptions=no
6567 ac_outfile=conftest.$ac_objext
6568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6569 lt_compiler_flag="-fno-rtti -fno-exceptions"
6570 # Insert the option either (1) after the last *FLAGS variable, or
6571 # (2) before a word containing "conftest.", or (3) at the end.
6572 # Note that $ac_compile itself does not contain backslashes and begins
6573 # with a dollar sign (not a hyphen), so the echo should work correctly.
6574 # The option is referenced via a variable to avoid confusing sed.
6575 lt_compile=`echo "$ac_compile" | $SED \
6576 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6578 -e 's:$: $lt_compiler_flag:'`
6579 (eval echo "\"\$as_me:6579: $lt_compile\"" >&5)
6580 (eval "$lt_compile" 2>conftest.err)
6581 ac_status=$?
6582 cat conftest.err >&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 if (exit $ac_status) && test -s "$ac_outfile"; then
6585 # The compiler can only warn and ignore the option if not recognized
6586 # So say no if there are warnings
6587 if test ! -s conftest.err; then
6588 lt_cv_prog_compiler_rtti_exceptions=yes
6591 $rm conftest*
6594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6595 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6599 else
6605 lt_prog_compiler_wl=
6606 lt_prog_compiler_pic=
6607 lt_prog_compiler_static=
6609 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6610 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6612 if test "$GCC" = yes; then
6613 lt_prog_compiler_wl='-Wl,'
6614 lt_prog_compiler_static='-static'
6616 case $host_os in
6617 aix*)
6618 # All AIX code is PIC.
6619 if test "$host_cpu" = ia64; then
6620 # AIX 5 now supports IA64 processor
6621 lt_prog_compiler_static='-Bstatic'
6625 amigaos*)
6626 # FIXME: we need at least 68020 code to build shared libraries, but
6627 # adding the `-m68020' flag to GCC prevents building anything better,
6628 # like `-m68040'.
6629 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6632 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6633 # PIC is the default for these OSes.
6636 mingw* | pw32* | os2*)
6637 # This hack is so that the source file can tell whether it is being
6638 # built for inclusion in a dll (and should export symbols for example).
6639 lt_prog_compiler_pic='-DDLL_EXPORT'
6642 darwin* | rhapsody*)
6643 # PIC is the default on this platform
6644 # Common symbols not allowed in MH_DYLIB files
6645 lt_prog_compiler_pic='-fno-common'
6648 msdosdjgpp*)
6649 # Just because we use GCC doesn't mean we suddenly get shared libraries
6650 # on systems that don't support them.
6651 lt_prog_compiler_can_build_shared=no
6652 enable_shared=no
6655 sysv4*MP*)
6656 if test -d /usr/nec; then
6657 lt_prog_compiler_pic=-Kconform_pic
6661 hpux*)
6662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6663 # not for PA HP-UX.
6664 case "$host_cpu" in
6665 hppa*64*|ia64*)
6666 # +Z the default
6669 lt_prog_compiler_pic='-fPIC'
6671 esac
6675 lt_prog_compiler_pic='-fPIC'
6677 esac
6678 else
6679 # PORTME Check for flag to pass linker flags through the system compiler.
6680 case $host_os in
6681 aix*)
6682 lt_prog_compiler_wl='-Wl,'
6683 if test "$host_cpu" = ia64; then
6684 # AIX 5 now supports IA64 processor
6685 lt_prog_compiler_static='-Bstatic'
6686 else
6687 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6691 mingw* | pw32* | os2*)
6692 # This hack is so that the source file can tell whether it is being
6693 # built for inclusion in a dll (and should export symbols for example).
6694 lt_prog_compiler_pic='-DDLL_EXPORT'
6697 hpux9* | hpux10* | hpux11*)
6698 lt_prog_compiler_wl='-Wl,'
6699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6700 # not for PA HP-UX.
6701 case "$host_cpu" in
6702 hppa*64*|ia64*)
6703 # +Z the default
6706 lt_prog_compiler_pic='+Z'
6708 esac
6709 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6710 lt_prog_compiler_static='${wl}-a ${wl}archive'
6713 irix5* | irix6* | nonstopux*)
6714 lt_prog_compiler_wl='-Wl,'
6715 # PIC (with -KPIC) is the default.
6716 lt_prog_compiler_static='-non_shared'
6719 newsos6)
6720 lt_prog_compiler_pic='-KPIC'
6721 lt_prog_compiler_static='-Bstatic'
6724 linux*)
6725 case $CC in
6726 icc* | ecc*)
6727 lt_prog_compiler_wl='-Wl,'
6728 lt_prog_compiler_pic='-KPIC'
6729 lt_prog_compiler_static='-static'
6731 ccc*)
6732 lt_prog_compiler_wl='-Wl,'
6733 # All Alpha code is PIC.
6734 lt_prog_compiler_static='-non_shared'
6736 esac
6739 osf3* | osf4* | osf5*)
6740 lt_prog_compiler_wl='-Wl,'
6741 # All OSF/1 code is PIC.
6742 lt_prog_compiler_static='-non_shared'
6745 sco3.2v5*)
6746 lt_prog_compiler_pic='-Kpic'
6747 lt_prog_compiler_static='-dn'
6750 solaris*)
6751 lt_prog_compiler_wl='-Wl,'
6752 lt_prog_compiler_pic='-KPIC'
6753 lt_prog_compiler_static='-Bstatic'
6756 sunos4*)
6757 lt_prog_compiler_wl='-Qoption ld '
6758 lt_prog_compiler_pic='-PIC'
6759 lt_prog_compiler_static='-Bstatic'
6762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6763 lt_prog_compiler_wl='-Wl,'
6764 lt_prog_compiler_pic='-KPIC'
6765 lt_prog_compiler_static='-Bstatic'
6768 sysv4*MP*)
6769 if test -d /usr/nec ;then
6770 lt_prog_compiler_pic='-Kconform_pic'
6771 lt_prog_compiler_static='-Bstatic'
6775 uts4*)
6776 lt_prog_compiler_pic='-pic'
6777 lt_prog_compiler_static='-Bstatic'
6781 lt_prog_compiler_can_build_shared=no
6783 esac
6786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6787 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
6790 # Check to make sure the PIC flag actually works.
6792 if test -n "$lt_prog_compiler_pic"; then
6794 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
6796 if test "${lt_prog_compiler_pic_works+set}" = set; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799 lt_prog_compiler_pic_works=no
6800 ac_outfile=conftest.$ac_objext
6801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6802 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6803 # Insert the option either (1) after the last *FLAGS variable, or
6804 # (2) before a word containing "conftest.", or (3) at the end.
6805 # Note that $ac_compile itself does not contain backslashes and begins
6806 # with a dollar sign (not a hyphen), so the echo should work correctly.
6807 # The option is referenced via a variable to avoid confusing sed.
6808 lt_compile=`echo "$ac_compile" | $SED \
6809 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6811 -e 's:$: $lt_compiler_flag:'`
6812 (eval echo "\"\$as_me:6812: $lt_compile\"" >&5)
6813 (eval "$lt_compile" 2>conftest.err)
6814 ac_status=$?
6815 cat conftest.err >&5
6816 echo "$as_me:6816: \$? = $ac_status" >&5
6817 if (exit $ac_status) && test -s "$ac_outfile"; then
6818 # The compiler can only warn and ignore the option if not recognized
6819 # So say no if there are warnings
6820 if test ! -s conftest.err; then
6821 lt_prog_compiler_pic_works=yes
6824 $rm conftest*
6827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6828 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
6830 if test x"$lt_prog_compiler_pic_works" = xyes; then
6831 case $lt_prog_compiler_pic in
6832 "" | " "*) ;;
6833 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6834 esac
6835 else
6836 lt_prog_compiler_pic=
6837 lt_prog_compiler_can_build_shared=no
6841 case "$host_os" in
6842 # For platforms which do not support PIC, -DPIC is meaningless:
6843 *djgpp*)
6844 lt_prog_compiler_pic=
6847 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6849 esac
6851 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6852 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
6853 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 else
6856 lt_cv_prog_compiler_c_o=no
6857 $rm -r conftest 2>/dev/null
6858 mkdir conftest
6859 cd conftest
6860 mkdir out
6861 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6863 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6864 # that will create temporary files in the current directory regardless of
6865 # the output directory. Thus, making CWD read-only will cause this test
6866 # to fail, enabling locking or at least warning the user not to do parallel
6867 # builds.
6868 chmod -w .
6870 lt_compiler_flag="-o out/conftest2.$ac_objext"
6871 # Insert the option either (1) after the last *FLAGS variable, or
6872 # (2) before a word containing "conftest.", or (3) at the end.
6873 # Note that $ac_compile itself does not contain backslashes and begins
6874 # with a dollar sign (not a hyphen), so the echo should work correctly.
6875 lt_compile=`echo "$ac_compile" | $SED \
6876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6878 -e 's:$: $lt_compiler_flag:'`
6879 (eval echo "\"\$as_me:6879: $lt_compile\"" >&5)
6880 (eval "$lt_compile" 2>out/conftest.err)
6881 ac_status=$?
6882 cat out/conftest.err >&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6885 then
6886 # The compiler can only warn and ignore the option if not recognized
6887 # So say no if there are warnings
6888 if test ! -s out/conftest.err; then
6889 lt_cv_prog_compiler_c_o=yes
6892 chmod u+w .
6893 $rm conftest*
6894 # SGI C++ compiler will create directory out/ii_files/ for
6895 # template instantiation
6896 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6897 $rm out/* && rmdir out
6898 cd ..
6899 rmdir conftest
6900 $rm conftest*
6903 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6904 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
6907 hard_links="nottested"
6908 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6909 # do not overwrite the value of need_locks provided by the user
6910 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6911 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
6912 hard_links=yes
6913 $rm conftest*
6914 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6915 touch conftest.a
6916 ln conftest.a conftest.b 2>&5 || hard_links=no
6917 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6918 { echo "$as_me:$LINENO: result: $hard_links" >&5
6919 echo "${ECHO_T}$hard_links" >&6; }
6920 if test "$hard_links" = no; then
6921 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6922 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6923 need_locks=warn
6925 else
6926 need_locks=no
6929 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
6932 runpath_var=
6933 allow_undefined_flag=
6934 enable_shared_with_static_runtimes=no
6935 archive_cmds=
6936 archive_expsym_cmds=
6937 old_archive_From_new_cmds=
6938 old_archive_from_expsyms_cmds=
6939 export_dynamic_flag_spec=
6940 whole_archive_flag_spec=
6941 thread_safe_flag_spec=
6942 hardcode_libdir_flag_spec=
6943 hardcode_libdir_flag_spec_ld=
6944 hardcode_libdir_separator=
6945 hardcode_direct=no
6946 hardcode_minus_L=no
6947 hardcode_shlibpath_var=unsupported
6948 link_all_deplibs=unknown
6949 hardcode_automatic=no
6950 module_cmds=
6951 module_expsym_cmds=
6952 always_export_symbols=no
6953 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6954 # include_expsyms should be a list of space-separated symbols to be *always*
6955 # included in the symbol list
6956 include_expsyms=
6957 # exclude_expsyms can be an extended regexp of symbols to exclude
6958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6960 # as well as any symbol that contains `d'.
6961 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6963 # platforms (ab)use it in PIC code, but their linkers get confused if
6964 # the symbol is explicitly referenced. Since portable code cannot
6965 # rely on this symbol name, it's probably fine to never include it in
6966 # preloaded symbol tables.
6967 extract_expsyms_cmds=
6969 case $host_os in
6970 cygwin* | mingw* | pw32*)
6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6972 # When not using gcc, we currently assume that we are using
6973 # Microsoft Visual C++.
6974 if test "$GCC" != yes; then
6975 with_gnu_ld=no
6978 openbsd*)
6979 with_gnu_ld=no
6981 esac
6983 ld_shlibs=yes
6984 if test "$with_gnu_ld" = yes; then
6985 # If archive_cmds runs LD, not CC, wlarc should be empty
6986 wlarc='${wl}'
6988 # See if GNU ld supports shared libraries.
6989 case $host_os in
6990 aix3* | aix4* | aix5*)
6991 # On AIX/PPC, the GNU linker is very broken
6992 if test "$host_cpu" != ia64; then
6993 ld_shlibs=no
6994 cat <<EOF 1>&2
6996 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6997 *** to be unable to reliably create shared libraries on AIX.
6998 *** Therefore, libtool is disabling shared libraries support. If you
6999 *** really care for shared libraries, you may want to modify your PATH
7000 *** so that a non-GNU linker is found, and then restart.
7006 amigaos*)
7007 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7008 hardcode_libdir_flag_spec='-L$libdir'
7009 hardcode_minus_L=yes
7011 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7012 # that the semantics of dynamic libraries on AmigaOS, at least up
7013 # to version 4, is to share data among multiple programs linked
7014 # with the same dynamic library. Since this doesn't match the
7015 # behavior of shared libraries on other platforms, we can't use
7016 # them.
7017 ld_shlibs=no
7020 beos*)
7021 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7022 allow_undefined_flag=unsupported
7023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7024 # support --undefined. This deserves some investigation. FIXME
7025 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026 else
7027 ld_shlibs=no
7031 cygwin* | mingw* | pw32*)
7032 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7033 # as there is no search path for DLLs.
7034 hardcode_libdir_flag_spec='-L$libdir'
7035 allow_undefined_flag=unsupported
7036 always_export_symbols=no
7037 enable_shared_with_static_runtimes=yes
7038 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7040 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7042 # If the export-symbols file already is a .def file (1st line
7043 # is EXPORTS), use it as is; otherwise, prepend...
7044 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7045 cp $export_symbols $output_objdir/$soname.def;
7046 else
7047 echo EXPORTS > $output_objdir/$soname.def;
7048 cat $export_symbols >> $output_objdir/$soname.def;
7050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7051 else
7052 ld_shlibs=no
7056 netbsd*)
7057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7058 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7059 wlarc=
7060 else
7061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7062 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7066 solaris* | sysv5*)
7067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7068 ld_shlibs=no
7069 cat <<EOF 1>&2
7071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7072 *** create shared libraries on Solaris systems. Therefore, libtool
7073 *** is disabling shared libraries support. We urge you to upgrade GNU
7074 *** binutils to release 2.9.1 or newer. Another option is to modify
7075 *** your PATH or compiler configuration so that the native linker is
7076 *** used, and then restart.
7079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7081 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7082 else
7083 ld_shlibs=no
7087 sunos4*)
7088 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7089 wlarc=
7090 hardcode_direct=yes
7091 hardcode_shlibpath_var=no
7094 linux*)
7095 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7096 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7097 archive_cmds="$tmp_archive_cmds"
7098 supports_anon_versioning=no
7099 case `$LD -v 2>/dev/null` in
7100 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7103 *\ 2.11.*) ;; # other 2.11 versions
7104 *) supports_anon_versioning=yes ;;
7105 esac
7106 if test $supports_anon_versioning = yes; then
7107 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7109 $echo "local: *; };" >> $output_objdir/$libname.ver~
7110 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7111 else
7112 archive_expsym_cmds="$tmp_archive_cmds"
7114 else
7115 ld_shlibs=no
7120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7123 else
7124 ld_shlibs=no
7127 esac
7129 if test "$ld_shlibs" = yes; then
7130 runpath_var=LD_RUN_PATH
7131 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7132 export_dynamic_flag_spec='${wl}--export-dynamic'
7133 # ancient GNU ld didn't support --whole-archive et. al.
7134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7135 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7136 else
7137 whole_archive_flag_spec=
7140 else
7141 # PORTME fill in a description of your system's linker (not GNU ld)
7142 case $host_os in
7143 aix3*)
7144 allow_undefined_flag=unsupported
7145 always_export_symbols=yes
7146 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7147 # Note: this linker hardcodes the directories in LIBPATH if there
7148 # are no directories specified by -L.
7149 hardcode_minus_L=yes
7150 if test "$GCC" = yes && test -z "$link_static_flag"; then
7151 # Neither direct hardcoding nor static linking is supported with a
7152 # broken collect2.
7153 hardcode_direct=unsupported
7157 aix4* | aix5*)
7158 if test "$host_cpu" = ia64; then
7159 # On IA64, the linker does run time linking by default, so we don't
7160 # have to do anything special.
7161 aix_use_runtimelinking=no
7162 exp_sym_flag='-Bexport'
7163 no_entry_flag=""
7164 else
7165 # If we're using GNU nm, then we don't want the "-C" option.
7166 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7167 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7168 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7169 else
7170 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7172 aix_use_runtimelinking=no
7174 # Test if we are trying to use run time linking or normal
7175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7176 # need to do runtime linking.
7177 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7178 for ld_flag in $LDFLAGS; do
7179 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7180 aix_use_runtimelinking=yes
7181 break
7183 done
7184 esac
7186 exp_sym_flag='-bexport'
7187 no_entry_flag='-bnoentry'
7190 # When large executables or shared objects are built, AIX ld can
7191 # have problems creating the table of contents. If linking a library
7192 # or program results in "error TOC overflow" add -mminimal-toc to
7193 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7194 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7196 archive_cmds=''
7197 hardcode_direct=yes
7198 hardcode_libdir_separator=':'
7199 link_all_deplibs=yes
7201 if test "$GCC" = yes; then
7202 case $host_os in aix4.012|aix4.012.*)
7203 # We only want to do this on AIX 4.2 and lower, the check
7204 # below for broken collect2 doesn't work under 4.3+
7205 collect2name=`${CC} -print-prog-name=collect2`
7206 if test -f "$collect2name" && \
7207 strings "$collect2name" | grep resolve_lib_name >/dev/null
7208 then
7209 # We have reworked collect2
7210 hardcode_direct=yes
7211 else
7212 # We have old collect2
7213 hardcode_direct=unsupported
7214 # It fails to find uninstalled libraries when the uninstalled
7215 # path is not listed in the libpath. Setting hardcode_minus_L
7216 # to unsupported forces relinking
7217 hardcode_minus_L=yes
7218 hardcode_libdir_flag_spec='-L$libdir'
7219 hardcode_libdir_separator=
7221 esac
7222 shared_flag='-shared'
7223 else
7224 # not using gcc
7225 if test "$host_cpu" = ia64; then
7226 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7227 # chokes on -Wl,-G. The following line is correct:
7228 shared_flag='-G'
7229 else
7230 if test "$aix_use_runtimelinking" = yes; then
7231 shared_flag='${wl}-G'
7232 else
7233 shared_flag='${wl}-bM:SRE'
7238 # It seems that -bexpall does not export symbols beginning with
7239 # underscore (_), so it is better to generate a list of symbols to export.
7240 always_export_symbols=yes
7241 if test "$aix_use_runtimelinking" = yes; then
7242 # Warning - without using the other runtime loading flags (-brtl),
7243 # -berok will link without error, but may produce a broken library.
7244 allow_undefined_flag='-berok'
7245 # Determine the default libpath from the value encoded in an empty executable.
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7254 main ()
7258 return 0;
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (ac_try="$ac_link"
7263 case "(($ac_try" in
7264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7266 esac
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_link") 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest$ac_exeext &&
7278 $as_test_x conftest$ac_exeext; then
7280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7282 # Check for a 64-bit object if we didn't find anything.
7283 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7284 }'`; fi
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293 conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7298 else
7299 if test "$host_cpu" = ia64; then
7300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7301 allow_undefined_flag="-z nodefs"
7302 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7303 else
7304 # Determine the default libpath from the value encoded in an empty executable.
7305 cat >conftest.$ac_ext <<_ACEOF
7306 /* confdefs.h. */
7307 _ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7313 main ()
7317 return 0;
7319 _ACEOF
7320 rm -f conftest.$ac_objext conftest$ac_exeext
7321 if { (ac_try="$ac_link"
7322 case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325 esac
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_link") 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest$ac_exeext &&
7337 $as_test_x conftest$ac_exeext; then
7339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7341 # Check for a 64-bit object if we didn't find anything.
7342 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7343 }'`; fi
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7352 conftest$ac_exeext conftest.$ac_ext
7353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7355 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7356 # Warning - without using the other run time loading flags,
7357 # -berok will link without error, but may produce a broken library.
7358 no_undefined_flag=' ${wl}-bernotok'
7359 allow_undefined_flag=' ${wl}-berok'
7360 # -bexpall does not export symbols beginning with underscore (_)
7361 always_export_symbols=yes
7362 # Exported symbols can be pulled into shared objects from archives
7363 whole_archive_flag_spec=' '
7364 archive_cmds_need_lc=yes
7365 # This is similar to how AIX traditionally builds it's shared libraries.
7366 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7371 amigaos*)
7372 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7373 hardcode_libdir_flag_spec='-L$libdir'
7374 hardcode_minus_L=yes
7375 # see comment about different semantics on the GNU ld section
7376 ld_shlibs=no
7379 bsdi4*)
7380 export_dynamic_flag_spec=-rdynamic
7383 cygwin* | mingw* | pw32*)
7384 # When not using gcc, we currently assume that we are using
7385 # Microsoft Visual C++.
7386 # hardcode_libdir_flag_spec is actually meaningless, as there is
7387 # no search path for DLLs.
7388 hardcode_libdir_flag_spec=' '
7389 allow_undefined_flag=unsupported
7390 # Tell ltmain to make .lib files, not .a files.
7391 libext=lib
7392 # Tell ltmain to make .dll files, not .so files.
7393 shrext=".dll"
7394 # FIXME: Setting linknames here is a bad hack.
7395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7396 # The linker will automatically build a .lib file if we build a DLL.
7397 old_archive_From_new_cmds='true'
7398 # FIXME: Should let the user specify the lib program.
7399 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7400 fix_srcfile_path='`cygpath -w "$srcfile"`'
7401 enable_shared_with_static_runtimes=yes
7404 darwin* | rhapsody*)
7405 if test "$GXX" = yes ; then
7406 archive_cmds_need_lc=no
7407 case "$host_os" in
7408 rhapsody* | darwin1.[012])
7409 allow_undefined_flag='-undefined suppress'
7411 *) # Darwin 1.3 on
7412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7413 allow_undefined_flag='-flat_namespace -undefined suppress'
7414 else
7415 case ${MACOSX_DEPLOYMENT_TARGET} in
7416 10.[012])
7417 allow_undefined_flag='-flat_namespace -undefined suppress'
7419 10.*)
7420 allow_undefined_flag='-undefined dynamic_lookup'
7422 esac
7425 esac
7426 lt_int_apple_cc_single_mod=no
7427 output_verbose_link_cmd='echo'
7428 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7429 lt_int_apple_cc_single_mod=yes
7431 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7432 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7433 else
7434 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7436 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7437 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7438 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7439 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7440 else
7441 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7443 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7444 hardcode_direct=no
7445 hardcode_automatic=yes
7446 hardcode_shlibpath_var=unsupported
7447 whole_archive_flag_spec='-all_load $convenience'
7448 link_all_deplibs=yes
7449 else
7450 ld_shlibs=no
7454 dgux*)
7455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7456 hardcode_libdir_flag_spec='-L$libdir'
7457 hardcode_shlibpath_var=no
7460 freebsd1*)
7461 ld_shlibs=no
7464 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7465 # support. Future versions do this automatically, but an explicit c++rt0.o
7466 # does not break anything, and helps significantly (at the cost of a little
7467 # extra space).
7468 freebsd2.2*)
7469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7470 hardcode_libdir_flag_spec='-R$libdir'
7471 hardcode_direct=yes
7472 hardcode_shlibpath_var=no
7475 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7476 freebsd2*)
7477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7478 hardcode_direct=yes
7479 hardcode_minus_L=yes
7480 hardcode_shlibpath_var=no
7483 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7484 freebsd* | kfreebsd*-gnu)
7485 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7486 hardcode_libdir_flag_spec='-R$libdir'
7487 hardcode_direct=yes
7488 hardcode_shlibpath_var=no
7491 hpux9*)
7492 if test "$GCC" = yes; then
7493 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7494 else
7495 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7498 hardcode_libdir_separator=:
7499 hardcode_direct=yes
7501 # hardcode_minus_L: Not really in the search PATH,
7502 # but as the default location of the library.
7503 hardcode_minus_L=yes
7504 export_dynamic_flag_spec='${wl}-E'
7507 hpux10* | hpux11*)
7508 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7509 case "$host_cpu" in
7510 hppa*64*|ia64*)
7511 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7514 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7516 esac
7517 else
7518 case "$host_cpu" in
7519 hppa*64*|ia64*)
7520 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7525 esac
7527 if test "$with_gnu_ld" = no; then
7528 case "$host_cpu" in
7529 hppa*64*)
7530 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7531 hardcode_libdir_flag_spec_ld='+b $libdir'
7532 hardcode_libdir_separator=:
7533 hardcode_direct=no
7534 hardcode_shlibpath_var=no
7536 ia64*)
7537 hardcode_libdir_flag_spec='-L$libdir'
7538 hardcode_direct=no
7539 hardcode_shlibpath_var=no
7541 # hardcode_minus_L: Not really in the search PATH,
7542 # but as the default location of the library.
7543 hardcode_minus_L=yes
7546 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7547 hardcode_libdir_separator=:
7548 hardcode_direct=yes
7549 export_dynamic_flag_spec='${wl}-E'
7551 # hardcode_minus_L: Not really in the search PATH,
7552 # but as the default location of the library.
7553 hardcode_minus_L=yes
7555 esac
7559 irix5* | irix6* | nonstopux*)
7560 if test "$GCC" = yes; then
7561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7562 else
7563 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7564 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7567 hardcode_libdir_separator=:
7568 link_all_deplibs=yes
7571 netbsd*)
7572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7574 else
7575 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7577 hardcode_libdir_flag_spec='-R$libdir'
7578 hardcode_direct=yes
7579 hardcode_shlibpath_var=no
7582 newsos6)
7583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 hardcode_direct=yes
7585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7586 hardcode_libdir_separator=:
7587 hardcode_shlibpath_var=no
7590 openbsd*)
7591 hardcode_direct=yes
7592 hardcode_shlibpath_var=no
7593 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7595 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7596 export_dynamic_flag_spec='${wl}-E'
7597 else
7598 case $host_os in
7599 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7600 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_libdir_flag_spec='-R$libdir'
7604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7607 esac
7611 os2*)
7612 hardcode_libdir_flag_spec='-L$libdir'
7613 hardcode_minus_L=yes
7614 allow_undefined_flag=unsupported
7615 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7616 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7619 osf3*)
7620 if test "$GCC" = yes; then
7621 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7622 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7623 else
7624 allow_undefined_flag=' -expect_unresolved \*'
7625 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7628 hardcode_libdir_separator=:
7631 osf4* | osf5*) # as osf3* with the addition of -msym flag
7632 if test "$GCC" = yes; then
7633 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7634 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7636 else
7637 allow_undefined_flag=' -expect_unresolved \*'
7638 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7639 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7640 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7642 # Both c and cxx compiler support -rpath directly
7643 hardcode_libdir_flag_spec='-rpath $libdir'
7645 hardcode_libdir_separator=:
7648 sco3.2v5*)
7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 hardcode_shlibpath_var=no
7651 export_dynamic_flag_spec='${wl}-Bexport'
7652 runpath_var=LD_RUN_PATH
7653 hardcode_runpath_var=yes
7656 solaris*)
7657 no_undefined_flag=' -z text'
7658 if test "$GCC" = yes; then
7659 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7662 else
7663 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7664 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7665 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7667 hardcode_libdir_flag_spec='-R$libdir'
7668 hardcode_shlibpath_var=no
7669 case $host_os in
7670 solaris2.[0-5] | solaris2.[0-5].*) ;;
7671 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7673 esac
7674 link_all_deplibs=yes
7677 sunos4*)
7678 if test "x$host_vendor" = xsequent; then
7679 # Use $CC to link under sequent, because it throws in some extra .o
7680 # files that make .init and .fini sections work.
7681 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7682 else
7683 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7685 hardcode_libdir_flag_spec='-L$libdir'
7686 hardcode_direct=yes
7687 hardcode_minus_L=yes
7688 hardcode_shlibpath_var=no
7691 sysv4)
7692 case $host_vendor in
7693 sni)
7694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7695 hardcode_direct=yes # is this really true???
7697 siemens)
7698 ## LD is ld it makes a PLAMLIB
7699 ## CC just makes a GrossModule.
7700 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7701 reload_cmds='$CC -r -o $output$reload_objs'
7702 hardcode_direct=no
7704 motorola)
7705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7706 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7708 esac
7709 runpath_var='LD_RUN_PATH'
7710 hardcode_shlibpath_var=no
7713 sysv4.3*)
7714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7715 hardcode_shlibpath_var=no
7716 export_dynamic_flag_spec='-Bexport'
7719 sysv4*MP*)
7720 if test -d /usr/nec; then
7721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722 hardcode_shlibpath_var=no
7723 runpath_var=LD_RUN_PATH
7724 hardcode_runpath_var=yes
7725 ld_shlibs=yes
7729 sysv4.2uw2*)
7730 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7731 hardcode_direct=yes
7732 hardcode_minus_L=no
7733 hardcode_shlibpath_var=no
7734 hardcode_runpath_var=yes
7735 runpath_var=LD_RUN_PATH
7738 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7739 no_undefined_flag='${wl}-z ${wl}text'
7740 if test "$GCC" = yes; then
7741 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7742 else
7743 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7745 runpath_var='LD_RUN_PATH'
7746 hardcode_shlibpath_var=no
7749 sysv5*)
7750 no_undefined_flag=' -z text'
7751 # $CC -shared without GNU ld will not create a library from C++
7752 # object files and a static libstdc++, better avoid it by now
7753 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7754 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7756 hardcode_libdir_flag_spec=
7757 hardcode_shlibpath_var=no
7758 runpath_var='LD_RUN_PATH'
7761 uts4*)
7762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7763 hardcode_libdir_flag_spec='-L$libdir'
7764 hardcode_shlibpath_var=no
7768 ld_shlibs=no
7770 esac
7773 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7774 echo "${ECHO_T}$ld_shlibs" >&6; }
7775 test "$ld_shlibs" = no && can_build_shared=no
7777 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7778 if test "$GCC" = yes; then
7779 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7783 # Do we need to explicitly link libc?
7785 case "x$archive_cmds_need_lc" in
7786 x|xyes)
7787 # Assume -lc should be added
7788 archive_cmds_need_lc=yes
7790 if test "$enable_shared" = yes && test "$GCC" = yes; then
7791 case $archive_cmds in
7792 *'~'*)
7793 # FIXME: we may have to deal with multi-command sequences.
7795 '$CC '*)
7796 # Test whether the compiler implicitly links with -lc since on some
7797 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7798 # to ld, don't add -lc before -lgcc.
7799 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7800 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
7801 $rm conftest*
7802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7805 (eval $ac_compile) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } 2>conftest.err; then
7809 soname=conftest
7810 lib=conftest
7811 libobjs=conftest.$ac_objext
7812 deplibs=
7813 wl=$lt_prog_compiler_wl
7814 compiler_flags=-v
7815 linker_flags=-v
7816 verstring=
7817 output_objdir=.
7818 libname=conftest
7819 lt_save_allow_undefined_flag=$allow_undefined_flag
7820 allow_undefined_flag=
7821 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7822 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }
7826 then
7827 archive_cmds_need_lc=no
7828 else
7829 archive_cmds_need_lc=yes
7831 allow_undefined_flag=$lt_save_allow_undefined_flag
7832 else
7833 cat conftest.err 1>&5
7835 $rm conftest*
7836 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7837 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
7839 esac
7842 esac
7844 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
7846 library_names_spec=
7847 libname_spec='lib$name'
7848 soname_spec=
7849 shrext=".so"
7850 postinstall_cmds=
7851 postuninstall_cmds=
7852 finish_cmds=
7853 finish_eval=
7854 shlibpath_var=
7855 shlibpath_overrides_runpath=unknown
7856 version_type=none
7857 dynamic_linker="$host_os ld.so"
7858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7859 if test "$GCC" = yes; then
7860 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7861 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7862 # if the path contains ";" then we assume it to be the separator
7863 # otherwise default to the standard path separator (i.e. ":") - it is
7864 # assumed that no part of a normal pathname contains ";" but that should
7865 # okay in the real world where ";" in dirpaths is itself problematic.
7866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7867 else
7868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7870 else
7871 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7873 need_lib_prefix=unknown
7874 hardcode_into_libs=no
7876 # when you set need_version to no, make sure it does not cause -set_version
7877 # flags to be left without arguments
7878 need_version=unknown
7880 case $host_os in
7881 aix3*)
7882 version_type=linux
7883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7884 shlibpath_var=LIBPATH
7886 # AIX 3 has no versioning support, so we append a major version to the name.
7887 soname_spec='${libname}${release}${shared_ext}$major'
7890 aix4* | aix5*)
7891 version_type=linux
7892 need_lib_prefix=no
7893 need_version=no
7894 hardcode_into_libs=yes
7895 if test "$host_cpu" = ia64; then
7896 # AIX 5 supports IA64
7897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7898 shlibpath_var=LD_LIBRARY_PATH
7899 else
7900 # With GCC up to 2.95.x, collect2 would create an import file
7901 # for dependence libraries. The import file would start with
7902 # the line `#! .'. This would cause the generated library to
7903 # depend on `.', always an invalid library. This was fixed in
7904 # development snapshots of GCC prior to 3.0.
7905 case $host_os in
7906 aix4 | aix4.[01] | aix4.[01].*)
7907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7908 echo ' yes '
7909 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7911 else
7912 can_build_shared=no
7915 esac
7916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7917 # soname into executable. Probably we can add versioning support to
7918 # collect2, so additional links can be useful in future.
7919 if test "$aix_use_runtimelinking" = yes; then
7920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7921 # instead of lib<name>.a to let people know that these are not
7922 # typical AIX shared libraries.
7923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924 else
7925 # We preserve .a as extension for shared libraries through AIX4.2
7926 # and later when we are not doing run time linking.
7927 library_names_spec='${libname}${release}.a $libname.a'
7928 soname_spec='${libname}${release}${shared_ext}$major'
7930 shlibpath_var=LIBPATH
7934 amigaos*)
7935 library_names_spec='$libname.ixlibrary $libname.a'
7936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7937 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
7940 beos*)
7941 library_names_spec='${libname}${shared_ext}'
7942 dynamic_linker="$host_os ld.so"
7943 shlibpath_var=LIBRARY_PATH
7946 bsdi4*)
7947 version_type=linux
7948 need_version=no
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7952 shlibpath_var=LD_LIBRARY_PATH
7953 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7954 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7955 # the default ld.so.conf also contains /usr/contrib/lib and
7956 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7957 # libtool to hard-code these into programs
7960 cygwin* | mingw* | pw32*)
7961 version_type=windows
7962 shrext=".dll"
7963 need_version=no
7964 need_lib_prefix=no
7966 case $GCC,$host_os in
7967 yes,cygwin* | yes,mingw* | yes,pw32*)
7968 library_names_spec='$libname.dll.a'
7969 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7970 postinstall_cmds='base_file=`basename \${file}`~
7971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7972 dldir=$destdir/`dirname \$dlpath`~
7973 test -d \$dldir || mkdir -p \$dldir~
7974 $install_prog $dir/$dlname \$dldir/$dlname'
7975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7976 dlpath=$dir/\$dldll~
7977 $rm \$dlpath'
7978 shlibpath_overrides_runpath=yes
7980 case $host_os in
7981 cygwin*)
7982 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7983 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7984 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7986 mingw*)
7987 # MinGW DLLs use traditional 'lib' prefix
7988 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7990 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7991 # It is most probably a Windows format PATH printed by
7992 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7993 # path with ; separators, and with drive letters. We can handle the
7994 # drive letters (cygwin fileutils understands them), so leave them,
7995 # especially as we might pass files found there to a mingw objdump,
7996 # which wouldn't understand a cygwinified path. Ahh.
7997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7998 else
7999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8002 pw32*)
8003 # pw32 DLLs use 'pw' prefix rather than 'lib'
8004 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8006 esac
8010 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8012 esac
8013 dynamic_linker='Win32 ld.exe'
8014 # FIXME: first we should search . and the directory the executable is in
8015 shlibpath_var=PATH
8018 darwin* | rhapsody*)
8019 dynamic_linker="$host_os dyld"
8020 version_type=darwin
8021 need_lib_prefix=no
8022 need_version=no
8023 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8024 soname_spec='${libname}${release}${major}$shared_ext'
8025 shlibpath_overrides_runpath=yes
8026 shlibpath_var=DYLD_LIBRARY_PATH
8027 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8028 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8029 if test "$GCC" = yes; then
8030 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8031 else
8032 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8037 dgux*)
8038 version_type=linux
8039 need_lib_prefix=no
8040 need_version=no
8041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8042 soname_spec='${libname}${release}${shared_ext}$major'
8043 shlibpath_var=LD_LIBRARY_PATH
8046 freebsd1*)
8047 dynamic_linker=no
8050 kfreebsd*-gnu)
8051 version_type=linux
8052 need_lib_prefix=no
8053 need_version=no
8054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8055 soname_spec='${libname}${release}${shared_ext}$major'
8056 shlibpath_var=LD_LIBRARY_PATH
8057 shlibpath_overrides_runpath=no
8058 hardcode_into_libs=yes
8059 dynamic_linker='GNU ld.so'
8062 freebsd*)
8063 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8064 version_type=freebsd-$objformat
8065 case $version_type in
8066 freebsd-elf*)
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8068 need_version=no
8069 need_lib_prefix=no
8071 freebsd-*)
8072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8073 need_version=yes
8075 esac
8076 shlibpath_var=LD_LIBRARY_PATH
8077 case $host_os in
8078 freebsd2*)
8079 shlibpath_overrides_runpath=yes
8081 freebsd3.01* | freebsdelf3.01*)
8082 shlibpath_overrides_runpath=yes
8083 hardcode_into_libs=yes
8085 *) # from 3.2 on
8086 shlibpath_overrides_runpath=no
8087 hardcode_into_libs=yes
8089 esac
8092 gnu*)
8093 version_type=linux
8094 need_lib_prefix=no
8095 need_version=no
8096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8097 soname_spec='${libname}${release}${shared_ext}$major'
8098 shlibpath_var=LD_LIBRARY_PATH
8099 hardcode_into_libs=yes
8102 hpux9* | hpux10* | hpux11*)
8103 # Give a soname corresponding to the major version so that dld.sl refuses to
8104 # link against other versions.
8105 version_type=sunos
8106 need_lib_prefix=no
8107 need_version=no
8108 case "$host_cpu" in
8109 ia64*)
8110 shrext='.so'
8111 hardcode_into_libs=yes
8112 dynamic_linker="$host_os dld.so"
8113 shlibpath_var=LD_LIBRARY_PATH
8114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8117 if test "X$HPUX_IA64_MODE" = X32; then
8118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8119 else
8120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8124 hppa*64*)
8125 shrext='.sl'
8126 hardcode_into_libs=yes
8127 dynamic_linker="$host_os dld.sl"
8128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131 soname_spec='${libname}${release}${shared_ext}$major'
8132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8136 shrext='.sl'
8137 dynamic_linker="$host_os dld.sl"
8138 shlibpath_var=SHLIB_PATH
8139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8143 esac
8144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8145 postinstall_cmds='chmod 555 $lib'
8148 irix5* | irix6* | nonstopux*)
8149 case $host_os in
8150 nonstopux*) version_type=nonstopux ;;
8152 if test "$lt_cv_prog_gnu_ld" = yes; then
8153 version_type=linux
8154 else
8155 version_type=irix
8156 fi ;;
8157 esac
8158 need_lib_prefix=no
8159 need_version=no
8160 soname_spec='${libname}${release}${shared_ext}$major'
8161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8162 case $host_os in
8163 irix5* | nonstopux*)
8164 libsuff= shlibsuff=
8167 case $LD in # libtool.m4 will add one of these switches to LD
8168 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8169 libsuff= shlibsuff= libmagic=32-bit;;
8170 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8171 libsuff=32 shlibsuff=N32 libmagic=N32;;
8172 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8173 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8174 *) libsuff= shlibsuff= libmagic=never-match;;
8175 esac
8177 esac
8178 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8179 shlibpath_overrides_runpath=no
8180 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8181 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8182 hardcode_into_libs=yes
8185 # No shared lib support for Linux oldld, aout, or coff.
8186 linux*oldld* | linux*aout* | linux*coff*)
8187 dynamic_linker=no
8190 # This must be Linux ELF.
8191 linux*)
8192 version_type=linux
8193 need_lib_prefix=no
8194 need_version=no
8195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196 soname_spec='${libname}${release}${shared_ext}$major'
8197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8198 shlibpath_var=LD_LIBRARY_PATH
8199 shlibpath_overrides_runpath=no
8200 # This implies no fast_install, which is unacceptable.
8201 # Some rework will be needed to allow for fast_install
8202 # before this can be enabled.
8203 hardcode_into_libs=yes
8205 # We used to test for /lib/ld.so.1 and disable shared libraries on
8206 # powerpc, because MkLinux only supported shared libraries with the
8207 # GNU dynamic linker. Since this was broken with cross compilers,
8208 # most powerpc-linux boxes support dynamic linking these days and
8209 # people can always --disable-shared, the test was removed, and we
8210 # assume the GNU/Linux dynamic linker is in use.
8211 dynamic_linker='GNU/Linux ld.so'
8214 netbsd*)
8215 version_type=sunos
8216 need_lib_prefix=no
8217 need_version=no
8218 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8221 dynamic_linker='NetBSD (a.out) ld.so'
8222 else
8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8224 soname_spec='${libname}${release}${shared_ext}$major'
8225 dynamic_linker='NetBSD ld.elf_so'
8227 shlibpath_var=LD_LIBRARY_PATH
8228 shlibpath_overrides_runpath=yes
8229 hardcode_into_libs=yes
8232 newsos6)
8233 version_type=linux
8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 shlibpath_overrides_runpath=yes
8239 nto-qnx*)
8240 version_type=linux
8241 need_lib_prefix=no
8242 need_version=no
8243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8244 soname_spec='${libname}${release}${shared_ext}$major'
8245 shlibpath_var=LD_LIBRARY_PATH
8246 shlibpath_overrides_runpath=yes
8249 openbsd*)
8250 version_type=sunos
8251 need_lib_prefix=no
8252 need_version=no
8253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8255 shlibpath_var=LD_LIBRARY_PATH
8256 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8257 case $host_os in
8258 openbsd2.[89] | openbsd2.[89].*)
8259 shlibpath_overrides_runpath=no
8262 shlibpath_overrides_runpath=yes
8264 esac
8265 else
8266 shlibpath_overrides_runpath=yes
8270 os2*)
8271 libname_spec='$name'
8272 shrext=".dll"
8273 need_lib_prefix=no
8274 library_names_spec='$libname${shared_ext} $libname.a'
8275 dynamic_linker='OS/2 ld.exe'
8276 shlibpath_var=LIBPATH
8279 osf3* | osf4* | osf5*)
8280 version_type=osf
8281 need_lib_prefix=no
8282 need_version=no
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285 shlibpath_var=LD_LIBRARY_PATH
8286 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8287 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8290 sco3.2v5*)
8291 version_type=osf
8292 soname_spec='${libname}${release}${shared_ext}$major'
8293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8294 shlibpath_var=LD_LIBRARY_PATH
8297 solaris*)
8298 version_type=linux
8299 need_lib_prefix=no
8300 need_version=no
8301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8302 soname_spec='${libname}${release}${shared_ext}$major'
8303 shlibpath_var=LD_LIBRARY_PATH
8304 shlibpath_overrides_runpath=yes
8305 hardcode_into_libs=yes
8306 # ldd complains unless libraries are executable
8307 postinstall_cmds='chmod +x $lib'
8310 sunos4*)
8311 version_type=sunos
8312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8313 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8314 shlibpath_var=LD_LIBRARY_PATH
8315 shlibpath_overrides_runpath=yes
8316 if test "$with_gnu_ld" = yes; then
8317 need_lib_prefix=no
8319 need_version=yes
8322 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8323 version_type=linux
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 soname_spec='${libname}${release}${shared_ext}$major'
8326 shlibpath_var=LD_LIBRARY_PATH
8327 case $host_vendor in
8328 sni)
8329 shlibpath_overrides_runpath=no
8330 need_lib_prefix=no
8331 export_dynamic_flag_spec='${wl}-Blargedynsym'
8332 runpath_var=LD_RUN_PATH
8334 siemens)
8335 need_lib_prefix=no
8337 motorola)
8338 need_lib_prefix=no
8339 need_version=no
8340 shlibpath_overrides_runpath=no
8341 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8343 esac
8346 sysv4*MP*)
8347 if test -d /usr/nec ;then
8348 version_type=linux
8349 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8350 soname_spec='$libname${shared_ext}.$major'
8351 shlibpath_var=LD_LIBRARY_PATH
8355 uts4*)
8356 version_type=linux
8357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8358 soname_spec='${libname}${release}${shared_ext}$major'
8359 shlibpath_var=LD_LIBRARY_PATH
8363 dynamic_linker=no
8365 esac
8366 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8367 echo "${ECHO_T}$dynamic_linker" >&6; }
8368 test "$dynamic_linker" = no && can_build_shared=no
8370 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8371 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8372 hardcode_action=
8373 if test -n "$hardcode_libdir_flag_spec" || \
8374 test -n "$runpath_var " || \
8375 test "X$hardcode_automatic"="Xyes" ; then
8377 # We can hardcode non-existant directories.
8378 if test "$hardcode_direct" != no &&
8379 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8380 # have to relink, otherwise we might link with an installed library
8381 # when we should be linking with a yet-to-be-installed one
8382 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8383 test "$hardcode_minus_L" != no; then
8384 # Linking always hardcodes the temporary library directory.
8385 hardcode_action=relink
8386 else
8387 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8388 hardcode_action=immediate
8390 else
8391 # We cannot hardcode anything, or else we can only hardcode existing
8392 # directories.
8393 hardcode_action=unsupported
8395 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8396 echo "${ECHO_T}$hardcode_action" >&6; }
8398 if test "$hardcode_action" = relink; then
8399 # Fast installation is not supported
8400 enable_fast_install=no
8401 elif test "$shlibpath_overrides_runpath" = yes ||
8402 test "$enable_shared" = no; then
8403 # Fast installation is not necessary
8404 enable_fast_install=needless
8407 striplib=
8408 old_striplib=
8409 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8410 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8411 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8412 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8413 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8414 { echo "$as_me:$LINENO: result: yes" >&5
8415 echo "${ECHO_T}yes" >&6; }
8416 else
8417 # FIXME - insert some real tests, host_os isn't really good enough
8418 case $host_os in
8419 darwin*)
8420 if test -n "$STRIP" ; then
8421 striplib="$STRIP -x"
8422 { echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6; }
8424 else
8425 { echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6; }
8430 { echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6; }
8433 esac
8436 if test "x$enable_dlopen" != xyes; then
8437 enable_dlopen=unknown
8438 enable_dlopen_self=unknown
8439 enable_dlopen_self_static=unknown
8440 else
8441 lt_cv_dlopen=no
8442 lt_cv_dlopen_libs=
8444 case $host_os in
8445 beos*)
8446 lt_cv_dlopen="load_add_on"
8447 lt_cv_dlopen_libs=
8448 lt_cv_dlopen_self=yes
8451 mingw* | pw32*)
8452 lt_cv_dlopen="LoadLibrary"
8453 lt_cv_dlopen_libs=
8456 cygwin*)
8457 lt_cv_dlopen="dlopen"
8458 lt_cv_dlopen_libs=
8461 darwin*)
8462 # if libdl is installed we need to link against it
8463 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 else
8468 ac_check_lib_save_LIBS=$LIBS
8469 LIBS="-ldl $LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8477 /* Override any GCC internal prototype to avoid an error.
8478 Use char because int might match the return type of a GCC
8479 builtin and then its argument prototype would still apply. */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 char dlopen ();
8485 main ()
8487 return dlopen ();
8489 return 0;
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8494 case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497 esac
8498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } && {
8506 test -z "$ac_c_werror_flag" ||
8507 test ! -s conftest.err
8508 } && test -s conftest$ac_exeext &&
8509 $as_test_x conftest$ac_exeext; then
8510 ac_cv_lib_dl_dlopen=yes
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_cv_lib_dl_dlopen=no
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519 conftest$ac_exeext conftest.$ac_ext
8520 LIBS=$ac_check_lib_save_LIBS
8522 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8524 if test $ac_cv_lib_dl_dlopen = yes; then
8525 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8526 else
8528 lt_cv_dlopen="dyld"
8529 lt_cv_dlopen_libs=
8530 lt_cv_dlopen_self=yes
8537 { echo "$as_me:$LINENO: checking for shl_load" >&5
8538 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8539 if test "${ac_cv_func_shl_load+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8550 #define shl_load innocuous_shl_load
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char shl_load (); below.
8554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8555 <limits.h> exists even on freestanding compilers. */
8557 #ifdef __STDC__
8558 # include <limits.h>
8559 #else
8560 # include <assert.h>
8561 #endif
8563 #undef shl_load
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8568 #ifdef __cplusplus
8569 extern "C"
8570 #endif
8571 char shl_load ();
8572 /* The GNU C library defines this for functions which it implements
8573 to always fail with ENOSYS. Some functions are actually named
8574 something starting with __ and the normal name is an alias. */
8575 #if defined __stub_shl_load || defined __stub___shl_load
8576 choke me
8577 #endif
8580 main ()
8582 return shl_load ();
8584 return 0;
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591 *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594 (eval "$ac_link") 2>conftest.er1
8595 ac_status=$?
8596 grep -v '^ *+' conftest.er1 >conftest.err
8597 rm -f conftest.er1
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest$ac_exeext &&
8604 $as_test_x conftest$ac_exeext; then
8605 ac_cv_func_shl_load=yes
8606 else
8607 echo "$as_me: failed program was:" >&5
8608 sed 's/^/| /' conftest.$ac_ext >&5
8610 ac_cv_func_shl_load=no
8613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8614 conftest$ac_exeext conftest.$ac_ext
8616 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8617 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8618 if test $ac_cv_func_shl_load = yes; then
8619 lt_cv_dlopen="shl_load"
8620 else
8621 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8622 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8623 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-ldld $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h. */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 char shl_load ();
8643 main ()
8645 return shl_load ();
8647 return 0;
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_link") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest$ac_exeext &&
8667 $as_test_x conftest$ac_exeext; then
8668 ac_cv_lib_dld_shl_load=yes
8669 else
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_lib_dld_shl_load=no
8676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8677 conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8681 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
8682 if test $ac_cv_lib_dld_shl_load = yes; then
8683 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8684 else
8685 { echo "$as_me:$LINENO: checking for dlopen" >&5
8686 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
8687 if test "${ac_cv_func_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 cat >conftest.$ac_ext <<_ACEOF
8691 /* confdefs.h. */
8692 _ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698 #define dlopen innocuous_dlopen
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char dlopen (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
8705 #ifdef __STDC__
8706 # include <limits.h>
8707 #else
8708 # include <assert.h>
8709 #endif
8711 #undef dlopen
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8716 #ifdef __cplusplus
8717 extern "C"
8718 #endif
8719 char dlopen ();
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined __stub_dlopen || defined __stub___dlopen
8724 choke me
8725 #endif
8728 main ()
8730 return dlopen ();
8732 return 0;
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8737 case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740 esac
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest$ac_exeext &&
8752 $as_test_x conftest$ac_exeext; then
8753 ac_cv_func_dlopen=yes
8754 else
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_cv_func_dlopen=no
8761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8762 conftest$ac_exeext conftest.$ac_ext
8764 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8765 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
8766 if test $ac_cv_func_dlopen = yes; then
8767 lt_cv_dlopen="dlopen"
8768 else
8769 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8770 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8771 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 ac_check_lib_save_LIBS=$LIBS
8775 LIBS="-ldl $LIBS"
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8783 /* Override any GCC internal prototype to avoid an error.
8784 Use char because int might match the return type of a GCC
8785 builtin and then its argument prototype would still apply. */
8786 #ifdef __cplusplus
8787 extern "C"
8788 #endif
8789 char dlopen ();
8791 main ()
8793 return dlopen ();
8795 return 0;
8797 _ACEOF
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (ac_try="$ac_link"
8800 case "(($ac_try" in
8801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_link") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext &&
8815 $as_test_x conftest$ac_exeext; then
8816 ac_cv_lib_dl_dlopen=yes
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_lib_dl_dlopen=no
8824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8830 if test $ac_cv_lib_dl_dlopen = yes; then
8831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8832 else
8833 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
8835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8837 else
8838 ac_check_lib_save_LIBS=$LIBS
8839 LIBS="-lsvld $LIBS"
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h. */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 /* Override any GCC internal prototype to avoid an error.
8848 Use char because int might match the return type of a GCC
8849 builtin and then its argument prototype would still apply. */
8850 #ifdef __cplusplus
8851 extern "C"
8852 #endif
8853 char dlopen ();
8855 main ()
8857 return dlopen ();
8859 return 0;
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (ac_try="$ac_link"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_link") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest$ac_exeext &&
8879 $as_test_x conftest$ac_exeext; then
8880 ac_cv_lib_svld_dlopen=yes
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_cv_lib_svld_dlopen=no
8888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8892 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8893 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
8894 if test $ac_cv_lib_svld_dlopen = yes; then
8895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8896 else
8897 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8898 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
8899 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902 ac_check_lib_save_LIBS=$LIBS
8903 LIBS="-ldld $LIBS"
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h. */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 char dld_link ();
8919 main ()
8921 return dld_link ();
8923 return 0;
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (ac_try="$ac_link"
8928 case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931 esac
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest$ac_exeext &&
8943 $as_test_x conftest$ac_exeext; then
8944 ac_cv_lib_dld_dld_link=yes
8945 else
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8949 ac_cv_lib_dld_dld_link=no
8952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8953 conftest$ac_exeext conftest.$ac_ext
8954 LIBS=$ac_check_lib_save_LIBS
8956 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8957 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
8958 if test $ac_cv_lib_dld_dld_link = yes; then
8959 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8978 esac
8980 if test "x$lt_cv_dlopen" != xno; then
8981 enable_dlopen=yes
8982 else
8983 enable_dlopen=no
8986 case $lt_cv_dlopen in
8987 dlopen)
8988 save_CPPFLAGS="$CPPFLAGS"
8989 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8991 save_LDFLAGS="$LDFLAGS"
8992 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8994 save_LIBS="$LIBS"
8995 LIBS="$lt_cv_dlopen_libs $LIBS"
8997 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8998 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
8999 if test "${lt_cv_dlopen_self+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002 if test "$cross_compiling" = yes; then :
9003 lt_cv_dlopen_self=cross
9004 else
9005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9006 lt_status=$lt_dlunknown
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9008 "configure"
9009 #include "confdefs.h"
9011 #if HAVE_DLFCN_H
9012 #include <dlfcn.h>
9013 #endif
9015 #include <stdio.h>
9017 #ifdef RTLD_GLOBAL
9018 # define LT_DLGLOBAL RTLD_GLOBAL
9019 #else
9020 # ifdef DL_GLOBAL
9021 # define LT_DLGLOBAL DL_GLOBAL
9022 # else
9023 # define LT_DLGLOBAL 0
9024 # endif
9025 #endif
9027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9028 find out it does not work in some platform. */
9029 #ifndef LT_DLLAZY_OR_NOW
9030 # ifdef RTLD_LAZY
9031 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9032 # else
9033 # ifdef DL_LAZY
9034 # define LT_DLLAZY_OR_NOW DL_LAZY
9035 # else
9036 # ifdef RTLD_NOW
9037 # define LT_DLLAZY_OR_NOW RTLD_NOW
9038 # else
9039 # ifdef DL_NOW
9040 # define LT_DLLAZY_OR_NOW DL_NOW
9041 # else
9042 # define LT_DLLAZY_OR_NOW 0
9043 # endif
9044 # endif
9045 # endif
9046 # endif
9047 #endif
9049 #ifdef __cplusplus
9050 extern "C" void exit (int);
9051 #endif
9053 void fnord() { int i=42;}
9054 int main ()
9056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9057 int status = $lt_dlunknown;
9059 if (self)
9061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9063 /* dlclose (self); */
9066 exit (status);
9069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9070 (eval $ac_link) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9074 (./conftest; exit; ) 2>/dev/null
9075 lt_status=$?
9076 case x$lt_status in
9077 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9078 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9079 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9080 esac
9081 else :
9082 # compilation failed
9083 lt_cv_dlopen_self=no
9086 rm -fr conftest*
9090 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9091 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9093 if test "x$lt_cv_dlopen_self" = xyes; then
9094 LDFLAGS="$LDFLAGS $link_static_flag"
9095 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9096 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9097 if test "${lt_cv_dlopen_self_static+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100 if test "$cross_compiling" = yes; then :
9101 lt_cv_dlopen_self_static=cross
9102 else
9103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9104 lt_status=$lt_dlunknown
9105 cat > conftest.$ac_ext <<EOF
9106 #line 9106 "configure"
9107 #include "confdefs.h"
9109 #if HAVE_DLFCN_H
9110 #include <dlfcn.h>
9111 #endif
9113 #include <stdio.h>
9115 #ifdef RTLD_GLOBAL
9116 # define LT_DLGLOBAL RTLD_GLOBAL
9117 #else
9118 # ifdef DL_GLOBAL
9119 # define LT_DLGLOBAL DL_GLOBAL
9120 # else
9121 # define LT_DLGLOBAL 0
9122 # endif
9123 #endif
9125 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9126 find out it does not work in some platform. */
9127 #ifndef LT_DLLAZY_OR_NOW
9128 # ifdef RTLD_LAZY
9129 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9130 # else
9131 # ifdef DL_LAZY
9132 # define LT_DLLAZY_OR_NOW DL_LAZY
9133 # else
9134 # ifdef RTLD_NOW
9135 # define LT_DLLAZY_OR_NOW RTLD_NOW
9136 # else
9137 # ifdef DL_NOW
9138 # define LT_DLLAZY_OR_NOW DL_NOW
9139 # else
9140 # define LT_DLLAZY_OR_NOW 0
9141 # endif
9142 # endif
9143 # endif
9144 # endif
9145 #endif
9147 #ifdef __cplusplus
9148 extern "C" void exit (int);
9149 #endif
9151 void fnord() { int i=42;}
9152 int main ()
9154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9155 int status = $lt_dlunknown;
9157 if (self)
9159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9160 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9161 /* dlclose (self); */
9164 exit (status);
9167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9168 (eval $ac_link) 2>&5
9169 ac_status=$?
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9172 (./conftest; exit; ) 2>/dev/null
9173 lt_status=$?
9174 case x$lt_status in
9175 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9176 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9177 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9178 esac
9179 else :
9180 # compilation failed
9181 lt_cv_dlopen_self_static=no
9184 rm -fr conftest*
9188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9192 CPPFLAGS="$save_CPPFLAGS"
9193 LDFLAGS="$save_LDFLAGS"
9194 LIBS="$save_LIBS"
9196 esac
9198 case $lt_cv_dlopen_self in
9199 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9200 *) enable_dlopen_self=unknown ;;
9201 esac
9203 case $lt_cv_dlopen_self_static in
9204 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9205 *) enable_dlopen_self_static=unknown ;;
9206 esac
9210 # Report which librarie types wil actually be built
9211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9214 echo "${ECHO_T}$can_build_shared" >&6; }
9216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9218 test "$can_build_shared" = "no" && enable_shared=no
9220 # On AIX, shared libraries and static libraries use the same namespace, and
9221 # are all built from PIC.
9222 case "$host_os" in
9223 aix3*)
9224 test "$enable_shared" = yes && enable_static=no
9225 if test -n "$RANLIB"; then
9226 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9227 postinstall_cmds='$RANLIB $lib'
9231 aix4*)
9232 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9233 test "$enable_shared" = yes && enable_static=no
9236 darwin* | rhapsody*)
9237 if test "$GCC" = yes; then
9238 archive_cmds_need_lc=no
9239 case "$host_os" in
9240 rhapsody* | darwin1.[012])
9241 allow_undefined_flag='-undefined suppress'
9243 *) # Darwin 1.3 on
9244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9245 allow_undefined_flag='-flat_namespace -undefined suppress'
9246 else
9247 case ${MACOSX_DEPLOYMENT_TARGET} in
9248 10.[012])
9249 allow_undefined_flag='-flat_namespace -undefined suppress'
9251 10.*)
9252 allow_undefined_flag='-undefined dynamic_lookup'
9254 esac
9257 esac
9258 output_verbose_link_cmd='echo'
9259 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9260 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9261 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9262 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9263 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9264 hardcode_direct=no
9265 hardcode_automatic=yes
9266 hardcode_shlibpath_var=unsupported
9267 whole_archive_flag_spec='-all_load $convenience'
9268 link_all_deplibs=yes
9269 else
9270 ld_shlibs=no
9273 esac
9274 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9275 echo "${ECHO_T}$enable_shared" >&6; }
9277 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9278 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9279 # Make sure either enable_shared or enable_static is yes.
9280 test "$enable_shared" = yes || enable_static=yes
9281 { echo "$as_me:$LINENO: result: $enable_static" >&5
9282 echo "${ECHO_T}$enable_static" >&6; }
9284 # The else clause should only fire when bootstrapping the
9285 # libtool distribution, otherwise you forgot to ship ltmain.sh
9286 # with your package, and you will get complaints that there are
9287 # no rules to generate ltmain.sh.
9288 if test -f "$ltmain"; then
9289 # See if we are running on zsh, and set the options which allow our commands through
9290 # without removal of \ escapes.
9291 if test -n "${ZSH_VERSION+set}" ; then
9292 setopt NO_GLOB_SUBST
9294 # Now quote all the things that may contain metacharacters while being
9295 # careful not to overquote the AC_SUBSTed values. We take copies of the
9296 # variables and quote the copies for generation of the libtool script.
9297 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9300 deplibs_check_method reload_flag reload_cmds need_locks \
9301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9302 lt_cv_sys_global_symbol_to_c_name_address \
9303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9304 old_postinstall_cmds old_postuninstall_cmds \
9305 compiler \
9306 CC \
9307 LD \
9308 lt_prog_compiler_wl \
9309 lt_prog_compiler_pic \
9310 lt_prog_compiler_static \
9311 lt_prog_compiler_no_builtin_flag \
9312 export_dynamic_flag_spec \
9313 thread_safe_flag_spec \
9314 whole_archive_flag_spec \
9315 enable_shared_with_static_runtimes \
9316 old_archive_cmds \
9317 old_archive_from_new_cmds \
9318 predep_objects \
9319 postdep_objects \
9320 predeps \
9321 postdeps \
9322 compiler_lib_search_path \
9323 archive_cmds \
9324 archive_expsym_cmds \
9325 postinstall_cmds \
9326 postuninstall_cmds \
9327 old_archive_from_expsyms_cmds \
9328 allow_undefined_flag \
9329 no_undefined_flag \
9330 export_symbols_cmds \
9331 hardcode_libdir_flag_spec \
9332 hardcode_libdir_flag_spec_ld \
9333 hardcode_libdir_separator \
9334 hardcode_automatic \
9335 module_cmds \
9336 module_expsym_cmds \
9337 lt_cv_prog_compiler_c_o \
9338 exclude_expsyms \
9339 include_expsyms; do
9341 case $var in
9342 old_archive_cmds | \
9343 old_archive_from_new_cmds | \
9344 archive_cmds | \
9345 archive_expsym_cmds | \
9346 module_cmds | \
9347 module_expsym_cmds | \
9348 old_archive_from_expsyms_cmds | \
9349 export_symbols_cmds | \
9350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9351 postinstall_cmds | postuninstall_cmds | \
9352 old_postinstall_cmds | old_postuninstall_cmds | \
9353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9354 # Double-quote double-evaled strings.
9355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9360 esac
9361 done
9363 case $lt_echo in
9364 *'\$0 --fallback-echo"')
9365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9367 esac
9369 cfgfile="${ofile}T"
9370 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9371 $rm -f "$cfgfile"
9372 { echo "$as_me:$LINENO: creating $ofile" >&5
9373 echo "$as_me: creating $ofile" >&6;}
9375 cat <<__EOF__ >> "$cfgfile"
9376 #! $SHELL
9378 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9379 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9380 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9382 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9383 # Free Software Foundation, Inc.
9385 # This file is part of GNU Libtool:
9386 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9388 # This program is free software; you can redistribute it and/or modify
9389 # it under the terms of the GNU General Public License as published by
9390 # the Free Software Foundation; either version 2 of the License, or
9391 # (at your option) any later version.
9393 # This program is distributed in the hope that it will be useful, but
9394 # WITHOUT ANY WARRANTY; without even the implied warranty of
9395 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9396 # General Public License for more details.
9398 # You should have received a copy of the GNU General Public License
9399 # along with this program; if not, write to the Free Software
9400 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9402 # As a special exception to the GNU General Public License, if you
9403 # distribute this file as part of a program that contains a
9404 # configuration script generated by Autoconf, you may include it under
9405 # the same distribution terms that you use for the rest of that program.
9407 # A sed program that does not truncate output.
9408 SED=$lt_SED
9410 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9411 Xsed="$SED -e s/^X//"
9413 # The HP-UX ksh and POSIX shell print the target directory to stdout
9414 # if CDPATH is set.
9415 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9417 # The names of the tagged configurations supported by this script.
9418 available_tags=
9420 # ### BEGIN LIBTOOL CONFIG
9422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9424 # Shell to use when invoking shell scripts.
9425 SHELL=$lt_SHELL
9427 # Whether or not to build shared libraries.
9428 build_libtool_libs=$enable_shared
9430 # Whether or not to build static libraries.
9431 build_old_libs=$enable_static
9433 # Whether or not to add -lc for building shared libraries.
9434 build_libtool_need_lc=$archive_cmds_need_lc
9436 # Whether or not to disallow shared libs when runtime libs are static
9437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9439 # Whether or not to optimize for fast installation.
9440 fast_install=$enable_fast_install
9442 # The host system.
9443 host_alias=$host_alias
9444 host=$host
9446 # An echo program that does not interpret backslashes.
9447 echo=$lt_echo
9449 # The archiver.
9450 AR=$lt_AR
9451 AR_FLAGS=$lt_AR_FLAGS
9453 # A C compiler.
9454 LTCC=$lt_LTCC
9456 # A language-specific compiler.
9457 CC=$lt_compiler
9459 # Is the compiler the GNU C compiler?
9460 with_gcc=$GCC
9462 # An ERE matcher.
9463 EGREP=$lt_EGREP
9465 # The linker used to build libraries.
9466 LD=$lt_LD
9468 # Whether we need hard or soft links.
9469 LN_S=$lt_LN_S
9471 # A BSD-compatible nm program.
9472 NM=$lt_NM
9474 # A symbol stripping program
9475 STRIP="$STRIP"
9477 # Used to examine libraries when file_magic_cmd begins "file"
9478 MAGIC_CMD=$MAGIC_CMD
9480 # Used on cygwin: DLL creation program.
9481 DLLTOOL="$DLLTOOL"
9483 # Used on cygwin: object dumper.
9484 OBJDUMP="$OBJDUMP"
9486 # Used on cygwin: assembler.
9487 AS="$AS"
9489 # The name of the directory that contains temporary libtool files.
9490 objdir=$objdir
9492 # How to create reloadable object files.
9493 reload_flag=$lt_reload_flag
9494 reload_cmds=$lt_reload_cmds
9496 # How to pass a linker flag through the compiler.
9497 wl=$lt_lt_prog_compiler_wl
9499 # Object file suffix (normally "o").
9500 objext="$ac_objext"
9502 # Old archive suffix (normally "a").
9503 libext="$libext"
9505 # Shared library suffix (normally ".so").
9506 shrext='$shrext'
9508 # Executable file suffix (normally "").
9509 exeext="$exeext"
9511 # Additional compiler flags for building library objects.
9512 pic_flag=$lt_lt_prog_compiler_pic
9513 pic_mode=$pic_mode
9515 # What is the maximum length of a command?
9516 max_cmd_len=$lt_cv_sys_max_cmd_len
9518 # Does compiler simultaneously support -c and -o options?
9519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9521 # Must we lock files when doing compilation ?
9522 need_locks=$lt_need_locks
9524 # Do we need the lib prefix for modules?
9525 need_lib_prefix=$need_lib_prefix
9527 # Do we need a version for libraries?
9528 need_version=$need_version
9530 # Whether dlopen is supported.
9531 dlopen_support=$enable_dlopen
9533 # Whether dlopen of programs is supported.
9534 dlopen_self=$enable_dlopen_self
9536 # Whether dlopen of statically linked programs is supported.
9537 dlopen_self_static=$enable_dlopen_self_static
9539 # Compiler flag to prevent dynamic linking.
9540 link_static_flag=$lt_lt_prog_compiler_static
9542 # Compiler flag to turn off builtin functions.
9543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9545 # Compiler flag to allow reflexive dlopens.
9546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9548 # Compiler flag to generate shared objects directly from archives.
9549 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9551 # Compiler flag to generate thread-safe objects.
9552 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9554 # Library versioning type.
9555 version_type=$version_type
9557 # Format of library name prefix.
9558 libname_spec=$lt_libname_spec
9560 # List of archive names. First name is the real one, the rest are links.
9561 # The last name is the one that the linker finds with -lNAME.
9562 library_names_spec=$lt_library_names_spec
9564 # The coded name of the library, if different from the real name.
9565 soname_spec=$lt_soname_spec
9567 # Commands used to build and install an old-style archive.
9568 RANLIB=$lt_RANLIB
9569 old_archive_cmds=$lt_old_archive_cmds
9570 old_postinstall_cmds=$lt_old_postinstall_cmds
9571 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9573 # Create an old-style archive from a shared archive.
9574 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9576 # Create a temporary old-style archive to link instead of a shared archive.
9577 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9579 # Commands used to build and install a shared archive.
9580 archive_cmds=$lt_archive_cmds
9581 archive_expsym_cmds=$lt_archive_expsym_cmds
9582 postinstall_cmds=$lt_postinstall_cmds
9583 postuninstall_cmds=$lt_postuninstall_cmds
9585 # Commands used to build a loadable module (assumed same as above if empty)
9586 module_cmds=$lt_module_cmds
9587 module_expsym_cmds=$lt_module_expsym_cmds
9589 # Commands to strip libraries.
9590 old_striplib=$lt_old_striplib
9591 striplib=$lt_striplib
9593 # Dependencies to place before the objects being linked to create a
9594 # shared library.
9595 predep_objects=$lt_predep_objects
9597 # Dependencies to place after the objects being linked to create a
9598 # shared library.
9599 postdep_objects=$lt_postdep_objects
9601 # Dependencies to place before the objects being linked to create a
9602 # shared library.
9603 predeps=$lt_predeps
9605 # Dependencies to place after the objects being linked to create a
9606 # shared library.
9607 postdeps=$lt_postdeps
9609 # The library search path used internally by the compiler when linking
9610 # a shared library.
9611 compiler_lib_search_path=$lt_compiler_lib_search_path
9613 # Method to check whether dependent libraries are shared objects.
9614 deplibs_check_method=$lt_deplibs_check_method
9616 # Command to use when deplibs_check_method == file_magic.
9617 file_magic_cmd=$lt_file_magic_cmd
9619 # Flag that allows shared libraries with undefined symbols to be built.
9620 allow_undefined_flag=$lt_allow_undefined_flag
9622 # Flag that forces no undefined symbols.
9623 no_undefined_flag=$lt_no_undefined_flag
9625 # Commands used to finish a libtool library installation in a directory.
9626 finish_cmds=$lt_finish_cmds
9628 # Same as above, but a single script fragment to be evaled but not shown.
9629 finish_eval=$lt_finish_eval
9631 # Take the output of nm and produce a listing of raw symbols and C names.
9632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9634 # Transform the output of nm in a proper C declaration
9635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9637 # Transform the output of nm in a C name address pair
9638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9640 # This is the shared library runtime path variable.
9641 runpath_var=$runpath_var
9643 # This is the shared library path variable.
9644 shlibpath_var=$shlibpath_var
9646 # Is shlibpath searched before the hard-coded library search path?
9647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9649 # How to hardcode a shared library path into an executable.
9650 hardcode_action=$hardcode_action
9652 # Whether we should hardcode library paths into libraries.
9653 hardcode_into_libs=$hardcode_into_libs
9655 # Flag to hardcode \$libdir into a binary during linking.
9656 # This must work even if \$libdir does not exist.
9657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9659 # If ld is used when linking, flag to hardcode \$libdir into
9660 # a binary during linking. This must work even if \$libdir does
9661 # not exist.
9662 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9664 # Whether we need a single -rpath flag with a separated argument.
9665 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9667 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9668 # resulting binary.
9669 hardcode_direct=$hardcode_direct
9671 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9672 # resulting binary.
9673 hardcode_minus_L=$hardcode_minus_L
9675 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9676 # the resulting binary.
9677 hardcode_shlibpath_var=$hardcode_shlibpath_var
9679 # Set to yes if building a shared library automatically hardcodes DIR into the library
9680 # and all subsequent libraries and executables linked against it.
9681 hardcode_automatic=$hardcode_automatic
9683 # Variables whose values should be saved in libtool wrapper scripts and
9684 # restored at relink time.
9685 variables_saved_for_relink="$variables_saved_for_relink"
9687 # Whether libtool must link a program against all its dependency libraries.
9688 link_all_deplibs=$link_all_deplibs
9690 # Compile-time system search path for libraries
9691 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9693 # Run-time system search path for libraries
9694 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9696 # Fix the shell variable \$srcfile for the compiler.
9697 fix_srcfile_path="$fix_srcfile_path"
9699 # Set to yes if exported symbols are required.
9700 always_export_symbols=$always_export_symbols
9702 # The commands to list exported symbols.
9703 export_symbols_cmds=$lt_export_symbols_cmds
9705 # The commands to extract the exported symbol list from a shared archive.
9706 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9708 # Symbols that should not be listed in the preloaded symbols.
9709 exclude_expsyms=$lt_exclude_expsyms
9711 # Symbols that must always be exported.
9712 include_expsyms=$lt_include_expsyms
9714 # ### END LIBTOOL CONFIG
9716 __EOF__
9719 case $host_os in
9720 aix3*)
9721 cat <<\EOF >> "$cfgfile"
9723 # AIX sometimes has problems with the GCC collect2 program. For some
9724 # reason, if we set the COLLECT_NAMES environment variable, the problems
9725 # vanish in a puff of smoke.
9726 if test "X${COLLECT_NAMES+set}" != Xset; then
9727 COLLECT_NAMES=
9728 export COLLECT_NAMES
9732 esac
9734 # We use sed instead of cat because bash on DJGPP gets confused if
9735 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9736 # text mode, it properly converts lines to CR/LF. This bash problem
9737 # is reportedly fixed, but why not run on old versions too?
9738 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9740 mv -f "$cfgfile" "$ofile" || \
9741 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9742 chmod +x "$ofile"
9744 else
9745 # If there is no Makefile yet, we rely on a make rule to execute
9746 # `config.status --recheck' to rerun these tests and create the
9747 # libtool script then.
9748 test -f Makefile && make "$ltmain"
9752 ac_ext=c
9753 ac_cpp='$CPP $CPPFLAGS'
9754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758 CC="$lt_save_CC"
9761 # Check whether --with-tags was given.
9762 if test "${with_tags+set}" = set; then
9763 withval=$with_tags; tagnames="$withval"
9767 if test -f "$ltmain" && test -n "$tagnames"; then
9768 if test ! -f "${ofile}"; then
9769 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9770 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9773 if test -z "$LTCC"; then
9774 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9775 if test -z "$LTCC"; then
9776 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9777 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9778 else
9779 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9780 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9784 # Extract list of available tagged configurations in $ofile.
9785 # Note that this assumes the entire list is on one line.
9786 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9788 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9789 for tagname in $tagnames; do
9790 IFS="$lt_save_ifs"
9791 # Check whether tagname contains only valid characters
9792 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9793 "") ;;
9794 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9795 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9796 { (exit 1); exit 1; }; }
9798 esac
9800 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9801 then
9802 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9803 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9804 { (exit 1); exit 1; }; }
9807 # Update the list of available tags.
9808 if test -n "$tagname"; then
9809 echo appending configuration tag \"$tagname\" to $ofile
9811 case $tagname in
9812 CXX)
9813 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9814 ac_ext=cpp
9815 ac_cpp='$CXXCPP $CPPFLAGS'
9816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9823 archive_cmds_need_lc_CXX=no
9824 allow_undefined_flag_CXX=
9825 always_export_symbols_CXX=no
9826 archive_expsym_cmds_CXX=
9827 export_dynamic_flag_spec_CXX=
9828 hardcode_direct_CXX=no
9829 hardcode_libdir_flag_spec_CXX=
9830 hardcode_libdir_flag_spec_ld_CXX=
9831 hardcode_libdir_separator_CXX=
9832 hardcode_minus_L_CXX=no
9833 hardcode_automatic_CXX=no
9834 module_cmds_CXX=
9835 module_expsym_cmds_CXX=
9836 link_all_deplibs_CXX=unknown
9837 old_archive_cmds_CXX=$old_archive_cmds
9838 no_undefined_flag_CXX=
9839 whole_archive_flag_spec_CXX=
9840 enable_shared_with_static_runtimes_CXX=no
9842 # Dependencies to place before and after the object being linked:
9843 predep_objects_CXX=
9844 postdep_objects_CXX=
9845 predeps_CXX=
9846 postdeps_CXX=
9847 compiler_lib_search_path_CXX=
9849 # Source file extension for C++ test sources.
9850 ac_ext=cc
9852 # Object file extension for compiled C++ test sources.
9853 objext=o
9854 objext_CXX=$objext
9856 # Code to be used in simple compile tests
9857 lt_simple_compile_test_code="int some_variable = 0;\n"
9859 # Code to be used in simple link tests
9860 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9864 # If no C compiler was specified, use CC.
9865 LTCC=${LTCC-"$CC"}
9867 # Allow CC to be a program name with arguments.
9868 compiler=$CC
9871 # Allow CC to be a program name with arguments.
9872 lt_save_CC=$CC
9873 lt_save_LD=$LD
9874 lt_save_GCC=$GCC
9875 GCC=$GXX
9876 lt_save_with_gnu_ld=$with_gnu_ld
9877 lt_save_path_LD=$lt_cv_path_LD
9878 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9879 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9880 else
9881 unset lt_cv_prog_gnu_ld
9883 if test -n "${lt_cv_path_LDCXX+set}"; then
9884 lt_cv_path_LD=$lt_cv_path_LDCXX
9885 else
9886 unset lt_cv_path_LD
9888 test -z "${LDCXX+set}" || LD=$LDCXX
9889 CC=${CXX-"c++"}
9890 compiler=$CC
9891 compiler_CXX=$CC
9892 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9894 # We don't want -fno-exception wen compiling C++ code, so set the
9895 # no_builtin_flag separately
9896 if test "$GXX" = yes; then
9897 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9898 else
9899 lt_prog_compiler_no_builtin_flag_CXX=
9902 if test "$GXX" = yes; then
9903 # Set up default GNU C++ configuration
9906 # Check whether --with-gnu-ld was given.
9907 if test "${with_gnu_ld+set}" = set; then
9908 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9909 else
9910 with_gnu_ld=no
9913 ac_prog=ld
9914 if test "$GCC" = yes; then
9915 # Check if gcc -print-prog-name=ld gives a path.
9916 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9917 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
9918 case $host in
9919 *-*-mingw*)
9920 # gcc leaves a trailing carriage return which upsets mingw
9921 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9923 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9924 esac
9925 case $ac_prog in
9926 # Accept absolute paths.
9927 [\\/]* | ?:[\\/]*)
9928 re_direlt='/[^/][^/]*/\.\./'
9929 # Canonicalize the pathname of ld
9930 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9931 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9932 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9933 done
9934 test -z "$LD" && LD="$ac_prog"
9937 # If it fails, then pretend we aren't using GCC.
9938 ac_prog=ld
9941 # If it is relative, then search for the first ld in PATH.
9942 with_gnu_ld=unknown
9944 esac
9945 elif test "$with_gnu_ld" = yes; then
9946 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9947 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
9948 else
9949 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9950 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
9952 if test "${lt_cv_path_LD+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955 if test -z "$LD"; then
9956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9957 for ac_dir in $PATH; do
9958 IFS="$lt_save_ifs"
9959 test -z "$ac_dir" && ac_dir=.
9960 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9961 lt_cv_path_LD="$ac_dir/$ac_prog"
9962 # Check to see if the program is GNU ld. I'd rather use --version,
9963 # but apparently some GNU ld's only accept -v.
9964 # Break only if it was the GNU/non-GNU ld that we prefer.
9965 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9966 *GNU* | *'with BFD'*)
9967 test "$with_gnu_ld" != no && break
9970 test "$with_gnu_ld" != yes && break
9972 esac
9974 done
9975 IFS="$lt_save_ifs"
9976 else
9977 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9981 LD="$lt_cv_path_LD"
9982 if test -n "$LD"; then
9983 { echo "$as_me:$LINENO: result: $LD" >&5
9984 echo "${ECHO_T}$LD" >&6; }
9985 else
9986 { echo "$as_me:$LINENO: result: no" >&5
9987 echo "${ECHO_T}no" >&6; }
9989 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9990 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9991 { (exit 1); exit 1; }; }
9992 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9993 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9998 case `$LD -v 2>&1 </dev/null` in
9999 *GNU* | *'with BFD'*)
10000 lt_cv_prog_gnu_ld=yes
10003 lt_cv_prog_gnu_ld=no
10005 esac
10007 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10008 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10009 with_gnu_ld=$lt_cv_prog_gnu_ld
10013 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10014 # archiving commands below assume that GNU ld is being used.
10015 if test "$with_gnu_ld" = yes; then
10016 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10017 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10019 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10022 # If archive_cmds runs LD, not CC, wlarc should be empty
10023 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10024 # investigate it a little bit more. (MM)
10025 wlarc='${wl}'
10027 # ancient GNU ld didn't support --whole-archive et. al.
10028 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10029 grep 'no-whole-archive' > /dev/null; then
10030 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10031 else
10032 whole_archive_flag_spec_CXX=
10034 else
10035 with_gnu_ld=no
10036 wlarc=
10038 # A generic and very simple default shared library creation
10039 # command for GNU C++ for the case where it uses the native
10040 # linker, instead of GNU ld. If possible, this setting should
10041 # overridden to take advantage of the native linker features on
10042 # the platform it is being used on.
10043 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10046 # Commands to make compiler produce verbose output that lists
10047 # what "hidden" libraries, object files and flags are used when
10048 # linking a shared library.
10049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10051 else
10052 GXX=no
10053 with_gnu_ld=no
10054 wlarc=
10057 # PORTME: fill in a description of your system's C++ link characteristics
10058 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10059 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10060 ld_shlibs_CXX=yes
10061 case $host_os in
10062 aix3*)
10063 # FIXME: insert proper C++ library support
10064 ld_shlibs_CXX=no
10066 aix4* | aix5*)
10067 if test "$host_cpu" = ia64; then
10068 # On IA64, the linker does run time linking by default, so we don't
10069 # have to do anything special.
10070 aix_use_runtimelinking=no
10071 exp_sym_flag='-Bexport'
10072 no_entry_flag=""
10073 else
10074 aix_use_runtimelinking=no
10076 # Test if we are trying to use run time linking or normal
10077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10078 # need to do runtime linking.
10079 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10080 for ld_flag in $LDFLAGS; do
10081 case $ld_flag in
10082 *-brtl*)
10083 aix_use_runtimelinking=yes
10084 break
10086 esac
10087 done
10088 esac
10090 exp_sym_flag='-bexport'
10091 no_entry_flag='-bnoentry'
10094 # When large executables or shared objects are built, AIX ld can
10095 # have problems creating the table of contents. If linking a library
10096 # or program results in "error TOC overflow" add -mminimal-toc to
10097 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10098 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10100 archive_cmds_CXX=''
10101 hardcode_direct_CXX=yes
10102 hardcode_libdir_separator_CXX=':'
10103 link_all_deplibs_CXX=yes
10105 if test "$GXX" = yes; then
10106 case $host_os in aix4.012|aix4.012.*)
10107 # We only want to do this on AIX 4.2 and lower, the check
10108 # below for broken collect2 doesn't work under 4.3+
10109 collect2name=`${CC} -print-prog-name=collect2`
10110 if test -f "$collect2name" && \
10111 strings "$collect2name" | grep resolve_lib_name >/dev/null
10112 then
10113 # We have reworked collect2
10114 hardcode_direct_CXX=yes
10115 else
10116 # We have old collect2
10117 hardcode_direct_CXX=unsupported
10118 # It fails to find uninstalled libraries when the uninstalled
10119 # path is not listed in the libpath. Setting hardcode_minus_L
10120 # to unsupported forces relinking
10121 hardcode_minus_L_CXX=yes
10122 hardcode_libdir_flag_spec_CXX='-L$libdir'
10123 hardcode_libdir_separator_CXX=
10125 esac
10126 shared_flag='-shared'
10127 else
10128 # not using gcc
10129 if test "$host_cpu" = ia64; then
10130 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10131 # chokes on -Wl,-G. The following line is correct:
10132 shared_flag='-G'
10133 else
10134 if test "$aix_use_runtimelinking" = yes; then
10135 shared_flag='${wl}-G'
10136 else
10137 shared_flag='${wl}-bM:SRE'
10142 # It seems that -bexpall does not export symbols beginning with
10143 # underscore (_), so it is better to generate a list of symbols to export.
10144 always_export_symbols_CXX=yes
10145 if test "$aix_use_runtimelinking" = yes; then
10146 # Warning - without using the other runtime loading flags (-brtl),
10147 # -berok will link without error, but may produce a broken library.
10148 allow_undefined_flag_CXX='-berok'
10149 # Determine the default libpath from the value encoded in an empty executable.
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10158 main ()
10162 return 0;
10164 _ACEOF
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_cxx_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest$ac_exeext &&
10182 $as_test_x conftest$ac_exeext; then
10184 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10186 # Check for a 64-bit object if we didn't find anything.
10187 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10188 }'`; fi
10189 else
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10200 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10202 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10203 else
10204 if test "$host_cpu" = ia64; then
10205 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10206 allow_undefined_flag_CXX="-z nodefs"
10207 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10208 else
10209 # Determine the default libpath from the value encoded in an empty executable.
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h. */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10218 main ()
10222 return 0;
10224 _ACEOF
10225 rm -f conftest.$ac_objext conftest$ac_exeext
10226 if { (ac_try="$ac_link"
10227 case "(($ac_try" in
10228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10229 *) ac_try_echo=$ac_try;;
10230 esac
10231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10232 (eval "$ac_link") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_cxx_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest$ac_exeext &&
10242 $as_test_x conftest$ac_exeext; then
10244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10246 # Check for a 64-bit object if we didn't find anything.
10247 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10248 }'`; fi
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 conftest$ac_exeext conftest.$ac_ext
10258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10261 # Warning - without using the other run time loading flags,
10262 # -berok will link without error, but may produce a broken library.
10263 no_undefined_flag_CXX=' ${wl}-bernotok'
10264 allow_undefined_flag_CXX=' ${wl}-berok'
10265 # -bexpall does not export symbols beginning with underscore (_)
10266 always_export_symbols_CXX=yes
10267 # Exported symbols can be pulled into shared objects from archives
10268 whole_archive_flag_spec_CXX=' '
10269 archive_cmds_need_lc_CXX=yes
10270 # This is similar to how AIX traditionally builds it's shared libraries.
10271 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10275 chorus*)
10276 case $cc_basename in
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10281 esac
10284 cygwin* | mingw* | pw32*)
10285 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10286 # as there is no search path for DLLs.
10287 hardcode_libdir_flag_spec_CXX='-L$libdir'
10288 allow_undefined_flag_CXX=unsupported
10289 always_export_symbols_CXX=no
10290 enable_shared_with_static_runtimes_CXX=yes
10292 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10294 # If the export-symbols file already is a .def file (1st line
10295 # is EXPORTS), use it as is; otherwise, prepend...
10296 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10297 cp $export_symbols $output_objdir/$soname.def;
10298 else
10299 echo EXPORTS > $output_objdir/$soname.def;
10300 cat $export_symbols >> $output_objdir/$soname.def;
10302 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10303 else
10304 ld_shlibs_CXX=no
10308 darwin* | rhapsody*)
10309 if test "$GXX" = yes; then
10310 archive_cmds_need_lc_CXX=no
10311 case "$host_os" in
10312 rhapsody* | darwin1.[012])
10313 allow_undefined_flag_CXX='-undefined suppress'
10315 *) # Darwin 1.3 on
10316 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10317 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10318 else
10319 case ${MACOSX_DEPLOYMENT_TARGET} in
10320 10.[012])
10321 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10323 10.*)
10324 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10326 esac
10329 esac
10330 lt_int_apple_cc_single_mod=no
10331 output_verbose_link_cmd='echo'
10332 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10333 lt_int_apple_cc_single_mod=yes
10335 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10336 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10337 else
10338 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10340 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10343 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10344 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10345 else
10346 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10348 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10349 hardcode_direct_CXX=no
10350 hardcode_automatic_CXX=yes
10351 hardcode_shlibpath_var_CXX=unsupported
10352 whole_archive_flag_spec_CXX='-all_load $convenience'
10353 link_all_deplibs_CXX=yes
10354 else
10355 ld_shlibs_CXX=no
10359 dgux*)
10360 case $cc_basename in
10361 ec++)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10365 ghcx)
10366 # Green Hills C++ Compiler
10367 # FIXME: insert proper C++ library support
10368 ld_shlibs_CXX=no
10371 # FIXME: insert proper C++ library support
10372 ld_shlibs_CXX=no
10374 esac
10376 freebsd12*)
10377 # C++ shared libraries reported to be fairly broken before switch to ELF
10378 ld_shlibs_CXX=no
10380 freebsd-elf*)
10381 archive_cmds_need_lc_CXX=no
10383 freebsd* | kfreebsd*-gnu)
10384 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10385 # conventions
10386 ld_shlibs_CXX=yes
10388 gnu*)
10390 hpux9*)
10391 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10392 hardcode_libdir_separator_CXX=:
10393 export_dynamic_flag_spec_CXX='${wl}-E'
10394 hardcode_direct_CXX=yes
10395 hardcode_minus_L_CXX=yes # Not in the search PATH,
10396 # but as the default
10397 # location of the library.
10399 case $cc_basename in
10401 # FIXME: insert proper C++ library support
10402 ld_shlibs_CXX=no
10404 aCC)
10405 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10406 # Commands to make compiler produce verbose output that lists
10407 # what "hidden" libraries, object files and flags are used when
10408 # linking a shared library.
10410 # There doesn't appear to be a way to prevent this compiler from
10411 # explicitly linking system object files so we need to strip them
10412 # from the output so that they don't get included in the library
10413 # dependencies.
10414 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10417 if test "$GXX" = yes; then
10418 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10419 else
10420 # FIXME: insert proper C++ library support
10421 ld_shlibs_CXX=no
10424 esac
10426 hpux10*|hpux11*)
10427 if test $with_gnu_ld = no; then
10428 case "$host_cpu" in
10429 hppa*64*)
10430 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10431 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10432 hardcode_libdir_separator_CXX=:
10434 ia64*)
10435 hardcode_libdir_flag_spec_CXX='-L$libdir'
10438 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10439 hardcode_libdir_separator_CXX=:
10440 export_dynamic_flag_spec_CXX='${wl}-E'
10442 esac
10444 case "$host_cpu" in
10445 hppa*64*)
10446 hardcode_direct_CXX=no
10447 hardcode_shlibpath_var_CXX=no
10449 ia64*)
10450 hardcode_direct_CXX=no
10451 hardcode_shlibpath_var_CXX=no
10452 hardcode_minus_L_CXX=yes # Not in the search PATH,
10453 # but as the default
10454 # location of the library.
10457 hardcode_direct_CXX=yes
10458 hardcode_minus_L_CXX=yes # Not in the search PATH,
10459 # but as the default
10460 # location of the library.
10462 esac
10464 case $cc_basename in
10466 # FIXME: insert proper C++ library support
10467 ld_shlibs_CXX=no
10469 aCC)
10470 case "$host_cpu" in
10471 hppa*64*|ia64*)
10472 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10477 esac
10478 # Commands to make compiler produce verbose output that lists
10479 # what "hidden" libraries, object files and flags are used when
10480 # linking a shared library.
10482 # There doesn't appear to be a way to prevent this compiler from
10483 # explicitly linking system object files so we need to strip them
10484 # from the output so that they don't get included in the library
10485 # dependencies.
10486 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10489 if test "$GXX" = yes; then
10490 if test $with_gnu_ld = no; then
10491 case "$host_cpu" in
10492 ia64*|hppa*64*)
10493 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10496 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10498 esac
10500 else
10501 # FIXME: insert proper C++ library support
10502 ld_shlibs_CXX=no
10505 esac
10507 irix5* | irix6*)
10508 case $cc_basename in
10510 # SGI C++
10511 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10513 # Archives containing C++ object files must be created using
10514 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10515 # necessary to make sure instantiated templates are included
10516 # in the archive.
10517 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10520 if test "$GXX" = yes; then
10521 if test "$with_gnu_ld" = no; then
10522 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10523 else
10524 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10527 link_all_deplibs_CXX=yes
10529 esac
10530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10531 hardcode_libdir_separator_CXX=:
10533 linux*)
10534 case $cc_basename in
10535 KCC)
10536 # Kuck and Associates, Inc. (KAI) C++ Compiler
10538 # KCC will only create a shared library if the output file
10539 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10540 # to its proper name (with version) after linking.
10541 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10542 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10543 # Commands to make compiler produce verbose output that lists
10544 # what "hidden" libraries, object files and flags are used when
10545 # linking a shared library.
10547 # There doesn't appear to be a way to prevent this compiler from
10548 # explicitly linking system object files so we need to strip them
10549 # from the output so that they don't get included in the library
10550 # dependencies.
10551 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10553 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10556 # Archives containing C++ object files must be created using
10557 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10558 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10560 icpc)
10561 # Intel C++
10562 with_gnu_ld=yes
10563 archive_cmds_need_lc_CXX=no
10564 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10565 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10567 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10568 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10570 cxx)
10571 # Compaq C++
10572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10575 runpath_var=LD_RUN_PATH
10576 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10577 hardcode_libdir_separator_CXX=:
10579 # Commands to make compiler produce verbose output that lists
10580 # what "hidden" libraries, object files and flags are used when
10581 # linking a shared library.
10583 # There doesn't appear to be a way to prevent this compiler from
10584 # explicitly linking system object files so we need to strip them
10585 # from the output so that they don't get included in the library
10586 # dependencies.
10587 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10589 esac
10591 lynxos*)
10592 # FIXME: insert proper C++ library support
10593 ld_shlibs_CXX=no
10595 m88k*)
10596 # FIXME: insert proper C++ library support
10597 ld_shlibs_CXX=no
10599 mvs*)
10600 case $cc_basename in
10601 cxx)
10602 # FIXME: insert proper C++ library support
10603 ld_shlibs_CXX=no
10606 # FIXME: insert proper C++ library support
10607 ld_shlibs_CXX=no
10609 esac
10611 netbsd*)
10612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10613 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10614 wlarc=
10615 hardcode_libdir_flag_spec_CXX='-R$libdir'
10616 hardcode_direct_CXX=yes
10617 hardcode_shlibpath_var_CXX=no
10619 # Workaround some broken pre-1.5 toolchains
10620 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10622 osf3*)
10623 case $cc_basename in
10624 KCC)
10625 # Kuck and Associates, Inc. (KAI) C++ Compiler
10627 # KCC will only create a shared library if the output file
10628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10629 # to its proper name (with version) after linking.
10630 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10632 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10633 hardcode_libdir_separator_CXX=:
10635 # Archives containing C++ object files must be created using
10636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10637 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10640 RCC)
10641 # Rational C++ 2.4.1
10642 # FIXME: insert proper C++ library support
10643 ld_shlibs_CXX=no
10645 cxx)
10646 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10647 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10649 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10650 hardcode_libdir_separator_CXX=:
10652 # Commands to make compiler produce verbose output that lists
10653 # what "hidden" libraries, object files and flags are used when
10654 # linking a shared library.
10656 # There doesn't appear to be a way to prevent this compiler from
10657 # explicitly linking system object files so we need to strip them
10658 # from the output so that they don't get included in the library
10659 # dependencies.
10660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10663 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10664 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10665 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10667 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator_CXX=:
10670 # Commands to make compiler produce verbose output that lists
10671 # what "hidden" libraries, object files and flags are used when
10672 # linking a shared library.
10673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10675 else
10676 # FIXME: insert proper C++ library support
10677 ld_shlibs_CXX=no
10680 esac
10682 osf4* | osf5*)
10683 case $cc_basename in
10684 KCC)
10685 # Kuck and Associates, Inc. (KAI) C++ Compiler
10687 # KCC will only create a shared library if the output file
10688 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10689 # to its proper name (with version) after linking.
10690 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10692 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10693 hardcode_libdir_separator_CXX=:
10695 # Archives containing C++ object files must be created using
10696 # the KAI C++ compiler.
10697 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10699 RCC)
10700 # Rational C++ 2.4.1
10701 # FIXME: insert proper C++ library support
10702 ld_shlibs_CXX=no
10704 cxx)
10705 allow_undefined_flag_CXX=' -expect_unresolved \*'
10706 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10707 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10708 echo "-hidden">> $lib.exp~
10709 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10710 $rm $lib.exp'
10712 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10713 hardcode_libdir_separator_CXX=:
10715 # Commands to make compiler produce verbose output that lists
10716 # what "hidden" libraries, object files and flags are used when
10717 # linking a shared library.
10719 # There doesn't appear to be a way to prevent this compiler from
10720 # explicitly linking system object files so we need to strip them
10721 # from the output so that they don't get included in the library
10722 # dependencies.
10723 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10726 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10728 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator_CXX=:
10733 # Commands to make compiler produce verbose output that lists
10734 # what "hidden" libraries, object files and flags are used when
10735 # linking a shared library.
10736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10738 else
10739 # FIXME: insert proper C++ library support
10740 ld_shlibs_CXX=no
10743 esac
10745 psos*)
10746 # FIXME: insert proper C++ library support
10747 ld_shlibs_CXX=no
10749 sco*)
10750 archive_cmds_need_lc_CXX=no
10751 case $cc_basename in
10753 # FIXME: insert proper C++ library support
10754 ld_shlibs_CXX=no
10757 # FIXME: insert proper C++ library support
10758 ld_shlibs_CXX=no
10760 esac
10762 sunos4*)
10763 case $cc_basename in
10765 # Sun C++ 4.x
10766 # FIXME: insert proper C++ library support
10767 ld_shlibs_CXX=no
10769 lcc)
10770 # Lucid
10771 # FIXME: insert proper C++ library support
10772 ld_shlibs_CXX=no
10775 # FIXME: insert proper C++ library support
10776 ld_shlibs_CXX=no
10778 esac
10780 solaris*)
10781 case $cc_basename in
10783 # Sun C++ 4.2, 5.x and Centerline C++
10784 no_undefined_flag_CXX=' -zdefs'
10785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10789 hardcode_libdir_flag_spec_CXX='-R$libdir'
10790 hardcode_shlibpath_var_CXX=no
10791 case $host_os in
10792 solaris2.0-5 | solaris2.0-5.*) ;;
10794 # The C++ compiler is used as linker so we must use $wl
10795 # flag to pass the commands to the underlying system
10796 # linker.
10797 # Supported since Solaris 2.6 (maybe 2.5.1?)
10798 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10800 esac
10801 link_all_deplibs_CXX=yes
10803 # Commands to make compiler produce verbose output that lists
10804 # what "hidden" libraries, object files and flags are used when
10805 # linking a shared library.
10807 # There doesn't appear to be a way to prevent this compiler from
10808 # explicitly linking system object files so we need to strip them
10809 # from the output so that they don't get included in the library
10810 # dependencies.
10811 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10813 # Archives containing C++ object files must be created using
10814 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10815 # necessary to make sure instantiated templates are included
10816 # in the archive.
10817 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10819 gcx)
10820 # Green Hills C++ Compiler
10821 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10823 # The C++ compiler must be used to create the archive.
10824 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10827 # GNU C++ compiler with Solaris linker
10828 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10829 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10830 if $CC --version | grep -v '^2\.7' > /dev/null; then
10831 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10832 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10833 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10835 # Commands to make compiler produce verbose output that lists
10836 # what "hidden" libraries, object files and flags are used when
10837 # linking a shared library.
10838 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10839 else
10840 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10841 # platform.
10842 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10843 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10844 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10846 # Commands to make compiler produce verbose output that lists
10847 # what "hidden" libraries, object files and flags are used when
10848 # linking a shared library.
10849 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10852 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10855 esac
10857 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10858 archive_cmds_need_lc_CXX=no
10860 tandem*)
10861 case $cc_basename in
10862 NCC)
10863 # NonStop-UX NCC 3.20
10864 # FIXME: insert proper C++ library support
10865 ld_shlibs_CXX=no
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10871 esac
10873 vxworks*)
10874 # FIXME: insert proper C++ library support
10875 ld_shlibs_CXX=no
10878 # FIXME: insert proper C++ library support
10879 ld_shlibs_CXX=no
10881 esac
10882 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10883 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
10884 test "$ld_shlibs_CXX" = no && can_build_shared=no
10886 GCC_CXX="$GXX"
10887 LD_CXX="$LD"
10889 ## CAVEAT EMPTOR:
10890 ## There is no encapsulation within the following macros, do not change
10891 ## the running order or otherwise move them around unless you know exactly
10892 ## what you are doing...
10894 cat > conftest.$ac_ext <<EOF
10895 class Foo
10897 public:
10898 Foo (void) { a = 0; }
10899 private:
10900 int a;
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); }; then
10909 # Parse the compiler output and extract the necessary
10910 # objects, libraries and library flags.
10912 # Sentinel used to keep track of whether or not we are before
10913 # the conftest object file.
10914 pre_test_object_deps_done=no
10916 # The `*' in the case matches for architectures that use `case' in
10917 # $output_verbose_cmd can trigger glob expansion during the loop
10918 # eval without this substitution.
10919 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10921 for p in `eval $output_verbose_link_cmd`; do
10922 case $p in
10924 -L* | -R* | -l*)
10925 # Some compilers place space between "-{L,R}" and the path.
10926 # Remove the space.
10927 if test $p = "-L" \
10928 || test $p = "-R"; then
10929 prev=$p
10930 continue
10931 else
10932 prev=
10935 if test "$pre_test_object_deps_done" = no; then
10936 case $p in
10937 -L* | -R*)
10938 # Internal compiler library paths should come after those
10939 # provided the user. The postdeps already come after the
10940 # user supplied libs so there is no need to process them.
10941 if test -z "$compiler_lib_search_path_CXX"; then
10942 compiler_lib_search_path_CXX="${prev}${p}"
10943 else
10944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10947 # The "-l" case would never come before the object being
10948 # linked, so don't bother handling this case.
10949 esac
10950 else
10951 if test -z "$postdeps_CXX"; then
10952 postdeps_CXX="${prev}${p}"
10953 else
10954 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10959 *.$objext)
10960 # This assumes that the test object file only shows up
10961 # once in the compiler output.
10962 if test "$p" = "conftest.$objext"; then
10963 pre_test_object_deps_done=yes
10964 continue
10967 if test "$pre_test_object_deps_done" = no; then
10968 if test -z "$predep_objects_CXX"; then
10969 predep_objects_CXX="$p"
10970 else
10971 predep_objects_CXX="$predep_objects_CXX $p"
10973 else
10974 if test -z "$postdep_objects_CXX"; then
10975 postdep_objects_CXX="$p"
10976 else
10977 postdep_objects_CXX="$postdep_objects_CXX $p"
10982 *) ;; # Ignore the rest.
10984 esac
10985 done
10987 # Clean up.
10988 rm -f a.out a.exe
10989 else
10990 echo "libtool.m4: error: problem compiling CXX test program"
10993 $rm -f confest.$objext
10995 case " $postdeps_CXX " in
10996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10997 esac
10999 lt_prog_compiler_wl_CXX=
11000 lt_prog_compiler_pic_CXX=
11001 lt_prog_compiler_static_CXX=
11003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11006 # C++ specific cases for pic, static, wl, etc.
11007 if test "$GXX" = yes; then
11008 lt_prog_compiler_wl_CXX='-Wl,'
11009 lt_prog_compiler_static_CXX='-static'
11011 case $host_os in
11012 aix*)
11013 # All AIX code is PIC.
11014 if test "$host_cpu" = ia64; then
11015 # AIX 5 now supports IA64 processor
11016 lt_prog_compiler_static_CXX='-Bstatic'
11019 amigaos*)
11020 # FIXME: we need at least 68020 code to build shared libraries, but
11021 # adding the `-m68020' flag to GCC prevents building anything better,
11022 # like `-m68040'.
11023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11025 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11026 # PIC is the default for these OSes.
11028 mingw* | os2* | pw32*)
11029 # This hack is so that the source file can tell whether it is being
11030 # built for inclusion in a dll (and should export symbols for example).
11031 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11033 darwin* | rhapsody*)
11034 # PIC is the default on this platform
11035 # Common symbols not allowed in MH_DYLIB files
11036 lt_prog_compiler_pic_CXX='-fno-common'
11038 *djgpp*)
11039 # DJGPP does not support shared libraries at all
11040 lt_prog_compiler_pic_CXX=
11042 sysv4*MP*)
11043 if test -d /usr/nec; then
11044 lt_prog_compiler_pic_CXX=-Kconform_pic
11047 hpux*)
11048 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11049 # not for PA HP-UX.
11050 case "$host_cpu" in
11051 hppa*64*|ia64*)
11054 lt_prog_compiler_pic_CXX='-fPIC'
11056 esac
11059 lt_prog_compiler_pic_CXX='-fPIC'
11061 esac
11062 else
11063 case $host_os in
11064 aix4* | aix5*)
11065 # All AIX code is PIC.
11066 if test "$host_cpu" = ia64; then
11067 # AIX 5 now supports IA64 processor
11068 lt_prog_compiler_static_CXX='-Bstatic'
11069 else
11070 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11073 chorus*)
11074 case $cc_basename in
11075 cxch68)
11076 # Green Hills C++ Compiler
11077 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11079 esac
11081 dgux*)
11082 case $cc_basename in
11083 ec++)
11084 lt_prog_compiler_pic_CXX='-KPIC'
11086 ghcx)
11087 # Green Hills C++ Compiler
11088 lt_prog_compiler_pic_CXX='-pic'
11092 esac
11094 freebsd* | kfreebsd*-gnu)
11095 # FreeBSD uses GNU C++
11097 hpux9* | hpux10* | hpux11*)
11098 case $cc_basename in
11100 lt_prog_compiler_wl_CXX='-Wl,'
11101 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11102 if test "$host_cpu" != ia64; then
11103 lt_prog_compiler_pic_CXX='+Z'
11106 aCC)
11107 lt_prog_compiler_wl_CXX='-Wl,'
11108 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11109 case "$host_cpu" in
11110 hppa*64*|ia64*)
11111 # +Z the default
11114 lt_prog_compiler_pic_CXX='+Z'
11116 esac
11120 esac
11122 irix5* | irix6* | nonstopux*)
11123 case $cc_basename in
11125 lt_prog_compiler_wl_CXX='-Wl,'
11126 lt_prog_compiler_static_CXX='-non_shared'
11127 # CC pic flag -KPIC is the default.
11131 esac
11133 linux*)
11134 case $cc_basename in
11135 KCC)
11136 # KAI C++ Compiler
11137 lt_prog_compiler_wl_CXX='--backend -Wl,'
11138 lt_prog_compiler_pic_CXX='-fPIC'
11140 icpc)
11141 # Intel C++
11142 lt_prog_compiler_wl_CXX='-Wl,'
11143 lt_prog_compiler_pic_CXX='-KPIC'
11144 lt_prog_compiler_static_CXX='-static'
11146 cxx)
11147 # Compaq C++
11148 # Make sure the PIC flag is empty. It appears that all Alpha
11149 # Linux and Compaq Tru64 Unix objects are PIC.
11150 lt_prog_compiler_pic_CXX=
11151 lt_prog_compiler_static_CXX='-non_shared'
11155 esac
11157 lynxos*)
11159 m88k*)
11161 mvs*)
11162 case $cc_basename in
11163 cxx)
11164 lt_prog_compiler_pic_CXX='-W c,exportall'
11168 esac
11170 netbsd*)
11172 osf3* | osf4* | osf5*)
11173 case $cc_basename in
11174 KCC)
11175 lt_prog_compiler_wl_CXX='--backend -Wl,'
11177 RCC)
11178 # Rational C++ 2.4.1
11179 lt_prog_compiler_pic_CXX='-pic'
11181 cxx)
11182 # Digital/Compaq C++
11183 lt_prog_compiler_wl_CXX='-Wl,'
11184 # Make sure the PIC flag is empty. It appears that all Alpha
11185 # Linux and Compaq Tru64 Unix objects are PIC.
11186 lt_prog_compiler_pic_CXX=
11187 lt_prog_compiler_static_CXX='-non_shared'
11191 esac
11193 psos*)
11195 sco*)
11196 case $cc_basename in
11198 lt_prog_compiler_pic_CXX='-fPIC'
11202 esac
11204 solaris*)
11205 case $cc_basename in
11207 # Sun C++ 4.2, 5.x and Centerline C++
11208 lt_prog_compiler_pic_CXX='-KPIC'
11209 lt_prog_compiler_static_CXX='-Bstatic'
11210 lt_prog_compiler_wl_CXX='-Qoption ld '
11212 gcx)
11213 # Green Hills C++ Compiler
11214 lt_prog_compiler_pic_CXX='-PIC'
11218 esac
11220 sunos4*)
11221 case $cc_basename in
11223 # Sun C++ 4.x
11224 lt_prog_compiler_pic_CXX='-pic'
11225 lt_prog_compiler_static_CXX='-Bstatic'
11227 lcc)
11228 # Lucid
11229 lt_prog_compiler_pic_CXX='-pic'
11233 esac
11235 tandem*)
11236 case $cc_basename in
11237 NCC)
11238 # NonStop-UX NCC 3.20
11239 lt_prog_compiler_pic_CXX='-KPIC'
11243 esac
11245 unixware*)
11247 vxworks*)
11250 lt_prog_compiler_can_build_shared_CXX=no
11252 esac
11255 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11256 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11259 # Check to make sure the PIC flag actually works.
11261 if test -n "$lt_prog_compiler_pic_CXX"; then
11263 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11264 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11265 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 lt_prog_compiler_pic_works_CXX=no
11269 ac_outfile=conftest.$ac_objext
11270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11271 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11272 # Insert the option either (1) after the last *FLAGS variable, or
11273 # (2) before a word containing "conftest.", or (3) at the end.
11274 # Note that $ac_compile itself does not contain backslashes and begins
11275 # with a dollar sign (not a hyphen), so the echo should work correctly.
11276 # The option is referenced via a variable to avoid confusing sed.
11277 lt_compile=`echo "$ac_compile" | $SED \
11278 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11280 -e 's:$: $lt_compiler_flag:'`
11281 (eval echo "\"\$as_me:11281: $lt_compile\"" >&5)
11282 (eval "$lt_compile" 2>conftest.err)
11283 ac_status=$?
11284 cat conftest.err >&5
11285 echo "$as_me:11285: \$? = $ac_status" >&5
11286 if (exit $ac_status) && test -s "$ac_outfile"; then
11287 # The compiler can only warn and ignore the option if not recognized
11288 # So say no if there are warnings
11289 if test ! -s conftest.err; then
11290 lt_prog_compiler_pic_works_CXX=yes
11293 $rm conftest*
11296 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11297 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11299 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11300 case $lt_prog_compiler_pic_CXX in
11301 "" | " "*) ;;
11302 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11303 esac
11304 else
11305 lt_prog_compiler_pic_CXX=
11306 lt_prog_compiler_can_build_shared_CXX=no
11310 case "$host_os" in
11311 # For platforms which do not support PIC, -DPIC is meaningless:
11312 *djgpp*)
11313 lt_prog_compiler_pic_CXX=
11316 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11318 esac
11320 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11322 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324 else
11325 lt_cv_prog_compiler_c_o_CXX=no
11326 $rm -r conftest 2>/dev/null
11327 mkdir conftest
11328 cd conftest
11329 mkdir out
11330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11332 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11333 # that will create temporary files in the current directory regardless of
11334 # the output directory. Thus, making CWD read-only will cause this test
11335 # to fail, enabling locking or at least warning the user not to do parallel
11336 # builds.
11337 chmod -w .
11339 lt_compiler_flag="-o out/conftest2.$ac_objext"
11340 # Insert the option either (1) after the last *FLAGS variable, or
11341 # (2) before a word containing "conftest.", or (3) at the end.
11342 # Note that $ac_compile itself does not contain backslashes and begins
11343 # with a dollar sign (not a hyphen), so the echo should work correctly.
11344 lt_compile=`echo "$ac_compile" | $SED \
11345 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11347 -e 's:$: $lt_compiler_flag:'`
11348 (eval echo "\"\$as_me:11348: $lt_compile\"" >&5)
11349 (eval "$lt_compile" 2>out/conftest.err)
11350 ac_status=$?
11351 cat out/conftest.err >&5
11352 echo "$as_me:11352: \$? = $ac_status" >&5
11353 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11354 then
11355 # The compiler can only warn and ignore the option if not recognized
11356 # So say no if there are warnings
11357 if test ! -s out/conftest.err; then
11358 lt_cv_prog_compiler_c_o_CXX=yes
11361 chmod u+w .
11362 $rm conftest*
11363 # SGI C++ compiler will create directory out/ii_files/ for
11364 # template instantiation
11365 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11366 $rm out/* && rmdir out
11367 cd ..
11368 rmdir conftest
11369 $rm conftest*
11372 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11373 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11376 hard_links="nottested"
11377 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11378 # do not overwrite the value of need_locks provided by the user
11379 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11380 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11381 hard_links=yes
11382 $rm conftest*
11383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11384 touch conftest.a
11385 ln conftest.a conftest.b 2>&5 || hard_links=no
11386 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11387 { echo "$as_me:$LINENO: result: $hard_links" >&5
11388 echo "${ECHO_T}$hard_links" >&6; }
11389 if test "$hard_links" = no; then
11390 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11391 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11392 need_locks=warn
11394 else
11395 need_locks=no
11398 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11399 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11402 case $host_os in
11403 aix4* | aix5*)
11404 # If we're using GNU nm, then we don't want the "-C" option.
11405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11406 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11407 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11408 else
11409 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11412 pw32*)
11413 export_symbols_cmds_CXX="$ltdll_cmds"
11415 cygwin* | mingw*)
11416 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11419 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11421 esac
11423 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11424 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11425 test "$ld_shlibs_CXX" = no && can_build_shared=no
11427 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11428 if test "$GCC" = yes; then
11429 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11433 # Do we need to explicitly link libc?
11435 case "x$archive_cmds_need_lc_CXX" in
11436 x|xyes)
11437 # Assume -lc should be added
11438 archive_cmds_need_lc_CXX=yes
11440 if test "$enable_shared" = yes && test "$GCC" = yes; then
11441 case $archive_cmds_CXX in
11442 *'~'*)
11443 # FIXME: we may have to deal with multi-command sequences.
11445 '$CC '*)
11446 # Test whether the compiler implicitly links with -lc since on some
11447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11448 # to ld, don't add -lc before -lgcc.
11449 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11450 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11451 $rm conftest*
11452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } 2>conftest.err; then
11459 soname=conftest
11460 lib=conftest
11461 libobjs=conftest.$ac_objext
11462 deplibs=
11463 wl=$lt_prog_compiler_wl_CXX
11464 compiler_flags=-v
11465 linker_flags=-v
11466 verstring=
11467 output_objdir=.
11468 libname=conftest
11469 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11470 allow_undefined_flag_CXX=
11471 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11472 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }
11476 then
11477 archive_cmds_need_lc_CXX=no
11478 else
11479 archive_cmds_need_lc_CXX=yes
11481 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11482 else
11483 cat conftest.err 1>&5
11485 $rm conftest*
11486 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11487 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11489 esac
11492 esac
11494 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11495 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11496 library_names_spec=
11497 libname_spec='lib$name'
11498 soname_spec=
11499 shrext=".so"
11500 postinstall_cmds=
11501 postuninstall_cmds=
11502 finish_cmds=
11503 finish_eval=
11504 shlibpath_var=
11505 shlibpath_overrides_runpath=unknown
11506 version_type=none
11507 dynamic_linker="$host_os ld.so"
11508 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11509 if test "$GCC" = yes; then
11510 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11511 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11512 # if the path contains ";" then we assume it to be the separator
11513 # otherwise default to the standard path separator (i.e. ":") - it is
11514 # assumed that no part of a normal pathname contains ";" but that should
11515 # okay in the real world where ";" in dirpaths is itself problematic.
11516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11517 else
11518 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11520 else
11521 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11523 need_lib_prefix=unknown
11524 hardcode_into_libs=no
11526 # when you set need_version to no, make sure it does not cause -set_version
11527 # flags to be left without arguments
11528 need_version=unknown
11530 case $host_os in
11531 aix3*)
11532 version_type=linux
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11534 shlibpath_var=LIBPATH
11536 # AIX 3 has no versioning support, so we append a major version to the name.
11537 soname_spec='${libname}${release}${shared_ext}$major'
11540 aix4* | aix5*)
11541 version_type=linux
11542 need_lib_prefix=no
11543 need_version=no
11544 hardcode_into_libs=yes
11545 if test "$host_cpu" = ia64; then
11546 # AIX 5 supports IA64
11547 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 else
11550 # With GCC up to 2.95.x, collect2 would create an import file
11551 # for dependence libraries. The import file would start with
11552 # the line `#! .'. This would cause the generated library to
11553 # depend on `.', always an invalid library. This was fixed in
11554 # development snapshots of GCC prior to 3.0.
11555 case $host_os in
11556 aix4 | aix4.[01] | aix4.[01].*)
11557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11558 echo ' yes '
11559 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11561 else
11562 can_build_shared=no
11565 esac
11566 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11567 # soname into executable. Probably we can add versioning support to
11568 # collect2, so additional links can be useful in future.
11569 if test "$aix_use_runtimelinking" = yes; then
11570 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11571 # instead of lib<name>.a to let people know that these are not
11572 # typical AIX shared libraries.
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11574 else
11575 # We preserve .a as extension for shared libraries through AIX4.2
11576 # and later when we are not doing run time linking.
11577 library_names_spec='${libname}${release}.a $libname.a'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11580 shlibpath_var=LIBPATH
11584 amigaos*)
11585 library_names_spec='$libname.ixlibrary $libname.a'
11586 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11587 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11590 beos*)
11591 library_names_spec='${libname}${shared_ext}'
11592 dynamic_linker="$host_os ld.so"
11593 shlibpath_var=LIBRARY_PATH
11596 bsdi4*)
11597 version_type=linux
11598 need_version=no
11599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11604 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11605 # the default ld.so.conf also contains /usr/contrib/lib and
11606 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11607 # libtool to hard-code these into programs
11610 cygwin* | mingw* | pw32*)
11611 version_type=windows
11612 shrext=".dll"
11613 need_version=no
11614 need_lib_prefix=no
11616 case $GCC,$host_os in
11617 yes,cygwin* | yes,mingw* | yes,pw32*)
11618 library_names_spec='$libname.dll.a'
11619 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11620 postinstall_cmds='base_file=`basename \${file}`~
11621 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11622 dldir=$destdir/`dirname \$dlpath`~
11623 test -d \$dldir || mkdir -p \$dldir~
11624 $install_prog $dir/$dlname \$dldir/$dlname'
11625 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11626 dlpath=$dir/\$dldll~
11627 $rm \$dlpath'
11628 shlibpath_overrides_runpath=yes
11630 case $host_os in
11631 cygwin*)
11632 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11633 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11634 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11636 mingw*)
11637 # MinGW DLLs use traditional 'lib' prefix
11638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11640 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11641 # It is most probably a Windows format PATH printed by
11642 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11643 # path with ; separators, and with drive letters. We can handle the
11644 # drive letters (cygwin fileutils understands them), so leave them,
11645 # especially as we might pass files found there to a mingw objdump,
11646 # which wouldn't understand a cygwinified path. Ahh.
11647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11648 else
11649 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11652 pw32*)
11653 # pw32 DLLs use 'pw' prefix rather than 'lib'
11654 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11656 esac
11660 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11662 esac
11663 dynamic_linker='Win32 ld.exe'
11664 # FIXME: first we should search . and the directory the executable is in
11665 shlibpath_var=PATH
11668 darwin* | rhapsody*)
11669 dynamic_linker="$host_os dyld"
11670 version_type=darwin
11671 need_lib_prefix=no
11672 need_version=no
11673 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11674 soname_spec='${libname}${release}${major}$shared_ext'
11675 shlibpath_overrides_runpath=yes
11676 shlibpath_var=DYLD_LIBRARY_PATH
11677 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11678 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11679 if test "$GCC" = yes; then
11680 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11681 else
11682 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11687 dgux*)
11688 version_type=linux
11689 need_lib_prefix=no
11690 need_version=no
11691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11692 soname_spec='${libname}${release}${shared_ext}$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11696 freebsd1*)
11697 dynamic_linker=no
11700 kfreebsd*-gnu)
11701 version_type=linux
11702 need_lib_prefix=no
11703 need_version=no
11704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11705 soname_spec='${libname}${release}${shared_ext}$major'
11706 shlibpath_var=LD_LIBRARY_PATH
11707 shlibpath_overrides_runpath=no
11708 hardcode_into_libs=yes
11709 dynamic_linker='GNU ld.so'
11712 freebsd*)
11713 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11714 version_type=freebsd-$objformat
11715 case $version_type in
11716 freebsd-elf*)
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11718 need_version=no
11719 need_lib_prefix=no
11721 freebsd-*)
11722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11723 need_version=yes
11725 esac
11726 shlibpath_var=LD_LIBRARY_PATH
11727 case $host_os in
11728 freebsd2*)
11729 shlibpath_overrides_runpath=yes
11731 freebsd3.01* | freebsdelf3.01*)
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11735 *) # from 3.2 on
11736 shlibpath_overrides_runpath=no
11737 hardcode_into_libs=yes
11739 esac
11742 gnu*)
11743 version_type=linux
11744 need_lib_prefix=no
11745 need_version=no
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11747 soname_spec='${libname}${release}${shared_ext}$major'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 hardcode_into_libs=yes
11752 hpux9* | hpux10* | hpux11*)
11753 # Give a soname corresponding to the major version so that dld.sl refuses to
11754 # link against other versions.
11755 version_type=sunos
11756 need_lib_prefix=no
11757 need_version=no
11758 case "$host_cpu" in
11759 ia64*)
11760 shrext='.so'
11761 hardcode_into_libs=yes
11762 dynamic_linker="$host_os dld.so"
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11766 soname_spec='${libname}${release}${shared_ext}$major'
11767 if test "X$HPUX_IA64_MODE" = X32; then
11768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11769 else
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11774 hppa*64*)
11775 shrext='.sl'
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11786 shrext='.sl'
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11793 esac
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11795 postinstall_cmds='chmod 555 $lib'
11798 irix5* | irix6* | nonstopux*)
11799 case $host_os in
11800 nonstopux*) version_type=nonstopux ;;
11802 if test "$lt_cv_prog_gnu_ld" = yes; then
11803 version_type=linux
11804 else
11805 version_type=irix
11806 fi ;;
11807 esac
11808 need_lib_prefix=no
11809 need_version=no
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11812 case $host_os in
11813 irix5* | nonstopux*)
11814 libsuff= shlibsuff=
11817 case $LD in # libtool.m4 will add one of these switches to LD
11818 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11819 libsuff= shlibsuff= libmagic=32-bit;;
11820 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11821 libsuff=32 shlibsuff=N32 libmagic=N32;;
11822 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11823 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11824 *) libsuff= shlibsuff= libmagic=never-match;;
11825 esac
11827 esac
11828 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11829 shlibpath_overrides_runpath=no
11830 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11831 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11832 hardcode_into_libs=yes
11835 # No shared lib support for Linux oldld, aout, or coff.
11836 linux*oldld* | linux*aout* | linux*coff*)
11837 dynamic_linker=no
11840 # This must be Linux ELF.
11841 linux*)
11842 version_type=linux
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11848 shlibpath_var=LD_LIBRARY_PATH
11849 shlibpath_overrides_runpath=no
11850 # This implies no fast_install, which is unacceptable.
11851 # Some rework will be needed to allow for fast_install
11852 # before this can be enabled.
11853 hardcode_into_libs=yes
11855 # We used to test for /lib/ld.so.1 and disable shared libraries on
11856 # powerpc, because MkLinux only supported shared libraries with the
11857 # GNU dynamic linker. Since this was broken with cross compilers,
11858 # most powerpc-linux boxes support dynamic linking these days and
11859 # people can always --disable-shared, the test was removed, and we
11860 # assume the GNU/Linux dynamic linker is in use.
11861 dynamic_linker='GNU/Linux ld.so'
11864 netbsd*)
11865 version_type=sunos
11866 need_lib_prefix=no
11867 need_version=no
11868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11871 dynamic_linker='NetBSD (a.out) ld.so'
11872 else
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 dynamic_linker='NetBSD ld.elf_so'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=yes
11879 hardcode_into_libs=yes
11882 newsos6)
11883 version_type=linux
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11889 nto-qnx*)
11890 version_type=linux
11891 need_lib_prefix=no
11892 need_version=no
11893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11894 soname_spec='${libname}${release}${shared_ext}$major'
11895 shlibpath_var=LD_LIBRARY_PATH
11896 shlibpath_overrides_runpath=yes
11899 openbsd*)
11900 version_type=sunos
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11907 case $host_os in
11908 openbsd2.[89] | openbsd2.[89].*)
11909 shlibpath_overrides_runpath=no
11912 shlibpath_overrides_runpath=yes
11914 esac
11915 else
11916 shlibpath_overrides_runpath=yes
11920 os2*)
11921 libname_spec='$name'
11922 shrext=".dll"
11923 need_lib_prefix=no
11924 library_names_spec='$libname${shared_ext} $libname.a'
11925 dynamic_linker='OS/2 ld.exe'
11926 shlibpath_var=LIBPATH
11929 osf3* | osf4* | osf5*)
11930 version_type=osf
11931 need_lib_prefix=no
11932 need_version=no
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11937 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11940 sco3.2v5*)
11941 version_type=osf
11942 soname_spec='${libname}${release}${shared_ext}$major'
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 shlibpath_var=LD_LIBRARY_PATH
11947 solaris*)
11948 version_type=linux
11949 need_lib_prefix=no
11950 need_version=no
11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952 soname_spec='${libname}${release}${shared_ext}$major'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=yes
11955 hardcode_into_libs=yes
11956 # ldd complains unless libraries are executable
11957 postinstall_cmds='chmod +x $lib'
11960 sunos4*)
11961 version_type=sunos
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 shlibpath_overrides_runpath=yes
11966 if test "$with_gnu_ld" = yes; then
11967 need_lib_prefix=no
11969 need_version=yes
11972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11973 version_type=linux
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 shlibpath_var=LD_LIBRARY_PATH
11977 case $host_vendor in
11978 sni)
11979 shlibpath_overrides_runpath=no
11980 need_lib_prefix=no
11981 export_dynamic_flag_spec='${wl}-Blargedynsym'
11982 runpath_var=LD_RUN_PATH
11984 siemens)
11985 need_lib_prefix=no
11987 motorola)
11988 need_lib_prefix=no
11989 need_version=no
11990 shlibpath_overrides_runpath=no
11991 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11993 esac
11996 sysv4*MP*)
11997 if test -d /usr/nec ;then
11998 version_type=linux
11999 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12000 soname_spec='$libname${shared_ext}.$major'
12001 shlibpath_var=LD_LIBRARY_PATH
12005 uts4*)
12006 version_type=linux
12007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12008 soname_spec='${libname}${release}${shared_ext}$major'
12009 shlibpath_var=LD_LIBRARY_PATH
12013 dynamic_linker=no
12015 esac
12016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12017 echo "${ECHO_T}$dynamic_linker" >&6; }
12018 test "$dynamic_linker" = no && can_build_shared=no
12020 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12021 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12022 hardcode_action_CXX=
12023 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12024 test -n "$runpath_var CXX" || \
12025 test "X$hardcode_automatic_CXX"="Xyes" ; then
12027 # We can hardcode non-existant directories.
12028 if test "$hardcode_direct_CXX" != no &&
12029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12030 # have to relink, otherwise we might link with an installed library
12031 # when we should be linking with a yet-to-be-installed one
12032 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12033 test "$hardcode_minus_L_CXX" != no; then
12034 # Linking always hardcodes the temporary library directory.
12035 hardcode_action_CXX=relink
12036 else
12037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12038 hardcode_action_CXX=immediate
12040 else
12041 # We cannot hardcode anything, or else we can only hardcode existing
12042 # directories.
12043 hardcode_action_CXX=unsupported
12045 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12046 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12048 if test "$hardcode_action_CXX" = relink; then
12049 # Fast installation is not supported
12050 enable_fast_install=no
12051 elif test "$shlibpath_overrides_runpath" = yes ||
12052 test "$enable_shared" = no; then
12053 # Fast installation is not necessary
12054 enable_fast_install=needless
12057 striplib=
12058 old_striplib=
12059 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12060 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12061 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12062 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12063 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12064 { echo "$as_me:$LINENO: result: yes" >&5
12065 echo "${ECHO_T}yes" >&6; }
12066 else
12067 # FIXME - insert some real tests, host_os isn't really good enough
12068 case $host_os in
12069 darwin*)
12070 if test -n "$STRIP" ; then
12071 striplib="$STRIP -x"
12072 { echo "$as_me:$LINENO: result: yes" >&5
12073 echo "${ECHO_T}yes" >&6; }
12074 else
12075 { echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6; }
12080 { echo "$as_me:$LINENO: result: no" >&5
12081 echo "${ECHO_T}no" >&6; }
12083 esac
12086 if test "x$enable_dlopen" != xyes; then
12087 enable_dlopen=unknown
12088 enable_dlopen_self=unknown
12089 enable_dlopen_self_static=unknown
12090 else
12091 lt_cv_dlopen=no
12092 lt_cv_dlopen_libs=
12094 case $host_os in
12095 beos*)
12096 lt_cv_dlopen="load_add_on"
12097 lt_cv_dlopen_libs=
12098 lt_cv_dlopen_self=yes
12101 mingw* | pw32*)
12102 lt_cv_dlopen="LoadLibrary"
12103 lt_cv_dlopen_libs=
12106 cygwin*)
12107 lt_cv_dlopen="dlopen"
12108 lt_cv_dlopen_libs=
12111 darwin*)
12112 # if libdl is installed we need to link against it
12113 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12114 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 else
12118 ac_check_lib_save_LIBS=$LIBS
12119 LIBS="-ldl $LIBS"
12120 cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h. */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12127 /* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
12130 #ifdef __cplusplus
12131 extern "C"
12132 #endif
12133 char dlopen ();
12135 main ()
12137 return dlopen ();
12139 return 0;
12141 _ACEOF
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (ac_try="$ac_link"
12144 case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147 esac
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_link") 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } && {
12156 test -z "$ac_cxx_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest$ac_exeext &&
12159 $as_test_x conftest$ac_exeext; then
12160 ac_cv_lib_dl_dlopen=yes
12161 else
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_lib_dl_dlopen=no
12168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12169 conftest$ac_exeext conftest.$ac_ext
12170 LIBS=$ac_check_lib_save_LIBS
12172 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12173 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12174 if test $ac_cv_lib_dl_dlopen = yes; then
12175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12176 else
12178 lt_cv_dlopen="dyld"
12179 lt_cv_dlopen_libs=
12180 lt_cv_dlopen_self=yes
12187 { echo "$as_me:$LINENO: checking for shl_load" >&5
12188 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12189 if test "${ac_cv_func_shl_load+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h. */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12200 #define shl_load innocuous_shl_load
12202 /* System header to define __stub macros and hopefully few prototypes,
12203 which can conflict with char shl_load (); below.
12204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12205 <limits.h> exists even on freestanding compilers. */
12207 #ifdef __STDC__
12208 # include <limits.h>
12209 #else
12210 # include <assert.h>
12211 #endif
12213 #undef shl_load
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12218 #ifdef __cplusplus
12219 extern "C"
12220 #endif
12221 char shl_load ();
12222 /* The GNU C library defines this for functions which it implements
12223 to always fail with ENOSYS. Some functions are actually named
12224 something starting with __ and the normal name is an alias. */
12225 #if defined __stub_shl_load || defined __stub___shl_load
12226 choke me
12227 #endif
12230 main ()
12232 return shl_load ();
12234 return 0;
12236 _ACEOF
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242 esac
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_cxx_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest$ac_exeext &&
12254 $as_test_x conftest$ac_exeext; then
12255 ac_cv_func_shl_load=yes
12256 else
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_func_shl_load=no
12263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12264 conftest$ac_exeext conftest.$ac_ext
12266 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12267 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12268 if test $ac_cv_func_shl_load = yes; then
12269 lt_cv_dlopen="shl_load"
12270 else
12271 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12272 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12273 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-ldld $LIBS"
12278 cat >conftest.$ac_ext <<_ACEOF
12279 /* confdefs.h. */
12280 _ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any GCC internal prototype to avoid an error.
12286 Use char because int might match the return type of a GCC
12287 builtin and then its argument prototype would still apply. */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 char shl_load ();
12293 main ()
12295 return shl_load ();
12297 return 0;
12299 _ACEOF
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (ac_try="$ac_link"
12302 case "(($ac_try" in
12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12304 *) ac_try_echo=$ac_try;;
12305 esac
12306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12307 (eval "$ac_link") 2>conftest.er1
12308 ac_status=$?
12309 grep -v '^ *+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); } && {
12314 test -z "$ac_cxx_werror_flag" ||
12315 test ! -s conftest.err
12316 } && test -s conftest$ac_exeext &&
12317 $as_test_x conftest$ac_exeext; then
12318 ac_cv_lib_dld_shl_load=yes
12319 else
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_cv_lib_dld_shl_load=no
12326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12327 conftest$ac_exeext conftest.$ac_ext
12328 LIBS=$ac_check_lib_save_LIBS
12330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12331 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12332 if test $ac_cv_lib_dld_shl_load = yes; then
12333 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12334 else
12335 { echo "$as_me:$LINENO: checking for dlopen" >&5
12336 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12337 if test "${ac_cv_func_dlopen+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define dlopen innocuous_dlopen
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char dlopen (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12355 #ifdef __STDC__
12356 # include <limits.h>
12357 #else
12358 # include <assert.h>
12359 #endif
12361 #undef dlopen
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 char dlopen ();
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_dlopen || defined __stub___dlopen
12374 choke me
12375 #endif
12378 main ()
12380 return dlopen ();
12382 return 0;
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392 (eval "$ac_link") 2>conftest.er1
12393 ac_status=$?
12394 grep -v '^ *+' conftest.er1 >conftest.err
12395 rm -f conftest.er1
12396 cat conftest.err >&5
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); } && {
12399 test -z "$ac_cxx_werror_flag" ||
12400 test ! -s conftest.err
12401 } && test -s conftest$ac_exeext &&
12402 $as_test_x conftest$ac_exeext; then
12403 ac_cv_func_dlopen=yes
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12408 ac_cv_func_dlopen=no
12411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12412 conftest$ac_exeext conftest.$ac_ext
12414 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12415 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12416 if test $ac_cv_func_dlopen = yes; then
12417 lt_cv_dlopen="dlopen"
12418 else
12419 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12420 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12421 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424 ac_check_lib_save_LIBS=$LIBS
12425 LIBS="-ldl $LIBS"
12426 cat >conftest.$ac_ext <<_ACEOF
12427 /* confdefs.h. */
12428 _ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char dlopen ();
12441 main ()
12443 return dlopen ();
12445 return 0;
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (ac_try="$ac_link"
12450 case "(($ac_try" in
12451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12452 *) ac_try_echo=$ac_try;;
12453 esac
12454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12455 (eval "$ac_link") 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && {
12462 test -z "$ac_cxx_werror_flag" ||
12463 test ! -s conftest.err
12464 } && test -s conftest$ac_exeext &&
12465 $as_test_x conftest$ac_exeext; then
12466 ac_cv_lib_dl_dlopen=yes
12467 else
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12471 ac_cv_lib_dl_dlopen=no
12474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12475 conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12479 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12480 if test $ac_cv_lib_dl_dlopen = yes; then
12481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12482 else
12483 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12484 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12485 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 ac_check_lib_save_LIBS=$LIBS
12489 LIBS="-lsvld $LIBS"
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12497 /* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12500 #ifdef __cplusplus
12501 extern "C"
12502 #endif
12503 char dlopen ();
12505 main ()
12507 return dlopen ();
12509 return 0;
12511 _ACEOF
12512 rm -f conftest.$ac_objext conftest$ac_exeext
12513 if { (ac_try="$ac_link"
12514 case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_link") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_cxx_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest$ac_exeext &&
12529 $as_test_x conftest$ac_exeext; then
12530 ac_cv_lib_svld_dlopen=yes
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_cv_lib_svld_dlopen=no
12538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12539 conftest$ac_exeext conftest.$ac_ext
12540 LIBS=$ac_check_lib_save_LIBS
12542 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12543 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12544 if test $ac_cv_lib_svld_dlopen = yes; then
12545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12546 else
12547 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12548 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12549 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552 ac_check_lib_save_LIBS=$LIBS
12553 LIBS="-ldld $LIBS"
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12561 /* Override any GCC internal prototype to avoid an error.
12562 Use char because int might match the return type of a GCC
12563 builtin and then its argument prototype would still apply. */
12564 #ifdef __cplusplus
12565 extern "C"
12566 #endif
12567 char dld_link ();
12569 main ()
12571 return dld_link ();
12573 return 0;
12575 _ACEOF
12576 rm -f conftest.$ac_objext conftest$ac_exeext
12577 if { (ac_try="$ac_link"
12578 case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_link") 2>conftest.er1
12584 ac_status=$?
12585 grep -v '^ *+' conftest.er1 >conftest.err
12586 rm -f conftest.er1
12587 cat conftest.err >&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); } && {
12590 test -z "$ac_cxx_werror_flag" ||
12591 test ! -s conftest.err
12592 } && test -s conftest$ac_exeext &&
12593 $as_test_x conftest$ac_exeext; then
12594 ac_cv_lib_dld_dld_link=yes
12595 else
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ac_cv_lib_dld_dld_link=no
12602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12603 conftest$ac_exeext conftest.$ac_ext
12604 LIBS=$ac_check_lib_save_LIBS
12606 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12607 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12608 if test $ac_cv_lib_dld_dld_link = yes; then
12609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12628 esac
12630 if test "x$lt_cv_dlopen" != xno; then
12631 enable_dlopen=yes
12632 else
12633 enable_dlopen=no
12636 case $lt_cv_dlopen in
12637 dlopen)
12638 save_CPPFLAGS="$CPPFLAGS"
12639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12641 save_LDFLAGS="$LDFLAGS"
12642 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12644 save_LIBS="$LIBS"
12645 LIBS="$lt_cv_dlopen_libs $LIBS"
12647 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12648 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12649 if test "${lt_cv_dlopen_self+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652 if test "$cross_compiling" = yes; then :
12653 lt_cv_dlopen_self=cross
12654 else
12655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12656 lt_status=$lt_dlunknown
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12658 "configure"
12659 #include "confdefs.h"
12661 #if HAVE_DLFCN_H
12662 #include <dlfcn.h>
12663 #endif
12665 #include <stdio.h>
12667 #ifdef RTLD_GLOBAL
12668 # define LT_DLGLOBAL RTLD_GLOBAL
12669 #else
12670 # ifdef DL_GLOBAL
12671 # define LT_DLGLOBAL DL_GLOBAL
12672 # else
12673 # define LT_DLGLOBAL 0
12674 # endif
12675 #endif
12677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12678 find out it does not work in some platform. */
12679 #ifndef LT_DLLAZY_OR_NOW
12680 # ifdef RTLD_LAZY
12681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12682 # else
12683 # ifdef DL_LAZY
12684 # define LT_DLLAZY_OR_NOW DL_LAZY
12685 # else
12686 # ifdef RTLD_NOW
12687 # define LT_DLLAZY_OR_NOW RTLD_NOW
12688 # else
12689 # ifdef DL_NOW
12690 # define LT_DLLAZY_OR_NOW DL_NOW
12691 # else
12692 # define LT_DLLAZY_OR_NOW 0
12693 # endif
12694 # endif
12695 # endif
12696 # endif
12697 #endif
12699 #ifdef __cplusplus
12700 extern "C" void exit (int);
12701 #endif
12703 void fnord() { int i=42;}
12704 int main ()
12706 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12707 int status = $lt_dlunknown;
12709 if (self)
12711 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12712 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12713 /* dlclose (self); */
12716 exit (status);
12719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12720 (eval $ac_link) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12724 (./conftest; exit; ) 2>/dev/null
12725 lt_status=$?
12726 case x$lt_status in
12727 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12728 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12729 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12730 esac
12731 else :
12732 # compilation failed
12733 lt_cv_dlopen_self=no
12736 rm -fr conftest*
12740 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12741 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12743 if test "x$lt_cv_dlopen_self" = xyes; then
12744 LDFLAGS="$LDFLAGS $link_static_flag"
12745 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12746 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12747 if test "${lt_cv_dlopen_self_static+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750 if test "$cross_compiling" = yes; then :
12751 lt_cv_dlopen_self_static=cross
12752 else
12753 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12754 lt_status=$lt_dlunknown
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12756 "configure"
12757 #include "confdefs.h"
12759 #if HAVE_DLFCN_H
12760 #include <dlfcn.h>
12761 #endif
12763 #include <stdio.h>
12765 #ifdef RTLD_GLOBAL
12766 # define LT_DLGLOBAL RTLD_GLOBAL
12767 #else
12768 # ifdef DL_GLOBAL
12769 # define LT_DLGLOBAL DL_GLOBAL
12770 # else
12771 # define LT_DLGLOBAL 0
12772 # endif
12773 #endif
12775 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12776 find out it does not work in some platform. */
12777 #ifndef LT_DLLAZY_OR_NOW
12778 # ifdef RTLD_LAZY
12779 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12780 # else
12781 # ifdef DL_LAZY
12782 # define LT_DLLAZY_OR_NOW DL_LAZY
12783 # else
12784 # ifdef RTLD_NOW
12785 # define LT_DLLAZY_OR_NOW RTLD_NOW
12786 # else
12787 # ifdef DL_NOW
12788 # define LT_DLLAZY_OR_NOW DL_NOW
12789 # else
12790 # define LT_DLLAZY_OR_NOW 0
12791 # endif
12792 # endif
12793 # endif
12794 # endif
12795 #endif
12797 #ifdef __cplusplus
12798 extern "C" void exit (int);
12799 #endif
12801 void fnord() { int i=42;}
12802 int main ()
12804 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12805 int status = $lt_dlunknown;
12807 if (self)
12809 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12810 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12811 /* dlclose (self); */
12814 exit (status);
12817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12818 (eval $ac_link) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12822 (./conftest; exit; ) 2>/dev/null
12823 lt_status=$?
12824 case x$lt_status in
12825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12827 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12828 esac
12829 else :
12830 # compilation failed
12831 lt_cv_dlopen_self_static=no
12834 rm -fr conftest*
12838 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12839 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12842 CPPFLAGS="$save_CPPFLAGS"
12843 LDFLAGS="$save_LDFLAGS"
12844 LIBS="$save_LIBS"
12846 esac
12848 case $lt_cv_dlopen_self in
12849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12850 *) enable_dlopen_self=unknown ;;
12851 esac
12853 case $lt_cv_dlopen_self_static in
12854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12855 *) enable_dlopen_self_static=unknown ;;
12856 esac
12860 # The else clause should only fire when bootstrapping the
12861 # libtool distribution, otherwise you forgot to ship ltmain.sh
12862 # with your package, and you will get complaints that there are
12863 # no rules to generate ltmain.sh.
12864 if test -f "$ltmain"; then
12865 # See if we are running on zsh, and set the options which allow our commands through
12866 # without removal of \ escapes.
12867 if test -n "${ZSH_VERSION+set}" ; then
12868 setopt NO_GLOB_SUBST
12870 # Now quote all the things that may contain metacharacters while being
12871 # careful not to overquote the AC_SUBSTed values. We take copies of the
12872 # variables and quote the copies for generation of the libtool script.
12873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12874 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12875 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12876 deplibs_check_method reload_flag reload_cmds need_locks \
12877 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12878 lt_cv_sys_global_symbol_to_c_name_address \
12879 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12880 old_postinstall_cmds old_postuninstall_cmds \
12881 compiler_CXX \
12882 CC_CXX \
12883 LD_CXX \
12884 lt_prog_compiler_wl_CXX \
12885 lt_prog_compiler_pic_CXX \
12886 lt_prog_compiler_static_CXX \
12887 lt_prog_compiler_no_builtin_flag_CXX \
12888 export_dynamic_flag_spec_CXX \
12889 thread_safe_flag_spec_CXX \
12890 whole_archive_flag_spec_CXX \
12891 enable_shared_with_static_runtimes_CXX \
12892 old_archive_cmds_CXX \
12893 old_archive_from_new_cmds_CXX \
12894 predep_objects_CXX \
12895 postdep_objects_CXX \
12896 predeps_CXX \
12897 postdeps_CXX \
12898 compiler_lib_search_path_CXX \
12899 archive_cmds_CXX \
12900 archive_expsym_cmds_CXX \
12901 postinstall_cmds_CXX \
12902 postuninstall_cmds_CXX \
12903 old_archive_from_expsyms_cmds_CXX \
12904 allow_undefined_flag_CXX \
12905 no_undefined_flag_CXX \
12906 export_symbols_cmds_CXX \
12907 hardcode_libdir_flag_spec_CXX \
12908 hardcode_libdir_flag_spec_ld_CXX \
12909 hardcode_libdir_separator_CXX \
12910 hardcode_automatic_CXX \
12911 module_cmds_CXX \
12912 module_expsym_cmds_CXX \
12913 lt_cv_prog_compiler_c_o_CXX \
12914 exclude_expsyms_CXX \
12915 include_expsyms_CXX; do
12917 case $var in
12918 old_archive_cmds_CXX | \
12919 old_archive_from_new_cmds_CXX | \
12920 archive_cmds_CXX | \
12921 archive_expsym_cmds_CXX | \
12922 module_cmds_CXX | \
12923 module_expsym_cmds_CXX | \
12924 old_archive_from_expsyms_cmds_CXX | \
12925 export_symbols_cmds_CXX | \
12926 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12927 postinstall_cmds | postuninstall_cmds | \
12928 old_postinstall_cmds | old_postuninstall_cmds | \
12929 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12930 # Double-quote double-evaled strings.
12931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12936 esac
12937 done
12939 case $lt_echo in
12940 *'\$0 --fallback-echo"')
12941 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12943 esac
12945 cfgfile="$ofile"
12947 cat <<__EOF__ >> "$cfgfile"
12948 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12950 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12952 # Shell to use when invoking shell scripts.
12953 SHELL=$lt_SHELL
12955 # Whether or not to build shared libraries.
12956 build_libtool_libs=$enable_shared
12958 # Whether or not to build static libraries.
12959 build_old_libs=$enable_static
12961 # Whether or not to add -lc for building shared libraries.
12962 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12964 # Whether or not to disallow shared libs when runtime libs are static
12965 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12967 # Whether or not to optimize for fast installation.
12968 fast_install=$enable_fast_install
12970 # The host system.
12971 host_alias=$host_alias
12972 host=$host
12974 # An echo program that does not interpret backslashes.
12975 echo=$lt_echo
12977 # The archiver.
12978 AR=$lt_AR
12979 AR_FLAGS=$lt_AR_FLAGS
12981 # A C compiler.
12982 LTCC=$lt_LTCC
12984 # A language-specific compiler.
12985 CC=$lt_compiler_CXX
12987 # Is the compiler the GNU C compiler?
12988 with_gcc=$GCC_CXX
12990 # An ERE matcher.
12991 EGREP=$lt_EGREP
12993 # The linker used to build libraries.
12994 LD=$lt_LD_CXX
12996 # Whether we need hard or soft links.
12997 LN_S=$lt_LN_S
12999 # A BSD-compatible nm program.
13000 NM=$lt_NM
13002 # A symbol stripping program
13003 STRIP="$STRIP"
13005 # Used to examine libraries when file_magic_cmd begins "file"
13006 MAGIC_CMD=$MAGIC_CMD
13008 # Used on cygwin: DLL creation program.
13009 DLLTOOL="$DLLTOOL"
13011 # Used on cygwin: object dumper.
13012 OBJDUMP="$OBJDUMP"
13014 # Used on cygwin: assembler.
13015 AS="$AS"
13017 # The name of the directory that contains temporary libtool files.
13018 objdir=$objdir
13020 # How to create reloadable object files.
13021 reload_flag=$lt_reload_flag
13022 reload_cmds=$lt_reload_cmds
13024 # How to pass a linker flag through the compiler.
13025 wl=$lt_lt_prog_compiler_wl_CXX
13027 # Object file suffix (normally "o").
13028 objext="$ac_objext"
13030 # Old archive suffix (normally "a").
13031 libext="$libext"
13033 # Shared library suffix (normally ".so").
13034 shrext='$shrext'
13036 # Executable file suffix (normally "").
13037 exeext="$exeext"
13039 # Additional compiler flags for building library objects.
13040 pic_flag=$lt_lt_prog_compiler_pic_CXX
13041 pic_mode=$pic_mode
13043 # What is the maximum length of a command?
13044 max_cmd_len=$lt_cv_sys_max_cmd_len
13046 # Does compiler simultaneously support -c and -o options?
13047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13049 # Must we lock files when doing compilation ?
13050 need_locks=$lt_need_locks
13052 # Do we need the lib prefix for modules?
13053 need_lib_prefix=$need_lib_prefix
13055 # Do we need a version for libraries?
13056 need_version=$need_version
13058 # Whether dlopen is supported.
13059 dlopen_support=$enable_dlopen
13061 # Whether dlopen of programs is supported.
13062 dlopen_self=$enable_dlopen_self
13064 # Whether dlopen of statically linked programs is supported.
13065 dlopen_self_static=$enable_dlopen_self_static
13067 # Compiler flag to prevent dynamic linking.
13068 link_static_flag=$lt_lt_prog_compiler_static_CXX
13070 # Compiler flag to turn off builtin functions.
13071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13073 # Compiler flag to allow reflexive dlopens.
13074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13076 # Compiler flag to generate shared objects directly from archives.
13077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13079 # Compiler flag to generate thread-safe objects.
13080 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13082 # Library versioning type.
13083 version_type=$version_type
13085 # Format of library name prefix.
13086 libname_spec=$lt_libname_spec
13088 # List of archive names. First name is the real one, the rest are links.
13089 # The last name is the one that the linker finds with -lNAME.
13090 library_names_spec=$lt_library_names_spec
13092 # The coded name of the library, if different from the real name.
13093 soname_spec=$lt_soname_spec
13095 # Commands used to build and install an old-style archive.
13096 RANLIB=$lt_RANLIB
13097 old_archive_cmds=$lt_old_archive_cmds_CXX
13098 old_postinstall_cmds=$lt_old_postinstall_cmds
13099 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13101 # Create an old-style archive from a shared archive.
13102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13104 # Create a temporary old-style archive to link instead of a shared archive.
13105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13107 # Commands used to build and install a shared archive.
13108 archive_cmds=$lt_archive_cmds_CXX
13109 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13110 postinstall_cmds=$lt_postinstall_cmds
13111 postuninstall_cmds=$lt_postuninstall_cmds
13113 # Commands used to build a loadable module (assumed same as above if empty)
13114 module_cmds=$lt_module_cmds_CXX
13115 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13117 # Commands to strip libraries.
13118 old_striplib=$lt_old_striplib
13119 striplib=$lt_striplib
13121 # Dependencies to place before the objects being linked to create a
13122 # shared library.
13123 predep_objects=$lt_predep_objects_CXX
13125 # Dependencies to place after the objects being linked to create a
13126 # shared library.
13127 postdep_objects=$lt_postdep_objects_CXX
13129 # Dependencies to place before the objects being linked to create a
13130 # shared library.
13131 predeps=$lt_predeps_CXX
13133 # Dependencies to place after the objects being linked to create a
13134 # shared library.
13135 postdeps=$lt_postdeps_CXX
13137 # The library search path used internally by the compiler when linking
13138 # a shared library.
13139 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13141 # Method to check whether dependent libraries are shared objects.
13142 deplibs_check_method=$lt_deplibs_check_method
13144 # Command to use when deplibs_check_method == file_magic.
13145 file_magic_cmd=$lt_file_magic_cmd
13147 # Flag that allows shared libraries with undefined symbols to be built.
13148 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13150 # Flag that forces no undefined symbols.
13151 no_undefined_flag=$lt_no_undefined_flag_CXX
13153 # Commands used to finish a libtool library installation in a directory.
13154 finish_cmds=$lt_finish_cmds
13156 # Same as above, but a single script fragment to be evaled but not shown.
13157 finish_eval=$lt_finish_eval
13159 # Take the output of nm and produce a listing of raw symbols and C names.
13160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13162 # Transform the output of nm in a proper C declaration
13163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13165 # Transform the output of nm in a C name address pair
13166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13168 # This is the shared library runtime path variable.
13169 runpath_var=$runpath_var
13171 # This is the shared library path variable.
13172 shlibpath_var=$shlibpath_var
13174 # Is shlibpath searched before the hard-coded library search path?
13175 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13177 # How to hardcode a shared library path into an executable.
13178 hardcode_action=$hardcode_action_CXX
13180 # Whether we should hardcode library paths into libraries.
13181 hardcode_into_libs=$hardcode_into_libs
13183 # Flag to hardcode \$libdir into a binary during linking.
13184 # This must work even if \$libdir does not exist.
13185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13187 # If ld is used when linking, flag to hardcode \$libdir into
13188 # a binary during linking. This must work even if \$libdir does
13189 # not exist.
13190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13192 # Whether we need a single -rpath flag with a separated argument.
13193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13195 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13196 # resulting binary.
13197 hardcode_direct=$hardcode_direct_CXX
13199 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13200 # resulting binary.
13201 hardcode_minus_L=$hardcode_minus_L_CXX
13203 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13204 # the resulting binary.
13205 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13207 # Set to yes if building a shared library automatically hardcodes DIR into the library
13208 # and all subsequent libraries and executables linked against it.
13209 hardcode_automatic=$hardcode_automatic_CXX
13211 # Variables whose values should be saved in libtool wrapper scripts and
13212 # restored at relink time.
13213 variables_saved_for_relink="$variables_saved_for_relink"
13215 # Whether libtool must link a program against all its dependency libraries.
13216 link_all_deplibs=$link_all_deplibs_CXX
13218 # Compile-time system search path for libraries
13219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13221 # Run-time system search path for libraries
13222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13224 # Fix the shell variable \$srcfile for the compiler.
13225 fix_srcfile_path="$fix_srcfile_path_CXX"
13227 # Set to yes if exported symbols are required.
13228 always_export_symbols=$always_export_symbols_CXX
13230 # The commands to list exported symbols.
13231 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13233 # The commands to extract the exported symbol list from a shared archive.
13234 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13236 # Symbols that should not be listed in the preloaded symbols.
13237 exclude_expsyms=$lt_exclude_expsyms_CXX
13239 # Symbols that must always be exported.
13240 include_expsyms=$lt_include_expsyms_CXX
13242 # ### END LIBTOOL TAG CONFIG: $tagname
13244 __EOF__
13247 else
13248 # If there is no Makefile yet, we rely on a make rule to execute
13249 # `config.status --recheck' to rerun these tests and create the
13250 # libtool script then.
13251 test -f Makefile && make "$ltmain"
13255 ac_ext=c
13256 ac_cpp='$CPP $CPPFLAGS'
13257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13261 CC=$lt_save_CC
13262 LDCXX=$LD
13263 LD=$lt_save_LD
13264 GCC=$lt_save_GCC
13265 with_gnu_ldcxx=$with_gnu_ld
13266 with_gnu_ld=$lt_save_with_gnu_ld
13267 lt_cv_path_LDCXX=$lt_cv_path_LD
13268 lt_cv_path_LD=$lt_save_path_LD
13269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13272 else
13273 tagname=""
13277 F77)
13278 if test -n "$F77" && test "X$F77" != "Xno"; then
13280 ac_ext=f
13281 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13282 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13286 archive_cmds_need_lc_F77=no
13287 allow_undefined_flag_F77=
13288 always_export_symbols_F77=no
13289 archive_expsym_cmds_F77=
13290 export_dynamic_flag_spec_F77=
13291 hardcode_direct_F77=no
13292 hardcode_libdir_flag_spec_F77=
13293 hardcode_libdir_flag_spec_ld_F77=
13294 hardcode_libdir_separator_F77=
13295 hardcode_minus_L_F77=no
13296 hardcode_automatic_F77=no
13297 module_cmds_F77=
13298 module_expsym_cmds_F77=
13299 link_all_deplibs_F77=unknown
13300 old_archive_cmds_F77=$old_archive_cmds
13301 no_undefined_flag_F77=
13302 whole_archive_flag_spec_F77=
13303 enable_shared_with_static_runtimes_F77=no
13305 # Source file extension for f77 test sources.
13306 ac_ext=f
13308 # Object file extension for compiled f77 test sources.
13309 objext=o
13310 objext_F77=$objext
13312 # Code to be used in simple compile tests
13313 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13315 # Code to be used in simple link tests
13316 lt_simple_link_test_code=" program t\n end\n"
13318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13320 # If no C compiler was specified, use CC.
13321 LTCC=${LTCC-"$CC"}
13323 # Allow CC to be a program name with arguments.
13324 compiler=$CC
13327 # Allow CC to be a program name with arguments.
13328 lt_save_CC="$CC"
13329 CC=${F77-"f77"}
13330 compiler=$CC
13331 compiler_F77=$CC
13332 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13334 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13335 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13336 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13337 echo "${ECHO_T}$can_build_shared" >&6; }
13339 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13340 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13341 test "$can_build_shared" = "no" && enable_shared=no
13343 # On AIX, shared libraries and static libraries use the same namespace, and
13344 # are all built from PIC.
13345 case "$host_os" in
13346 aix3*)
13347 test "$enable_shared" = yes && enable_static=no
13348 if test -n "$RANLIB"; then
13349 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13350 postinstall_cmds='$RANLIB $lib'
13353 aix4*)
13354 test "$enable_shared" = yes && enable_static=no
13356 esac
13357 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13358 echo "${ECHO_T}$enable_shared" >&6; }
13360 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13361 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13362 # Make sure either enable_shared or enable_static is yes.
13363 test "$enable_shared" = yes || enable_static=yes
13364 { echo "$as_me:$LINENO: result: $enable_static" >&5
13365 echo "${ECHO_T}$enable_static" >&6; }
13367 test "$ld_shlibs_F77" = no && can_build_shared=no
13369 GCC_F77="$G77"
13370 LD_F77="$LD"
13372 lt_prog_compiler_wl_F77=
13373 lt_prog_compiler_pic_F77=
13374 lt_prog_compiler_static_F77=
13376 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13377 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13379 if test "$GCC" = yes; then
13380 lt_prog_compiler_wl_F77='-Wl,'
13381 lt_prog_compiler_static_F77='-static'
13383 case $host_os in
13384 aix*)
13385 # All AIX code is PIC.
13386 if test "$host_cpu" = ia64; then
13387 # AIX 5 now supports IA64 processor
13388 lt_prog_compiler_static_F77='-Bstatic'
13392 amigaos*)
13393 # FIXME: we need at least 68020 code to build shared libraries, but
13394 # adding the `-m68020' flag to GCC prevents building anything better,
13395 # like `-m68040'.
13396 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13399 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13400 # PIC is the default for these OSes.
13403 mingw* | pw32* | os2*)
13404 # This hack is so that the source file can tell whether it is being
13405 # built for inclusion in a dll (and should export symbols for example).
13406 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13409 darwin* | rhapsody*)
13410 # PIC is the default on this platform
13411 # Common symbols not allowed in MH_DYLIB files
13412 lt_prog_compiler_pic_F77='-fno-common'
13415 msdosdjgpp*)
13416 # Just because we use GCC doesn't mean we suddenly get shared libraries
13417 # on systems that don't support them.
13418 lt_prog_compiler_can_build_shared_F77=no
13419 enable_shared=no
13422 sysv4*MP*)
13423 if test -d /usr/nec; then
13424 lt_prog_compiler_pic_F77=-Kconform_pic
13428 hpux*)
13429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13430 # not for PA HP-UX.
13431 case "$host_cpu" in
13432 hppa*64*|ia64*)
13433 # +Z the default
13436 lt_prog_compiler_pic_F77='-fPIC'
13438 esac
13442 lt_prog_compiler_pic_F77='-fPIC'
13444 esac
13445 else
13446 # PORTME Check for flag to pass linker flags through the system compiler.
13447 case $host_os in
13448 aix*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 if test "$host_cpu" = ia64; then
13451 # AIX 5 now supports IA64 processor
13452 lt_prog_compiler_static_F77='-Bstatic'
13453 else
13454 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13458 mingw* | pw32* | os2*)
13459 # This hack is so that the source file can tell whether it is being
13460 # built for inclusion in a dll (and should export symbols for example).
13461 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13464 hpux9* | hpux10* | hpux11*)
13465 lt_prog_compiler_wl_F77='-Wl,'
13466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13467 # not for PA HP-UX.
13468 case "$host_cpu" in
13469 hppa*64*|ia64*)
13470 # +Z the default
13473 lt_prog_compiler_pic_F77='+Z'
13475 esac
13476 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13477 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13480 irix5* | irix6* | nonstopux*)
13481 lt_prog_compiler_wl_F77='-Wl,'
13482 # PIC (with -KPIC) is the default.
13483 lt_prog_compiler_static_F77='-non_shared'
13486 newsos6)
13487 lt_prog_compiler_pic_F77='-KPIC'
13488 lt_prog_compiler_static_F77='-Bstatic'
13491 linux*)
13492 case $CC in
13493 icc* | ecc*)
13494 lt_prog_compiler_wl_F77='-Wl,'
13495 lt_prog_compiler_pic_F77='-KPIC'
13496 lt_prog_compiler_static_F77='-static'
13498 ccc*)
13499 lt_prog_compiler_wl_F77='-Wl,'
13500 # All Alpha code is PIC.
13501 lt_prog_compiler_static_F77='-non_shared'
13503 esac
13506 osf3* | osf4* | osf5*)
13507 lt_prog_compiler_wl_F77='-Wl,'
13508 # All OSF/1 code is PIC.
13509 lt_prog_compiler_static_F77='-non_shared'
13512 sco3.2v5*)
13513 lt_prog_compiler_pic_F77='-Kpic'
13514 lt_prog_compiler_static_F77='-dn'
13517 solaris*)
13518 lt_prog_compiler_wl_F77='-Wl,'
13519 lt_prog_compiler_pic_F77='-KPIC'
13520 lt_prog_compiler_static_F77='-Bstatic'
13523 sunos4*)
13524 lt_prog_compiler_wl_F77='-Qoption ld '
13525 lt_prog_compiler_pic_F77='-PIC'
13526 lt_prog_compiler_static_F77='-Bstatic'
13529 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13530 lt_prog_compiler_wl_F77='-Wl,'
13531 lt_prog_compiler_pic_F77='-KPIC'
13532 lt_prog_compiler_static_F77='-Bstatic'
13535 sysv4*MP*)
13536 if test -d /usr/nec ;then
13537 lt_prog_compiler_pic_F77='-Kconform_pic'
13538 lt_prog_compiler_static_F77='-Bstatic'
13542 uts4*)
13543 lt_prog_compiler_pic_F77='-pic'
13544 lt_prog_compiler_static_F77='-Bstatic'
13548 lt_prog_compiler_can_build_shared_F77=no
13550 esac
13553 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13554 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13557 # Check to make sure the PIC flag actually works.
13559 if test -n "$lt_prog_compiler_pic_F77"; then
13561 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13562 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13563 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566 lt_prog_compiler_pic_works_F77=no
13567 ac_outfile=conftest.$ac_objext
13568 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13569 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13570 # Insert the option either (1) after the last *FLAGS variable, or
13571 # (2) before a word containing "conftest.", or (3) at the end.
13572 # Note that $ac_compile itself does not contain backslashes and begins
13573 # with a dollar sign (not a hyphen), so the echo should work correctly.
13574 # The option is referenced via a variable to avoid confusing sed.
13575 lt_compile=`echo "$ac_compile" | $SED \
13576 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13578 -e 's:$: $lt_compiler_flag:'`
13579 (eval echo "\"\$as_me:13579: $lt_compile\"" >&5)
13580 (eval "$lt_compile" 2>conftest.err)
13581 ac_status=$?
13582 cat conftest.err >&5
13583 echo "$as_me:13583: \$? = $ac_status" >&5
13584 if (exit $ac_status) && test -s "$ac_outfile"; then
13585 # The compiler can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test ! -s conftest.err; then
13588 lt_prog_compiler_pic_works_F77=yes
13591 $rm conftest*
13594 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13595 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13597 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13598 case $lt_prog_compiler_pic_F77 in
13599 "" | " "*) ;;
13600 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13601 esac
13602 else
13603 lt_prog_compiler_pic_F77=
13604 lt_prog_compiler_can_build_shared_F77=no
13608 case "$host_os" in
13609 # For platforms which do not support PIC, -DPIC is meaningless:
13610 *djgpp*)
13611 lt_prog_compiler_pic_F77=
13614 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13616 esac
13618 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13619 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13620 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 lt_cv_prog_compiler_c_o_F77=no
13624 $rm -r conftest 2>/dev/null
13625 mkdir conftest
13626 cd conftest
13627 mkdir out
13628 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13630 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13631 # that will create temporary files in the current directory regardless of
13632 # the output directory. Thus, making CWD read-only will cause this test
13633 # to fail, enabling locking or at least warning the user not to do parallel
13634 # builds.
13635 chmod -w .
13637 lt_compiler_flag="-o out/conftest2.$ac_objext"
13638 # Insert the option either (1) after the last *FLAGS variable, or
13639 # (2) before a word containing "conftest.", or (3) at the end.
13640 # Note that $ac_compile itself does not contain backslashes and begins
13641 # with a dollar sign (not a hyphen), so the echo should work correctly.
13642 lt_compile=`echo "$ac_compile" | $SED \
13643 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13645 -e 's:$: $lt_compiler_flag:'`
13646 (eval echo "\"\$as_me:13646: $lt_compile\"" >&5)
13647 (eval "$lt_compile" 2>out/conftest.err)
13648 ac_status=$?
13649 cat out/conftest.err >&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13652 then
13653 # The compiler can only warn and ignore the option if not recognized
13654 # So say no if there are warnings
13655 if test ! -s out/conftest.err; then
13656 lt_cv_prog_compiler_c_o_F77=yes
13659 chmod u+w .
13660 $rm conftest*
13661 # SGI C++ compiler will create directory out/ii_files/ for
13662 # template instantiation
13663 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13664 $rm out/* && rmdir out
13665 cd ..
13666 rmdir conftest
13667 $rm conftest*
13670 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13671 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13674 hard_links="nottested"
13675 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13676 # do not overwrite the value of need_locks provided by the user
13677 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13678 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13679 hard_links=yes
13680 $rm conftest*
13681 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13682 touch conftest.a
13683 ln conftest.a conftest.b 2>&5 || hard_links=no
13684 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13685 { echo "$as_me:$LINENO: result: $hard_links" >&5
13686 echo "${ECHO_T}$hard_links" >&6; }
13687 if test "$hard_links" = no; then
13688 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13689 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13690 need_locks=warn
13692 else
13693 need_locks=no
13696 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13697 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13699 runpath_var=
13700 allow_undefined_flag_F77=
13701 enable_shared_with_static_runtimes_F77=no
13702 archive_cmds_F77=
13703 archive_expsym_cmds_F77=
13704 old_archive_From_new_cmds_F77=
13705 old_archive_from_expsyms_cmds_F77=
13706 export_dynamic_flag_spec_F77=
13707 whole_archive_flag_spec_F77=
13708 thread_safe_flag_spec_F77=
13709 hardcode_libdir_flag_spec_F77=
13710 hardcode_libdir_flag_spec_ld_F77=
13711 hardcode_libdir_separator_F77=
13712 hardcode_direct_F77=no
13713 hardcode_minus_L_F77=no
13714 hardcode_shlibpath_var_F77=unsupported
13715 link_all_deplibs_F77=unknown
13716 hardcode_automatic_F77=no
13717 module_cmds_F77=
13718 module_expsym_cmds_F77=
13719 always_export_symbols_F77=no
13720 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13721 # include_expsyms should be a list of space-separated symbols to be *always*
13722 # included in the symbol list
13723 include_expsyms_F77=
13724 # exclude_expsyms can be an extended regexp of symbols to exclude
13725 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13726 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13727 # as well as any symbol that contains `d'.
13728 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13729 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13730 # platforms (ab)use it in PIC code, but their linkers get confused if
13731 # the symbol is explicitly referenced. Since portable code cannot
13732 # rely on this symbol name, it's probably fine to never include it in
13733 # preloaded symbol tables.
13734 extract_expsyms_cmds=
13736 case $host_os in
13737 cygwin* | mingw* | pw32*)
13738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13739 # When not using gcc, we currently assume that we are using
13740 # Microsoft Visual C++.
13741 if test "$GCC" != yes; then
13742 with_gnu_ld=no
13745 openbsd*)
13746 with_gnu_ld=no
13748 esac
13750 ld_shlibs_F77=yes
13751 if test "$with_gnu_ld" = yes; then
13752 # If archive_cmds runs LD, not CC, wlarc should be empty
13753 wlarc='${wl}'
13755 # See if GNU ld supports shared libraries.
13756 case $host_os in
13757 aix3* | aix4* | aix5*)
13758 # On AIX/PPC, the GNU linker is very broken
13759 if test "$host_cpu" != ia64; then
13760 ld_shlibs_F77=no
13761 cat <<EOF 1>&2
13763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13764 *** to be unable to reliably create shared libraries on AIX.
13765 *** Therefore, libtool is disabling shared libraries support. If you
13766 *** really care for shared libraries, you may want to modify your PATH
13767 *** so that a non-GNU linker is found, and then restart.
13773 amigaos*)
13774 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13775 hardcode_libdir_flag_spec_F77='-L$libdir'
13776 hardcode_minus_L_F77=yes
13778 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13779 # that the semantics of dynamic libraries on AmigaOS, at least up
13780 # to version 4, is to share data among multiple programs linked
13781 # with the same dynamic library. Since this doesn't match the
13782 # behavior of shared libraries on other platforms, we can't use
13783 # them.
13784 ld_shlibs_F77=no
13787 beos*)
13788 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13789 allow_undefined_flag_F77=unsupported
13790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13791 # support --undefined. This deserves some investigation. FIXME
13792 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13793 else
13794 ld_shlibs_F77=no
13798 cygwin* | mingw* | pw32*)
13799 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13800 # as there is no search path for DLLs.
13801 hardcode_libdir_flag_spec_F77='-L$libdir'
13802 allow_undefined_flag_F77=unsupported
13803 always_export_symbols_F77=no
13804 enable_shared_with_static_runtimes_F77=yes
13805 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13807 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13808 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13809 # If the export-symbols file already is a .def file (1st line
13810 # is EXPORTS), use it as is; otherwise, prepend...
13811 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13812 cp $export_symbols $output_objdir/$soname.def;
13813 else
13814 echo EXPORTS > $output_objdir/$soname.def;
13815 cat $export_symbols >> $output_objdir/$soname.def;
13817 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13818 else
13819 ld_shlibs=no
13823 netbsd*)
13824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13825 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13826 wlarc=
13827 else
13828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833 solaris* | sysv5*)
13834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13835 ld_shlibs_F77=no
13836 cat <<EOF 1>&2
13838 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13839 *** create shared libraries on Solaris systems. Therefore, libtool
13840 *** is disabling shared libraries support. We urge you to upgrade GNU
13841 *** binutils to release 2.9.1 or newer. Another option is to modify
13842 *** your PATH or compiler configuration so that the native linker is
13843 *** used, and then restart.
13846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13849 else
13850 ld_shlibs_F77=no
13854 sunos4*)
13855 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13856 wlarc=
13857 hardcode_direct_F77=yes
13858 hardcode_shlibpath_var_F77=no
13861 linux*)
13862 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13863 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13864 archive_cmds_F77="$tmp_archive_cmds"
13865 supports_anon_versioning=no
13866 case `$LD -v 2>/dev/null` in
13867 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13868 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13869 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13870 *\ 2.11.*) ;; # other 2.11 versions
13871 *) supports_anon_versioning=yes ;;
13872 esac
13873 if test $supports_anon_versioning = yes; then
13874 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13875 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13876 $echo "local: *; };" >> $output_objdir/$libname.ver~
13877 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13878 else
13879 archive_expsym_cmds_F77="$tmp_archive_cmds"
13881 else
13882 ld_shlibs_F77=no
13887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13888 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13889 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13890 else
13891 ld_shlibs_F77=no
13894 esac
13896 if test "$ld_shlibs_F77" = yes; then
13897 runpath_var=LD_RUN_PATH
13898 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13899 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13900 # ancient GNU ld didn't support --whole-archive et. al.
13901 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13902 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13903 else
13904 whole_archive_flag_spec_F77=
13907 else
13908 # PORTME fill in a description of your system's linker (not GNU ld)
13909 case $host_os in
13910 aix3*)
13911 allow_undefined_flag_F77=unsupported
13912 always_export_symbols_F77=yes
13913 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13914 # Note: this linker hardcodes the directories in LIBPATH if there
13915 # are no directories specified by -L.
13916 hardcode_minus_L_F77=yes
13917 if test "$GCC" = yes && test -z "$link_static_flag"; then
13918 # Neither direct hardcoding nor static linking is supported with a
13919 # broken collect2.
13920 hardcode_direct_F77=unsupported
13924 aix4* | aix5*)
13925 if test "$host_cpu" = ia64; then
13926 # On IA64, the linker does run time linking by default, so we don't
13927 # have to do anything special.
13928 aix_use_runtimelinking=no
13929 exp_sym_flag='-Bexport'
13930 no_entry_flag=""
13931 else
13932 # If we're using GNU nm, then we don't want the "-C" option.
13933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13935 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13936 else
13937 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13939 aix_use_runtimelinking=no
13941 # Test if we are trying to use run time linking or normal
13942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13943 # need to do runtime linking.
13944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13945 for ld_flag in $LDFLAGS; do
13946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13947 aix_use_runtimelinking=yes
13948 break
13950 done
13951 esac
13953 exp_sym_flag='-bexport'
13954 no_entry_flag='-bnoentry'
13957 # When large executables or shared objects are built, AIX ld can
13958 # have problems creating the table of contents. If linking a library
13959 # or program results in "error TOC overflow" add -mminimal-toc to
13960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13963 archive_cmds_F77=''
13964 hardcode_direct_F77=yes
13965 hardcode_libdir_separator_F77=':'
13966 link_all_deplibs_F77=yes
13968 if test "$GCC" = yes; then
13969 case $host_os in aix4.012|aix4.012.*)
13970 # We only want to do this on AIX 4.2 and lower, the check
13971 # below for broken collect2 doesn't work under 4.3+
13972 collect2name=`${CC} -print-prog-name=collect2`
13973 if test -f "$collect2name" && \
13974 strings "$collect2name" | grep resolve_lib_name >/dev/null
13975 then
13976 # We have reworked collect2
13977 hardcode_direct_F77=yes
13978 else
13979 # We have old collect2
13980 hardcode_direct_F77=unsupported
13981 # It fails to find uninstalled libraries when the uninstalled
13982 # path is not listed in the libpath. Setting hardcode_minus_L
13983 # to unsupported forces relinking
13984 hardcode_minus_L_F77=yes
13985 hardcode_libdir_flag_spec_F77='-L$libdir'
13986 hardcode_libdir_separator_F77=
13988 esac
13989 shared_flag='-shared'
13990 else
13991 # not using gcc
13992 if test "$host_cpu" = ia64; then
13993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13994 # chokes on -Wl,-G. The following line is correct:
13995 shared_flag='-G'
13996 else
13997 if test "$aix_use_runtimelinking" = yes; then
13998 shared_flag='${wl}-G'
13999 else
14000 shared_flag='${wl}-bM:SRE'
14005 # It seems that -bexpall does not export symbols beginning with
14006 # underscore (_), so it is better to generate a list of symbols to export.
14007 always_export_symbols_F77=yes
14008 if test "$aix_use_runtimelinking" = yes; then
14009 # Warning - without using the other runtime loading flags (-brtl),
14010 # -berok will link without error, but may produce a broken library.
14011 allow_undefined_flag_F77='-berok'
14012 # Determine the default libpath from the value encoded in an empty executable.
14013 cat >conftest.$ac_ext <<_ACEOF
14014 program main
14017 _ACEOF
14018 rm -f conftest.$ac_objext conftest$ac_exeext
14019 if { (ac_try="$ac_link"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023 esac
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_link") 2>conftest.er1
14026 ac_status=$?
14027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_f77_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest$ac_exeext &&
14035 $as_test_x conftest$ac_exeext; then
14037 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14039 # Check for a 64-bit object if we didn't find anything.
14040 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14041 }'`; fi
14042 else
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14050 conftest$ac_exeext conftest.$ac_ext
14051 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14053 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14054 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14055 else
14056 if test "$host_cpu" = ia64; then
14057 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14058 allow_undefined_flag_F77="-z nodefs"
14059 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14060 else
14061 # Determine the default libpath from the value encoded in an empty executable.
14062 cat >conftest.$ac_ext <<_ACEOF
14063 program main
14066 _ACEOF
14067 rm -f conftest.$ac_objext conftest$ac_exeext
14068 if { (ac_try="$ac_link"
14069 case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>conftest.er1
14075 ac_status=$?
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_f77_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest$ac_exeext &&
14084 $as_test_x conftest$ac_exeext; then
14086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14088 # Check for a 64-bit object if we didn't find anything.
14089 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14090 }'`; fi
14091 else
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14099 conftest$ac_exeext conftest.$ac_ext
14100 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14102 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14103 # Warning - without using the other run time loading flags,
14104 # -berok will link without error, but may produce a broken library.
14105 no_undefined_flag_F77=' ${wl}-bernotok'
14106 allow_undefined_flag_F77=' ${wl}-berok'
14107 # -bexpall does not export symbols beginning with underscore (_)
14108 always_export_symbols_F77=yes
14109 # Exported symbols can be pulled into shared objects from archives
14110 whole_archive_flag_spec_F77=' '
14111 archive_cmds_need_lc_F77=yes
14112 # This is similar to how AIX traditionally builds it's shared libraries.
14113 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14118 amigaos*)
14119 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14120 hardcode_libdir_flag_spec_F77='-L$libdir'
14121 hardcode_minus_L_F77=yes
14122 # see comment about different semantics on the GNU ld section
14123 ld_shlibs_F77=no
14126 bsdi4*)
14127 export_dynamic_flag_spec_F77=-rdynamic
14130 cygwin* | mingw* | pw32*)
14131 # When not using gcc, we currently assume that we are using
14132 # Microsoft Visual C++.
14133 # hardcode_libdir_flag_spec is actually meaningless, as there is
14134 # no search path for DLLs.
14135 hardcode_libdir_flag_spec_F77=' '
14136 allow_undefined_flag_F77=unsupported
14137 # Tell ltmain to make .lib files, not .a files.
14138 libext=lib
14139 # Tell ltmain to make .dll files, not .so files.
14140 shrext=".dll"
14141 # FIXME: Setting linknames here is a bad hack.
14142 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14143 # The linker will automatically build a .lib file if we build a DLL.
14144 old_archive_From_new_cmds_F77='true'
14145 # FIXME: Should let the user specify the lib program.
14146 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14147 fix_srcfile_path='`cygpath -w "$srcfile"`'
14148 enable_shared_with_static_runtimes_F77=yes
14151 darwin* | rhapsody*)
14152 if test "$GXX" = yes ; then
14153 archive_cmds_need_lc_F77=no
14154 case "$host_os" in
14155 rhapsody* | darwin1.[012])
14156 allow_undefined_flag_F77='-undefined suppress'
14158 *) # Darwin 1.3 on
14159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14160 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14161 else
14162 case ${MACOSX_DEPLOYMENT_TARGET} in
14163 10.[012])
14164 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14166 10.*)
14167 allow_undefined_flag_F77='-undefined dynamic_lookup'
14169 esac
14172 esac
14173 lt_int_apple_cc_single_mod=no
14174 output_verbose_link_cmd='echo'
14175 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14176 lt_int_apple_cc_single_mod=yes
14178 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14179 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14180 else
14181 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14183 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14184 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14185 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14186 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14187 else
14188 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14190 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14191 hardcode_direct_F77=no
14192 hardcode_automatic_F77=yes
14193 hardcode_shlibpath_var_F77=unsupported
14194 whole_archive_flag_spec_F77='-all_load $convenience'
14195 link_all_deplibs_F77=yes
14196 else
14197 ld_shlibs_F77=no
14201 dgux*)
14202 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203 hardcode_libdir_flag_spec_F77='-L$libdir'
14204 hardcode_shlibpath_var_F77=no
14207 freebsd1*)
14208 ld_shlibs_F77=no
14211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14212 # support. Future versions do this automatically, but an explicit c++rt0.o
14213 # does not break anything, and helps significantly (at the cost of a little
14214 # extra space).
14215 freebsd2.2*)
14216 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14217 hardcode_libdir_flag_spec_F77='-R$libdir'
14218 hardcode_direct_F77=yes
14219 hardcode_shlibpath_var_F77=no
14222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14223 freebsd2*)
14224 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14225 hardcode_direct_F77=yes
14226 hardcode_minus_L_F77=yes
14227 hardcode_shlibpath_var_F77=no
14230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14231 freebsd* | kfreebsd*-gnu)
14232 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14233 hardcode_libdir_flag_spec_F77='-R$libdir'
14234 hardcode_direct_F77=yes
14235 hardcode_shlibpath_var_F77=no
14238 hpux9*)
14239 if test "$GCC" = yes; then
14240 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14241 else
14242 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14244 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14245 hardcode_libdir_separator_F77=:
14246 hardcode_direct_F77=yes
14248 # hardcode_minus_L: Not really in the search PATH,
14249 # but as the default location of the library.
14250 hardcode_minus_L_F77=yes
14251 export_dynamic_flag_spec_F77='${wl}-E'
14254 hpux10* | hpux11*)
14255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14256 case "$host_cpu" in
14257 hppa*64*|ia64*)
14258 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14261 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14263 esac
14264 else
14265 case "$host_cpu" in
14266 hppa*64*|ia64*)
14267 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14270 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14272 esac
14274 if test "$with_gnu_ld" = no; then
14275 case "$host_cpu" in
14276 hppa*64*)
14277 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14278 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14279 hardcode_libdir_separator_F77=:
14280 hardcode_direct_F77=no
14281 hardcode_shlibpath_var_F77=no
14283 ia64*)
14284 hardcode_libdir_flag_spec_F77='-L$libdir'
14285 hardcode_direct_F77=no
14286 hardcode_shlibpath_var_F77=no
14288 # hardcode_minus_L: Not really in the search PATH,
14289 # but as the default location of the library.
14290 hardcode_minus_L_F77=yes
14293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14294 hardcode_libdir_separator_F77=:
14295 hardcode_direct_F77=yes
14296 export_dynamic_flag_spec_F77='${wl}-E'
14298 # hardcode_minus_L: Not really in the search PATH,
14299 # but as the default location of the library.
14300 hardcode_minus_L_F77=yes
14302 esac
14306 irix5* | irix6* | nonstopux*)
14307 if test "$GCC" = yes; then
14308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14309 else
14310 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14311 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14314 hardcode_libdir_separator_F77=:
14315 link_all_deplibs_F77=yes
14318 netbsd*)
14319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14320 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14321 else
14322 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14324 hardcode_libdir_flag_spec_F77='-R$libdir'
14325 hardcode_direct_F77=yes
14326 hardcode_shlibpath_var_F77=no
14329 newsos6)
14330 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14331 hardcode_direct_F77=yes
14332 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14333 hardcode_libdir_separator_F77=:
14334 hardcode_shlibpath_var_F77=no
14337 openbsd*)
14338 hardcode_direct_F77=yes
14339 hardcode_shlibpath_var_F77=no
14340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14341 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14342 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14343 export_dynamic_flag_spec_F77='${wl}-E'
14344 else
14345 case $host_os in
14346 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14347 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14348 hardcode_libdir_flag_spec_F77='-R$libdir'
14351 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14352 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14354 esac
14358 os2*)
14359 hardcode_libdir_flag_spec_F77='-L$libdir'
14360 hardcode_minus_L_F77=yes
14361 allow_undefined_flag_F77=unsupported
14362 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14363 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14366 osf3*)
14367 if test "$GCC" = yes; then
14368 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14369 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14370 else
14371 allow_undefined_flag_F77=' -expect_unresolved \*'
14372 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14374 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14375 hardcode_libdir_separator_F77=:
14378 osf4* | osf5*) # as osf3* with the addition of -msym flag
14379 if test "$GCC" = yes; then
14380 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14381 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14382 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14383 else
14384 allow_undefined_flag_F77=' -expect_unresolved \*'
14385 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14386 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14387 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14389 # Both c and cxx compiler support -rpath directly
14390 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14392 hardcode_libdir_separator_F77=:
14395 sco3.2v5*)
14396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14397 hardcode_shlibpath_var_F77=no
14398 export_dynamic_flag_spec_F77='${wl}-Bexport'
14399 runpath_var=LD_RUN_PATH
14400 hardcode_runpath_var=yes
14403 solaris*)
14404 no_undefined_flag_F77=' -z text'
14405 if test "$GCC" = yes; then
14406 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14407 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14408 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14409 else
14410 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14411 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14414 hardcode_libdir_flag_spec_F77='-R$libdir'
14415 hardcode_shlibpath_var_F77=no
14416 case $host_os in
14417 solaris2.[0-5] | solaris2.[0-5].*) ;;
14418 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14419 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14420 esac
14421 link_all_deplibs_F77=yes
14424 sunos4*)
14425 if test "x$host_vendor" = xsequent; then
14426 # Use $CC to link under sequent, because it throws in some extra .o
14427 # files that make .init and .fini sections work.
14428 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14429 else
14430 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14432 hardcode_libdir_flag_spec_F77='-L$libdir'
14433 hardcode_direct_F77=yes
14434 hardcode_minus_L_F77=yes
14435 hardcode_shlibpath_var_F77=no
14438 sysv4)
14439 case $host_vendor in
14440 sni)
14441 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 hardcode_direct_F77=yes # is this really true???
14444 siemens)
14445 ## LD is ld it makes a PLAMLIB
14446 ## CC just makes a GrossModule.
14447 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14448 reload_cmds_F77='$CC -r -o $output$reload_objs'
14449 hardcode_direct_F77=no
14451 motorola)
14452 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14455 esac
14456 runpath_var='LD_RUN_PATH'
14457 hardcode_shlibpath_var_F77=no
14460 sysv4.3*)
14461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_shlibpath_var_F77=no
14463 export_dynamic_flag_spec_F77='-Bexport'
14466 sysv4*MP*)
14467 if test -d /usr/nec; then
14468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_shlibpath_var_F77=no
14470 runpath_var=LD_RUN_PATH
14471 hardcode_runpath_var=yes
14472 ld_shlibs_F77=yes
14476 sysv4.2uw2*)
14477 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_direct_F77=yes
14479 hardcode_minus_L_F77=no
14480 hardcode_shlibpath_var_F77=no
14481 hardcode_runpath_var=yes
14482 runpath_var=LD_RUN_PATH
14485 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14486 no_undefined_flag_F77='${wl}-z ${wl}text'
14487 if test "$GCC" = yes; then
14488 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 else
14490 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 runpath_var='LD_RUN_PATH'
14493 hardcode_shlibpath_var_F77=no
14496 sysv5*)
14497 no_undefined_flag_F77=' -z text'
14498 # $CC -shared without GNU ld will not create a library from C++
14499 # object files and a static libstdc++, better avoid it by now
14500 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14501 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14503 hardcode_libdir_flag_spec_F77=
14504 hardcode_shlibpath_var_F77=no
14505 runpath_var='LD_RUN_PATH'
14508 uts4*)
14509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14510 hardcode_libdir_flag_spec_F77='-L$libdir'
14511 hardcode_shlibpath_var_F77=no
14515 ld_shlibs_F77=no
14517 esac
14520 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14521 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14522 test "$ld_shlibs_F77" = no && can_build_shared=no
14524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14525 if test "$GCC" = yes; then
14526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14530 # Do we need to explicitly link libc?
14532 case "x$archive_cmds_need_lc_F77" in
14533 x|xyes)
14534 # Assume -lc should be added
14535 archive_cmds_need_lc_F77=yes
14537 if test "$enable_shared" = yes && test "$GCC" = yes; then
14538 case $archive_cmds_F77 in
14539 *'~'*)
14540 # FIXME: we may have to deal with multi-command sequences.
14542 '$CC '*)
14543 # Test whether the compiler implicitly links with -lc since on some
14544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14545 # to ld, don't add -lc before -lgcc.
14546 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14547 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14548 $rm conftest*
14549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } 2>conftest.err; then
14556 soname=conftest
14557 lib=conftest
14558 libobjs=conftest.$ac_objext
14559 deplibs=
14560 wl=$lt_prog_compiler_wl_F77
14561 compiler_flags=-v
14562 linker_flags=-v
14563 verstring=
14564 output_objdir=.
14565 libname=conftest
14566 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14567 allow_undefined_flag_F77=
14568 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14569 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }
14573 then
14574 archive_cmds_need_lc_F77=no
14575 else
14576 archive_cmds_need_lc_F77=yes
14578 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14579 else
14580 cat conftest.err 1>&5
14582 $rm conftest*
14583 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14584 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14586 esac
14589 esac
14591 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14592 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14593 library_names_spec=
14594 libname_spec='lib$name'
14595 soname_spec=
14596 shrext=".so"
14597 postinstall_cmds=
14598 postuninstall_cmds=
14599 finish_cmds=
14600 finish_eval=
14601 shlibpath_var=
14602 shlibpath_overrides_runpath=unknown
14603 version_type=none
14604 dynamic_linker="$host_os ld.so"
14605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14606 if test "$GCC" = yes; then
14607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14608 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14609 # if the path contains ";" then we assume it to be the separator
14610 # otherwise default to the standard path separator (i.e. ":") - it is
14611 # assumed that no part of a normal pathname contains ";" but that should
14612 # okay in the real world where ";" in dirpaths is itself problematic.
14613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14614 else
14615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14617 else
14618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14620 need_lib_prefix=unknown
14621 hardcode_into_libs=no
14623 # when you set need_version to no, make sure it does not cause -set_version
14624 # flags to be left without arguments
14625 need_version=unknown
14627 case $host_os in
14628 aix3*)
14629 version_type=linux
14630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14631 shlibpath_var=LIBPATH
14633 # AIX 3 has no versioning support, so we append a major version to the name.
14634 soname_spec='${libname}${release}${shared_ext}$major'
14637 aix4* | aix5*)
14638 version_type=linux
14639 need_lib_prefix=no
14640 need_version=no
14641 hardcode_into_libs=yes
14642 if test "$host_cpu" = ia64; then
14643 # AIX 5 supports IA64
14644 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 else
14647 # With GCC up to 2.95.x, collect2 would create an import file
14648 # for dependence libraries. The import file would start with
14649 # the line `#! .'. This would cause the generated library to
14650 # depend on `.', always an invalid library. This was fixed in
14651 # development snapshots of GCC prior to 3.0.
14652 case $host_os in
14653 aix4 | aix4.[01] | aix4.[01].*)
14654 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14655 echo ' yes '
14656 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14658 else
14659 can_build_shared=no
14662 esac
14663 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14664 # soname into executable. Probably we can add versioning support to
14665 # collect2, so additional links can be useful in future.
14666 if test "$aix_use_runtimelinking" = yes; then
14667 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14668 # instead of lib<name>.a to let people know that these are not
14669 # typical AIX shared libraries.
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 else
14672 # We preserve .a as extension for shared libraries through AIX4.2
14673 # and later when we are not doing run time linking.
14674 library_names_spec='${libname}${release}.a $libname.a'
14675 soname_spec='${libname}${release}${shared_ext}$major'
14677 shlibpath_var=LIBPATH
14681 amigaos*)
14682 library_names_spec='$libname.ixlibrary $libname.a'
14683 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14684 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14687 beos*)
14688 library_names_spec='${libname}${shared_ext}'
14689 dynamic_linker="$host_os ld.so"
14690 shlibpath_var=LIBRARY_PATH
14693 bsdi4*)
14694 version_type=linux
14695 need_version=no
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14701 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14702 # the default ld.so.conf also contains /usr/contrib/lib and
14703 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14704 # libtool to hard-code these into programs
14707 cygwin* | mingw* | pw32*)
14708 version_type=windows
14709 shrext=".dll"
14710 need_version=no
14711 need_lib_prefix=no
14713 case $GCC,$host_os in
14714 yes,cygwin* | yes,mingw* | yes,pw32*)
14715 library_names_spec='$libname.dll.a'
14716 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14717 postinstall_cmds='base_file=`basename \${file}`~
14718 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14719 dldir=$destdir/`dirname \$dlpath`~
14720 test -d \$dldir || mkdir -p \$dldir~
14721 $install_prog $dir/$dlname \$dldir/$dlname'
14722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14723 dlpath=$dir/\$dldll~
14724 $rm \$dlpath'
14725 shlibpath_overrides_runpath=yes
14727 case $host_os in
14728 cygwin*)
14729 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14731 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14733 mingw*)
14734 # MinGW DLLs use traditional 'lib' prefix
14735 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14736 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14737 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14738 # It is most probably a Windows format PATH printed by
14739 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14740 # path with ; separators, and with drive letters. We can handle the
14741 # drive letters (cygwin fileutils understands them), so leave them,
14742 # especially as we might pass files found there to a mingw objdump,
14743 # which wouldn't understand a cygwinified path. Ahh.
14744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14745 else
14746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14749 pw32*)
14750 # pw32 DLLs use 'pw' prefix rather than 'lib'
14751 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14753 esac
14757 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14759 esac
14760 dynamic_linker='Win32 ld.exe'
14761 # FIXME: first we should search . and the directory the executable is in
14762 shlibpath_var=PATH
14765 darwin* | rhapsody*)
14766 dynamic_linker="$host_os dyld"
14767 version_type=darwin
14768 need_lib_prefix=no
14769 need_version=no
14770 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14771 soname_spec='${libname}${release}${major}$shared_ext'
14772 shlibpath_overrides_runpath=yes
14773 shlibpath_var=DYLD_LIBRARY_PATH
14774 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14775 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14776 if test "$GCC" = yes; then
14777 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14778 else
14779 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14781 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14784 dgux*)
14785 version_type=linux
14786 need_lib_prefix=no
14787 need_version=no
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14789 soname_spec='${libname}${release}${shared_ext}$major'
14790 shlibpath_var=LD_LIBRARY_PATH
14793 freebsd1*)
14794 dynamic_linker=no
14797 kfreebsd*-gnu)
14798 version_type=linux
14799 need_lib_prefix=no
14800 need_version=no
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14802 soname_spec='${libname}${release}${shared_ext}$major'
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=no
14805 hardcode_into_libs=yes
14806 dynamic_linker='GNU ld.so'
14809 freebsd*)
14810 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14811 version_type=freebsd-$objformat
14812 case $version_type in
14813 freebsd-elf*)
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14815 need_version=no
14816 need_lib_prefix=no
14818 freebsd-*)
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14820 need_version=yes
14822 esac
14823 shlibpath_var=LD_LIBRARY_PATH
14824 case $host_os in
14825 freebsd2*)
14826 shlibpath_overrides_runpath=yes
14828 freebsd3.01* | freebsdelf3.01*)
14829 shlibpath_overrides_runpath=yes
14830 hardcode_into_libs=yes
14832 *) # from 3.2 on
14833 shlibpath_overrides_runpath=no
14834 hardcode_into_libs=yes
14836 esac
14839 gnu*)
14840 version_type=linux
14841 need_lib_prefix=no
14842 need_version=no
14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 hardcode_into_libs=yes
14849 hpux9* | hpux10* | hpux11*)
14850 # Give a soname corresponding to the major version so that dld.sl refuses to
14851 # link against other versions.
14852 version_type=sunos
14853 need_lib_prefix=no
14854 need_version=no
14855 case "$host_cpu" in
14856 ia64*)
14857 shrext='.so'
14858 hardcode_into_libs=yes
14859 dynamic_linker="$host_os dld.so"
14860 shlibpath_var=LD_LIBRARY_PATH
14861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 if test "X$HPUX_IA64_MODE" = X32; then
14865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14866 else
14867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14871 hppa*64*)
14872 shrext='.sl'
14873 hardcode_into_libs=yes
14874 dynamic_linker="$host_os dld.sl"
14875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14883 shrext='.sl'
14884 dynamic_linker="$host_os dld.sl"
14885 shlibpath_var=SHLIB_PATH
14886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14888 soname_spec='${libname}${release}${shared_ext}$major'
14890 esac
14891 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14892 postinstall_cmds='chmod 555 $lib'
14895 irix5* | irix6* | nonstopux*)
14896 case $host_os in
14897 nonstopux*) version_type=nonstopux ;;
14899 if test "$lt_cv_prog_gnu_ld" = yes; then
14900 version_type=linux
14901 else
14902 version_type=irix
14903 fi ;;
14904 esac
14905 need_lib_prefix=no
14906 need_version=no
14907 soname_spec='${libname}${release}${shared_ext}$major'
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14909 case $host_os in
14910 irix5* | nonstopux*)
14911 libsuff= shlibsuff=
14914 case $LD in # libtool.m4 will add one of these switches to LD
14915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14916 libsuff= shlibsuff= libmagic=32-bit;;
14917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14918 libsuff=32 shlibsuff=N32 libmagic=N32;;
14919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14921 *) libsuff= shlibsuff= libmagic=never-match;;
14922 esac
14924 esac
14925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14926 shlibpath_overrides_runpath=no
14927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14929 hardcode_into_libs=yes
14932 # No shared lib support for Linux oldld, aout, or coff.
14933 linux*oldld* | linux*aout* | linux*coff*)
14934 dynamic_linker=no
14937 # This must be Linux ELF.
14938 linux*)
14939 version_type=linux
14940 need_lib_prefix=no
14941 need_version=no
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14943 soname_spec='${libname}${release}${shared_ext}$major'
14944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=no
14947 # This implies no fast_install, which is unacceptable.
14948 # Some rework will be needed to allow for fast_install
14949 # before this can be enabled.
14950 hardcode_into_libs=yes
14952 # We used to test for /lib/ld.so.1 and disable shared libraries on
14953 # powerpc, because MkLinux only supported shared libraries with the
14954 # GNU dynamic linker. Since this was broken with cross compilers,
14955 # most powerpc-linux boxes support dynamic linking these days and
14956 # people can always --disable-shared, the test was removed, and we
14957 # assume the GNU/Linux dynamic linker is in use.
14958 dynamic_linker='GNU/Linux ld.so'
14961 netbsd*)
14962 version_type=sunos
14963 need_lib_prefix=no
14964 need_version=no
14965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14968 dynamic_linker='NetBSD (a.out) ld.so'
14969 else
14970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14971 soname_spec='${libname}${release}${shared_ext}$major'
14972 dynamic_linker='NetBSD ld.elf_so'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=yes
14976 hardcode_into_libs=yes
14979 newsos6)
14980 version_type=linux
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14982 shlibpath_var=LD_LIBRARY_PATH
14983 shlibpath_overrides_runpath=yes
14986 nto-qnx*)
14987 version_type=linux
14988 need_lib_prefix=no
14989 need_version=no
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LD_LIBRARY_PATH
14993 shlibpath_overrides_runpath=yes
14996 openbsd*)
14997 version_type=sunos
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15004 case $host_os in
15005 openbsd2.[89] | openbsd2.[89].*)
15006 shlibpath_overrides_runpath=no
15009 shlibpath_overrides_runpath=yes
15011 esac
15012 else
15013 shlibpath_overrides_runpath=yes
15017 os2*)
15018 libname_spec='$name'
15019 shrext=".dll"
15020 need_lib_prefix=no
15021 library_names_spec='$libname${shared_ext} $libname.a'
15022 dynamic_linker='OS/2 ld.exe'
15023 shlibpath_var=LIBPATH
15026 osf3* | osf4* | osf5*)
15027 version_type=osf
15028 need_lib_prefix=no
15029 need_version=no
15030 soname_spec='${libname}${release}${shared_ext}$major'
15031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 shlibpath_var=LD_LIBRARY_PATH
15033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15037 sco3.2v5*)
15038 version_type=osf
15039 soname_spec='${libname}${release}${shared_ext}$major'
15040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 shlibpath_var=LD_LIBRARY_PATH
15044 solaris*)
15045 version_type=linux
15046 need_lib_prefix=no
15047 need_version=no
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 shlibpath_var=LD_LIBRARY_PATH
15051 shlibpath_overrides_runpath=yes
15052 hardcode_into_libs=yes
15053 # ldd complains unless libraries are executable
15054 postinstall_cmds='chmod +x $lib'
15057 sunos4*)
15058 version_type=sunos
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 shlibpath_overrides_runpath=yes
15063 if test "$with_gnu_ld" = yes; then
15064 need_lib_prefix=no
15066 need_version=yes
15069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15070 version_type=linux
15071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15072 soname_spec='${libname}${release}${shared_ext}$major'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 case $host_vendor in
15075 sni)
15076 shlibpath_overrides_runpath=no
15077 need_lib_prefix=no
15078 export_dynamic_flag_spec='${wl}-Blargedynsym'
15079 runpath_var=LD_RUN_PATH
15081 siemens)
15082 need_lib_prefix=no
15084 motorola)
15085 need_lib_prefix=no
15086 need_version=no
15087 shlibpath_overrides_runpath=no
15088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15090 esac
15093 sysv4*MP*)
15094 if test -d /usr/nec ;then
15095 version_type=linux
15096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15097 soname_spec='$libname${shared_ext}.$major'
15098 shlibpath_var=LD_LIBRARY_PATH
15102 uts4*)
15103 version_type=linux
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105 soname_spec='${libname}${release}${shared_ext}$major'
15106 shlibpath_var=LD_LIBRARY_PATH
15110 dynamic_linker=no
15112 esac
15113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15114 echo "${ECHO_T}$dynamic_linker" >&6; }
15115 test "$dynamic_linker" = no && can_build_shared=no
15117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15119 hardcode_action_F77=
15120 if test -n "$hardcode_libdir_flag_spec_F77" || \
15121 test -n "$runpath_var F77" || \
15122 test "X$hardcode_automatic_F77"="Xyes" ; then
15124 # We can hardcode non-existant directories.
15125 if test "$hardcode_direct_F77" != no &&
15126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15127 # have to relink, otherwise we might link with an installed library
15128 # when we should be linking with a yet-to-be-installed one
15129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15130 test "$hardcode_minus_L_F77" != no; then
15131 # Linking always hardcodes the temporary library directory.
15132 hardcode_action_F77=relink
15133 else
15134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15135 hardcode_action_F77=immediate
15137 else
15138 # We cannot hardcode anything, or else we can only hardcode existing
15139 # directories.
15140 hardcode_action_F77=unsupported
15142 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15143 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15145 if test "$hardcode_action_F77" = relink; then
15146 # Fast installation is not supported
15147 enable_fast_install=no
15148 elif test "$shlibpath_overrides_runpath" = yes ||
15149 test "$enable_shared" = no; then
15150 # Fast installation is not necessary
15151 enable_fast_install=needless
15154 striplib=
15155 old_striplib=
15156 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15161 { echo "$as_me:$LINENO: result: yes" >&5
15162 echo "${ECHO_T}yes" >&6; }
15163 else
15164 # FIXME - insert some real tests, host_os isn't really good enough
15165 case $host_os in
15166 darwin*)
15167 if test -n "$STRIP" ; then
15168 striplib="$STRIP -x"
15169 { echo "$as_me:$LINENO: result: yes" >&5
15170 echo "${ECHO_T}yes" >&6; }
15171 else
15172 { echo "$as_me:$LINENO: result: no" >&5
15173 echo "${ECHO_T}no" >&6; }
15177 { echo "$as_me:$LINENO: result: no" >&5
15178 echo "${ECHO_T}no" >&6; }
15180 esac
15185 # The else clause should only fire when bootstrapping the
15186 # libtool distribution, otherwise you forgot to ship ltmain.sh
15187 # with your package, and you will get complaints that there are
15188 # no rules to generate ltmain.sh.
15189 if test -f "$ltmain"; then
15190 # See if we are running on zsh, and set the options which allow our commands through
15191 # without removal of \ escapes.
15192 if test -n "${ZSH_VERSION+set}" ; then
15193 setopt NO_GLOB_SUBST
15195 # Now quote all the things that may contain metacharacters while being
15196 # careful not to overquote the AC_SUBSTed values. We take copies of the
15197 # variables and quote the copies for generation of the libtool script.
15198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
15199 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15200 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15201 deplibs_check_method reload_flag reload_cmds need_locks \
15202 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15203 lt_cv_sys_global_symbol_to_c_name_address \
15204 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15205 old_postinstall_cmds old_postuninstall_cmds \
15206 compiler_F77 \
15207 CC_F77 \
15208 LD_F77 \
15209 lt_prog_compiler_wl_F77 \
15210 lt_prog_compiler_pic_F77 \
15211 lt_prog_compiler_static_F77 \
15212 lt_prog_compiler_no_builtin_flag_F77 \
15213 export_dynamic_flag_spec_F77 \
15214 thread_safe_flag_spec_F77 \
15215 whole_archive_flag_spec_F77 \
15216 enable_shared_with_static_runtimes_F77 \
15217 old_archive_cmds_F77 \
15218 old_archive_from_new_cmds_F77 \
15219 predep_objects_F77 \
15220 postdep_objects_F77 \
15221 predeps_F77 \
15222 postdeps_F77 \
15223 compiler_lib_search_path_F77 \
15224 archive_cmds_F77 \
15225 archive_expsym_cmds_F77 \
15226 postinstall_cmds_F77 \
15227 postuninstall_cmds_F77 \
15228 old_archive_from_expsyms_cmds_F77 \
15229 allow_undefined_flag_F77 \
15230 no_undefined_flag_F77 \
15231 export_symbols_cmds_F77 \
15232 hardcode_libdir_flag_spec_F77 \
15233 hardcode_libdir_flag_spec_ld_F77 \
15234 hardcode_libdir_separator_F77 \
15235 hardcode_automatic_F77 \
15236 module_cmds_F77 \
15237 module_expsym_cmds_F77 \
15238 lt_cv_prog_compiler_c_o_F77 \
15239 exclude_expsyms_F77 \
15240 include_expsyms_F77; do
15242 case $var in
15243 old_archive_cmds_F77 | \
15244 old_archive_from_new_cmds_F77 | \
15245 archive_cmds_F77 | \
15246 archive_expsym_cmds_F77 | \
15247 module_cmds_F77 | \
15248 module_expsym_cmds_F77 | \
15249 old_archive_from_expsyms_cmds_F77 | \
15250 export_symbols_cmds_F77 | \
15251 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15252 postinstall_cmds | postuninstall_cmds | \
15253 old_postinstall_cmds | old_postuninstall_cmds | \
15254 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15255 # Double-quote double-evaled strings.
15256 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15259 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15261 esac
15262 done
15264 case $lt_echo in
15265 *'\$0 --fallback-echo"')
15266 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15268 esac
15270 cfgfile="$ofile"
15272 cat <<__EOF__ >> "$cfgfile"
15273 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15275 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15277 # Shell to use when invoking shell scripts.
15278 SHELL=$lt_SHELL
15280 # Whether or not to build shared libraries.
15281 build_libtool_libs=$enable_shared
15283 # Whether or not to build static libraries.
15284 build_old_libs=$enable_static
15286 # Whether or not to add -lc for building shared libraries.
15287 build_libtool_need_lc=$archive_cmds_need_lc_F77
15289 # Whether or not to disallow shared libs when runtime libs are static
15290 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15292 # Whether or not to optimize for fast installation.
15293 fast_install=$enable_fast_install
15295 # The host system.
15296 host_alias=$host_alias
15297 host=$host
15299 # An echo program that does not interpret backslashes.
15300 echo=$lt_echo
15302 # The archiver.
15303 AR=$lt_AR
15304 AR_FLAGS=$lt_AR_FLAGS
15306 # A C compiler.
15307 LTCC=$lt_LTCC
15309 # A language-specific compiler.
15310 CC=$lt_compiler_F77
15312 # Is the compiler the GNU C compiler?
15313 with_gcc=$GCC_F77
15315 # An ERE matcher.
15316 EGREP=$lt_EGREP
15318 # The linker used to build libraries.
15319 LD=$lt_LD_F77
15321 # Whether we need hard or soft links.
15322 LN_S=$lt_LN_S
15324 # A BSD-compatible nm program.
15325 NM=$lt_NM
15327 # A symbol stripping program
15328 STRIP="$STRIP"
15330 # Used to examine libraries when file_magic_cmd begins "file"
15331 MAGIC_CMD=$MAGIC_CMD
15333 # Used on cygwin: DLL creation program.
15334 DLLTOOL="$DLLTOOL"
15336 # Used on cygwin: object dumper.
15337 OBJDUMP="$OBJDUMP"
15339 # Used on cygwin: assembler.
15340 AS="$AS"
15342 # The name of the directory that contains temporary libtool files.
15343 objdir=$objdir
15345 # How to create reloadable object files.
15346 reload_flag=$lt_reload_flag
15347 reload_cmds=$lt_reload_cmds
15349 # How to pass a linker flag through the compiler.
15350 wl=$lt_lt_prog_compiler_wl_F77
15352 # Object file suffix (normally "o").
15353 objext="$ac_objext"
15355 # Old archive suffix (normally "a").
15356 libext="$libext"
15358 # Shared library suffix (normally ".so").
15359 shrext='$shrext'
15361 # Executable file suffix (normally "").
15362 exeext="$exeext"
15364 # Additional compiler flags for building library objects.
15365 pic_flag=$lt_lt_prog_compiler_pic_F77
15366 pic_mode=$pic_mode
15368 # What is the maximum length of a command?
15369 max_cmd_len=$lt_cv_sys_max_cmd_len
15371 # Does compiler simultaneously support -c and -o options?
15372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15374 # Must we lock files when doing compilation ?
15375 need_locks=$lt_need_locks
15377 # Do we need the lib prefix for modules?
15378 need_lib_prefix=$need_lib_prefix
15380 # Do we need a version for libraries?
15381 need_version=$need_version
15383 # Whether dlopen is supported.
15384 dlopen_support=$enable_dlopen
15386 # Whether dlopen of programs is supported.
15387 dlopen_self=$enable_dlopen_self
15389 # Whether dlopen of statically linked programs is supported.
15390 dlopen_self_static=$enable_dlopen_self_static
15392 # Compiler flag to prevent dynamic linking.
15393 link_static_flag=$lt_lt_prog_compiler_static_F77
15395 # Compiler flag to turn off builtin functions.
15396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15398 # Compiler flag to allow reflexive dlopens.
15399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15401 # Compiler flag to generate shared objects directly from archives.
15402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15404 # Compiler flag to generate thread-safe objects.
15405 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15407 # Library versioning type.
15408 version_type=$version_type
15410 # Format of library name prefix.
15411 libname_spec=$lt_libname_spec
15413 # List of archive names. First name is the real one, the rest are links.
15414 # The last name is the one that the linker finds with -lNAME.
15415 library_names_spec=$lt_library_names_spec
15417 # The coded name of the library, if different from the real name.
15418 soname_spec=$lt_soname_spec
15420 # Commands used to build and install an old-style archive.
15421 RANLIB=$lt_RANLIB
15422 old_archive_cmds=$lt_old_archive_cmds_F77
15423 old_postinstall_cmds=$lt_old_postinstall_cmds
15424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15426 # Create an old-style archive from a shared archive.
15427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15429 # Create a temporary old-style archive to link instead of a shared archive.
15430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15432 # Commands used to build and install a shared archive.
15433 archive_cmds=$lt_archive_cmds_F77
15434 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15435 postinstall_cmds=$lt_postinstall_cmds
15436 postuninstall_cmds=$lt_postuninstall_cmds
15438 # Commands used to build a loadable module (assumed same as above if empty)
15439 module_cmds=$lt_module_cmds_F77
15440 module_expsym_cmds=$lt_module_expsym_cmds_F77
15442 # Commands to strip libraries.
15443 old_striplib=$lt_old_striplib
15444 striplib=$lt_striplib
15446 # Dependencies to place before the objects being linked to create a
15447 # shared library.
15448 predep_objects=$lt_predep_objects_F77
15450 # Dependencies to place after the objects being linked to create a
15451 # shared library.
15452 postdep_objects=$lt_postdep_objects_F77
15454 # Dependencies to place before the objects being linked to create a
15455 # shared library.
15456 predeps=$lt_predeps_F77
15458 # Dependencies to place after the objects being linked to create a
15459 # shared library.
15460 postdeps=$lt_postdeps_F77
15462 # The library search path used internally by the compiler when linking
15463 # a shared library.
15464 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15466 # Method to check whether dependent libraries are shared objects.
15467 deplibs_check_method=$lt_deplibs_check_method
15469 # Command to use when deplibs_check_method == file_magic.
15470 file_magic_cmd=$lt_file_magic_cmd
15472 # Flag that allows shared libraries with undefined symbols to be built.
15473 allow_undefined_flag=$lt_allow_undefined_flag_F77
15475 # Flag that forces no undefined symbols.
15476 no_undefined_flag=$lt_no_undefined_flag_F77
15478 # Commands used to finish a libtool library installation in a directory.
15479 finish_cmds=$lt_finish_cmds
15481 # Same as above, but a single script fragment to be evaled but not shown.
15482 finish_eval=$lt_finish_eval
15484 # Take the output of nm and produce a listing of raw symbols and C names.
15485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15487 # Transform the output of nm in a proper C declaration
15488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15490 # Transform the output of nm in a C name address pair
15491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15493 # This is the shared library runtime path variable.
15494 runpath_var=$runpath_var
15496 # This is the shared library path variable.
15497 shlibpath_var=$shlibpath_var
15499 # Is shlibpath searched before the hard-coded library search path?
15500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15502 # How to hardcode a shared library path into an executable.
15503 hardcode_action=$hardcode_action_F77
15505 # Whether we should hardcode library paths into libraries.
15506 hardcode_into_libs=$hardcode_into_libs
15508 # Flag to hardcode \$libdir into a binary during linking.
15509 # This must work even if \$libdir does not exist.
15510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15512 # If ld is used when linking, flag to hardcode \$libdir into
15513 # a binary during linking. This must work even if \$libdir does
15514 # not exist.
15515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15517 # Whether we need a single -rpath flag with a separated argument.
15518 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15521 # resulting binary.
15522 hardcode_direct=$hardcode_direct_F77
15524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15525 # resulting binary.
15526 hardcode_minus_L=$hardcode_minus_L_F77
15528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15529 # the resulting binary.
15530 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15532 # Set to yes if building a shared library automatically hardcodes DIR into the library
15533 # and all subsequent libraries and executables linked against it.
15534 hardcode_automatic=$hardcode_automatic_F77
15536 # Variables whose values should be saved in libtool wrapper scripts and
15537 # restored at relink time.
15538 variables_saved_for_relink="$variables_saved_for_relink"
15540 # Whether libtool must link a program against all its dependency libraries.
15541 link_all_deplibs=$link_all_deplibs_F77
15543 # Compile-time system search path for libraries
15544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15546 # Run-time system search path for libraries
15547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15549 # Fix the shell variable \$srcfile for the compiler.
15550 fix_srcfile_path="$fix_srcfile_path_F77"
15552 # Set to yes if exported symbols are required.
15553 always_export_symbols=$always_export_symbols_F77
15555 # The commands to list exported symbols.
15556 export_symbols_cmds=$lt_export_symbols_cmds_F77
15558 # The commands to extract the exported symbol list from a shared archive.
15559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15561 # Symbols that should not be listed in the preloaded symbols.
15562 exclude_expsyms=$lt_exclude_expsyms_F77
15564 # Symbols that must always be exported.
15565 include_expsyms=$lt_include_expsyms_F77
15567 # ### END LIBTOOL TAG CONFIG: $tagname
15569 __EOF__
15572 else
15573 # If there is no Makefile yet, we rely on a make rule to execute
15574 # `config.status --recheck' to rerun these tests and create the
15575 # libtool script then.
15576 test -f Makefile && make "$ltmain"
15580 ac_ext=c
15581 ac_cpp='$CPP $CPPFLAGS'
15582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15586 CC="$lt_save_CC"
15588 else
15589 tagname=""
15593 GCJ)
15594 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15597 # Source file extension for Java test sources.
15598 ac_ext=java
15600 # Object file extension for compiled Java test sources.
15601 objext=o
15602 objext_GCJ=$objext
15604 # Code to be used in simple compile tests
15605 lt_simple_compile_test_code="class foo {}\n"
15607 # Code to be used in simple link tests
15608 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15612 # If no C compiler was specified, use CC.
15613 LTCC=${LTCC-"$CC"}
15615 # Allow CC to be a program name with arguments.
15616 compiler=$CC
15619 # Allow CC to be a program name with arguments.
15620 lt_save_CC="$CC"
15621 CC=${GCJ-"gcj"}
15622 compiler=$CC
15623 compiler_GCJ=$CC
15625 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15626 archive_cmds_need_lc_GCJ=no
15628 ## CAVEAT EMPTOR:
15629 ## There is no encapsulation within the following macros, do not change
15630 ## the running order or otherwise move them around unless you know exactly
15631 ## what you are doing...
15633 lt_prog_compiler_no_builtin_flag_GCJ=
15635 if test "$GCC" = yes; then
15636 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15639 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15640 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
15641 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644 lt_cv_prog_compiler_rtti_exceptions=no
15645 ac_outfile=conftest.$ac_objext
15646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15647 lt_compiler_flag="-fno-rtti -fno-exceptions"
15648 # Insert the option either (1) after the last *FLAGS variable, or
15649 # (2) before a word containing "conftest.", or (3) at the end.
15650 # Note that $ac_compile itself does not contain backslashes and begins
15651 # with a dollar sign (not a hyphen), so the echo should work correctly.
15652 # The option is referenced via a variable to avoid confusing sed.
15653 lt_compile=`echo "$ac_compile" | $SED \
15654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656 -e 's:$: $lt_compiler_flag:'`
15657 (eval echo "\"\$as_me:15657: $lt_compile\"" >&5)
15658 (eval "$lt_compile" 2>conftest.err)
15659 ac_status=$?
15660 cat conftest.err >&5
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 if (exit $ac_status) && test -s "$ac_outfile"; then
15663 # The compiler can only warn and ignore the option if not recognized
15664 # So say no if there are warnings
15665 if test ! -s conftest.err; then
15666 lt_cv_prog_compiler_rtti_exceptions=yes
15669 $rm conftest*
15672 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15673 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15676 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15677 else
15683 lt_prog_compiler_wl_GCJ=
15684 lt_prog_compiler_pic_GCJ=
15685 lt_prog_compiler_static_GCJ=
15687 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15688 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15690 if test "$GCC" = yes; then
15691 lt_prog_compiler_wl_GCJ='-Wl,'
15692 lt_prog_compiler_static_GCJ='-static'
15694 case $host_os in
15695 aix*)
15696 # All AIX code is PIC.
15697 if test "$host_cpu" = ia64; then
15698 # AIX 5 now supports IA64 processor
15699 lt_prog_compiler_static_GCJ='-Bstatic'
15703 amigaos*)
15704 # FIXME: we need at least 68020 code to build shared libraries, but
15705 # adding the `-m68020' flag to GCC prevents building anything better,
15706 # like `-m68040'.
15707 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15711 # PIC is the default for these OSes.
15714 mingw* | pw32* | os2*)
15715 # This hack is so that the source file can tell whether it is being
15716 # built for inclusion in a dll (and should export symbols for example).
15717 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15720 darwin* | rhapsody*)
15721 # PIC is the default on this platform
15722 # Common symbols not allowed in MH_DYLIB files
15723 lt_prog_compiler_pic_GCJ='-fno-common'
15726 msdosdjgpp*)
15727 # Just because we use GCC doesn't mean we suddenly get shared libraries
15728 # on systems that don't support them.
15729 lt_prog_compiler_can_build_shared_GCJ=no
15730 enable_shared=no
15733 sysv4*MP*)
15734 if test -d /usr/nec; then
15735 lt_prog_compiler_pic_GCJ=-Kconform_pic
15739 hpux*)
15740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15741 # not for PA HP-UX.
15742 case "$host_cpu" in
15743 hppa*64*|ia64*)
15744 # +Z the default
15747 lt_prog_compiler_pic_GCJ='-fPIC'
15749 esac
15753 lt_prog_compiler_pic_GCJ='-fPIC'
15755 esac
15756 else
15757 # PORTME Check for flag to pass linker flags through the system compiler.
15758 case $host_os in
15759 aix*)
15760 lt_prog_compiler_wl_GCJ='-Wl,'
15761 if test "$host_cpu" = ia64; then
15762 # AIX 5 now supports IA64 processor
15763 lt_prog_compiler_static_GCJ='-Bstatic'
15764 else
15765 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15769 mingw* | pw32* | os2*)
15770 # This hack is so that the source file can tell whether it is being
15771 # built for inclusion in a dll (and should export symbols for example).
15772 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15775 hpux9* | hpux10* | hpux11*)
15776 lt_prog_compiler_wl_GCJ='-Wl,'
15777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15778 # not for PA HP-UX.
15779 case "$host_cpu" in
15780 hppa*64*|ia64*)
15781 # +Z the default
15784 lt_prog_compiler_pic_GCJ='+Z'
15786 esac
15787 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15788 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15791 irix5* | irix6* | nonstopux*)
15792 lt_prog_compiler_wl_GCJ='-Wl,'
15793 # PIC (with -KPIC) is the default.
15794 lt_prog_compiler_static_GCJ='-non_shared'
15797 newsos6)
15798 lt_prog_compiler_pic_GCJ='-KPIC'
15799 lt_prog_compiler_static_GCJ='-Bstatic'
15802 linux*)
15803 case $CC in
15804 icc* | ecc*)
15805 lt_prog_compiler_wl_GCJ='-Wl,'
15806 lt_prog_compiler_pic_GCJ='-KPIC'
15807 lt_prog_compiler_static_GCJ='-static'
15809 ccc*)
15810 lt_prog_compiler_wl_GCJ='-Wl,'
15811 # All Alpha code is PIC.
15812 lt_prog_compiler_static_GCJ='-non_shared'
15814 esac
15817 osf3* | osf4* | osf5*)
15818 lt_prog_compiler_wl_GCJ='-Wl,'
15819 # All OSF/1 code is PIC.
15820 lt_prog_compiler_static_GCJ='-non_shared'
15823 sco3.2v5*)
15824 lt_prog_compiler_pic_GCJ='-Kpic'
15825 lt_prog_compiler_static_GCJ='-dn'
15828 solaris*)
15829 lt_prog_compiler_wl_GCJ='-Wl,'
15830 lt_prog_compiler_pic_GCJ='-KPIC'
15831 lt_prog_compiler_static_GCJ='-Bstatic'
15834 sunos4*)
15835 lt_prog_compiler_wl_GCJ='-Qoption ld '
15836 lt_prog_compiler_pic_GCJ='-PIC'
15837 lt_prog_compiler_static_GCJ='-Bstatic'
15840 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15841 lt_prog_compiler_wl_GCJ='-Wl,'
15842 lt_prog_compiler_pic_GCJ='-KPIC'
15843 lt_prog_compiler_static_GCJ='-Bstatic'
15846 sysv4*MP*)
15847 if test -d /usr/nec ;then
15848 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15849 lt_prog_compiler_static_GCJ='-Bstatic'
15853 uts4*)
15854 lt_prog_compiler_pic_GCJ='-pic'
15855 lt_prog_compiler_static_GCJ='-Bstatic'
15859 lt_prog_compiler_can_build_shared_GCJ=no
15861 esac
15864 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15865 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
15868 # Check to make sure the PIC flag actually works.
15870 if test -n "$lt_prog_compiler_pic_GCJ"; then
15872 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
15874 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877 lt_prog_compiler_pic_works_GCJ=no
15878 ac_outfile=conftest.$ac_objext
15879 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15880 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15881 # Insert the option either (1) after the last *FLAGS variable, or
15882 # (2) before a word containing "conftest.", or (3) at the end.
15883 # Note that $ac_compile itself does not contain backslashes and begins
15884 # with a dollar sign (not a hyphen), so the echo should work correctly.
15885 # The option is referenced via a variable to avoid confusing sed.
15886 lt_compile=`echo "$ac_compile" | $SED \
15887 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889 -e 's:$: $lt_compiler_flag:'`
15890 (eval echo "\"\$as_me:15890: $lt_compile\"" >&5)
15891 (eval "$lt_compile" 2>conftest.err)
15892 ac_status=$?
15893 cat conftest.err >&5
15894 echo "$as_me:15894: \$? = $ac_status" >&5
15895 if (exit $ac_status) && test -s "$ac_outfile"; then
15896 # The compiler can only warn and ignore the option if not recognized
15897 # So say no if there are warnings
15898 if test ! -s conftest.err; then
15899 lt_prog_compiler_pic_works_GCJ=yes
15902 $rm conftest*
15905 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15906 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
15908 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15909 case $lt_prog_compiler_pic_GCJ in
15910 "" | " "*) ;;
15911 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15912 esac
15913 else
15914 lt_prog_compiler_pic_GCJ=
15915 lt_prog_compiler_can_build_shared_GCJ=no
15919 case "$host_os" in
15920 # For platforms which do not support PIC, -DPIC is meaningless:
15921 *djgpp*)
15922 lt_prog_compiler_pic_GCJ=
15925 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15927 esac
15929 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15931 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934 lt_cv_prog_compiler_c_o_GCJ=no
15935 $rm -r conftest 2>/dev/null
15936 mkdir conftest
15937 cd conftest
15938 mkdir out
15939 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15941 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15942 # that will create temporary files in the current directory regardless of
15943 # the output directory. Thus, making CWD read-only will cause this test
15944 # to fail, enabling locking or at least warning the user not to do parallel
15945 # builds.
15946 chmod -w .
15948 lt_compiler_flag="-o out/conftest2.$ac_objext"
15949 # Insert the option either (1) after the last *FLAGS variable, or
15950 # (2) before a word containing "conftest.", or (3) at the end.
15951 # Note that $ac_compile itself does not contain backslashes and begins
15952 # with a dollar sign (not a hyphen), so the echo should work correctly.
15953 lt_compile=`echo "$ac_compile" | $SED \
15954 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15956 -e 's:$: $lt_compiler_flag:'`
15957 (eval echo "\"\$as_me:15957: $lt_compile\"" >&5)
15958 (eval "$lt_compile" 2>out/conftest.err)
15959 ac_status=$?
15960 cat out/conftest.err >&5
15961 echo "$as_me:15961: \$? = $ac_status" >&5
15962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15963 then
15964 # The compiler can only warn and ignore the option if not recognized
15965 # So say no if there are warnings
15966 if test ! -s out/conftest.err; then
15967 lt_cv_prog_compiler_c_o_GCJ=yes
15970 chmod u+w .
15971 $rm conftest*
15972 # SGI C++ compiler will create directory out/ii_files/ for
15973 # template instantiation
15974 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15975 $rm out/* && rmdir out
15976 cd ..
15977 rmdir conftest
15978 $rm conftest*
15981 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
15985 hard_links="nottested"
15986 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15987 # do not overwrite the value of need_locks provided by the user
15988 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15990 hard_links=yes
15991 $rm conftest*
15992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15993 touch conftest.a
15994 ln conftest.a conftest.b 2>&5 || hard_links=no
15995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15996 { echo "$as_me:$LINENO: result: $hard_links" >&5
15997 echo "${ECHO_T}$hard_links" >&6; }
15998 if test "$hard_links" = no; then
15999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16001 need_locks=warn
16003 else
16004 need_locks=no
16007 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16010 runpath_var=
16011 allow_undefined_flag_GCJ=
16012 enable_shared_with_static_runtimes_GCJ=no
16013 archive_cmds_GCJ=
16014 archive_expsym_cmds_GCJ=
16015 old_archive_From_new_cmds_GCJ=
16016 old_archive_from_expsyms_cmds_GCJ=
16017 export_dynamic_flag_spec_GCJ=
16018 whole_archive_flag_spec_GCJ=
16019 thread_safe_flag_spec_GCJ=
16020 hardcode_libdir_flag_spec_GCJ=
16021 hardcode_libdir_flag_spec_ld_GCJ=
16022 hardcode_libdir_separator_GCJ=
16023 hardcode_direct_GCJ=no
16024 hardcode_minus_L_GCJ=no
16025 hardcode_shlibpath_var_GCJ=unsupported
16026 link_all_deplibs_GCJ=unknown
16027 hardcode_automatic_GCJ=no
16028 module_cmds_GCJ=
16029 module_expsym_cmds_GCJ=
16030 always_export_symbols_GCJ=no
16031 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16032 # include_expsyms should be a list of space-separated symbols to be *always*
16033 # included in the symbol list
16034 include_expsyms_GCJ=
16035 # exclude_expsyms can be an extended regexp of symbols to exclude
16036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16038 # as well as any symbol that contains `d'.
16039 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16041 # platforms (ab)use it in PIC code, but their linkers get confused if
16042 # the symbol is explicitly referenced. Since portable code cannot
16043 # rely on this symbol name, it's probably fine to never include it in
16044 # preloaded symbol tables.
16045 extract_expsyms_cmds=
16047 case $host_os in
16048 cygwin* | mingw* | pw32*)
16049 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16050 # When not using gcc, we currently assume that we are using
16051 # Microsoft Visual C++.
16052 if test "$GCC" != yes; then
16053 with_gnu_ld=no
16056 openbsd*)
16057 with_gnu_ld=no
16059 esac
16061 ld_shlibs_GCJ=yes
16062 if test "$with_gnu_ld" = yes; then
16063 # If archive_cmds runs LD, not CC, wlarc should be empty
16064 wlarc='${wl}'
16066 # See if GNU ld supports shared libraries.
16067 case $host_os in
16068 aix3* | aix4* | aix5*)
16069 # On AIX/PPC, the GNU linker is very broken
16070 if test "$host_cpu" != ia64; then
16071 ld_shlibs_GCJ=no
16072 cat <<EOF 1>&2
16074 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16075 *** to be unable to reliably create shared libraries on AIX.
16076 *** Therefore, libtool is disabling shared libraries support. If you
16077 *** really care for shared libraries, you may want to modify your PATH
16078 *** so that a non-GNU linker is found, and then restart.
16084 amigaos*)
16085 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16086 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16087 hardcode_minus_L_GCJ=yes
16089 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16090 # that the semantics of dynamic libraries on AmigaOS, at least up
16091 # to version 4, is to share data among multiple programs linked
16092 # with the same dynamic library. Since this doesn't match the
16093 # behavior of shared libraries on other platforms, we can't use
16094 # them.
16095 ld_shlibs_GCJ=no
16098 beos*)
16099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16100 allow_undefined_flag_GCJ=unsupported
16101 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16102 # support --undefined. This deserves some investigation. FIXME
16103 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16104 else
16105 ld_shlibs_GCJ=no
16109 cygwin* | mingw* | pw32*)
16110 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16111 # as there is no search path for DLLs.
16112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16113 allow_undefined_flag_GCJ=unsupported
16114 always_export_symbols_GCJ=no
16115 enable_shared_with_static_runtimes_GCJ=yes
16116 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16118 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16120 # If the export-symbols file already is a .def file (1st line
16121 # is EXPORTS), use it as is; otherwise, prepend...
16122 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16123 cp $export_symbols $output_objdir/$soname.def;
16124 else
16125 echo EXPORTS > $output_objdir/$soname.def;
16126 cat $export_symbols >> $output_objdir/$soname.def;
16128 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16129 else
16130 ld_shlibs=no
16134 netbsd*)
16135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16136 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16137 wlarc=
16138 else
16139 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16140 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144 solaris* | sysv5*)
16145 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16146 ld_shlibs_GCJ=no
16147 cat <<EOF 1>&2
16149 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16150 *** create shared libraries on Solaris systems. Therefore, libtool
16151 *** is disabling shared libraries support. We urge you to upgrade GNU
16152 *** binutils to release 2.9.1 or newer. Another option is to modify
16153 *** your PATH or compiler configuration so that the native linker is
16154 *** used, and then restart.
16157 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16158 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16160 else
16161 ld_shlibs_GCJ=no
16165 sunos4*)
16166 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16167 wlarc=
16168 hardcode_direct_GCJ=yes
16169 hardcode_shlibpath_var_GCJ=no
16172 linux*)
16173 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16174 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 archive_cmds_GCJ="$tmp_archive_cmds"
16176 supports_anon_versioning=no
16177 case `$LD -v 2>/dev/null` in
16178 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16181 *\ 2.11.*) ;; # other 2.11 versions
16182 *) supports_anon_versioning=yes ;;
16183 esac
16184 if test $supports_anon_versioning = yes; then
16185 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16187 $echo "local: *; };" >> $output_objdir/$libname.ver~
16188 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16189 else
16190 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16192 else
16193 ld_shlibs_GCJ=no
16198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16199 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16200 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16201 else
16202 ld_shlibs_GCJ=no
16205 esac
16207 if test "$ld_shlibs_GCJ" = yes; then
16208 runpath_var=LD_RUN_PATH
16209 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16210 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16211 # ancient GNU ld didn't support --whole-archive et. al.
16212 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16213 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16214 else
16215 whole_archive_flag_spec_GCJ=
16218 else
16219 # PORTME fill in a description of your system's linker (not GNU ld)
16220 case $host_os in
16221 aix3*)
16222 allow_undefined_flag_GCJ=unsupported
16223 always_export_symbols_GCJ=yes
16224 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16225 # Note: this linker hardcodes the directories in LIBPATH if there
16226 # are no directories specified by -L.
16227 hardcode_minus_L_GCJ=yes
16228 if test "$GCC" = yes && test -z "$link_static_flag"; then
16229 # Neither direct hardcoding nor static linking is supported with a
16230 # broken collect2.
16231 hardcode_direct_GCJ=unsupported
16235 aix4* | aix5*)
16236 if test "$host_cpu" = ia64; then
16237 # On IA64, the linker does run time linking by default, so we don't
16238 # have to do anything special.
16239 aix_use_runtimelinking=no
16240 exp_sym_flag='-Bexport'
16241 no_entry_flag=""
16242 else
16243 # If we're using GNU nm, then we don't want the "-C" option.
16244 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16245 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16246 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16247 else
16248 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16250 aix_use_runtimelinking=no
16252 # Test if we are trying to use run time linking or normal
16253 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16254 # need to do runtime linking.
16255 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16256 for ld_flag in $LDFLAGS; do
16257 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16258 aix_use_runtimelinking=yes
16259 break
16261 done
16262 esac
16264 exp_sym_flag='-bexport'
16265 no_entry_flag='-bnoentry'
16268 # When large executables or shared objects are built, AIX ld can
16269 # have problems creating the table of contents. If linking a library
16270 # or program results in "error TOC overflow" add -mminimal-toc to
16271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16274 archive_cmds_GCJ=''
16275 hardcode_direct_GCJ=yes
16276 hardcode_libdir_separator_GCJ=':'
16277 link_all_deplibs_GCJ=yes
16279 if test "$GCC" = yes; then
16280 case $host_os in aix4.012|aix4.012.*)
16281 # We only want to do this on AIX 4.2 and lower, the check
16282 # below for broken collect2 doesn't work under 4.3+
16283 collect2name=`${CC} -print-prog-name=collect2`
16284 if test -f "$collect2name" && \
16285 strings "$collect2name" | grep resolve_lib_name >/dev/null
16286 then
16287 # We have reworked collect2
16288 hardcode_direct_GCJ=yes
16289 else
16290 # We have old collect2
16291 hardcode_direct_GCJ=unsupported
16292 # It fails to find uninstalled libraries when the uninstalled
16293 # path is not listed in the libpath. Setting hardcode_minus_L
16294 # to unsupported forces relinking
16295 hardcode_minus_L_GCJ=yes
16296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16297 hardcode_libdir_separator_GCJ=
16299 esac
16300 shared_flag='-shared'
16301 else
16302 # not using gcc
16303 if test "$host_cpu" = ia64; then
16304 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16305 # chokes on -Wl,-G. The following line is correct:
16306 shared_flag='-G'
16307 else
16308 if test "$aix_use_runtimelinking" = yes; then
16309 shared_flag='${wl}-G'
16310 else
16311 shared_flag='${wl}-bM:SRE'
16316 # It seems that -bexpall does not export symbols beginning with
16317 # underscore (_), so it is better to generate a list of symbols to export.
16318 always_export_symbols_GCJ=yes
16319 if test "$aix_use_runtimelinking" = yes; then
16320 # Warning - without using the other runtime loading flags (-brtl),
16321 # -berok will link without error, but may produce a broken library.
16322 allow_undefined_flag_GCJ='-berok'
16323 # Determine the default libpath from the value encoded in an empty executable.
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16332 main ()
16336 return 0;
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343 *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346 (eval "$ac_link") 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } && {
16353 test -z "$ac_c_werror_flag" ||
16354 test ! -s conftest.err
16355 } && test -s conftest$ac_exeext &&
16356 $as_test_x conftest$ac_exeext; then
16358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16360 # Check for a 64-bit object if we didn't find anything.
16361 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16362 }'`; fi
16363 else
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16374 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16375 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16376 else
16377 if test "$host_cpu" = ia64; then
16378 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16379 allow_undefined_flag_GCJ="-z nodefs"
16380 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16381 else
16382 # Determine the default libpath from the value encoded in an empty executable.
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16391 main ()
16395 return 0;
16397 _ACEOF
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (ac_try="$ac_link"
16400 case "(($ac_try" in
16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16402 *) ac_try_echo=$ac_try;;
16403 esac
16404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16405 (eval "$ac_link") 2>conftest.er1
16406 ac_status=$?
16407 grep -v '^ *+' conftest.er1 >conftest.err
16408 rm -f conftest.er1
16409 cat conftest.err >&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } && {
16412 test -z "$ac_c_werror_flag" ||
16413 test ! -s conftest.err
16414 } && test -s conftest$ac_exeext &&
16415 $as_test_x conftest$ac_exeext; then
16417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16419 # Check for a 64-bit object if we didn't find anything.
16420 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16421 }'`; fi
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16430 conftest$ac_exeext conftest.$ac_ext
16431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16433 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16434 # Warning - without using the other run time loading flags,
16435 # -berok will link without error, but may produce a broken library.
16436 no_undefined_flag_GCJ=' ${wl}-bernotok'
16437 allow_undefined_flag_GCJ=' ${wl}-berok'
16438 # -bexpall does not export symbols beginning with underscore (_)
16439 always_export_symbols_GCJ=yes
16440 # Exported symbols can be pulled into shared objects from archives
16441 whole_archive_flag_spec_GCJ=' '
16442 archive_cmds_need_lc_GCJ=yes
16443 # This is similar to how AIX traditionally builds it's shared libraries.
16444 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16449 amigaos*)
16450 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16452 hardcode_minus_L_GCJ=yes
16453 # see comment about different semantics on the GNU ld section
16454 ld_shlibs_GCJ=no
16457 bsdi4*)
16458 export_dynamic_flag_spec_GCJ=-rdynamic
16461 cygwin* | mingw* | pw32*)
16462 # When not using gcc, we currently assume that we are using
16463 # Microsoft Visual C++.
16464 # hardcode_libdir_flag_spec is actually meaningless, as there is
16465 # no search path for DLLs.
16466 hardcode_libdir_flag_spec_GCJ=' '
16467 allow_undefined_flag_GCJ=unsupported
16468 # Tell ltmain to make .lib files, not .a files.
16469 libext=lib
16470 # Tell ltmain to make .dll files, not .so files.
16471 shrext=".dll"
16472 # FIXME: Setting linknames here is a bad hack.
16473 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16474 # The linker will automatically build a .lib file if we build a DLL.
16475 old_archive_From_new_cmds_GCJ='true'
16476 # FIXME: Should let the user specify the lib program.
16477 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16478 fix_srcfile_path='`cygpath -w "$srcfile"`'
16479 enable_shared_with_static_runtimes_GCJ=yes
16482 darwin* | rhapsody*)
16483 if test "$GXX" = yes ; then
16484 archive_cmds_need_lc_GCJ=no
16485 case "$host_os" in
16486 rhapsody* | darwin1.[012])
16487 allow_undefined_flag_GCJ='-undefined suppress'
16489 *) # Darwin 1.3 on
16490 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16491 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16492 else
16493 case ${MACOSX_DEPLOYMENT_TARGET} in
16494 10.[012])
16495 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16497 10.*)
16498 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16500 esac
16503 esac
16504 lt_int_apple_cc_single_mod=no
16505 output_verbose_link_cmd='echo'
16506 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16507 lt_int_apple_cc_single_mod=yes
16509 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16510 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16511 else
16512 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16514 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16516 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16517 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16518 else
16519 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16521 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16522 hardcode_direct_GCJ=no
16523 hardcode_automatic_GCJ=yes
16524 hardcode_shlibpath_var_GCJ=unsupported
16525 whole_archive_flag_spec_GCJ='-all_load $convenience'
16526 link_all_deplibs_GCJ=yes
16527 else
16528 ld_shlibs_GCJ=no
16532 dgux*)
16533 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16535 hardcode_shlibpath_var_GCJ=no
16538 freebsd1*)
16539 ld_shlibs_GCJ=no
16542 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16543 # support. Future versions do this automatically, but an explicit c++rt0.o
16544 # does not break anything, and helps significantly (at the cost of a little
16545 # extra space).
16546 freebsd2.2*)
16547 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16548 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16549 hardcode_direct_GCJ=yes
16550 hardcode_shlibpath_var_GCJ=no
16553 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16554 freebsd2*)
16555 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16556 hardcode_direct_GCJ=yes
16557 hardcode_minus_L_GCJ=yes
16558 hardcode_shlibpath_var_GCJ=no
16561 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16562 freebsd* | kfreebsd*-gnu)
16563 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16565 hardcode_direct_GCJ=yes
16566 hardcode_shlibpath_var_GCJ=no
16569 hpux9*)
16570 if test "$GCC" = yes; then
16571 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16572 else
16573 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16575 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16576 hardcode_libdir_separator_GCJ=:
16577 hardcode_direct_GCJ=yes
16579 # hardcode_minus_L: Not really in the search PATH,
16580 # but as the default location of the library.
16581 hardcode_minus_L_GCJ=yes
16582 export_dynamic_flag_spec_GCJ='${wl}-E'
16585 hpux10* | hpux11*)
16586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16587 case "$host_cpu" in
16588 hppa*64*|ia64*)
16589 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16594 esac
16595 else
16596 case "$host_cpu" in
16597 hppa*64*|ia64*)
16598 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16601 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16603 esac
16605 if test "$with_gnu_ld" = no; then
16606 case "$host_cpu" in
16607 hppa*64*)
16608 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16609 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16610 hardcode_libdir_separator_GCJ=:
16611 hardcode_direct_GCJ=no
16612 hardcode_shlibpath_var_GCJ=no
16614 ia64*)
16615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16616 hardcode_direct_GCJ=no
16617 hardcode_shlibpath_var_GCJ=no
16619 # hardcode_minus_L: Not really in the search PATH,
16620 # but as the default location of the library.
16621 hardcode_minus_L_GCJ=yes
16624 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16625 hardcode_libdir_separator_GCJ=:
16626 hardcode_direct_GCJ=yes
16627 export_dynamic_flag_spec_GCJ='${wl}-E'
16629 # hardcode_minus_L: Not really in the search PATH,
16630 # but as the default location of the library.
16631 hardcode_minus_L_GCJ=yes
16633 esac
16637 irix5* | irix6* | nonstopux*)
16638 if test "$GCC" = yes; then
16639 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16640 else
16641 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16642 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16645 hardcode_libdir_separator_GCJ=:
16646 link_all_deplibs_GCJ=yes
16649 netbsd*)
16650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16651 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16652 else
16653 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16656 hardcode_direct_GCJ=yes
16657 hardcode_shlibpath_var_GCJ=no
16660 newsos6)
16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct_GCJ=yes
16663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16664 hardcode_libdir_separator_GCJ=:
16665 hardcode_shlibpath_var_GCJ=no
16668 openbsd*)
16669 hardcode_direct_GCJ=yes
16670 hardcode_shlibpath_var_GCJ=no
16671 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16672 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16674 export_dynamic_flag_spec_GCJ='${wl}-E'
16675 else
16676 case $host_os in
16677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16678 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16685 esac
16689 os2*)
16690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16691 hardcode_minus_L_GCJ=yes
16692 allow_undefined_flag_GCJ=unsupported
16693 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16694 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16697 osf3*)
16698 if test "$GCC" = yes; then
16699 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16700 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16701 else
16702 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16703 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16706 hardcode_libdir_separator_GCJ=:
16709 osf4* | osf5*) # as osf3* with the addition of -msym flag
16710 if test "$GCC" = yes; then
16711 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16712 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16714 else
16715 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16716 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16717 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16718 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16720 # Both c and cxx compiler support -rpath directly
16721 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16723 hardcode_libdir_separator_GCJ=:
16726 sco3.2v5*)
16727 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16728 hardcode_shlibpath_var_GCJ=no
16729 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16730 runpath_var=LD_RUN_PATH
16731 hardcode_runpath_var=yes
16734 solaris*)
16735 no_undefined_flag_GCJ=' -z text'
16736 if test "$GCC" = yes; then
16737 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16740 else
16741 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16742 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16745 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16746 hardcode_shlibpath_var_GCJ=no
16747 case $host_os in
16748 solaris2.[0-5] | solaris2.[0-5].*) ;;
16749 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16750 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16751 esac
16752 link_all_deplibs_GCJ=yes
16755 sunos4*)
16756 if test "x$host_vendor" = xsequent; then
16757 # Use $CC to link under sequent, because it throws in some extra .o
16758 # files that make .init and .fini sections work.
16759 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16760 else
16761 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16764 hardcode_direct_GCJ=yes
16765 hardcode_minus_L_GCJ=yes
16766 hardcode_shlibpath_var_GCJ=no
16769 sysv4)
16770 case $host_vendor in
16771 sni)
16772 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16773 hardcode_direct_GCJ=yes # is this really true???
16775 siemens)
16776 ## LD is ld it makes a PLAMLIB
16777 ## CC just makes a GrossModule.
16778 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16779 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16780 hardcode_direct_GCJ=no
16782 motorola)
16783 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16784 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16786 esac
16787 runpath_var='LD_RUN_PATH'
16788 hardcode_shlibpath_var_GCJ=no
16791 sysv4.3*)
16792 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16793 hardcode_shlibpath_var_GCJ=no
16794 export_dynamic_flag_spec_GCJ='-Bexport'
16797 sysv4*MP*)
16798 if test -d /usr/nec; then
16799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16800 hardcode_shlibpath_var_GCJ=no
16801 runpath_var=LD_RUN_PATH
16802 hardcode_runpath_var=yes
16803 ld_shlibs_GCJ=yes
16807 sysv4.2uw2*)
16808 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_direct_GCJ=yes
16810 hardcode_minus_L_GCJ=no
16811 hardcode_shlibpath_var_GCJ=no
16812 hardcode_runpath_var=yes
16813 runpath_var=LD_RUN_PATH
16816 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16817 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16818 if test "$GCC" = yes; then
16819 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16820 else
16821 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16823 runpath_var='LD_RUN_PATH'
16824 hardcode_shlibpath_var_GCJ=no
16827 sysv5*)
16828 no_undefined_flag_GCJ=' -z text'
16829 # $CC -shared without GNU ld will not create a library from C++
16830 # object files and a static libstdc++, better avoid it by now
16831 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16832 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16834 hardcode_libdir_flag_spec_GCJ=
16835 hardcode_shlibpath_var_GCJ=no
16836 runpath_var='LD_RUN_PATH'
16839 uts4*)
16840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16841 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16842 hardcode_shlibpath_var_GCJ=no
16846 ld_shlibs_GCJ=no
16848 esac
16851 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16852 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
16853 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16855 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16856 if test "$GCC" = yes; then
16857 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16861 # Do we need to explicitly link libc?
16863 case "x$archive_cmds_need_lc_GCJ" in
16864 x|xyes)
16865 # Assume -lc should be added
16866 archive_cmds_need_lc_GCJ=yes
16868 if test "$enable_shared" = yes && test "$GCC" = yes; then
16869 case $archive_cmds_GCJ in
16870 *'~'*)
16871 # FIXME: we may have to deal with multi-command sequences.
16873 '$CC '*)
16874 # Test whether the compiler implicitly links with -lc since on some
16875 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16876 # to ld, don't add -lc before -lgcc.
16877 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16878 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16879 $rm conftest*
16880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883 (eval $ac_compile) 2>&5
16884 ac_status=$?
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); } 2>conftest.err; then
16887 soname=conftest
16888 lib=conftest
16889 libobjs=conftest.$ac_objext
16890 deplibs=
16891 wl=$lt_prog_compiler_wl_GCJ
16892 compiler_flags=-v
16893 linker_flags=-v
16894 verstring=
16895 output_objdir=.
16896 libname=conftest
16897 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16898 allow_undefined_flag_GCJ=
16899 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16900 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16901 ac_status=$?
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }
16904 then
16905 archive_cmds_need_lc_GCJ=no
16906 else
16907 archive_cmds_need_lc_GCJ=yes
16909 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16910 else
16911 cat conftest.err 1>&5
16913 $rm conftest*
16914 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16915 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
16917 esac
16920 esac
16922 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16923 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16924 library_names_spec=
16925 libname_spec='lib$name'
16926 soname_spec=
16927 shrext=".so"
16928 postinstall_cmds=
16929 postuninstall_cmds=
16930 finish_cmds=
16931 finish_eval=
16932 shlibpath_var=
16933 shlibpath_overrides_runpath=unknown
16934 version_type=none
16935 dynamic_linker="$host_os ld.so"
16936 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16937 if test "$GCC" = yes; then
16938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16939 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16940 # if the path contains ";" then we assume it to be the separator
16941 # otherwise default to the standard path separator (i.e. ":") - it is
16942 # assumed that no part of a normal pathname contains ";" but that should
16943 # okay in the real world where ";" in dirpaths is itself problematic.
16944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16945 else
16946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16948 else
16949 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16951 need_lib_prefix=unknown
16952 hardcode_into_libs=no
16954 # when you set need_version to no, make sure it does not cause -set_version
16955 # flags to be left without arguments
16956 need_version=unknown
16958 case $host_os in
16959 aix3*)
16960 version_type=linux
16961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16962 shlibpath_var=LIBPATH
16964 # AIX 3 has no versioning support, so we append a major version to the name.
16965 soname_spec='${libname}${release}${shared_ext}$major'
16968 aix4* | aix5*)
16969 version_type=linux
16970 need_lib_prefix=no
16971 need_version=no
16972 hardcode_into_libs=yes
16973 if test "$host_cpu" = ia64; then
16974 # AIX 5 supports IA64
16975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16976 shlibpath_var=LD_LIBRARY_PATH
16977 else
16978 # With GCC up to 2.95.x, collect2 would create an import file
16979 # for dependence libraries. The import file would start with
16980 # the line `#! .'. This would cause the generated library to
16981 # depend on `.', always an invalid library. This was fixed in
16982 # development snapshots of GCC prior to 3.0.
16983 case $host_os in
16984 aix4 | aix4.[01] | aix4.[01].*)
16985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16986 echo ' yes '
16987 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16989 else
16990 can_build_shared=no
16993 esac
16994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16995 # soname into executable. Probably we can add versioning support to
16996 # collect2, so additional links can be useful in future.
16997 if test "$aix_use_runtimelinking" = yes; then
16998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16999 # instead of lib<name>.a to let people know that these are not
17000 # typical AIX shared libraries.
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 else
17003 # We preserve .a as extension for shared libraries through AIX4.2
17004 # and later when we are not doing run time linking.
17005 library_names_spec='${libname}${release}.a $libname.a'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LIBPATH
17012 amigaos*)
17013 library_names_spec='$libname.ixlibrary $libname.a'
17014 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17015 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17018 beos*)
17019 library_names_spec='${libname}${shared_ext}'
17020 dynamic_linker="$host_os ld.so"
17021 shlibpath_var=LIBRARY_PATH
17024 bsdi4*)
17025 version_type=linux
17026 need_version=no
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17032 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17033 # the default ld.so.conf also contains /usr/contrib/lib and
17034 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17035 # libtool to hard-code these into programs
17038 cygwin* | mingw* | pw32*)
17039 version_type=windows
17040 shrext=".dll"
17041 need_version=no
17042 need_lib_prefix=no
17044 case $GCC,$host_os in
17045 yes,cygwin* | yes,mingw* | yes,pw32*)
17046 library_names_spec='$libname.dll.a'
17047 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17048 postinstall_cmds='base_file=`basename \${file}`~
17049 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17050 dldir=$destdir/`dirname \$dlpath`~
17051 test -d \$dldir || mkdir -p \$dldir~
17052 $install_prog $dir/$dlname \$dldir/$dlname'
17053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17054 dlpath=$dir/\$dldll~
17055 $rm \$dlpath'
17056 shlibpath_overrides_runpath=yes
17058 case $host_os in
17059 cygwin*)
17060 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17061 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17062 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17064 mingw*)
17065 # MinGW DLLs use traditional 'lib' prefix
17066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17067 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17068 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17069 # It is most probably a Windows format PATH printed by
17070 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17071 # path with ; separators, and with drive letters. We can handle the
17072 # drive letters (cygwin fileutils understands them), so leave them,
17073 # especially as we might pass files found there to a mingw objdump,
17074 # which wouldn't understand a cygwinified path. Ahh.
17075 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17076 else
17077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17080 pw32*)
17081 # pw32 DLLs use 'pw' prefix rather than 'lib'
17082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17084 esac
17088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17090 esac
17091 dynamic_linker='Win32 ld.exe'
17092 # FIXME: first we should search . and the directory the executable is in
17093 shlibpath_var=PATH
17096 darwin* | rhapsody*)
17097 dynamic_linker="$host_os dyld"
17098 version_type=darwin
17099 need_lib_prefix=no
17100 need_version=no
17101 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17102 soname_spec='${libname}${release}${major}$shared_ext'
17103 shlibpath_overrides_runpath=yes
17104 shlibpath_var=DYLD_LIBRARY_PATH
17105 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17106 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17107 if test "$GCC" = yes; then
17108 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17109 else
17110 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17115 dgux*)
17116 version_type=linux
17117 need_lib_prefix=no
17118 need_version=no
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17124 freebsd1*)
17125 dynamic_linker=no
17128 kfreebsd*-gnu)
17129 version_type=linux
17130 need_lib_prefix=no
17131 need_version=no
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=no
17136 hardcode_into_libs=yes
17137 dynamic_linker='GNU ld.so'
17140 freebsd*)
17141 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17142 version_type=freebsd-$objformat
17143 case $version_type in
17144 freebsd-elf*)
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17146 need_version=no
17147 need_lib_prefix=no
17149 freebsd-*)
17150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17151 need_version=yes
17153 esac
17154 shlibpath_var=LD_LIBRARY_PATH
17155 case $host_os in
17156 freebsd2*)
17157 shlibpath_overrides_runpath=yes
17159 freebsd3.01* | freebsdelf3.01*)
17160 shlibpath_overrides_runpath=yes
17161 hardcode_into_libs=yes
17163 *) # from 3.2 on
17164 shlibpath_overrides_runpath=no
17165 hardcode_into_libs=yes
17167 esac
17170 gnu*)
17171 version_type=linux
17172 need_lib_prefix=no
17173 need_version=no
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17175 soname_spec='${libname}${release}${shared_ext}$major'
17176 shlibpath_var=LD_LIBRARY_PATH
17177 hardcode_into_libs=yes
17180 hpux9* | hpux10* | hpux11*)
17181 # Give a soname corresponding to the major version so that dld.sl refuses to
17182 # link against other versions.
17183 version_type=sunos
17184 need_lib_prefix=no
17185 need_version=no
17186 case "$host_cpu" in
17187 ia64*)
17188 shrext='.so'
17189 hardcode_into_libs=yes
17190 dynamic_linker="$host_os dld.so"
17191 shlibpath_var=LD_LIBRARY_PATH
17192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 if test "X$HPUX_IA64_MODE" = X32; then
17196 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17197 else
17198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17200 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17202 hppa*64*)
17203 shrext='.sl'
17204 hardcode_into_libs=yes
17205 dynamic_linker="$host_os dld.sl"
17206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 soname_spec='${libname}${release}${shared_ext}$major'
17210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17214 shrext='.sl'
17215 dynamic_linker="$host_os dld.sl"
17216 shlibpath_var=SHLIB_PATH
17217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17221 esac
17222 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17223 postinstall_cmds='chmod 555 $lib'
17226 irix5* | irix6* | nonstopux*)
17227 case $host_os in
17228 nonstopux*) version_type=nonstopux ;;
17230 if test "$lt_cv_prog_gnu_ld" = yes; then
17231 version_type=linux
17232 else
17233 version_type=irix
17234 fi ;;
17235 esac
17236 need_lib_prefix=no
17237 need_version=no
17238 soname_spec='${libname}${release}${shared_ext}$major'
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17240 case $host_os in
17241 irix5* | nonstopux*)
17242 libsuff= shlibsuff=
17245 case $LD in # libtool.m4 will add one of these switches to LD
17246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17247 libsuff= shlibsuff= libmagic=32-bit;;
17248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17249 libsuff=32 shlibsuff=N32 libmagic=N32;;
17250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17252 *) libsuff= shlibsuff= libmagic=never-match;;
17253 esac
17255 esac
17256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17257 shlibpath_overrides_runpath=no
17258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17260 hardcode_into_libs=yes
17263 # No shared lib support for Linux oldld, aout, or coff.
17264 linux*oldld* | linux*aout* | linux*coff*)
17265 dynamic_linker=no
17268 # This must be Linux ELF.
17269 linux*)
17270 version_type=linux
17271 need_lib_prefix=no
17272 need_version=no
17273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17274 soname_spec='${libname}${release}${shared_ext}$major'
17275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=no
17278 # This implies no fast_install, which is unacceptable.
17279 # Some rework will be needed to allow for fast_install
17280 # before this can be enabled.
17281 hardcode_into_libs=yes
17283 # We used to test for /lib/ld.so.1 and disable shared libraries on
17284 # powerpc, because MkLinux only supported shared libraries with the
17285 # GNU dynamic linker. Since this was broken with cross compilers,
17286 # most powerpc-linux boxes support dynamic linking these days and
17287 # people can always --disable-shared, the test was removed, and we
17288 # assume the GNU/Linux dynamic linker is in use.
17289 dynamic_linker='GNU/Linux ld.so'
17292 netbsd*)
17293 version_type=sunos
17294 need_lib_prefix=no
17295 need_version=no
17296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17299 dynamic_linker='NetBSD (a.out) ld.so'
17300 else
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 dynamic_linker='NetBSD ld.elf_so'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 shlibpath_overrides_runpath=yes
17307 hardcode_into_libs=yes
17310 newsos6)
17311 version_type=linux
17312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17313 shlibpath_var=LD_LIBRARY_PATH
17314 shlibpath_overrides_runpath=yes
17317 nto-qnx*)
17318 version_type=linux
17319 need_lib_prefix=no
17320 need_version=no
17321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17322 soname_spec='${libname}${release}${shared_ext}$major'
17323 shlibpath_var=LD_LIBRARY_PATH
17324 shlibpath_overrides_runpath=yes
17327 openbsd*)
17328 version_type=sunos
17329 need_lib_prefix=no
17330 need_version=no
17331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333 shlibpath_var=LD_LIBRARY_PATH
17334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17335 case $host_os in
17336 openbsd2.[89] | openbsd2.[89].*)
17337 shlibpath_overrides_runpath=no
17340 shlibpath_overrides_runpath=yes
17342 esac
17343 else
17344 shlibpath_overrides_runpath=yes
17348 os2*)
17349 libname_spec='$name'
17350 shrext=".dll"
17351 need_lib_prefix=no
17352 library_names_spec='$libname${shared_ext} $libname.a'
17353 dynamic_linker='OS/2 ld.exe'
17354 shlibpath_var=LIBPATH
17357 osf3* | osf4* | osf5*)
17358 version_type=osf
17359 need_lib_prefix=no
17360 need_version=no
17361 soname_spec='${libname}${release}${shared_ext}$major'
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 shlibpath_var=LD_LIBRARY_PATH
17364 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17365 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17368 sco3.2v5*)
17369 version_type=osf
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372 shlibpath_var=LD_LIBRARY_PATH
17375 solaris*)
17376 version_type=linux
17377 need_lib_prefix=no
17378 need_version=no
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17380 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 shlibpath_overrides_runpath=yes
17383 hardcode_into_libs=yes
17384 # ldd complains unless libraries are executable
17385 postinstall_cmds='chmod +x $lib'
17388 sunos4*)
17389 version_type=sunos
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17391 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17394 if test "$with_gnu_ld" = yes; then
17395 need_lib_prefix=no
17397 need_version=yes
17400 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17401 version_type=linux
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec='${libname}${release}${shared_ext}$major'
17404 shlibpath_var=LD_LIBRARY_PATH
17405 case $host_vendor in
17406 sni)
17407 shlibpath_overrides_runpath=no
17408 need_lib_prefix=no
17409 export_dynamic_flag_spec='${wl}-Blargedynsym'
17410 runpath_var=LD_RUN_PATH
17412 siemens)
17413 need_lib_prefix=no
17415 motorola)
17416 need_lib_prefix=no
17417 need_version=no
17418 shlibpath_overrides_runpath=no
17419 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17421 esac
17424 sysv4*MP*)
17425 if test -d /usr/nec ;then
17426 version_type=linux
17427 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17428 soname_spec='$libname${shared_ext}.$major'
17429 shlibpath_var=LD_LIBRARY_PATH
17433 uts4*)
17434 version_type=linux
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17441 dynamic_linker=no
17443 esac
17444 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17445 echo "${ECHO_T}$dynamic_linker" >&6; }
17446 test "$dynamic_linker" = no && can_build_shared=no
17448 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17449 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17450 hardcode_action_GCJ=
17451 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17452 test -n "$runpath_var GCJ" || \
17453 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17455 # We can hardcode non-existant directories.
17456 if test "$hardcode_direct_GCJ" != no &&
17457 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17458 # have to relink, otherwise we might link with an installed library
17459 # when we should be linking with a yet-to-be-installed one
17460 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17461 test "$hardcode_minus_L_GCJ" != no; then
17462 # Linking always hardcodes the temporary library directory.
17463 hardcode_action_GCJ=relink
17464 else
17465 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17466 hardcode_action_GCJ=immediate
17468 else
17469 # We cannot hardcode anything, or else we can only hardcode existing
17470 # directories.
17471 hardcode_action_GCJ=unsupported
17473 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17474 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
17476 if test "$hardcode_action_GCJ" = relink; then
17477 # Fast installation is not supported
17478 enable_fast_install=no
17479 elif test "$shlibpath_overrides_runpath" = yes ||
17480 test "$enable_shared" = no; then
17481 # Fast installation is not necessary
17482 enable_fast_install=needless
17485 striplib=
17486 old_striplib=
17487 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17488 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
17489 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17490 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17491 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17492 { echo "$as_me:$LINENO: result: yes" >&5
17493 echo "${ECHO_T}yes" >&6; }
17494 else
17495 # FIXME - insert some real tests, host_os isn't really good enough
17496 case $host_os in
17497 darwin*)
17498 if test -n "$STRIP" ; then
17499 striplib="$STRIP -x"
17500 { echo "$as_me:$LINENO: result: yes" >&5
17501 echo "${ECHO_T}yes" >&6; }
17502 else
17503 { echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6; }
17508 { echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6; }
17511 esac
17514 if test "x$enable_dlopen" != xyes; then
17515 enable_dlopen=unknown
17516 enable_dlopen_self=unknown
17517 enable_dlopen_self_static=unknown
17518 else
17519 lt_cv_dlopen=no
17520 lt_cv_dlopen_libs=
17522 case $host_os in
17523 beos*)
17524 lt_cv_dlopen="load_add_on"
17525 lt_cv_dlopen_libs=
17526 lt_cv_dlopen_self=yes
17529 mingw* | pw32*)
17530 lt_cv_dlopen="LoadLibrary"
17531 lt_cv_dlopen_libs=
17534 cygwin*)
17535 lt_cv_dlopen="dlopen"
17536 lt_cv_dlopen_libs=
17539 darwin*)
17540 # if libdl is installed we need to link against it
17541 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-ldl $LIBS"
17548 cat >conftest.$ac_ext <<_ACEOF
17549 /* confdefs.h. */
17550 _ACEOF
17551 cat confdefs.h >>conftest.$ac_ext
17552 cat >>conftest.$ac_ext <<_ACEOF
17553 /* end confdefs.h. */
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 char dlopen ();
17563 main ()
17565 return dlopen ();
17567 return 0;
17569 _ACEOF
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17578 ac_status=$?
17579 grep -v '^ *+' conftest.er1 >conftest.err
17580 rm -f conftest.er1
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && {
17584 test -z "$ac_c_werror_flag" ||
17585 test ! -s conftest.err
17586 } && test -s conftest$ac_exeext &&
17587 $as_test_x conftest$ac_exeext; then
17588 ac_cv_lib_dl_dlopen=yes
17589 else
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_lib_dl_dlopen=no
17596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17597 conftest$ac_exeext conftest.$ac_ext
17598 LIBS=$ac_check_lib_save_LIBS
17600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17602 if test $ac_cv_lib_dl_dlopen = yes; then
17603 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17604 else
17606 lt_cv_dlopen="dyld"
17607 lt_cv_dlopen_libs=
17608 lt_cv_dlopen_self=yes
17615 { echo "$as_me:$LINENO: checking for shl_load" >&5
17616 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
17617 if test "${ac_cv_func_shl_load+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619 else
17620 cat >conftest.$ac_ext <<_ACEOF
17621 /* confdefs.h. */
17622 _ACEOF
17623 cat confdefs.h >>conftest.$ac_ext
17624 cat >>conftest.$ac_ext <<_ACEOF
17625 /* end confdefs.h. */
17626 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17628 #define shl_load innocuous_shl_load
17630 /* System header to define __stub macros and hopefully few prototypes,
17631 which can conflict with char shl_load (); below.
17632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633 <limits.h> exists even on freestanding compilers. */
17635 #ifdef __STDC__
17636 # include <limits.h>
17637 #else
17638 # include <assert.h>
17639 #endif
17641 #undef shl_load
17643 /* Override any GCC internal prototype to avoid an error.
17644 Use char because int might match the return type of a GCC
17645 builtin and then its argument prototype would still apply. */
17646 #ifdef __cplusplus
17647 extern "C"
17648 #endif
17649 char shl_load ();
17650 /* The GNU C library defines this for functions which it implements
17651 to always fail with ENOSYS. Some functions are actually named
17652 something starting with __ and the normal name is an alias. */
17653 #if defined __stub_shl_load || defined __stub___shl_load
17654 choke me
17655 #endif
17658 main ()
17660 return shl_load ();
17662 return 0;
17664 _ACEOF
17665 rm -f conftest.$ac_objext conftest$ac_exeext
17666 if { (ac_try="$ac_link"
17667 case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_link") 2>conftest.er1
17673 ac_status=$?
17674 grep -v '^ *+' conftest.er1 >conftest.err
17675 rm -f conftest.er1
17676 cat conftest.err >&5
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); } && {
17679 test -z "$ac_c_werror_flag" ||
17680 test ! -s conftest.err
17681 } && test -s conftest$ac_exeext &&
17682 $as_test_x conftest$ac_exeext; then
17683 ac_cv_func_shl_load=yes
17684 else
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_cv_func_shl_load=no
17691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17692 conftest$ac_exeext conftest.$ac_ext
17694 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17695 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
17696 if test $ac_cv_func_shl_load = yes; then
17697 lt_cv_dlopen="shl_load"
17698 else
17699 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17700 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
17701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703 else
17704 ac_check_lib_save_LIBS=$LIBS
17705 LIBS="-ldld $LIBS"
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17713 /* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 char shl_load ();
17721 main ()
17723 return shl_load ();
17725 return 0;
17727 _ACEOF
17728 rm -f conftest.$ac_objext conftest$ac_exeext
17729 if { (ac_try="$ac_link"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } && {
17742 test -z "$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17744 } && test -s conftest$ac_exeext &&
17745 $as_test_x conftest$ac_exeext; then
17746 ac_cv_lib_dld_shl_load=yes
17747 else
17748 echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17751 ac_cv_lib_dld_shl_load=no
17754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17755 conftest$ac_exeext conftest.$ac_ext
17756 LIBS=$ac_check_lib_save_LIBS
17758 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17759 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
17760 if test $ac_cv_lib_dld_shl_load = yes; then
17761 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17762 else
17763 { echo "$as_me:$LINENO: checking for dlopen" >&5
17764 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
17765 if test "${ac_cv_func_dlopen+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17776 #define dlopen innocuous_dlopen
17778 /* System header to define __stub macros and hopefully few prototypes,
17779 which can conflict with char dlopen (); below.
17780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17781 <limits.h> exists even on freestanding compilers. */
17783 #ifdef __STDC__
17784 # include <limits.h>
17785 #else
17786 # include <assert.h>
17787 #endif
17789 #undef dlopen
17791 /* Override any GCC internal prototype to avoid an error.
17792 Use char because int might match the return type of a GCC
17793 builtin and then its argument prototype would still apply. */
17794 #ifdef __cplusplus
17795 extern "C"
17796 #endif
17797 char dlopen ();
17798 /* The GNU C library defines this for functions which it implements
17799 to always fail with ENOSYS. Some functions are actually named
17800 something starting with __ and the normal name is an alias. */
17801 #if defined __stub_dlopen || defined __stub___dlopen
17802 choke me
17803 #endif
17806 main ()
17808 return dlopen ();
17810 return 0;
17812 _ACEOF
17813 rm -f conftest.$ac_objext conftest$ac_exeext
17814 if { (ac_try="$ac_link"
17815 case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818 esac
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } && {
17827 test -z "$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17829 } && test -s conftest$ac_exeext &&
17830 $as_test_x conftest$ac_exeext; then
17831 ac_cv_func_dlopen=yes
17832 else
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_cv_func_dlopen=no
17839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17840 conftest$ac_exeext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
17844 if test $ac_cv_func_dlopen = yes; then
17845 lt_cv_dlopen="dlopen"
17846 else
17847 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
17849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852 ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-ldl $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17861 /* Override any GCC internal prototype to avoid an error.
17862 Use char because int might match the return type of a GCC
17863 builtin and then its argument prototype would still apply. */
17864 #ifdef __cplusplus
17865 extern "C"
17866 #endif
17867 char dlopen ();
17869 main ()
17871 return dlopen ();
17873 return 0;
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>conftest.er1
17884 ac_status=$?
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && {
17890 test -z "$ac_c_werror_flag" ||
17891 test ! -s conftest.err
17892 } && test -s conftest$ac_exeext &&
17893 $as_test_x conftest$ac_exeext; then
17894 ac_cv_lib_dl_dlopen=yes
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_cv_lib_dl_dlopen=no
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903 conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17907 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17908 if test $ac_cv_lib_dl_dlopen = yes; then
17909 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17910 else
17911 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17912 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17913 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916 ac_check_lib_save_LIBS=$LIBS
17917 LIBS="-lsvld $LIBS"
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17925 /* Override any GCC internal prototype to avoid an error.
17926 Use char because int might match the return type of a GCC
17927 builtin and then its argument prototype would still apply. */
17928 #ifdef __cplusplus
17929 extern "C"
17930 #endif
17931 char dlopen ();
17933 main ()
17935 return dlopen ();
17937 return 0;
17939 _ACEOF
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (ac_try="$ac_link"
17942 case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17945 esac
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_link") 2>conftest.er1
17948 ac_status=$?
17949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); } && {
17954 test -z "$ac_c_werror_flag" ||
17955 test ! -s conftest.err
17956 } && test -s conftest$ac_exeext &&
17957 $as_test_x conftest$ac_exeext; then
17958 ac_cv_lib_svld_dlopen=yes
17959 else
17960 echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17963 ac_cv_lib_svld_dlopen=no
17966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17967 conftest$ac_exeext conftest.$ac_ext
17968 LIBS=$ac_check_lib_save_LIBS
17970 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17972 if test $ac_cv_lib_svld_dlopen = yes; then
17973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17974 else
17975 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979 else
17980 ac_check_lib_save_LIBS=$LIBS
17981 LIBS="-ldld $LIBS"
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992 #ifdef __cplusplus
17993 extern "C"
17994 #endif
17995 char dld_link ();
17997 main ()
17999 return dld_link ();
18001 return 0;
18003 _ACEOF
18004 rm -f conftest.$ac_objext conftest$ac_exeext
18005 if { (ac_try="$ac_link"
18006 case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_link") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest$ac_exeext &&
18021 $as_test_x conftest$ac_exeext; then
18022 ac_cv_lib_dld_dld_link=yes
18023 else
18024 echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18027 ac_cv_lib_dld_dld_link=no
18030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18031 conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18034 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18035 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
18036 if test $ac_cv_lib_dld_dld_link = yes; then
18037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18056 esac
18058 if test "x$lt_cv_dlopen" != xno; then
18059 enable_dlopen=yes
18060 else
18061 enable_dlopen=no
18064 case $lt_cv_dlopen in
18065 dlopen)
18066 save_CPPFLAGS="$CPPFLAGS"
18067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18069 save_LDFLAGS="$LDFLAGS"
18070 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18072 save_LIBS="$LIBS"
18073 LIBS="$lt_cv_dlopen_libs $LIBS"
18075 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18076 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
18077 if test "${lt_cv_dlopen_self+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 else
18080 if test "$cross_compiling" = yes; then :
18081 lt_cv_dlopen_self=cross
18082 else
18083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18084 lt_status=$lt_dlunknown
18085 cat > conftest.$ac_ext <<EOF
18086 #line 18086 "configure"
18087 #include "confdefs.h"
18089 #if HAVE_DLFCN_H
18090 #include <dlfcn.h>
18091 #endif
18093 #include <stdio.h>
18095 #ifdef RTLD_GLOBAL
18096 # define LT_DLGLOBAL RTLD_GLOBAL
18097 #else
18098 # ifdef DL_GLOBAL
18099 # define LT_DLGLOBAL DL_GLOBAL
18100 # else
18101 # define LT_DLGLOBAL 0
18102 # endif
18103 #endif
18105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18106 find out it does not work in some platform. */
18107 #ifndef LT_DLLAZY_OR_NOW
18108 # ifdef RTLD_LAZY
18109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18110 # else
18111 # ifdef DL_LAZY
18112 # define LT_DLLAZY_OR_NOW DL_LAZY
18113 # else
18114 # ifdef RTLD_NOW
18115 # define LT_DLLAZY_OR_NOW RTLD_NOW
18116 # else
18117 # ifdef DL_NOW
18118 # define LT_DLLAZY_OR_NOW DL_NOW
18119 # else
18120 # define LT_DLLAZY_OR_NOW 0
18121 # endif
18122 # endif
18123 # endif
18124 # endif
18125 #endif
18127 #ifdef __cplusplus
18128 extern "C" void exit (int);
18129 #endif
18131 void fnord() { int i=42;}
18132 int main ()
18134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18135 int status = $lt_dlunknown;
18137 if (self)
18139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18140 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18141 /* dlclose (self); */
18144 exit (status);
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>&5
18149 ac_status=$?
18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18152 (./conftest; exit; ) 2>/dev/null
18153 lt_status=$?
18154 case x$lt_status in
18155 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18156 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18157 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18158 esac
18159 else :
18160 # compilation failed
18161 lt_cv_dlopen_self=no
18164 rm -fr conftest*
18168 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18169 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
18171 if test "x$lt_cv_dlopen_self" = xyes; then
18172 LDFLAGS="$LDFLAGS $link_static_flag"
18173 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18174 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
18175 if test "${lt_cv_dlopen_self_static+set}" = set; then
18176 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178 if test "$cross_compiling" = yes; then :
18179 lt_cv_dlopen_self_static=cross
18180 else
18181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18182 lt_status=$lt_dlunknown
18183 cat > conftest.$ac_ext <<EOF
18184 #line 18184 "configure"
18185 #include "confdefs.h"
18187 #if HAVE_DLFCN_H
18188 #include <dlfcn.h>
18189 #endif
18191 #include <stdio.h>
18193 #ifdef RTLD_GLOBAL
18194 # define LT_DLGLOBAL RTLD_GLOBAL
18195 #else
18196 # ifdef DL_GLOBAL
18197 # define LT_DLGLOBAL DL_GLOBAL
18198 # else
18199 # define LT_DLGLOBAL 0
18200 # endif
18201 #endif
18203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18204 find out it does not work in some platform. */
18205 #ifndef LT_DLLAZY_OR_NOW
18206 # ifdef RTLD_LAZY
18207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18208 # else
18209 # ifdef DL_LAZY
18210 # define LT_DLLAZY_OR_NOW DL_LAZY
18211 # else
18212 # ifdef RTLD_NOW
18213 # define LT_DLLAZY_OR_NOW RTLD_NOW
18214 # else
18215 # ifdef DL_NOW
18216 # define LT_DLLAZY_OR_NOW DL_NOW
18217 # else
18218 # define LT_DLLAZY_OR_NOW 0
18219 # endif
18220 # endif
18221 # endif
18222 # endif
18223 #endif
18225 #ifdef __cplusplus
18226 extern "C" void exit (int);
18227 #endif
18229 void fnord() { int i=42;}
18230 int main ()
18232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18233 int status = $lt_dlunknown;
18235 if (self)
18237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18238 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18239 /* dlclose (self); */
18242 exit (status);
18245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18246 (eval $ac_link) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18250 (./conftest; exit; ) 2>/dev/null
18251 lt_status=$?
18252 case x$lt_status in
18253 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18254 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18255 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18256 esac
18257 else :
18258 # compilation failed
18259 lt_cv_dlopen_self_static=no
18262 rm -fr conftest*
18266 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18267 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
18270 CPPFLAGS="$save_CPPFLAGS"
18271 LDFLAGS="$save_LDFLAGS"
18272 LIBS="$save_LIBS"
18274 esac
18276 case $lt_cv_dlopen_self in
18277 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18278 *) enable_dlopen_self=unknown ;;
18279 esac
18281 case $lt_cv_dlopen_self_static in
18282 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18283 *) enable_dlopen_self_static=unknown ;;
18284 esac
18288 # The else clause should only fire when bootstrapping the
18289 # libtool distribution, otherwise you forgot to ship ltmain.sh
18290 # with your package, and you will get complaints that there are
18291 # no rules to generate ltmain.sh.
18292 if test -f "$ltmain"; then
18293 # See if we are running on zsh, and set the options which allow our commands through
18294 # without removal of \ escapes.
18295 if test -n "${ZSH_VERSION+set}" ; then
18296 setopt NO_GLOB_SUBST
18298 # Now quote all the things that may contain metacharacters while being
18299 # careful not to overquote the AC_SUBSTed values. We take copies of the
18300 # variables and quote the copies for generation of the libtool script.
18301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18304 deplibs_check_method reload_flag reload_cmds need_locks \
18305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18306 lt_cv_sys_global_symbol_to_c_name_address \
18307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18308 old_postinstall_cmds old_postuninstall_cmds \
18309 compiler_GCJ \
18310 CC_GCJ \
18311 LD_GCJ \
18312 lt_prog_compiler_wl_GCJ \
18313 lt_prog_compiler_pic_GCJ \
18314 lt_prog_compiler_static_GCJ \
18315 lt_prog_compiler_no_builtin_flag_GCJ \
18316 export_dynamic_flag_spec_GCJ \
18317 thread_safe_flag_spec_GCJ \
18318 whole_archive_flag_spec_GCJ \
18319 enable_shared_with_static_runtimes_GCJ \
18320 old_archive_cmds_GCJ \
18321 old_archive_from_new_cmds_GCJ \
18322 predep_objects_GCJ \
18323 postdep_objects_GCJ \
18324 predeps_GCJ \
18325 postdeps_GCJ \
18326 compiler_lib_search_path_GCJ \
18327 archive_cmds_GCJ \
18328 archive_expsym_cmds_GCJ \
18329 postinstall_cmds_GCJ \
18330 postuninstall_cmds_GCJ \
18331 old_archive_from_expsyms_cmds_GCJ \
18332 allow_undefined_flag_GCJ \
18333 no_undefined_flag_GCJ \
18334 export_symbols_cmds_GCJ \
18335 hardcode_libdir_flag_spec_GCJ \
18336 hardcode_libdir_flag_spec_ld_GCJ \
18337 hardcode_libdir_separator_GCJ \
18338 hardcode_automatic_GCJ \
18339 module_cmds_GCJ \
18340 module_expsym_cmds_GCJ \
18341 lt_cv_prog_compiler_c_o_GCJ \
18342 exclude_expsyms_GCJ \
18343 include_expsyms_GCJ; do
18345 case $var in
18346 old_archive_cmds_GCJ | \
18347 old_archive_from_new_cmds_GCJ | \
18348 archive_cmds_GCJ | \
18349 archive_expsym_cmds_GCJ | \
18350 module_cmds_GCJ | \
18351 module_expsym_cmds_GCJ | \
18352 old_archive_from_expsyms_cmds_GCJ | \
18353 export_symbols_cmds_GCJ | \
18354 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18355 postinstall_cmds | postuninstall_cmds | \
18356 old_postinstall_cmds | old_postuninstall_cmds | \
18357 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18358 # Double-quote double-evaled strings.
18359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18364 esac
18365 done
18367 case $lt_echo in
18368 *'\$0 --fallback-echo"')
18369 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18371 esac
18373 cfgfile="$ofile"
18375 cat <<__EOF__ >> "$cfgfile"
18376 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18380 # Shell to use when invoking shell scripts.
18381 SHELL=$lt_SHELL
18383 # Whether or not to build shared libraries.
18384 build_libtool_libs=$enable_shared
18386 # Whether or not to build static libraries.
18387 build_old_libs=$enable_static
18389 # Whether or not to add -lc for building shared libraries.
18390 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18392 # Whether or not to disallow shared libs when runtime libs are static
18393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18395 # Whether or not to optimize for fast installation.
18396 fast_install=$enable_fast_install
18398 # The host system.
18399 host_alias=$host_alias
18400 host=$host
18402 # An echo program that does not interpret backslashes.
18403 echo=$lt_echo
18405 # The archiver.
18406 AR=$lt_AR
18407 AR_FLAGS=$lt_AR_FLAGS
18409 # A C compiler.
18410 LTCC=$lt_LTCC
18412 # A language-specific compiler.
18413 CC=$lt_compiler_GCJ
18415 # Is the compiler the GNU C compiler?
18416 with_gcc=$GCC_GCJ
18418 # An ERE matcher.
18419 EGREP=$lt_EGREP
18421 # The linker used to build libraries.
18422 LD=$lt_LD_GCJ
18424 # Whether we need hard or soft links.
18425 LN_S=$lt_LN_S
18427 # A BSD-compatible nm program.
18428 NM=$lt_NM
18430 # A symbol stripping program
18431 STRIP="$STRIP"
18433 # Used to examine libraries when file_magic_cmd begins "file"
18434 MAGIC_CMD=$MAGIC_CMD
18436 # Used on cygwin: DLL creation program.
18437 DLLTOOL="$DLLTOOL"
18439 # Used on cygwin: object dumper.
18440 OBJDUMP="$OBJDUMP"
18442 # Used on cygwin: assembler.
18443 AS="$AS"
18445 # The name of the directory that contains temporary libtool files.
18446 objdir=$objdir
18448 # How to create reloadable object files.
18449 reload_flag=$lt_reload_flag
18450 reload_cmds=$lt_reload_cmds
18452 # How to pass a linker flag through the compiler.
18453 wl=$lt_lt_prog_compiler_wl_GCJ
18455 # Object file suffix (normally "o").
18456 objext="$ac_objext"
18458 # Old archive suffix (normally "a").
18459 libext="$libext"
18461 # Shared library suffix (normally ".so").
18462 shrext='$shrext'
18464 # Executable file suffix (normally "").
18465 exeext="$exeext"
18467 # Additional compiler flags for building library objects.
18468 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18469 pic_mode=$pic_mode
18471 # What is the maximum length of a command?
18472 max_cmd_len=$lt_cv_sys_max_cmd_len
18474 # Does compiler simultaneously support -c and -o options?
18475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18477 # Must we lock files when doing compilation ?
18478 need_locks=$lt_need_locks
18480 # Do we need the lib prefix for modules?
18481 need_lib_prefix=$need_lib_prefix
18483 # Do we need a version for libraries?
18484 need_version=$need_version
18486 # Whether dlopen is supported.
18487 dlopen_support=$enable_dlopen
18489 # Whether dlopen of programs is supported.
18490 dlopen_self=$enable_dlopen_self
18492 # Whether dlopen of statically linked programs is supported.
18493 dlopen_self_static=$enable_dlopen_self_static
18495 # Compiler flag to prevent dynamic linking.
18496 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18498 # Compiler flag to turn off builtin functions.
18499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18501 # Compiler flag to allow reflexive dlopens.
18502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18504 # Compiler flag to generate shared objects directly from archives.
18505 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18507 # Compiler flag to generate thread-safe objects.
18508 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18510 # Library versioning type.
18511 version_type=$version_type
18513 # Format of library name prefix.
18514 libname_spec=$lt_libname_spec
18516 # List of archive names. First name is the real one, the rest are links.
18517 # The last name is the one that the linker finds with -lNAME.
18518 library_names_spec=$lt_library_names_spec
18520 # The coded name of the library, if different from the real name.
18521 soname_spec=$lt_soname_spec
18523 # Commands used to build and install an old-style archive.
18524 RANLIB=$lt_RANLIB
18525 old_archive_cmds=$lt_old_archive_cmds_GCJ
18526 old_postinstall_cmds=$lt_old_postinstall_cmds
18527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18529 # Create an old-style archive from a shared archive.
18530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18532 # Create a temporary old-style archive to link instead of a shared archive.
18533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18535 # Commands used to build and install a shared archive.
18536 archive_cmds=$lt_archive_cmds_GCJ
18537 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18538 postinstall_cmds=$lt_postinstall_cmds
18539 postuninstall_cmds=$lt_postuninstall_cmds
18541 # Commands used to build a loadable module (assumed same as above if empty)
18542 module_cmds=$lt_module_cmds_GCJ
18543 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18545 # Commands to strip libraries.
18546 old_striplib=$lt_old_striplib
18547 striplib=$lt_striplib
18549 # Dependencies to place before the objects being linked to create a
18550 # shared library.
18551 predep_objects=$lt_predep_objects_GCJ
18553 # Dependencies to place after the objects being linked to create a
18554 # shared library.
18555 postdep_objects=$lt_postdep_objects_GCJ
18557 # Dependencies to place before the objects being linked to create a
18558 # shared library.
18559 predeps=$lt_predeps_GCJ
18561 # Dependencies to place after the objects being linked to create a
18562 # shared library.
18563 postdeps=$lt_postdeps_GCJ
18565 # The library search path used internally by the compiler when linking
18566 # a shared library.
18567 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18569 # Method to check whether dependent libraries are shared objects.
18570 deplibs_check_method=$lt_deplibs_check_method
18572 # Command to use when deplibs_check_method == file_magic.
18573 file_magic_cmd=$lt_file_magic_cmd
18575 # Flag that allows shared libraries with undefined symbols to be built.
18576 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18578 # Flag that forces no undefined symbols.
18579 no_undefined_flag=$lt_no_undefined_flag_GCJ
18581 # Commands used to finish a libtool library installation in a directory.
18582 finish_cmds=$lt_finish_cmds
18584 # Same as above, but a single script fragment to be evaled but not shown.
18585 finish_eval=$lt_finish_eval
18587 # Take the output of nm and produce a listing of raw symbols and C names.
18588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18590 # Transform the output of nm in a proper C declaration
18591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18593 # Transform the output of nm in a C name address pair
18594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18596 # This is the shared library runtime path variable.
18597 runpath_var=$runpath_var
18599 # This is the shared library path variable.
18600 shlibpath_var=$shlibpath_var
18602 # Is shlibpath searched before the hard-coded library search path?
18603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18605 # How to hardcode a shared library path into an executable.
18606 hardcode_action=$hardcode_action_GCJ
18608 # Whether we should hardcode library paths into libraries.
18609 hardcode_into_libs=$hardcode_into_libs
18611 # Flag to hardcode \$libdir into a binary during linking.
18612 # This must work even if \$libdir does not exist.
18613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18615 # If ld is used when linking, flag to hardcode \$libdir into
18616 # a binary during linking. This must work even if \$libdir does
18617 # not exist.
18618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18620 # Whether we need a single -rpath flag with a separated argument.
18621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18624 # resulting binary.
18625 hardcode_direct=$hardcode_direct_GCJ
18627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18628 # resulting binary.
18629 hardcode_minus_L=$hardcode_minus_L_GCJ
18631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18632 # the resulting binary.
18633 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18635 # Set to yes if building a shared library automatically hardcodes DIR into the library
18636 # and all subsequent libraries and executables linked against it.
18637 hardcode_automatic=$hardcode_automatic_GCJ
18639 # Variables whose values should be saved in libtool wrapper scripts and
18640 # restored at relink time.
18641 variables_saved_for_relink="$variables_saved_for_relink"
18643 # Whether libtool must link a program against all its dependency libraries.
18644 link_all_deplibs=$link_all_deplibs_GCJ
18646 # Compile-time system search path for libraries
18647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18649 # Run-time system search path for libraries
18650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18652 # Fix the shell variable \$srcfile for the compiler.
18653 fix_srcfile_path="$fix_srcfile_path_GCJ"
18655 # Set to yes if exported symbols are required.
18656 always_export_symbols=$always_export_symbols_GCJ
18658 # The commands to list exported symbols.
18659 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18661 # The commands to extract the exported symbol list from a shared archive.
18662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18664 # Symbols that should not be listed in the preloaded symbols.
18665 exclude_expsyms=$lt_exclude_expsyms_GCJ
18667 # Symbols that must always be exported.
18668 include_expsyms=$lt_include_expsyms_GCJ
18670 # ### END LIBTOOL TAG CONFIG: $tagname
18672 __EOF__
18675 else
18676 # If there is no Makefile yet, we rely on a make rule to execute
18677 # `config.status --recheck' to rerun these tests and create the
18678 # libtool script then.
18679 test -f Makefile && make "$ltmain"
18683 ac_ext=c
18684 ac_cpp='$CPP $CPPFLAGS'
18685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18689 CC="$lt_save_CC"
18691 else
18692 tagname=""
18699 # Source file extension for RC test sources.
18700 ac_ext=rc
18702 # Object file extension for compiled RC test sources.
18703 objext=o
18704 objext_RC=$objext
18706 # Code to be used in simple compile tests
18707 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18709 # Code to be used in simple link tests
18710 lt_simple_link_test_code="$lt_simple_compile_test_code"
18712 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18714 # If no C compiler was specified, use CC.
18715 LTCC=${LTCC-"$CC"}
18717 # Allow CC to be a program name with arguments.
18718 compiler=$CC
18721 # Allow CC to be a program name with arguments.
18722 lt_save_CC="$CC"
18723 CC=${RC-"windres"}
18724 compiler=$CC
18725 compiler_RC=$CC
18726 lt_cv_prog_compiler_c_o_RC=yes
18728 # The else clause should only fire when bootstrapping the
18729 # libtool distribution, otherwise you forgot to ship ltmain.sh
18730 # with your package, and you will get complaints that there are
18731 # no rules to generate ltmain.sh.
18732 if test -f "$ltmain"; then
18733 # See if we are running on zsh, and set the options which allow our commands through
18734 # without removal of \ escapes.
18735 if test -n "${ZSH_VERSION+set}" ; then
18736 setopt NO_GLOB_SUBST
18738 # Now quote all the things that may contain metacharacters while being
18739 # careful not to overquote the AC_SUBSTed values. We take copies of the
18740 # variables and quote the copies for generation of the libtool script.
18741 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18742 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18743 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18744 deplibs_check_method reload_flag reload_cmds need_locks \
18745 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18746 lt_cv_sys_global_symbol_to_c_name_address \
18747 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18748 old_postinstall_cmds old_postuninstall_cmds \
18749 compiler_RC \
18750 CC_RC \
18751 LD_RC \
18752 lt_prog_compiler_wl_RC \
18753 lt_prog_compiler_pic_RC \
18754 lt_prog_compiler_static_RC \
18755 lt_prog_compiler_no_builtin_flag_RC \
18756 export_dynamic_flag_spec_RC \
18757 thread_safe_flag_spec_RC \
18758 whole_archive_flag_spec_RC \
18759 enable_shared_with_static_runtimes_RC \
18760 old_archive_cmds_RC \
18761 old_archive_from_new_cmds_RC \
18762 predep_objects_RC \
18763 postdep_objects_RC \
18764 predeps_RC \
18765 postdeps_RC \
18766 compiler_lib_search_path_RC \
18767 archive_cmds_RC \
18768 archive_expsym_cmds_RC \
18769 postinstall_cmds_RC \
18770 postuninstall_cmds_RC \
18771 old_archive_from_expsyms_cmds_RC \
18772 allow_undefined_flag_RC \
18773 no_undefined_flag_RC \
18774 export_symbols_cmds_RC \
18775 hardcode_libdir_flag_spec_RC \
18776 hardcode_libdir_flag_spec_ld_RC \
18777 hardcode_libdir_separator_RC \
18778 hardcode_automatic_RC \
18779 module_cmds_RC \
18780 module_expsym_cmds_RC \
18781 lt_cv_prog_compiler_c_o_RC \
18782 exclude_expsyms_RC \
18783 include_expsyms_RC; do
18785 case $var in
18786 old_archive_cmds_RC | \
18787 old_archive_from_new_cmds_RC | \
18788 archive_cmds_RC | \
18789 archive_expsym_cmds_RC | \
18790 module_cmds_RC | \
18791 module_expsym_cmds_RC | \
18792 old_archive_from_expsyms_cmds_RC | \
18793 export_symbols_cmds_RC | \
18794 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18795 postinstall_cmds | postuninstall_cmds | \
18796 old_postinstall_cmds | old_postuninstall_cmds | \
18797 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18798 # Double-quote double-evaled strings.
18799 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18802 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18804 esac
18805 done
18807 case $lt_echo in
18808 *'\$0 --fallback-echo"')
18809 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18811 esac
18813 cfgfile="$ofile"
18815 cat <<__EOF__ >> "$cfgfile"
18816 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18818 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18820 # Shell to use when invoking shell scripts.
18821 SHELL=$lt_SHELL
18823 # Whether or not to build shared libraries.
18824 build_libtool_libs=$enable_shared
18826 # Whether or not to build static libraries.
18827 build_old_libs=$enable_static
18829 # Whether or not to add -lc for building shared libraries.
18830 build_libtool_need_lc=$archive_cmds_need_lc_RC
18832 # Whether or not to disallow shared libs when runtime libs are static
18833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18835 # Whether or not to optimize for fast installation.
18836 fast_install=$enable_fast_install
18838 # The host system.
18839 host_alias=$host_alias
18840 host=$host
18842 # An echo program that does not interpret backslashes.
18843 echo=$lt_echo
18845 # The archiver.
18846 AR=$lt_AR
18847 AR_FLAGS=$lt_AR_FLAGS
18849 # A C compiler.
18850 LTCC=$lt_LTCC
18852 # A language-specific compiler.
18853 CC=$lt_compiler_RC
18855 # Is the compiler the GNU C compiler?
18856 with_gcc=$GCC_RC
18858 # An ERE matcher.
18859 EGREP=$lt_EGREP
18861 # The linker used to build libraries.
18862 LD=$lt_LD_RC
18864 # Whether we need hard or soft links.
18865 LN_S=$lt_LN_S
18867 # A BSD-compatible nm program.
18868 NM=$lt_NM
18870 # A symbol stripping program
18871 STRIP="$STRIP"
18873 # Used to examine libraries when file_magic_cmd begins "file"
18874 MAGIC_CMD=$MAGIC_CMD
18876 # Used on cygwin: DLL creation program.
18877 DLLTOOL="$DLLTOOL"
18879 # Used on cygwin: object dumper.
18880 OBJDUMP="$OBJDUMP"
18882 # Used on cygwin: assembler.
18883 AS="$AS"
18885 # The name of the directory that contains temporary libtool files.
18886 objdir=$objdir
18888 # How to create reloadable object files.
18889 reload_flag=$lt_reload_flag
18890 reload_cmds=$lt_reload_cmds
18892 # How to pass a linker flag through the compiler.
18893 wl=$lt_lt_prog_compiler_wl_RC
18895 # Object file suffix (normally "o").
18896 objext="$ac_objext"
18898 # Old archive suffix (normally "a").
18899 libext="$libext"
18901 # Shared library suffix (normally ".so").
18902 shrext='$shrext'
18904 # Executable file suffix (normally "").
18905 exeext="$exeext"
18907 # Additional compiler flags for building library objects.
18908 pic_flag=$lt_lt_prog_compiler_pic_RC
18909 pic_mode=$pic_mode
18911 # What is the maximum length of a command?
18912 max_cmd_len=$lt_cv_sys_max_cmd_len
18914 # Does compiler simultaneously support -c and -o options?
18915 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18917 # Must we lock files when doing compilation ?
18918 need_locks=$lt_need_locks
18920 # Do we need the lib prefix for modules?
18921 need_lib_prefix=$need_lib_prefix
18923 # Do we need a version for libraries?
18924 need_version=$need_version
18926 # Whether dlopen is supported.
18927 dlopen_support=$enable_dlopen
18929 # Whether dlopen of programs is supported.
18930 dlopen_self=$enable_dlopen_self
18932 # Whether dlopen of statically linked programs is supported.
18933 dlopen_self_static=$enable_dlopen_self_static
18935 # Compiler flag to prevent dynamic linking.
18936 link_static_flag=$lt_lt_prog_compiler_static_RC
18938 # Compiler flag to turn off builtin functions.
18939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18941 # Compiler flag to allow reflexive dlopens.
18942 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18944 # Compiler flag to generate shared objects directly from archives.
18945 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18947 # Compiler flag to generate thread-safe objects.
18948 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18950 # Library versioning type.
18951 version_type=$version_type
18953 # Format of library name prefix.
18954 libname_spec=$lt_libname_spec
18956 # List of archive names. First name is the real one, the rest are links.
18957 # The last name is the one that the linker finds with -lNAME.
18958 library_names_spec=$lt_library_names_spec
18960 # The coded name of the library, if different from the real name.
18961 soname_spec=$lt_soname_spec
18963 # Commands used to build and install an old-style archive.
18964 RANLIB=$lt_RANLIB
18965 old_archive_cmds=$lt_old_archive_cmds_RC
18966 old_postinstall_cmds=$lt_old_postinstall_cmds
18967 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18969 # Create an old-style archive from a shared archive.
18970 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18972 # Create a temporary old-style archive to link instead of a shared archive.
18973 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18975 # Commands used to build and install a shared archive.
18976 archive_cmds=$lt_archive_cmds_RC
18977 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18978 postinstall_cmds=$lt_postinstall_cmds
18979 postuninstall_cmds=$lt_postuninstall_cmds
18981 # Commands used to build a loadable module (assumed same as above if empty)
18982 module_cmds=$lt_module_cmds_RC
18983 module_expsym_cmds=$lt_module_expsym_cmds_RC
18985 # Commands to strip libraries.
18986 old_striplib=$lt_old_striplib
18987 striplib=$lt_striplib
18989 # Dependencies to place before the objects being linked to create a
18990 # shared library.
18991 predep_objects=$lt_predep_objects_RC
18993 # Dependencies to place after the objects being linked to create a
18994 # shared library.
18995 postdep_objects=$lt_postdep_objects_RC
18997 # Dependencies to place before the objects being linked to create a
18998 # shared library.
18999 predeps=$lt_predeps_RC
19001 # Dependencies to place after the objects being linked to create a
19002 # shared library.
19003 postdeps=$lt_postdeps_RC
19005 # The library search path used internally by the compiler when linking
19006 # a shared library.
19007 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19009 # Method to check whether dependent libraries are shared objects.
19010 deplibs_check_method=$lt_deplibs_check_method
19012 # Command to use when deplibs_check_method == file_magic.
19013 file_magic_cmd=$lt_file_magic_cmd
19015 # Flag that allows shared libraries with undefined symbols to be built.
19016 allow_undefined_flag=$lt_allow_undefined_flag_RC
19018 # Flag that forces no undefined symbols.
19019 no_undefined_flag=$lt_no_undefined_flag_RC
19021 # Commands used to finish a libtool library installation in a directory.
19022 finish_cmds=$lt_finish_cmds
19024 # Same as above, but a single script fragment to be evaled but not shown.
19025 finish_eval=$lt_finish_eval
19027 # Take the output of nm and produce a listing of raw symbols and C names.
19028 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19030 # Transform the output of nm in a proper C declaration
19031 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19033 # Transform the output of nm in a C name address pair
19034 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19036 # This is the shared library runtime path variable.
19037 runpath_var=$runpath_var
19039 # This is the shared library path variable.
19040 shlibpath_var=$shlibpath_var
19042 # Is shlibpath searched before the hard-coded library search path?
19043 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19045 # How to hardcode a shared library path into an executable.
19046 hardcode_action=$hardcode_action_RC
19048 # Whether we should hardcode library paths into libraries.
19049 hardcode_into_libs=$hardcode_into_libs
19051 # Flag to hardcode \$libdir into a binary during linking.
19052 # This must work even if \$libdir does not exist.
19053 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19055 # If ld is used when linking, flag to hardcode \$libdir into
19056 # a binary during linking. This must work even if \$libdir does
19057 # not exist.
19058 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19060 # Whether we need a single -rpath flag with a separated argument.
19061 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19063 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19064 # resulting binary.
19065 hardcode_direct=$hardcode_direct_RC
19067 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19068 # resulting binary.
19069 hardcode_minus_L=$hardcode_minus_L_RC
19071 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19072 # the resulting binary.
19073 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19075 # Set to yes if building a shared library automatically hardcodes DIR into the library
19076 # and all subsequent libraries and executables linked against it.
19077 hardcode_automatic=$hardcode_automatic_RC
19079 # Variables whose values should be saved in libtool wrapper scripts and
19080 # restored at relink time.
19081 variables_saved_for_relink="$variables_saved_for_relink"
19083 # Whether libtool must link a program against all its dependency libraries.
19084 link_all_deplibs=$link_all_deplibs_RC
19086 # Compile-time system search path for libraries
19087 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19089 # Run-time system search path for libraries
19090 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19092 # Fix the shell variable \$srcfile for the compiler.
19093 fix_srcfile_path="$fix_srcfile_path_RC"
19095 # Set to yes if exported symbols are required.
19096 always_export_symbols=$always_export_symbols_RC
19098 # The commands to list exported symbols.
19099 export_symbols_cmds=$lt_export_symbols_cmds_RC
19101 # The commands to extract the exported symbol list from a shared archive.
19102 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19104 # Symbols that should not be listed in the preloaded symbols.
19105 exclude_expsyms=$lt_exclude_expsyms_RC
19107 # Symbols that must always be exported.
19108 include_expsyms=$lt_include_expsyms_RC
19110 # ### END LIBTOOL TAG CONFIG: $tagname
19112 __EOF__
19115 else
19116 # If there is no Makefile yet, we rely on a make rule to execute
19117 # `config.status --recheck' to rerun these tests and create the
19118 # libtool script then.
19119 test -f Makefile && make "$ltmain"
19123 ac_ext=c
19124 ac_cpp='$CPP $CPPFLAGS'
19125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19129 CC="$lt_save_CC"
19134 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19135 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19136 { (exit 1); exit 1; }; }
19138 esac
19140 # Append the new tag name to the list of available tags.
19141 if test -n "$tagname" ; then
19142 available_tags="$available_tags $tagname"
19145 done
19146 IFS="$lt_save_ifs"
19148 # Now substitute the updated list of available tags.
19149 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19150 mv "${ofile}T" "$ofile"
19151 chmod +x "$ofile"
19152 else
19153 rm -f "${ofile}T"
19154 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19155 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19156 { (exit 1); exit 1; }; }
19162 # This can be used to rebuild libtool when needed
19163 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19165 # Always use our own libtool.
19166 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19168 # Prevent multiple expansion
19189 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19191 if test "${ac_cv_c_const+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194 cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h. */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h. */
19202 main ()
19204 /* FIXME: Include the comments suggested by Paul. */
19205 #ifndef __cplusplus
19206 /* Ultrix mips cc rejects this. */
19207 typedef int charset[2];
19208 const charset cs;
19209 /* SunOS 4.1.1 cc rejects this. */
19210 char const *const *pcpcc;
19211 char **ppc;
19212 /* NEC SVR4.0.2 mips cc rejects this. */
19213 struct point {int x, y;};
19214 static struct point const zero = {0,0};
19215 /* AIX XL C 1.02.0.0 rejects this.
19216 It does not let you subtract one const X* pointer from another in
19217 an arm of an if-expression whose if-part is not a constant
19218 expression */
19219 const char *g = "string";
19220 pcpcc = &g + (g ? g-g : 0);
19221 /* HPUX 7.0 cc rejects these. */
19222 ++pcpcc;
19223 ppc = (char**) pcpcc;
19224 pcpcc = (char const *const *) ppc;
19225 { /* SCO 3.2v4 cc rejects this. */
19226 char *t;
19227 char const *s = 0 ? (char *) 0 : (char const *) 0;
19229 *t++ = 0;
19230 if (s) return 0;
19232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19233 int x[] = {25, 17};
19234 const int *foo = &x[0];
19235 ++foo;
19237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19238 typedef const int *iptr;
19239 iptr p = 0;
19240 ++p;
19242 { /* AIX XL C 1.02.0.0 rejects this saying
19243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19244 struct s { int j; const int *ap[3]; };
19245 struct s *b; b->j = 5;
19247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19248 const int foo = 10;
19249 if (!foo) return 0;
19251 return !cs[0] && !zero.x;
19252 #endif
19255 return 0;
19257 _ACEOF
19258 rm -f conftest.$ac_objext
19259 if { (ac_try="$ac_compile"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19263 esac
19264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_cv_c_const=yes
19276 else
19277 echo "$as_me: failed program was:" >&5
19278 sed 's/^/| /' conftest.$ac_ext >&5
19280 ac_cv_c_const=no
19283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19285 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19286 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19287 if test $ac_cv_c_const = no; then
19289 cat >>confdefs.h <<\_ACEOF
19290 #define const
19291 _ACEOF
19300 ac_header_dirent=no
19301 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19302 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19303 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19304 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19306 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308 cat >conftest.$ac_ext <<_ACEOF
19309 /* confdefs.h. */
19310 _ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <sys/types.h>
19315 #include <$ac_hdr>
19318 main ()
19320 if ((DIR *) 0)
19321 return 0;
19323 return 0;
19325 _ACEOF
19326 rm -f conftest.$ac_objext
19327 if { (ac_try="$ac_compile"
19328 case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19331 esac
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_compile") 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } && {
19340 test -z "$ac_c_werror_flag" ||
19341 test ! -s conftest.err
19342 } && test -s conftest.$ac_objext; then
19343 eval "$as_ac_Header=yes"
19344 else
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 eval "$as_ac_Header=no"
19351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19353 ac_res=`eval echo '${'$as_ac_Header'}'`
19354 { echo "$as_me:$LINENO: result: $ac_res" >&5
19355 echo "${ECHO_T}$ac_res" >&6; }
19356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19357 cat >>confdefs.h <<_ACEOF
19358 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19359 _ACEOF
19361 ac_header_dirent=$ac_hdr; break
19364 done
19365 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19366 if test $ac_header_dirent = dirent.h; then
19367 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19368 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19369 if test "${ac_cv_search_opendir+set}" = set; then
19370 echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372 ac_func_search_save_LIBS=$LIBS
19373 cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h. */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19380 /* Override any GCC internal prototype to avoid an error.
19381 Use char because int might match the return type of a GCC
19382 builtin and then its argument prototype would still apply. */
19383 #ifdef __cplusplus
19384 extern "C"
19385 #endif
19386 char opendir ();
19388 main ()
19390 return opendir ();
19392 return 0;
19394 _ACEOF
19395 for ac_lib in '' dir; do
19396 if test -z "$ac_lib"; then
19397 ac_res="none required"
19398 else
19399 ac_res=-l$ac_lib
19400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19402 rm -f conftest.$ac_objext conftest$ac_exeext
19403 if { (ac_try="$ac_link"
19404 case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407 esac
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_link") 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } && {
19416 test -z "$ac_c_werror_flag" ||
19417 test ! -s conftest.err
19418 } && test -s conftest$ac_exeext &&
19419 $as_test_x conftest$ac_exeext; then
19420 ac_cv_search_opendir=$ac_res
19421 else
19422 echo "$as_me: failed program was:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19429 conftest$ac_exeext
19430 if test "${ac_cv_search_opendir+set}" = set; then
19431 break
19433 done
19434 if test "${ac_cv_search_opendir+set}" = set; then
19436 else
19437 ac_cv_search_opendir=no
19439 rm conftest.$ac_ext
19440 LIBS=$ac_func_search_save_LIBS
19442 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19443 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19444 ac_res=$ac_cv_search_opendir
19445 if test "$ac_res" != no; then
19446 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19450 else
19451 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19452 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19453 if test "${ac_cv_search_opendir+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456 ac_func_search_save_LIBS=$LIBS
19457 cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h. */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h. */
19464 /* Override any GCC internal prototype to avoid an error.
19465 Use char because int might match the return type of a GCC
19466 builtin and then its argument prototype would still apply. */
19467 #ifdef __cplusplus
19468 extern "C"
19469 #endif
19470 char opendir ();
19472 main ()
19474 return opendir ();
19476 return 0;
19478 _ACEOF
19479 for ac_lib in '' x; do
19480 if test -z "$ac_lib"; then
19481 ac_res="none required"
19482 else
19483 ac_res=-l$ac_lib
19484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19486 rm -f conftest.$ac_objext conftest$ac_exeext
19487 if { (ac_try="$ac_link"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19491 esac
19492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_link") 2>conftest.er1
19494 ac_status=$?
19495 grep -v '^ *+' conftest.er1 >conftest.err
19496 rm -f conftest.er1
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest$ac_exeext &&
19503 $as_test_x conftest$ac_exeext; then
19504 ac_cv_search_opendir=$ac_res
19505 else
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19513 conftest$ac_exeext
19514 if test "${ac_cv_search_opendir+set}" = set; then
19515 break
19517 done
19518 if test "${ac_cv_search_opendir+set}" = set; then
19520 else
19521 ac_cv_search_opendir=no
19523 rm conftest.$ac_ext
19524 LIBS=$ac_func_search_save_LIBS
19526 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19527 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19528 ac_res=$ac_cv_search_opendir
19529 if test "$ac_res" != no; then
19530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19536 # Check whether --enable-ltdl-install was given.
19537 if test "${enable_ltdl_install+set}" = set; then
19538 enableval=$enable_ltdl_install;
19542 if test x"${enable_ltdl_install-no}" != xno; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define INSTALL_LTDL 1
19545 _ACEOF
19548 if test x"${enable_ltdl_convenience-no}" != xno; then
19549 cat >>confdefs.h <<\_ACEOF
19550 #define CONVENIENCE_LTDL 1
19551 _ACEOF
19556 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
19557 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
19558 if test "${libltdl_cv_shlibext+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19562 module=yes
19563 eval libltdl_cv_shlibext=$shrext
19566 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19567 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
19568 if test -n "$libltdl_cv_shlibext"; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19572 _ACEOF
19577 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
19578 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
19579 if test "${libltdl_cv_shlibpath_var+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582 libltdl_cv_shlibpath_var="$shlibpath_var"
19584 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
19585 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
19586 if test -n "$libltdl_cv_shlibpath_var"; then
19588 cat >>confdefs.h <<_ACEOF
19589 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19590 _ACEOF
19595 { echo "$as_me:$LINENO: checking for the default library search path" >&5
19596 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
19597 if test "${libltdl_cv_sys_search_path+set}" = set; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19602 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
19603 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
19604 if test -n "$libltdl_cv_sys_search_path"; then
19605 sys_search_path=
19606 for dir in $libltdl_cv_sys_search_path; do
19607 if test -z "$sys_search_path"; then
19608 sys_search_path="$dir"
19609 else
19610 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19612 done
19614 cat >>confdefs.h <<_ACEOF
19615 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19616 _ACEOF
19620 { echo "$as_me:$LINENO: checking for objdir" >&5
19621 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
19622 if test "${libltdl_cv_objdir+set}" = set; then
19623 echo $ECHO_N "(cached) $ECHO_C" >&6
19624 else
19625 libltdl_cv_objdir="$objdir"
19626 if test -n "$objdir"; then
19628 else
19629 rm -f .libs 2>/dev/null
19630 mkdir .libs 2>/dev/null
19631 if test -d .libs; then
19632 libltdl_cv_objdir=.libs
19633 else
19634 # MS-DOS does not allow filenames that begin with a dot.
19635 libltdl_cv_objdir=_libs
19637 rmdir .libs 2>/dev/null
19641 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
19642 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
19644 cat >>confdefs.h <<_ACEOF
19645 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19646 _ACEOF
19650 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
19651 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
19652 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19656 libltdl_cv_preloaded_symbols=yes
19657 else
19658 libltdl_cv_preloaded_symbols=no
19662 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
19663 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
19664 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19666 cat >>confdefs.h <<\_ACEOF
19667 #define HAVE_PRELOADED_SYMBOLS 1
19668 _ACEOF
19672 LIBADD_DL=
19674 ac_ext=c
19675 ac_cpp='$CPP $CPPFLAGS'
19676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19681 { echo "$as_me:$LINENO: checking for shl_load" >&5
19682 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
19683 if test "${ac_cv_func_shl_load+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 else
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19694 #define shl_load innocuous_shl_load
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char shl_load (); below.
19698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19699 <limits.h> exists even on freestanding compilers. */
19701 #ifdef __STDC__
19702 # include <limits.h>
19703 #else
19704 # include <assert.h>
19705 #endif
19707 #undef shl_load
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char shl_load ();
19716 /* The GNU C library defines this for functions which it implements
19717 to always fail with ENOSYS. Some functions are actually named
19718 something starting with __ and the normal name is an alias. */
19719 #if defined __stub_shl_load || defined __stub___shl_load
19720 choke me
19721 #endif
19724 main ()
19726 return shl_load ();
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_func_shl_load=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 ac_cv_func_shl_load=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19760 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19761 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
19762 if test $ac_cv_func_shl_load = yes; then
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_SHL_LOAD 1
19766 _ACEOF
19768 else
19769 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19770 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
19771 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774 ac_check_lib_save_LIBS=$LIBS
19775 LIBS="-ldld $LIBS"
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19786 #ifdef __cplusplus
19787 extern "C"
19788 #endif
19789 char shl_load ();
19791 main ()
19793 return shl_load ();
19795 return 0;
19797 _ACEOF
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_dld_shl_load=yes
19817 else
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_lib_dld_shl_load=no
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19829 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
19830 if test $ac_cv_lib_dld_shl_load = yes; then
19832 cat >>confdefs.h <<\_ACEOF
19833 #define HAVE_SHL_LOAD 1
19834 _ACEOF
19836 LIBADD_DL="$LIBADD_DL -ldld"
19837 else
19838 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19839 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
19840 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-ldl $LIBS"
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19855 #ifdef __cplusplus
19856 extern "C"
19857 #endif
19858 char dlopen ();
19860 main ()
19862 return dlopen ();
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19872 esac
19873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19875 ac_status=$?
19876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_lib_dl_dlopen=yes
19886 else
19887 echo "$as_me: failed program was:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_lib_dl_dlopen=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19898 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19899 if test $ac_cv_lib_dl_dlopen = yes; then
19901 cat >>confdefs.h <<\_ACEOF
19902 #define HAVE_LIBDL 1
19903 _ACEOF
19905 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19906 else
19907 cat >conftest.$ac_ext <<_ACEOF
19908 /* confdefs.h. */
19909 _ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913 #if HAVE_DLFCN_H
19914 # include <dlfcn.h>
19915 #endif
19918 main ()
19920 dlopen(0, 0);
19922 return 0;
19924 _ACEOF
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (ac_try="$ac_link"
19927 case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19930 esac
19931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19932 (eval "$ac_link") 2>conftest.er1
19933 ac_status=$?
19934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } && {
19939 test -z "$ac_c_werror_flag" ||
19940 test ! -s conftest.err
19941 } && test -s conftest$ac_exeext &&
19942 $as_test_x conftest$ac_exeext; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define HAVE_LIBDL 1
19946 _ACEOF
19947 libltdl_cv_func_dlopen="yes"
19948 else
19949 echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 ac_check_lib_save_LIBS=$LIBS
19958 LIBS="-lsvld $LIBS"
19959 cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h. */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19966 /* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19969 #ifdef __cplusplus
19970 extern "C"
19971 #endif
19972 char dlopen ();
19974 main ()
19976 return dlopen ();
19978 return 0;
19980 _ACEOF
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_link") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext &&
19998 $as_test_x conftest$ac_exeext; then
19999 ac_cv_lib_svld_dlopen=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_svld_dlopen=no
20007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20011 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20012 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20013 if test $ac_cv_lib_svld_dlopen = yes; then
20015 cat >>confdefs.h <<\_ACEOF
20016 #define HAVE_LIBDL 1
20017 _ACEOF
20019 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20020 else
20021 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20022 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20023 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 ac_check_lib_save_LIBS=$LIBS
20027 LIBS="-ldld $LIBS"
20028 cat >conftest.$ac_ext <<_ACEOF
20029 /* confdefs.h. */
20030 _ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char dld_link ();
20043 main ()
20045 return dld_link ();
20047 return 0;
20049 _ACEOF
20050 rm -f conftest.$ac_objext conftest$ac_exeext
20051 if { (ac_try="$ac_link"
20052 case "(($ac_try" in
20053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054 *) ac_try_echo=$ac_try;;
20055 esac
20056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057 (eval "$ac_link") 2>conftest.er1
20058 ac_status=$?
20059 grep -v '^ *+' conftest.er1 >conftest.err
20060 rm -f conftest.er1
20061 cat conftest.err >&5
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); } && {
20064 test -z "$ac_c_werror_flag" ||
20065 test ! -s conftest.err
20066 } && test -s conftest$ac_exeext &&
20067 $as_test_x conftest$ac_exeext; then
20068 ac_cv_lib_dld_dld_link=yes
20069 else
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20073 ac_cv_lib_dld_dld_link=no
20076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20081 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20082 if test $ac_cv_lib_dld_dld_link = yes; then
20084 cat >>confdefs.h <<\_ACEOF
20085 #define HAVE_DLD 1
20086 _ACEOF
20088 LIBADD_DL="$LIBADD_DL -ldld"
20089 else
20090 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20091 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20092 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 else
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h. */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20103 #define _dyld_func_lookup innocuous__dyld_func_lookup
20105 /* System header to define __stub macros and hopefully few prototypes,
20106 which can conflict with char _dyld_func_lookup (); below.
20107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20108 <limits.h> exists even on freestanding compilers. */
20110 #ifdef __STDC__
20111 # include <limits.h>
20112 #else
20113 # include <assert.h>
20114 #endif
20116 #undef _dyld_func_lookup
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20121 #ifdef __cplusplus
20122 extern "C"
20123 #endif
20124 char _dyld_func_lookup ();
20125 /* The GNU C library defines this for functions which it implements
20126 to always fail with ENOSYS. Some functions are actually named
20127 something starting with __ and the normal name is an alias. */
20128 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20129 choke me
20130 #endif
20133 main ()
20135 return _dyld_func_lookup ();
20137 return 0;
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (ac_try="$ac_link"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_link") 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest$ac_exeext &&
20157 $as_test_x conftest$ac_exeext; then
20158 ac_cv_func__dyld_func_lookup=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_cv_func__dyld_func_lookup=no
20166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20167 conftest$ac_exeext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20170 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20171 if test $ac_cv_func__dyld_func_lookup = yes; then
20173 cat >>confdefs.h <<\_ACEOF
20174 #define HAVE_DYLD 1
20175 _ACEOF
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20200 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20201 then
20202 lt_save_LIBS="$LIBS"
20203 LIBS="$LIBS $LIBADD_DL"
20205 for ac_func in dlerror
20207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h. */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20221 #define $ac_func innocuous_$ac_func
20223 /* System header to define __stub macros and hopefully few prototypes,
20224 which can conflict with char $ac_func (); below.
20225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20226 <limits.h> exists even on freestanding compilers. */
20228 #ifdef __STDC__
20229 # include <limits.h>
20230 #else
20231 # include <assert.h>
20232 #endif
20234 #undef $ac_func
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char $ac_func ();
20243 /* The GNU C library defines this for functions which it implements
20244 to always fail with ENOSYS. Some functions are actually named
20245 something starting with __ and the normal name is an alias. */
20246 #if defined __stub_$ac_func || defined __stub___$ac_func
20247 choke me
20248 #endif
20251 main ()
20253 return $ac_func ();
20255 return 0;
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && {
20272 test -z "$ac_c_werror_flag" ||
20273 test ! -s conftest.err
20274 } && test -s conftest$ac_exeext &&
20275 $as_test_x conftest$ac_exeext; then
20276 eval "$as_ac_var=yes"
20277 else
20278 echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20281 eval "$as_ac_var=no"
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285 conftest$ac_exeext conftest.$ac_ext
20287 ac_res=`eval echo '${'$as_ac_var'}'`
20288 { echo "$as_me:$LINENO: result: $ac_res" >&5
20289 echo "${ECHO_T}$ac_res" >&6; }
20290 if test `eval echo '${'$as_ac_var'}'` = yes; then
20291 cat >>confdefs.h <<_ACEOF
20292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20293 _ACEOF
20296 done
20298 LIBS="$lt_save_LIBS"
20300 ac_ext=c
20301 ac_cpp='$CPP $CPPFLAGS'
20302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20308 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20309 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20310 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 else
20313 ac_cv_sys_symbol_underscore=no
20314 cat > conftest.$ac_ext <<EOF
20315 void nm_test_func(){}
20316 int main(){nm_test_func;return 0;}
20318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20319 (eval $ac_compile) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; then
20323 # Now try to grab the symbols.
20324 ac_nlist=conftest.nm
20325 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20326 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20327 ac_status=$?
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } && test -s "$ac_nlist"; then
20330 # See whether the symbols have a leading underscore.
20331 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20332 ac_cv_sys_symbol_underscore=yes
20333 else
20334 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20336 else
20337 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20340 else
20341 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20343 else
20344 echo "configure: failed program was:" >&5
20345 cat conftest.c >&5
20347 rm -rf conftest*
20350 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20351 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20354 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20355 if test x"$libltdl_cv_func_dlopen" = xyes ||
20356 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20357 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20358 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20359 if test "${libltdl_cv_need_uscore+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 else
20362 libltdl_cv_need_uscore=unknown
20363 save_LIBS="$LIBS"
20364 LIBS="$LIBS $LIBADD_DL"
20365 if test "$cross_compiling" = yes; then :
20366 libltdl_cv_need_uscore=cross
20367 else
20368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20369 lt_status=$lt_dlunknown
20370 cat > conftest.$ac_ext <<EOF
20371 #line 20371 "configure"
20372 #include "confdefs.h"
20374 #if HAVE_DLFCN_H
20375 #include <dlfcn.h>
20376 #endif
20378 #include <stdio.h>
20380 #ifdef RTLD_GLOBAL
20381 # define LT_DLGLOBAL RTLD_GLOBAL
20382 #else
20383 # ifdef DL_GLOBAL
20384 # define LT_DLGLOBAL DL_GLOBAL
20385 # else
20386 # define LT_DLGLOBAL 0
20387 # endif
20388 #endif
20390 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20391 find out it does not work in some platform. */
20392 #ifndef LT_DLLAZY_OR_NOW
20393 # ifdef RTLD_LAZY
20394 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20395 # else
20396 # ifdef DL_LAZY
20397 # define LT_DLLAZY_OR_NOW DL_LAZY
20398 # else
20399 # ifdef RTLD_NOW
20400 # define LT_DLLAZY_OR_NOW RTLD_NOW
20401 # else
20402 # ifdef DL_NOW
20403 # define LT_DLLAZY_OR_NOW DL_NOW
20404 # else
20405 # define LT_DLLAZY_OR_NOW 0
20406 # endif
20407 # endif
20408 # endif
20409 # endif
20410 #endif
20412 #ifdef __cplusplus
20413 extern "C" void exit (int);
20414 #endif
20416 void fnord() { int i=42;}
20417 int main ()
20419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20420 int status = $lt_dlunknown;
20422 if (self)
20424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20425 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20426 /* dlclose (self); */
20429 exit (status);
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20437 (./conftest; exit; ) 2>/dev/null
20438 lt_status=$?
20439 case x$lt_status in
20440 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20441 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20442 x$lt_unknown|x*) ;;
20443 esac
20444 else :
20445 # compilation failed
20449 rm -fr conftest*
20451 LIBS="$save_LIBS"
20454 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20455 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20459 if test x"$libltdl_cv_need_uscore" = xyes; then
20461 cat >>confdefs.h <<\_ACEOF
20462 #define NEED_USCORE 1
20463 _ACEOF
20468 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20469 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20470 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20471 echo $ECHO_N "(cached) $ECHO_C" >&6
20472 else
20473 # PORTME does your system automatically load deplibs for dlopen?
20474 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20475 # For now, we just catch OSes we know something about -- in the
20476 # future, we'll try test this programmatically.
20477 libltdl_cv_sys_dlopen_deplibs=unknown
20478 case "$host_os" in
20479 aix3*|aix4.1.*|aix4.2.*)
20480 # Unknown whether this is true for these versions of AIX, but
20481 # we want this `case' here to explicitly catch those versions.
20482 libltdl_cv_sys_dlopen_deplibs=unknown
20484 aix[45]*)
20485 libltdl_cv_sys_dlopen_deplibs=yes
20487 darwin*)
20488 # Assuming the user has installed a libdl from somewhere, this is true
20489 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20490 libltdl_cv_sys_dlopen_deplibs=yes
20492 kfreebsd*-gnu)
20493 libltdl_cv_sys_dlopen_deplibs=yes
20495 gnu*)
20496 libltdl_cv_sys_dlopen_deplibs=yes
20498 hpux10*|hpux11*)
20499 libltdl_cv_sys_dlopen_deplibs=yes
20501 irix[12345]*|irix6.[01]*)
20502 # Catch all versions of IRIX before 6.2, and indicate that we don't
20503 # know how it worked for any of those versions.
20504 libltdl_cv_sys_dlopen_deplibs=unknown
20506 irix*)
20507 # The case above catches anything before 6.2, and it's known that
20508 # at 6.2 and later dlopen does load deplibs.
20509 libltdl_cv_sys_dlopen_deplibs=yes
20511 linux*)
20512 libltdl_cv_sys_dlopen_deplibs=yes
20514 netbsd*)
20515 libltdl_cv_sys_dlopen_deplibs=yes
20517 openbsd*)
20518 libltdl_cv_sys_dlopen_deplibs=yes
20520 osf[1234]*)
20521 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20522 # it did *not* use an RPATH in a shared library to find objects the
20523 # library depends on, so we explictly say `no'.
20524 libltdl_cv_sys_dlopen_deplibs=no
20526 osf5.0|osf5.0a|osf5.1)
20527 # dlopen *does* load deplibs and with the right loader patch applied
20528 # it even uses RPATH in a shared library to search for shared objects
20529 # that the library depends on, but there's no easy way to know if that
20530 # patch is installed. Since this is the case, all we can really
20531 # say is unknown -- it depends on the patch being installed. If
20532 # it is, this changes to `yes'. Without it, it would be `no'.
20533 libltdl_cv_sys_dlopen_deplibs=unknown
20535 osf*)
20536 # the two cases above should catch all versions of osf <= 5.1. Read
20537 # the comments above for what we know about them.
20538 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20539 # is used to find them so we can finally say `yes'.
20540 libltdl_cv_sys_dlopen_deplibs=yes
20542 solaris*)
20543 libltdl_cv_sys_dlopen_deplibs=yes
20545 esac
20548 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20549 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
20550 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20552 cat >>confdefs.h <<\_ACEOF
20553 #define LTDL_DLOPEN_DEPLIBS 1
20554 _ACEOF
20559 for ac_header in argz.h
20561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20568 ac_res=`eval echo '${'$as_ac_Header'}'`
20569 { echo "$as_me:$LINENO: result: $ac_res" >&5
20570 echo "${ECHO_T}$ac_res" >&6; }
20571 else
20572 # Is the header compilable?
20573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h. */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 $ac_includes_default
20582 #include <$ac_header>
20583 _ACEOF
20584 rm -f conftest.$ac_objext
20585 if { (ac_try="$ac_compile"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_compile") 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } && {
20598 test -z "$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 } && test -s conftest.$ac_objext; then
20601 ac_header_compiler=yes
20602 else
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_compiler=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20611 echo "${ECHO_T}$ac_header_compiler" >&6; }
20613 # Is the header present?
20614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20616 cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h. */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h. */
20622 #include <$ac_header>
20623 _ACEOF
20624 if { (ac_try="$ac_cpp conftest.$ac_ext"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } >/dev/null && {
20637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20638 test ! -s conftest.err
20639 }; then
20640 ac_header_preproc=yes
20641 else
20642 echo "$as_me: failed program was:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_header_preproc=no
20648 rm -f conftest.err conftest.$ac_ext
20649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20650 echo "${ECHO_T}$ac_header_preproc" >&6; }
20652 # So? What about this header?
20653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20654 yes:no: )
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20659 ac_header_preproc=yes
20661 no:yes:* )
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20676 esac
20677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 eval "$as_ac_Header=\$ac_header_preproc"
20684 ac_res=`eval echo '${'$as_ac_Header'}'`
20685 { echo "$as_me:$LINENO: result: $ac_res" >&5
20686 echo "${ECHO_T}$ac_res" >&6; }
20689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20692 _ACEOF
20696 done
20699 { echo "$as_me:$LINENO: checking for error_t" >&5
20700 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
20701 if test "${ac_cv_type_error_t+set}" = set; then
20702 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704 cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h. */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 #if HAVE_ARGZ_H
20711 # include <argz.h>
20712 #endif
20714 typedef error_t ac__type_new_;
20716 main ()
20718 if ((ac__type_new_ *) 0)
20719 return 0;
20720 if (sizeof (ac__type_new_))
20721 return 0;
20723 return 0;
20725 _ACEOF
20726 rm -f conftest.$ac_objext
20727 if { (ac_try="$ac_compile"
20728 case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20731 esac
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_compile") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest.$ac_objext; then
20743 ac_cv_type_error_t=yes
20744 else
20745 echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20748 ac_cv_type_error_t=no
20751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20753 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20754 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
20755 if test $ac_cv_type_error_t = yes; then
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_ERROR_T 1
20759 _ACEOF
20762 else
20764 cat >>confdefs.h <<\_ACEOF
20765 #define error_t int
20766 _ACEOF
20776 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20779 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783 else
20784 cat >conftest.$ac_ext <<_ACEOF
20785 /* confdefs.h. */
20786 _ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20792 #define $ac_func innocuous_$ac_func
20794 /* System header to define __stub macros and hopefully few prototypes,
20795 which can conflict with char $ac_func (); below.
20796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20797 <limits.h> exists even on freestanding compilers. */
20799 #ifdef __STDC__
20800 # include <limits.h>
20801 #else
20802 # include <assert.h>
20803 #endif
20805 #undef $ac_func
20807 /* Override any GCC internal prototype to avoid an error.
20808 Use char because int might match the return type of a GCC
20809 builtin and then its argument prototype would still apply. */
20810 #ifdef __cplusplus
20811 extern "C"
20812 #endif
20813 char $ac_func ();
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined __stub_$ac_func || defined __stub___$ac_func
20818 choke me
20819 #endif
20822 main ()
20824 return $ac_func ();
20826 return 0;
20828 _ACEOF
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836 (eval "$ac_link") 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } && {
20843 test -z "$ac_c_werror_flag" ||
20844 test ! -s conftest.err
20845 } && test -s conftest$ac_exeext &&
20846 $as_test_x conftest$ac_exeext; then
20847 eval "$as_ac_var=yes"
20848 else
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 eval "$as_ac_var=no"
20855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20856 conftest$ac_exeext conftest.$ac_ext
20858 ac_res=`eval echo '${'$as_ac_var'}'`
20859 { echo "$as_me:$LINENO: result: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20861 if test `eval echo '${'$as_ac_var'}'` = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20864 _ACEOF
20867 done
20896 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20897 stdio.h unistd.h
20899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 ac_res=`eval echo '${'$as_ac_Header'}'`
20907 { echo "$as_me:$LINENO: result: $ac_res" >&5
20908 echo "${ECHO_T}$ac_res" >&6; }
20909 else
20910 # Is the header compilable?
20911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 #include <$ac_header>
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_header_compiler=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_compiler=no
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6; }
20951 # Is the header present?
20952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <$ac_header>
20961 _ACEOF
20962 if { (ac_try="$ac_cpp conftest.$ac_ext"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } >/dev/null && {
20975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 }; then
20978 ac_header_preproc=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_preproc=no
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20992 yes:no: )
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20997 ac_header_preproc=yes
20999 no:yes:* )
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21014 esac
21015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020 eval "$as_ac_Header=\$ac_header_preproc"
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21030 _ACEOF
21034 done
21040 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 ac_res=`eval echo '${'$as_ac_Header'}'`
21050 { echo "$as_me:$LINENO: result: $ac_res" >&5
21051 echo "${ECHO_T}$ac_res" >&6; }
21052 else
21053 # Is the header compilable?
21054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 $ac_includes_default
21063 #include <$ac_header>
21064 _ACEOF
21065 rm -f conftest.$ac_objext
21066 if { (ac_try="$ac_compile"
21067 case "(($ac_try" in
21068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21069 *) ac_try_echo=$ac_try;;
21070 esac
21071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21072 (eval "$ac_compile") 2>conftest.er1
21073 ac_status=$?
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } && {
21079 test -z "$ac_c_werror_flag" ||
21080 test ! -s conftest.err
21081 } && test -s conftest.$ac_objext; then
21082 ac_header_compiler=yes
21083 else
21084 echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 ac_header_compiler=no
21090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21092 echo "${ECHO_T}$ac_header_compiler" >&6; }
21094 # Is the header present?
21095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21097 cat >conftest.$ac_ext <<_ACEOF
21098 /* confdefs.h. */
21099 _ACEOF
21100 cat confdefs.h >>conftest.$ac_ext
21101 cat >>conftest.$ac_ext <<_ACEOF
21102 /* end confdefs.h. */
21103 #include <$ac_header>
21104 _ACEOF
21105 if { (ac_try="$ac_cpp conftest.$ac_ext"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } >/dev/null && {
21118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 }; then
21121 ac_header_preproc=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_preproc=no
21129 rm -f conftest.err conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21131 echo "${ECHO_T}$ac_header_preproc" >&6; }
21133 # So? What about this header?
21134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21135 yes:no: )
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21140 ac_header_preproc=yes
21142 no:yes:* )
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21157 esac
21158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 else
21163 eval "$as_ac_Header=\$ac_header_preproc"
21165 ac_res=`eval echo '${'$as_ac_Header'}'`
21166 { echo "$as_me:$LINENO: result: $ac_res" >&5
21167 echo "${ECHO_T}$ac_res" >&6; }
21170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21171 cat >>confdefs.h <<_ACEOF
21172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21173 _ACEOF
21177 done
21181 for ac_header in string.h strings.h
21183 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21184 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 ac_res=`eval echo '${'$as_ac_Header'}'`
21191 { echo "$as_me:$LINENO: result: $ac_res" >&5
21192 echo "${ECHO_T}$ac_res" >&6; }
21193 else
21194 # Is the header compilable?
21195 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h. */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 $ac_includes_default
21204 #include <$ac_header>
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210 *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213 (eval "$ac_compile") 2>conftest.er1
21214 ac_status=$?
21215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest.$ac_objext; then
21223 ac_header_compiler=yes
21224 else
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_compiler=no
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21233 echo "${ECHO_T}$ac_header_compiler" >&6; }
21235 # Is the header present?
21236 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h. */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 #include <$ac_header>
21245 _ACEOF
21246 if { (ac_try="$ac_cpp conftest.$ac_ext"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } >/dev/null && {
21259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21261 }; then
21262 ac_header_preproc=yes
21263 else
21264 echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21267 ac_header_preproc=no
21270 rm -f conftest.err conftest.$ac_ext
21271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21272 echo "${ECHO_T}$ac_header_preproc" >&6; }
21274 # So? What about this header?
21275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21276 yes:no: )
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21281 ac_header_preproc=yes
21283 no:yes:* )
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21287 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21290 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21291 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21294 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21298 esac
21299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304 eval "$as_ac_Header=\$ac_header_preproc"
21306 ac_res=`eval echo '${'$as_ac_Header'}'`
21307 { echo "$as_me:$LINENO: result: $ac_res" >&5
21308 echo "${ECHO_T}$ac_res" >&6; }
21311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21312 cat >>confdefs.h <<_ACEOF
21313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21314 _ACEOF
21315 break
21318 done
21323 for ac_func in strchr index
21325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331 cat >conftest.$ac_ext <<_ACEOF
21332 /* confdefs.h. */
21333 _ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21339 #define $ac_func innocuous_$ac_func
21341 /* System header to define __stub macros and hopefully few prototypes,
21342 which can conflict with char $ac_func (); below.
21343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21344 <limits.h> exists even on freestanding compilers. */
21346 #ifdef __STDC__
21347 # include <limits.h>
21348 #else
21349 # include <assert.h>
21350 #endif
21352 #undef $ac_func
21354 /* Override any GCC internal prototype to avoid an error.
21355 Use char because int might match the return type of a GCC
21356 builtin and then its argument prototype would still apply. */
21357 #ifdef __cplusplus
21358 extern "C"
21359 #endif
21360 char $ac_func ();
21361 /* The GNU C library defines this for functions which it implements
21362 to always fail with ENOSYS. Some functions are actually named
21363 something starting with __ and the normal name is an alias. */
21364 #if defined __stub_$ac_func || defined __stub___$ac_func
21365 choke me
21366 #endif
21369 main ()
21371 return $ac_func ();
21373 return 0;
21375 _ACEOF
21376 rm -f conftest.$ac_objext conftest$ac_exeext
21377 if { (ac_try="$ac_link"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_link") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } && {
21390 test -z "$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 } && test -s conftest$ac_exeext &&
21393 $as_test_x conftest$ac_exeext; then
21394 eval "$as_ac_var=yes"
21395 else
21396 echo "$as_me: failed program was:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 eval "$as_ac_var=no"
21402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21403 conftest$ac_exeext conftest.$ac_ext
21405 ac_res=`eval echo '${'$as_ac_var'}'`
21406 { echo "$as_me:$LINENO: result: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21408 if test `eval echo '${'$as_ac_var'}'` = yes; then
21409 cat >>confdefs.h <<_ACEOF
21410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21411 _ACEOF
21412 break
21414 done
21418 for ac_func in strrchr rindex
21420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425 else
21426 cat >conftest.$ac_ext <<_ACEOF
21427 /* confdefs.h. */
21428 _ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21434 #define $ac_func innocuous_$ac_func
21436 /* System header to define __stub macros and hopefully few prototypes,
21437 which can conflict with char $ac_func (); below.
21438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21439 <limits.h> exists even on freestanding compilers. */
21441 #ifdef __STDC__
21442 # include <limits.h>
21443 #else
21444 # include <assert.h>
21445 #endif
21447 #undef $ac_func
21449 /* Override any GCC internal prototype to avoid an error.
21450 Use char because int might match the return type of a GCC
21451 builtin and then its argument prototype would still apply. */
21452 #ifdef __cplusplus
21453 extern "C"
21454 #endif
21455 char $ac_func ();
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined __stub_$ac_func || defined __stub___$ac_func
21460 choke me
21461 #endif
21464 main ()
21466 return $ac_func ();
21468 return 0;
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (ac_try="$ac_link"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21476 esac
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_link") 2>conftest.er1
21479 ac_status=$?
21480 grep -v '^ *+' conftest.er1 >conftest.err
21481 rm -f conftest.er1
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest$ac_exeext &&
21488 $as_test_x conftest$ac_exeext; then
21489 eval "$as_ac_var=yes"
21490 else
21491 echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 eval "$as_ac_var=no"
21497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21498 conftest$ac_exeext conftest.$ac_ext
21500 ac_res=`eval echo '${'$as_ac_var'}'`
21501 { echo "$as_me:$LINENO: result: $ac_res" >&5
21502 echo "${ECHO_T}$ac_res" >&6; }
21503 if test `eval echo '${'$as_ac_var'}'` = yes; then
21504 cat >>confdefs.h <<_ACEOF
21505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21506 _ACEOF
21507 break
21509 done
21513 for ac_func in memcpy bcopy
21515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21516 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21518 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21519 echo $ECHO_N "(cached) $ECHO_C" >&6
21520 else
21521 cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h. */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h. */
21527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21529 #define $ac_func innocuous_$ac_func
21531 /* System header to define __stub macros and hopefully few prototypes,
21532 which can conflict with char $ac_func (); below.
21533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21534 <limits.h> exists even on freestanding compilers. */
21536 #ifdef __STDC__
21537 # include <limits.h>
21538 #else
21539 # include <assert.h>
21540 #endif
21542 #undef $ac_func
21544 /* Override any GCC internal prototype to avoid an error.
21545 Use char because int might match the return type of a GCC
21546 builtin and then its argument prototype would still apply. */
21547 #ifdef __cplusplus
21548 extern "C"
21549 #endif
21550 char $ac_func ();
21551 /* The GNU C library defines this for functions which it implements
21552 to always fail with ENOSYS. Some functions are actually named
21553 something starting with __ and the normal name is an alias. */
21554 #if defined __stub_$ac_func || defined __stub___$ac_func
21555 choke me
21556 #endif
21559 main ()
21561 return $ac_func ();
21563 return 0;
21565 _ACEOF
21566 rm -f conftest.$ac_objext conftest$ac_exeext
21567 if { (ac_try="$ac_link"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_link") 2>conftest.er1
21574 ac_status=$?
21575 grep -v '^ *+' conftest.er1 >conftest.err
21576 rm -f conftest.er1
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest$ac_exeext &&
21583 $as_test_x conftest$ac_exeext; then
21584 eval "$as_ac_var=yes"
21585 else
21586 echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 eval "$as_ac_var=no"
21592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21593 conftest$ac_exeext conftest.$ac_ext
21595 ac_res=`eval echo '${'$as_ac_var'}'`
21596 { echo "$as_me:$LINENO: result: $ac_res" >&5
21597 echo "${ECHO_T}$ac_res" >&6; }
21598 if test `eval echo '${'$as_ac_var'}'` = yes; then
21599 cat >>confdefs.h <<_ACEOF
21600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21601 _ACEOF
21602 break
21604 done
21608 for ac_func in memmove strcmp
21610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21614 echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21624 #define $ac_func innocuous_$ac_func
21626 /* System header to define __stub macros and hopefully few prototypes,
21627 which can conflict with char $ac_func (); below.
21628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21629 <limits.h> exists even on freestanding compilers. */
21631 #ifdef __STDC__
21632 # include <limits.h>
21633 #else
21634 # include <assert.h>
21635 #endif
21637 #undef $ac_func
21639 /* Override any GCC internal prototype to avoid an error.
21640 Use char because int might match the return type of a GCC
21641 builtin and then its argument prototype would still apply. */
21642 #ifdef __cplusplus
21643 extern "C"
21644 #endif
21645 char $ac_func ();
21646 /* The GNU C library defines this for functions which it implements
21647 to always fail with ENOSYS. Some functions are actually named
21648 something starting with __ and the normal name is an alias. */
21649 #if defined __stub_$ac_func || defined __stub___$ac_func
21650 choke me
21651 #endif
21654 main ()
21656 return $ac_func ();
21658 return 0;
21660 _ACEOF
21661 rm -f conftest.$ac_objext conftest$ac_exeext
21662 if { (ac_try="$ac_link"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_link") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } && {
21675 test -z "$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 } && test -s conftest$ac_exeext &&
21678 $as_test_x conftest$ac_exeext; then
21679 eval "$as_ac_var=yes"
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 eval "$as_ac_var=no"
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21690 ac_res=`eval echo '${'$as_ac_var'}'`
21691 { echo "$as_me:$LINENO: result: $ac_res" >&5
21692 echo "${ECHO_T}$ac_res" >&6; }
21693 if test `eval echo '${'$as_ac_var'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21696 _ACEOF
21699 done
21704 for ac_func in closedir opendir readdir
21706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21720 #define $ac_func innocuous_$ac_func
21722 /* System header to define __stub macros and hopefully few prototypes,
21723 which can conflict with char $ac_func (); below.
21724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21725 <limits.h> exists even on freestanding compilers. */
21727 #ifdef __STDC__
21728 # include <limits.h>
21729 #else
21730 # include <assert.h>
21731 #endif
21733 #undef $ac_func
21735 /* Override any GCC internal prototype to avoid an error.
21736 Use char because int might match the return type of a GCC
21737 builtin and then its argument prototype would still apply. */
21738 #ifdef __cplusplus
21739 extern "C"
21740 #endif
21741 char $ac_func ();
21742 /* The GNU C library defines this for functions which it implements
21743 to always fail with ENOSYS. Some functions are actually named
21744 something starting with __ and the normal name is an alias. */
21745 #if defined __stub_$ac_func || defined __stub___$ac_func
21746 choke me
21747 #endif
21750 main ()
21752 return $ac_func ();
21754 return 0;
21756 _ACEOF
21757 rm -f conftest.$ac_objext conftest$ac_exeext
21758 if { (ac_try="$ac_link"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_link") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest$ac_exeext &&
21774 $as_test_x conftest$ac_exeext; then
21775 eval "$as_ac_var=yes"
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21780 eval "$as_ac_var=no"
21783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21784 conftest$ac_exeext conftest.$ac_ext
21786 ac_res=`eval echo '${'$as_ac_var'}'`
21787 { echo "$as_me:$LINENO: result: $ac_res" >&5
21788 echo "${ECHO_T}$ac_res" >&6; }
21789 if test `eval echo '${'$as_ac_var'}'` = yes; then
21790 cat >>confdefs.h <<_ACEOF
21791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21792 _ACEOF
21795 done
21799 { echo "$as_me:$LINENO: checking for X" >&5
21800 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
21803 # Check whether --with-x was given.
21804 if test "${with_x+set}" = set; then
21805 withval=$with_x;
21808 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21809 if test "x$with_x" = xno; then
21810 # The user explicitly disabled X.
21811 have_x=disabled
21812 else
21813 case $x_includes,$x_libraries in #(
21814 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
21815 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
21816 { (exit 1); exit 1; }; };; #(
21817 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 else
21820 # One or both of the vars are not set, and there is no cached value.
21821 ac_x_includes=no ac_x_libraries=no
21822 rm -f -r conftest.dir
21823 if mkdir conftest.dir; then
21824 cd conftest.dir
21825 cat >Imakefile <<'_ACEOF'
21826 incroot:
21827 @echo incroot='${INCROOT}'
21828 usrlibdir:
21829 @echo usrlibdir='${USRLIBDIR}'
21830 libdir:
21831 @echo libdir='${LIBDIR}'
21832 _ACEOF
21833 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
21834 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21835 for ac_var in incroot usrlibdir libdir; do
21836 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
21837 done
21838 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21839 for ac_extension in a so sl; do
21840 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
21841 test -f "$ac_im_libdir/libX11.$ac_extension"; then
21842 ac_im_usrlibdir=$ac_im_libdir; break
21844 done
21845 # Screen out bogus values from the imake configuration. They are
21846 # bogus both because they are the default anyway, and because
21847 # using them would break gcc on systems where it needs fixed includes.
21848 case $ac_im_incroot in
21849 /usr/include) ac_x_includes= ;;
21850 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21851 esac
21852 case $ac_im_usrlibdir in
21853 /usr/lib | /lib) ;;
21854 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21855 esac
21857 cd ..
21858 rm -f -r conftest.dir
21861 # Standard set of common directories for X headers.
21862 # Check X11 before X11Rn because it is often a symlink to the current release.
21863 ac_x_header_dirs='
21864 /usr/X11/include
21865 /usr/X11R6/include
21866 /usr/X11R5/include
21867 /usr/X11R4/include
21869 /usr/include/X11
21870 /usr/include/X11R6
21871 /usr/include/X11R5
21872 /usr/include/X11R4
21874 /usr/local/X11/include
21875 /usr/local/X11R6/include
21876 /usr/local/X11R5/include
21877 /usr/local/X11R4/include
21879 /usr/local/include/X11
21880 /usr/local/include/X11R6
21881 /usr/local/include/X11R5
21882 /usr/local/include/X11R4
21884 /usr/X386/include
21885 /usr/x386/include
21886 /usr/XFree86/include/X11
21888 /usr/include
21889 /usr/local/include
21890 /usr/unsupported/include
21891 /usr/athena/include
21892 /usr/local/x11r5/include
21893 /usr/lpp/Xamples/include
21895 /usr/openwin/include
21896 /usr/openwin/share/include'
21898 if test "$ac_x_includes" = no; then
21899 # Guess where to find include files, by looking for Xlib.h.
21900 # First, try using that file with no special directory specified.
21901 cat >conftest.$ac_ext <<_ACEOF
21902 /* confdefs.h. */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h. */
21907 #include <X11/Xlib.h>
21908 _ACEOF
21909 if { (ac_try="$ac_cpp conftest.$ac_ext"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } >/dev/null && {
21922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 }; then
21925 # We can compile using X headers with no special include directory.
21926 ac_x_includes=
21927 else
21928 echo "$as_me: failed program was:" >&5
21929 sed 's/^/| /' conftest.$ac_ext >&5
21931 for ac_dir in $ac_x_header_dirs; do
21932 if test -r "$ac_dir/X11/Xlib.h"; then
21933 ac_x_includes=$ac_dir
21934 break
21936 done
21939 rm -f conftest.err conftest.$ac_ext
21940 fi # $ac_x_includes = no
21942 if test "$ac_x_libraries" = no; then
21943 # Check for the libraries.
21944 # See if we find them without any special options.
21945 # Don't add to $LIBS permanently.
21946 ac_save_LIBS=$LIBS
21947 LIBS="-lX11 $LIBS"
21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h. */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
21953 /* end confdefs.h. */
21954 #include <X11/Xlib.h>
21956 main ()
21958 XrmInitialize ()
21960 return 0;
21962 _ACEOF
21963 rm -f conftest.$ac_objext conftest$ac_exeext
21964 if { (ac_try="$ac_link"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_link") 2>conftest.er1
21971 ac_status=$?
21972 grep -v '^ *+' conftest.er1 >conftest.err
21973 rm -f conftest.er1
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest$ac_exeext &&
21980 $as_test_x conftest$ac_exeext; then
21981 LIBS=$ac_save_LIBS
21982 # We can link X programs with no special library path.
21983 ac_x_libraries=
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 LIBS=$ac_save_LIBS
21989 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21991 # Don't even attempt the hair of trying to link an X program!
21992 for ac_extension in a so sl; do
21993 if test -r "$ac_dir/libX11.$ac_extension"; then
21994 ac_x_libraries=$ac_dir
21995 break 2
21997 done
21998 done
22001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22002 conftest$ac_exeext conftest.$ac_ext
22003 fi # $ac_x_libraries = no
22005 case $ac_x_includes,$ac_x_libraries in #(
22006 no,* | *,no | *\'*)
22007 # Didn't find X, or a directory has "'" in its name.
22008 ac_cv_have_x="have_x=no";; #(
22010 # Record where we found X for the cache.
22011 ac_cv_have_x="have_x=yes\
22012 ac_x_includes='$ac_x_includes'\
22013 ac_x_libraries='$ac_x_libraries'"
22014 esac
22016 ;; #(
22017 *) have_x=yes;;
22018 esac
22019 eval "$ac_cv_have_x"
22020 fi # $with_x != no
22022 if test "$have_x" != yes; then
22023 { echo "$as_me:$LINENO: result: $have_x" >&5
22024 echo "${ECHO_T}$have_x" >&6; }
22025 no_x=yes
22026 else
22027 # If each of the values was on the command line, it overrides each guess.
22028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22030 # Update the cache value to reflect the command line values.
22031 ac_cv_have_x="have_x=yes\
22032 ac_x_includes='$x_includes'\
22033 ac_x_libraries='$x_libraries'"
22034 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22035 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
22038 if test "$no_x" = yes; then
22039 # Not all programs may use this symbol, but it does not hurt to define it.
22041 cat >>confdefs.h <<\_ACEOF
22042 #define X_DISPLAY_MISSING 1
22043 _ACEOF
22045 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22046 else
22047 if test -n "$x_includes"; then
22048 X_CFLAGS="$X_CFLAGS -I$x_includes"
22051 # It would also be nice to do this for all -L options, not just this one.
22052 if test -n "$x_libraries"; then
22053 X_LIBS="$X_LIBS -L$x_libraries"
22054 # For Solaris; some versions of Sun CC require a space after -R and
22055 # others require no space. Words are not sufficient . . . .
22056 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22057 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
22058 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22059 ac_xsave_c_werror_flag=$ac_c_werror_flag
22060 ac_c_werror_flag=yes
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22069 main ()
22073 return 0;
22075 _ACEOF
22076 rm -f conftest.$ac_objext conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22081 esac
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_link") 2>conftest.er1
22084 ac_status=$?
22085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } && {
22090 test -z "$ac_c_werror_flag" ||
22091 test ! -s conftest.err
22092 } && test -s conftest$ac_exeext &&
22093 $as_test_x conftest$ac_exeext; then
22094 { echo "$as_me:$LINENO: result: no" >&5
22095 echo "${ECHO_T}no" >&6; }
22096 X_LIBS="$X_LIBS -R$x_libraries"
22097 else
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 LIBS="$ac_xsave_LIBS -R $x_libraries"
22102 cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h. */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22110 main ()
22114 return 0;
22116 _ACEOF
22117 rm -f conftest.$ac_objext conftest$ac_exeext
22118 if { (ac_try="$ac_link"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_link") 2>conftest.er1
22125 ac_status=$?
22126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest$ac_exeext &&
22134 $as_test_x conftest$ac_exeext; then
22135 { echo "$as_me:$LINENO: result: yes" >&5
22136 echo "${ECHO_T}yes" >&6; }
22137 X_LIBS="$X_LIBS -R $x_libraries"
22138 else
22139 echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 { echo "$as_me:$LINENO: result: neither works" >&5
22143 echo "${ECHO_T}neither works" >&6; }
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22152 ac_c_werror_flag=$ac_xsave_c_werror_flag
22153 LIBS=$ac_xsave_LIBS
22156 # Check for system-dependent libraries X programs must link with.
22157 # Do this before checking for the system-independent R6 libraries
22158 # (-lICE), since we may need -lsocket or whatever for X linking.
22160 if test "$ISC" = yes; then
22161 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22162 else
22163 # Martyn Johnson says this is needed for Ultrix, if the X
22164 # libraries were built with DECnet support. And Karl Berry says
22165 # the Alpha needs dnet_stub (dnet does not exist).
22166 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22167 cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h. */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22174 /* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22177 #ifdef __cplusplus
22178 extern "C"
22179 #endif
22180 char XOpenDisplay ();
22182 main ()
22184 return XOpenDisplay ();
22186 return 0;
22188 _ACEOF
22189 rm -f conftest.$ac_objext conftest$ac_exeext
22190 if { (ac_try="$ac_link"
22191 case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_link") 2>conftest.er1
22197 ac_status=$?
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest$ac_exeext &&
22206 $as_test_x conftest$ac_exeext; then
22208 else
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22213 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
22214 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22215 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 else
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ldnet $LIBS"
22219 cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h. */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h. */
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char dnet_ntoa ();
22234 main ()
22236 return dnet_ntoa ();
22238 return 0;
22240 _ACEOF
22241 rm -f conftest.$ac_objext conftest$ac_exeext
22242 if { (ac_try="$ac_link"
22243 case "(($ac_try" in
22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22245 *) ac_try_echo=$ac_try;;
22246 esac
22247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22248 (eval "$ac_link") 2>conftest.er1
22249 ac_status=$?
22250 grep -v '^ *+' conftest.er1 >conftest.err
22251 rm -f conftest.er1
22252 cat conftest.err >&5
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); } && {
22255 test -z "$ac_c_werror_flag" ||
22256 test ! -s conftest.err
22257 } && test -s conftest$ac_exeext &&
22258 $as_test_x conftest$ac_exeext; then
22259 ac_cv_lib_dnet_dnet_ntoa=yes
22260 else
22261 echo "$as_me: failed program was:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 ac_cv_lib_dnet_dnet_ntoa=no
22267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22268 conftest$ac_exeext conftest.$ac_ext
22269 LIBS=$ac_check_lib_save_LIBS
22271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22272 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
22273 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
22274 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
22277 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
22278 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22279 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
22280 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283 ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-ldnet_stub $LIBS"
22285 cat >conftest.$ac_ext <<_ACEOF
22286 /* confdefs.h. */
22287 _ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22292 /* Override any GCC internal prototype to avoid an error.
22293 Use char because int might match the return type of a GCC
22294 builtin and then its argument prototype would still apply. */
22295 #ifdef __cplusplus
22296 extern "C"
22297 #endif
22298 char dnet_ntoa ();
22300 main ()
22302 return dnet_ntoa ();
22304 return 0;
22306 _ACEOF
22307 rm -f conftest.$ac_objext conftest$ac_exeext
22308 if { (ac_try="$ac_link"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_link") 2>conftest.er1
22315 ac_status=$?
22316 grep -v '^ *+' conftest.er1 >conftest.err
22317 rm -f conftest.er1
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest$ac_exeext &&
22324 $as_test_x conftest$ac_exeext; then
22325 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22326 else
22327 echo "$as_me: failed program was:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22330 ac_cv_lib_dnet_stub_dnet_ntoa=no
22333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22334 conftest$ac_exeext conftest.$ac_ext
22335 LIBS=$ac_check_lib_save_LIBS
22337 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22338 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
22339 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
22340 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
22346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22347 conftest$ac_exeext conftest.$ac_ext
22348 LIBS="$ac_xsave_LIBS"
22350 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22351 # to get the SysV transport functions.
22352 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
22353 # needs -lnsl.
22354 # The nsl library prevents programs from opening the X display
22355 # on Irix 5.2, according to T.E. Dickey.
22356 # The functions gethostbyname, getservbyname, and inet_addr are
22357 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22358 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
22359 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
22360 if test "${ac_cv_func_gethostbyname+set}" = set; then
22361 echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363 cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
22370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22371 #define gethostbyname innocuous_gethostbyname
22373 /* System header to define __stub macros and hopefully few prototypes,
22374 which can conflict with char gethostbyname (); below.
22375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22376 <limits.h> exists even on freestanding compilers. */
22378 #ifdef __STDC__
22379 # include <limits.h>
22380 #else
22381 # include <assert.h>
22382 #endif
22384 #undef gethostbyname
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22389 #ifdef __cplusplus
22390 extern "C"
22391 #endif
22392 char gethostbyname ();
22393 /* The GNU C library defines this for functions which it implements
22394 to always fail with ENOSYS. Some functions are actually named
22395 something starting with __ and the normal name is an alias. */
22396 #if defined __stub_gethostbyname || defined __stub___gethostbyname
22397 choke me
22398 #endif
22401 main ()
22403 return gethostbyname ();
22405 return 0;
22407 _ACEOF
22408 rm -f conftest.$ac_objext conftest$ac_exeext
22409 if { (ac_try="$ac_link"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22413 esac
22414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_link") 2>conftest.er1
22416 ac_status=$?
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest$ac_exeext &&
22425 $as_test_x conftest$ac_exeext; then
22426 ac_cv_func_gethostbyname=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22431 ac_cv_func_gethostbyname=no
22434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22435 conftest$ac_exeext conftest.$ac_ext
22437 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22438 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
22440 if test $ac_cv_func_gethostbyname = no; then
22441 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22442 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
22443 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446 ac_check_lib_save_LIBS=$LIBS
22447 LIBS="-lnsl $LIBS"
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22455 /* Override any GCC internal prototype to avoid an error.
22456 Use char because int might match the return type of a GCC
22457 builtin and then its argument prototype would still apply. */
22458 #ifdef __cplusplus
22459 extern "C"
22460 #endif
22461 char gethostbyname ();
22463 main ()
22465 return gethostbyname ();
22467 return 0;
22469 _ACEOF
22470 rm -f conftest.$ac_objext conftest$ac_exeext
22471 if { (ac_try="$ac_link"
22472 case "(($ac_try" in
22473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474 *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477 (eval "$ac_link") 2>conftest.er1
22478 ac_status=$?
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest$ac_exeext &&
22487 $as_test_x conftest$ac_exeext; then
22488 ac_cv_lib_nsl_gethostbyname=yes
22489 else
22490 echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22493 ac_cv_lib_nsl_gethostbyname=no
22496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22497 conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22500 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22501 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
22502 if test $ac_cv_lib_nsl_gethostbyname = yes; then
22503 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
22506 if test $ac_cv_lib_nsl_gethostbyname = no; then
22507 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
22508 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
22509 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22510 echo $ECHO_N "(cached) $ECHO_C" >&6
22511 else
22512 ac_check_lib_save_LIBS=$LIBS
22513 LIBS="-lbsd $LIBS"
22514 cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h. */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22521 /* Override any GCC internal prototype to avoid an error.
22522 Use char because int might match the return type of a GCC
22523 builtin and then its argument prototype would still apply. */
22524 #ifdef __cplusplus
22525 extern "C"
22526 #endif
22527 char gethostbyname ();
22529 main ()
22531 return gethostbyname ();
22533 return 0;
22535 _ACEOF
22536 rm -f conftest.$ac_objext conftest$ac_exeext
22537 if { (ac_try="$ac_link"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_link") 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } && {
22550 test -z "$ac_c_werror_flag" ||
22551 test ! -s conftest.err
22552 } && test -s conftest$ac_exeext &&
22553 $as_test_x conftest$ac_exeext; then
22554 ac_cv_lib_bsd_gethostbyname=yes
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_cv_lib_bsd_gethostbyname=no
22562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22563 conftest$ac_exeext conftest.$ac_ext
22564 LIBS=$ac_check_lib_save_LIBS
22566 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22567 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
22568 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22575 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22576 # socket/setsockopt and other routines are undefined under SCO ODT
22577 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
22578 # on later versions), says Simon Leinen: it contains gethostby*
22579 # variants that don't use the name server (or something). -lsocket
22580 # must be given before -lnsl if both are needed. We assume that
22581 # if connect needs -lnsl, so does gethostbyname.
22582 { echo "$as_me:$LINENO: checking for connect" >&5
22583 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
22584 if test "${ac_cv_func_connect+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587 cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h. */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
22594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22595 #define connect innocuous_connect
22597 /* System header to define __stub macros and hopefully few prototypes,
22598 which can conflict with char connect (); below.
22599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22600 <limits.h> exists even on freestanding compilers. */
22602 #ifdef __STDC__
22603 # include <limits.h>
22604 #else
22605 # include <assert.h>
22606 #endif
22608 #undef connect
22610 /* Override any GCC internal prototype to avoid an error.
22611 Use char because int might match the return type of a GCC
22612 builtin and then its argument prototype would still apply. */
22613 #ifdef __cplusplus
22614 extern "C"
22615 #endif
22616 char connect ();
22617 /* The GNU C library defines this for functions which it implements
22618 to always fail with ENOSYS. Some functions are actually named
22619 something starting with __ and the normal name is an alias. */
22620 #if defined __stub_connect || defined __stub___connect
22621 choke me
22622 #endif
22625 main ()
22627 return connect ();
22629 return 0;
22631 _ACEOF
22632 rm -f conftest.$ac_objext conftest$ac_exeext
22633 if { (ac_try="$ac_link"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_link") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext &&
22649 $as_test_x conftest$ac_exeext; then
22650 ac_cv_func_connect=yes
22651 else
22652 echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 ac_cv_func_connect=no
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22662 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
22664 if test $ac_cv_func_connect = no; then
22665 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22666 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
22667 if test "${ac_cv_lib_socket_connect+set}" = set; then
22668 echo $ECHO_N "(cached) $ECHO_C" >&6
22669 else
22670 ac_check_lib_save_LIBS=$LIBS
22671 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22672 cat >conftest.$ac_ext <<_ACEOF
22673 /* confdefs.h. */
22674 _ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22679 /* Override any GCC internal prototype to avoid an error.
22680 Use char because int might match the return type of a GCC
22681 builtin and then its argument prototype would still apply. */
22682 #ifdef __cplusplus
22683 extern "C"
22684 #endif
22685 char connect ();
22687 main ()
22689 return connect ();
22691 return 0;
22693 _ACEOF
22694 rm -f conftest.$ac_objext conftest$ac_exeext
22695 if { (ac_try="$ac_link"
22696 case "(($ac_try" in
22697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698 *) ac_try_echo=$ac_try;;
22699 esac
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_link") 2>conftest.er1
22702 ac_status=$?
22703 grep -v '^ *+' conftest.er1 >conftest.err
22704 rm -f conftest.er1
22705 cat conftest.err >&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); } && {
22708 test -z "$ac_c_werror_flag" ||
22709 test ! -s conftest.err
22710 } && test -s conftest$ac_exeext &&
22711 $as_test_x conftest$ac_exeext; then
22712 ac_cv_lib_socket_connect=yes
22713 else
22714 echo "$as_me: failed program was:" >&5
22715 sed 's/^/| /' conftest.$ac_ext >&5
22717 ac_cv_lib_socket_connect=no
22720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22721 conftest$ac_exeext conftest.$ac_ext
22722 LIBS=$ac_check_lib_save_LIBS
22724 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22725 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
22726 if test $ac_cv_lib_socket_connect = yes; then
22727 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22732 # Guillermo Gomez says -lposix is necessary on A/UX.
22733 { echo "$as_me:$LINENO: checking for remove" >&5
22734 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
22735 if test "${ac_cv_func_remove+set}" = set; then
22736 echo $ECHO_N "(cached) $ECHO_C" >&6
22737 else
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h. */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
22745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22746 #define remove innocuous_remove
22748 /* System header to define __stub macros and hopefully few prototypes,
22749 which can conflict with char remove (); below.
22750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22751 <limits.h> exists even on freestanding compilers. */
22753 #ifdef __STDC__
22754 # include <limits.h>
22755 #else
22756 # include <assert.h>
22757 #endif
22759 #undef remove
22761 /* Override any GCC internal prototype to avoid an error.
22762 Use char because int might match the return type of a GCC
22763 builtin and then its argument prototype would still apply. */
22764 #ifdef __cplusplus
22765 extern "C"
22766 #endif
22767 char remove ();
22768 /* The GNU C library defines this for functions which it implements
22769 to always fail with ENOSYS. Some functions are actually named
22770 something starting with __ and the normal name is an alias. */
22771 #if defined __stub_remove || defined __stub___remove
22772 choke me
22773 #endif
22776 main ()
22778 return remove ();
22780 return 0;
22782 _ACEOF
22783 rm -f conftest.$ac_objext conftest$ac_exeext
22784 if { (ac_try="$ac_link"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22791 ac_status=$?
22792 grep -v '^ *+' conftest.er1 >conftest.err
22793 rm -f conftest.er1
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 ac_cv_func_remove=yes
22802 else
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ac_cv_func_remove=no
22809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22810 conftest$ac_exeext conftest.$ac_ext
22812 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22813 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
22815 if test $ac_cv_func_remove = no; then
22816 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22817 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
22818 if test "${ac_cv_lib_posix_remove+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821 ac_check_lib_save_LIBS=$LIBS
22822 LIBS="-lposix $LIBS"
22823 cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h. */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h. */
22830 /* Override any GCC internal prototype to avoid an error.
22831 Use char because int might match the return type of a GCC
22832 builtin and then its argument prototype would still apply. */
22833 #ifdef __cplusplus
22834 extern "C"
22835 #endif
22836 char remove ();
22838 main ()
22840 return remove ();
22842 return 0;
22844 _ACEOF
22845 rm -f conftest.$ac_objext conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest$ac_exeext &&
22862 $as_test_x conftest$ac_exeext; then
22863 ac_cv_lib_posix_remove=yes
22864 else
22865 echo "$as_me: failed program was:" >&5
22866 sed 's/^/| /' conftest.$ac_ext >&5
22868 ac_cv_lib_posix_remove=no
22871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22872 conftest$ac_exeext conftest.$ac_ext
22873 LIBS=$ac_check_lib_save_LIBS
22875 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22876 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
22877 if test $ac_cv_lib_posix_remove = yes; then
22878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22883 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22884 { echo "$as_me:$LINENO: checking for shmat" >&5
22885 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
22886 if test "${ac_cv_func_shmat+set}" = set; then
22887 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889 cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h. */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
22896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22897 #define shmat innocuous_shmat
22899 /* System header to define __stub macros and hopefully few prototypes,
22900 which can conflict with char shmat (); below.
22901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22902 <limits.h> exists even on freestanding compilers. */
22904 #ifdef __STDC__
22905 # include <limits.h>
22906 #else
22907 # include <assert.h>
22908 #endif
22910 #undef shmat
22912 /* Override any GCC internal prototype to avoid an error.
22913 Use char because int might match the return type of a GCC
22914 builtin and then its argument prototype would still apply. */
22915 #ifdef __cplusplus
22916 extern "C"
22917 #endif
22918 char shmat ();
22919 /* The GNU C library defines this for functions which it implements
22920 to always fail with ENOSYS. Some functions are actually named
22921 something starting with __ and the normal name is an alias. */
22922 #if defined __stub_shmat || defined __stub___shmat
22923 choke me
22924 #endif
22927 main ()
22929 return shmat ();
22931 return 0;
22933 _ACEOF
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (ac_try="$ac_link"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_link") 2>conftest.er1
22942 ac_status=$?
22943 grep -v '^ *+' conftest.er1 >conftest.err
22944 rm -f conftest.er1
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest$ac_exeext &&
22951 $as_test_x conftest$ac_exeext; then
22952 ac_cv_func_shmat=yes
22953 else
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 ac_cv_func_shmat=no
22960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22961 conftest$ac_exeext conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22964 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
22966 if test $ac_cv_func_shmat = no; then
22967 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22968 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
22969 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 else
22972 ac_check_lib_save_LIBS=$LIBS
22973 LIBS="-lipc $LIBS"
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h. */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 /* Override any GCC internal prototype to avoid an error.
22982 Use char because int might match the return type of a GCC
22983 builtin and then its argument prototype would still apply. */
22984 #ifdef __cplusplus
22985 extern "C"
22986 #endif
22987 char shmat ();
22989 main ()
22991 return shmat ();
22993 return 0;
22995 _ACEOF
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001 esac
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23004 ac_status=$?
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 ac_cv_lib_ipc_shmat=yes
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_lib_ipc_shmat=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23024 LIBS=$ac_check_lib_save_LIBS
23026 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23027 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
23028 if test $ac_cv_lib_ipc_shmat = yes; then
23029 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23035 # Check for libraries that X11R6 Xt/Xaw programs need.
23036 ac_save_LDFLAGS=$LDFLAGS
23037 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23038 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23039 # check for ICE first), but we must link in the order -lSM -lICE or
23040 # we get undefined symbols. So assume we have SM if we have ICE.
23041 # These have to be linked with before -lX11, unlike the other
23042 # libraries we check for below, so use a different variable.
23043 # John Interrante, Karl Berry
23044 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23045 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
23046 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049 ac_check_lib_save_LIBS=$LIBS
23050 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23051 cat >conftest.$ac_ext <<_ACEOF
23052 /* confdefs.h. */
23053 _ACEOF
23054 cat confdefs.h >>conftest.$ac_ext
23055 cat >>conftest.$ac_ext <<_ACEOF
23056 /* end confdefs.h. */
23058 /* Override any GCC internal prototype to avoid an error.
23059 Use char because int might match the return type of a GCC
23060 builtin and then its argument prototype would still apply. */
23061 #ifdef __cplusplus
23062 extern "C"
23063 #endif
23064 char IceConnectionNumber ();
23066 main ()
23068 return IceConnectionNumber ();
23070 return 0;
23072 _ACEOF
23073 rm -f conftest.$ac_objext conftest$ac_exeext
23074 if { (ac_try="$ac_link"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_link") 2>conftest.er1
23081 ac_status=$?
23082 grep -v '^ *+' conftest.er1 >conftest.err
23083 rm -f conftest.er1
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest$ac_exeext &&
23090 $as_test_x conftest$ac_exeext; then
23091 ac_cv_lib_ICE_IceConnectionNumber=yes
23092 else
23093 echo "$as_me: failed program was:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_cv_lib_ICE_IceConnectionNumber=no
23099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23100 conftest$ac_exeext conftest.$ac_ext
23101 LIBS=$ac_check_lib_save_LIBS
23103 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23104 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
23105 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23106 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23109 LDFLAGS=$ac_save_LDFLAGS
23114 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23115 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23116 if test "${ac_cv_c_bigendian+set}" = set; then
23117 echo $ECHO_N "(cached) $ECHO_C" >&6
23118 else
23119 # See if sys/param.h defines the BYTE_ORDER macro.
23120 cat >conftest.$ac_ext <<_ACEOF
23121 /* confdefs.h. */
23122 _ACEOF
23123 cat confdefs.h >>conftest.$ac_ext
23124 cat >>conftest.$ac_ext <<_ACEOF
23125 /* end confdefs.h. */
23126 #include <sys/types.h>
23127 #include <sys/param.h>
23130 main ()
23132 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23133 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23134 bogus endian macros
23135 #endif
23138 return 0;
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
23149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest.$ac_objext; then
23158 # It does; now see whether it defined to BIG_ENDIAN or not.
23159 cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h. */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 #include <sys/types.h>
23166 #include <sys/param.h>
23169 main ()
23171 #if BYTE_ORDER != BIG_ENDIAN
23172 not big endian
23173 #endif
23176 return 0;
23178 _ACEOF
23179 rm -f conftest.$ac_objext
23180 if { (ac_try="$ac_compile"
23181 case "(($ac_try" in
23182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183 *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186 (eval "$ac_compile") 2>conftest.er1
23187 ac_status=$?
23188 grep -v '^ *+' conftest.er1 >conftest.err
23189 rm -f conftest.er1
23190 cat conftest.err >&5
23191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192 (exit $ac_status); } && {
23193 test -z "$ac_c_werror_flag" ||
23194 test ! -s conftest.err
23195 } && test -s conftest.$ac_objext; then
23196 ac_cv_c_bigendian=yes
23197 else
23198 echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23201 ac_cv_c_bigendian=no
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 else
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 # It does not; compile a test program.
23210 if test "$cross_compiling" = yes; then
23211 # try to guess the endianness by grepping values into an object file
23212 ac_cv_c_bigendian=unknown
23213 cat >conftest.$ac_ext <<_ACEOF
23214 /* confdefs.h. */
23215 _ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23219 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23220 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23221 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23222 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23223 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23224 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23226 main ()
23228 _ascii (); _ebcdic ();
23230 return 0;
23232 _ACEOF
23233 rm -f conftest.$ac_objext
23234 if { (ac_try="$ac_compile"
23235 case "(($ac_try" in
23236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23237 *) ac_try_echo=$ac_try;;
23238 esac
23239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23240 (eval "$ac_compile") 2>conftest.er1
23241 ac_status=$?
23242 grep -v '^ *+' conftest.er1 >conftest.err
23243 rm -f conftest.er1
23244 cat conftest.err >&5
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest.$ac_objext; then
23250 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23251 ac_cv_c_bigendian=yes
23253 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23254 if test "$ac_cv_c_bigendian" = unknown; then
23255 ac_cv_c_bigendian=no
23256 else
23257 # finding both strings is unlikely to happen, but who knows?
23258 ac_cv_c_bigendian=unknown
23261 else
23262 echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.$ac_ext >&5
23268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269 else
23270 cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h. */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $ac_includes_default
23278 main ()
23281 /* Are we little or big endian? From Harbison&Steele. */
23282 union
23284 long int l;
23285 char c[sizeof (long int)];
23286 } u;
23287 u.l = 1;
23288 return u.c[sizeof (long int) - 1] == 1;
23291 return 0;
23293 _ACEOF
23294 rm -f conftest$ac_exeext
23295 if { (ac_try="$ac_link"
23296 case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_link") 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23305 { (case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_try") 2>&5
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ac_cv_c_bigendian=no
23315 else
23316 echo "$as_me: program exited with status $ac_status" >&5
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ( exit $ac_status )
23321 ac_cv_c_bigendian=yes
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23332 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23333 case $ac_cv_c_bigendian in
23334 yes)
23336 cat >>confdefs.h <<\_ACEOF
23337 #define WORDS_BIGENDIAN 1
23338 _ACEOF
23343 { { echo "$as_me:$LINENO: error: unknown endianness
23344 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23345 echo "$as_me: error: unknown endianness
23346 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23347 { (exit 1); exit 1; }; } ;;
23348 esac
23350 { echo "$as_me:$LINENO: checking for inline" >&5
23351 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23352 if test "${ac_cv_c_inline+set}" = set; then
23353 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 else
23355 ac_cv_c_inline=no
23356 for ac_kw in inline __inline__ __inline; do
23357 cat >conftest.$ac_ext <<_ACEOF
23358 /* confdefs.h. */
23359 _ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 #ifndef __cplusplus
23364 typedef int foo_t;
23365 static $ac_kw foo_t static_foo () {return 0; }
23366 $ac_kw foo_t foo () {return 0; }
23367 #endif
23369 _ACEOF
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374 *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377 (eval "$ac_compile") 2>conftest.er1
23378 ac_status=$?
23379 grep -v '^ *+' conftest.er1 >conftest.err
23380 rm -f conftest.er1
23381 cat conftest.err >&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } && {
23384 test -z "$ac_c_werror_flag" ||
23385 test ! -s conftest.err
23386 } && test -s conftest.$ac_objext; then
23387 ac_cv_c_inline=$ac_kw
23388 else
23389 echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 test "$ac_cv_c_inline" != no && break
23397 done
23400 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23401 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23404 case $ac_cv_c_inline in
23405 inline | yes) ;;
23407 case $ac_cv_c_inline in
23408 no) ac_val=;;
23409 *) ac_val=$ac_cv_c_inline;;
23410 esac
23411 cat >>confdefs.h <<_ACEOF
23412 #ifndef __cplusplus
23413 #define inline $ac_val
23414 #endif
23415 _ACEOF
23417 esac
23419 { echo "$as_me:$LINENO: checking for unsigned char" >&5
23420 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
23421 if test "${ac_cv_type_unsigned_char+set}" = set; then
23422 echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424 cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h. */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 typedef unsigned char ac__type_new_;
23433 main ()
23435 if ((ac__type_new_ *) 0)
23436 return 0;
23437 if (sizeof (ac__type_new_))
23438 return 0;
23440 return 0;
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23451 ac_status=$?
23452 grep -v '^ *+' conftest.er1 >conftest.err
23453 rm -f conftest.er1
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_cv_type_unsigned_char=yes
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_type_unsigned_char=no
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
23471 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
23473 # The cast to long int works around a bug in the HP C Compiler
23474 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23475 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23476 # This bug is HP SR number 8606223364.
23477 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
23478 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
23479 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482 if test "$cross_compiling" = yes; then
23483 # Depending upon the size, compute the lo and hi bounds.
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h. */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23491 typedef unsigned char ac__type_sizeof_;
23493 main ()
23495 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23496 test_array [0] = 0
23499 return 0;
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23510 ac_status=$?
23511 grep -v '^ *+' conftest.er1 >conftest.err
23512 rm -f conftest.er1
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23519 ac_lo=0 ac_mid=0
23520 while :; do
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h. */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23527 $ac_includes_default
23528 typedef unsigned char ac__type_sizeof_;
23530 main ()
23532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23533 test_array [0] = 0
23536 return 0;
23538 _ACEOF
23539 rm -f conftest.$ac_objext
23540 if { (ac_try="$ac_compile"
23541 case "(($ac_try" in
23542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543 *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546 (eval "$ac_compile") 2>conftest.er1
23547 ac_status=$?
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } && {
23553 test -z "$ac_c_werror_flag" ||
23554 test ! -s conftest.err
23555 } && test -s conftest.$ac_objext; then
23556 ac_hi=$ac_mid; break
23557 else
23558 echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.$ac_ext >&5
23561 ac_lo=`expr $ac_mid + 1`
23562 if test $ac_lo -le $ac_mid; then
23563 ac_lo= ac_hi=
23564 break
23566 ac_mid=`expr 2 '*' $ac_mid + 1`
23569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23570 done
23571 else
23572 echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 $ac_includes_default
23582 typedef unsigned char ac__type_sizeof_;
23584 main ()
23586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23587 test_array [0] = 0
23590 return 0;
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 ac_hi=-1 ac_mid=-1
23611 while :; do
23612 cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h. */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h. */
23618 $ac_includes_default
23619 typedef unsigned char ac__type_sizeof_;
23621 main ()
23623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23624 test_array [0] = 0
23627 return 0;
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23635 esac
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23647 ac_lo=$ac_mid; break
23648 else
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 ac_hi=`expr '(' $ac_mid ')' - 1`
23653 if test $ac_mid -le $ac_hi; then
23654 ac_lo= ac_hi=
23655 break
23657 ac_mid=`expr 2 '*' $ac_mid`
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 done
23662 else
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23666 ac_lo= ac_hi=
23669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673 # Binary search between lo and hi bounds.
23674 while test "x$ac_lo" != "x$ac_hi"; do
23675 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23676 cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h. */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 $ac_includes_default
23683 typedef unsigned char ac__type_sizeof_;
23685 main ()
23687 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23688 test_array [0] = 0
23691 return 0;
23693 _ACEOF
23694 rm -f conftest.$ac_objext
23695 if { (ac_try="$ac_compile"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701 (eval "$ac_compile") 2>conftest.er1
23702 ac_status=$?
23703 grep -v '^ *+' conftest.er1 >conftest.err
23704 rm -f conftest.er1
23705 cat conftest.err >&5
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } && {
23708 test -z "$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23710 } && test -s conftest.$ac_objext; then
23711 ac_hi=$ac_mid
23712 else
23713 echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ac_lo=`expr '(' $ac_mid ')' + 1`
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 done
23721 case $ac_lo in
23722 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
23723 '') if test "$ac_cv_type_unsigned_char" = yes; then
23724 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23725 See \`config.log' for more details." >&5
23726 echo "$as_me: error: cannot compute sizeof (unsigned char)
23727 See \`config.log' for more details." >&2;}
23728 { (exit 77); exit 77; }; }
23729 else
23730 ac_cv_sizeof_unsigned_char=0
23731 fi ;;
23732 esac
23733 else
23734 cat >conftest.$ac_ext <<_ACEOF
23735 /* confdefs.h. */
23736 _ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23740 $ac_includes_default
23741 typedef unsigned char ac__type_sizeof_;
23742 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23743 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23744 #include <stdio.h>
23745 #include <stdlib.h>
23747 main ()
23750 FILE *f = fopen ("conftest.val", "w");
23751 if (! f)
23752 return 1;
23753 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23755 long int i = longval ();
23756 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23757 return 1;
23758 fprintf (f, "%ld\n", i);
23760 else
23762 unsigned long int i = ulongval ();
23763 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23764 return 1;
23765 fprintf (f, "%lu\n", i);
23767 return ferror (f) || fclose (f) != 0;
23770 return 0;
23772 _ACEOF
23773 rm -f conftest$ac_exeext
23774 if { (ac_try="$ac_link"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23778 esac
23779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23780 (eval "$ac_link") 2>&5
23781 ac_status=$?
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23784 { (case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_try") 2>&5
23790 ac_status=$?
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); }; }; then
23793 ac_cv_sizeof_unsigned_char=`cat conftest.val`
23794 else
23795 echo "$as_me: program exited with status $ac_status" >&5
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ( exit $ac_status )
23800 if test "$ac_cv_type_unsigned_char" = yes; then
23801 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
23802 See \`config.log' for more details." >&5
23803 echo "$as_me: error: cannot compute sizeof (unsigned char)
23804 See \`config.log' for more details." >&2;}
23805 { (exit 77); exit 77; }; }
23806 else
23807 ac_cv_sizeof_unsigned_char=0
23810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23812 rm -f conftest.val
23814 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
23815 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
23819 cat >>confdefs.h <<_ACEOF
23820 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
23821 _ACEOF
23824 { echo "$as_me:$LINENO: checking for unsigned short" >&5
23825 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
23826 if test "${ac_cv_type_unsigned_short+set}" = set; then
23827 echo $ECHO_N "(cached) $ECHO_C" >&6
23828 else
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 typedef unsigned short ac__type_new_;
23838 main ()
23840 if ((ac__type_new_ *) 0)
23841 return 0;
23842 if (sizeof (ac__type_new_))
23843 return 0;
23845 return 0;
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23856 ac_status=$?
23857 grep -v '^ *+' conftest.er1 >conftest.err
23858 rm -f conftest.er1
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23865 ac_cv_type_unsigned_short=yes
23866 else
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 ac_cv_type_unsigned_short=no
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23875 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
23876 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
23878 # The cast to long int works around a bug in the HP C Compiler
23879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23881 # This bug is HP SR number 8606223364.
23882 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
23883 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
23884 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 else
23887 if test "$cross_compiling" = yes; then
23888 # Depending upon the size, compute the lo and hi bounds.
23889 cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h. */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 $ac_includes_default
23896 typedef unsigned short ac__type_sizeof_;
23898 main ()
23900 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23901 test_array [0] = 0
23904 return 0;
23906 _ACEOF
23907 rm -f conftest.$ac_objext
23908 if { (ac_try="$ac_compile"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914 (eval "$ac_compile") 2>conftest.er1
23915 ac_status=$?
23916 grep -v '^ *+' conftest.er1 >conftest.err
23917 rm -f conftest.er1
23918 cat conftest.err >&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); } && {
23921 test -z "$ac_c_werror_flag" ||
23922 test ! -s conftest.err
23923 } && test -s conftest.$ac_objext; then
23924 ac_lo=0 ac_mid=0
23925 while :; do
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h. */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 $ac_includes_default
23933 typedef unsigned short ac__type_sizeof_;
23935 main ()
23937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23938 test_array [0] = 0
23941 return 0;
23943 _ACEOF
23944 rm -f conftest.$ac_objext
23945 if { (ac_try="$ac_compile"
23946 case "(($ac_try" in
23947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23948 *) ac_try_echo=$ac_try;;
23949 esac
23950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23951 (eval "$ac_compile") 2>conftest.er1
23952 ac_status=$?
23953 grep -v '^ *+' conftest.er1 >conftest.err
23954 rm -f conftest.er1
23955 cat conftest.err >&5
23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957 (exit $ac_status); } && {
23958 test -z "$ac_c_werror_flag" ||
23959 test ! -s conftest.err
23960 } && test -s conftest.$ac_objext; then
23961 ac_hi=$ac_mid; break
23962 else
23963 echo "$as_me: failed program was:" >&5
23964 sed 's/^/| /' conftest.$ac_ext >&5
23966 ac_lo=`expr $ac_mid + 1`
23967 if test $ac_lo -le $ac_mid; then
23968 ac_lo= ac_hi=
23969 break
23971 ac_mid=`expr 2 '*' $ac_mid + 1`
23974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 done
23976 else
23977 echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23980 cat >conftest.$ac_ext <<_ACEOF
23981 /* confdefs.h. */
23982 _ACEOF
23983 cat confdefs.h >>conftest.$ac_ext
23984 cat >>conftest.$ac_ext <<_ACEOF
23985 /* end confdefs.h. */
23986 $ac_includes_default
23987 typedef unsigned short ac__type_sizeof_;
23989 main ()
23991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23992 test_array [0] = 0
23995 return 0;
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (ac_try="$ac_compile"
24000 case "(($ac_try" in
24001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24002 *) ac_try_echo=$ac_try;;
24003 esac
24004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_hi=-1 ac_mid=-1
24016 while :; do
24017 cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h. */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 $ac_includes_default
24024 typedef unsigned short ac__type_sizeof_;
24026 main ()
24028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24029 test_array [0] = 0
24032 return 0;
24034 _ACEOF
24035 rm -f conftest.$ac_objext
24036 if { (ac_try="$ac_compile"
24037 case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.$ac_objext; then
24052 ac_lo=$ac_mid; break
24053 else
24054 echo "$as_me: failed program was:" >&5
24055 sed 's/^/| /' conftest.$ac_ext >&5
24057 ac_hi=`expr '(' $ac_mid ')' - 1`
24058 if test $ac_mid -le $ac_hi; then
24059 ac_lo= ac_hi=
24060 break
24062 ac_mid=`expr 2 '*' $ac_mid`
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 done
24067 else
24068 echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24071 ac_lo= ac_hi=
24074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078 # Binary search between lo and hi bounds.
24079 while test "x$ac_lo" != "x$ac_hi"; do
24080 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24081 cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h. */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24087 $ac_includes_default
24088 typedef unsigned short ac__type_sizeof_;
24090 main ()
24092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24093 test_array [0] = 0
24096 return 0;
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103 *) ac_try_echo=$ac_try;;
24104 esac
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106 (eval "$ac_compile") 2>conftest.er1
24107 ac_status=$?
24108 grep -v '^ *+' conftest.er1 >conftest.err
24109 rm -f conftest.er1
24110 cat conftest.err >&5
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); } && {
24113 test -z "$ac_c_werror_flag" ||
24114 test ! -s conftest.err
24115 } && test -s conftest.$ac_objext; then
24116 ac_hi=$ac_mid
24117 else
24118 echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24121 ac_lo=`expr '(' $ac_mid ')' + 1`
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 done
24126 case $ac_lo in
24127 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24128 '') if test "$ac_cv_type_unsigned_short" = yes; then
24129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24130 See \`config.log' for more details." >&5
24131 echo "$as_me: error: cannot compute sizeof (unsigned short)
24132 See \`config.log' for more details." >&2;}
24133 { (exit 77); exit 77; }; }
24134 else
24135 ac_cv_sizeof_unsigned_short=0
24136 fi ;;
24137 esac
24138 else
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h. */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145 $ac_includes_default
24146 typedef unsigned short ac__type_sizeof_;
24147 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24148 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24149 #include <stdio.h>
24150 #include <stdlib.h>
24152 main ()
24155 FILE *f = fopen ("conftest.val", "w");
24156 if (! f)
24157 return 1;
24158 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24160 long int i = longval ();
24161 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24162 return 1;
24163 fprintf (f, "%ld\n", i);
24165 else
24167 unsigned long int i = ulongval ();
24168 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24169 return 1;
24170 fprintf (f, "%lu\n", i);
24172 return ferror (f) || fclose (f) != 0;
24175 return 0;
24177 _ACEOF
24178 rm -f conftest$ac_exeext
24179 if { (ac_try="$ac_link"
24180 case "(($ac_try" in
24181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182 *) ac_try_echo=$ac_try;;
24183 esac
24184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24185 (eval "$ac_link") 2>&5
24186 ac_status=$?
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24189 { (case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194 (eval "$ac_try") 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24199 else
24200 echo "$as_me: program exited with status $ac_status" >&5
24201 echo "$as_me: failed program was:" >&5
24202 sed 's/^/| /' conftest.$ac_ext >&5
24204 ( exit $ac_status )
24205 if test "$ac_cv_type_unsigned_short" = yes; then
24206 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24207 See \`config.log' for more details." >&5
24208 echo "$as_me: error: cannot compute sizeof (unsigned short)
24209 See \`config.log' for more details." >&2;}
24210 { (exit 77); exit 77; }; }
24211 else
24212 ac_cv_sizeof_unsigned_short=0
24215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24217 rm -f conftest.val
24219 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24220 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
24224 cat >>confdefs.h <<_ACEOF
24225 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24226 _ACEOF
24229 { echo "$as_me:$LINENO: checking for unsigned int" >&5
24230 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
24231 if test "${ac_cv_type_unsigned_int+set}" = set; then
24232 echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234 cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h. */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24241 typedef unsigned int ac__type_new_;
24243 main ()
24245 if ((ac__type_new_ *) 0)
24246 return 0;
24247 if (sizeof (ac__type_new_))
24248 return 0;
24250 return 0;
24252 _ACEOF
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24261 ac_status=$?
24262 grep -v '^ *+' conftest.er1 >conftest.err
24263 rm -f conftest.er1
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24270 ac_cv_type_unsigned_int=yes
24271 else
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ac_cv_type_unsigned_int=no
24278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
24281 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
24283 # The cast to long int works around a bug in the HP C Compiler
24284 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24285 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24286 # This bug is HP SR number 8606223364.
24287 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
24288 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
24289 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
24290 echo $ECHO_N "(cached) $ECHO_C" >&6
24291 else
24292 if test "$cross_compiling" = yes; then
24293 # Depending upon the size, compute the lo and hi bounds.
24294 cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 $ac_includes_default
24301 typedef unsigned int ac__type_sizeof_;
24303 main ()
24305 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24306 test_array [0] = 0
24309 return 0;
24311 _ACEOF
24312 rm -f conftest.$ac_objext
24313 if { (ac_try="$ac_compile"
24314 case "(($ac_try" in
24315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24316 *) ac_try_echo=$ac_try;;
24317 esac
24318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24319 (eval "$ac_compile") 2>conftest.er1
24320 ac_status=$?
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } && {
24326 test -z "$ac_c_werror_flag" ||
24327 test ! -s conftest.err
24328 } && test -s conftest.$ac_objext; then
24329 ac_lo=0 ac_mid=0
24330 while :; do
24331 cat >conftest.$ac_ext <<_ACEOF
24332 /* confdefs.h. */
24333 _ACEOF
24334 cat confdefs.h >>conftest.$ac_ext
24335 cat >>conftest.$ac_ext <<_ACEOF
24336 /* end confdefs.h. */
24337 $ac_includes_default
24338 typedef unsigned int ac__type_sizeof_;
24340 main ()
24342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24343 test_array [0] = 0
24346 return 0;
24348 _ACEOF
24349 rm -f conftest.$ac_objext
24350 if { (ac_try="$ac_compile"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_compile") 2>conftest.er1
24357 ac_status=$?
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } && {
24363 test -z "$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24365 } && test -s conftest.$ac_objext; then
24366 ac_hi=$ac_mid; break
24367 else
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ac_lo=`expr $ac_mid + 1`
24372 if test $ac_lo -le $ac_mid; then
24373 ac_lo= ac_hi=
24374 break
24376 ac_mid=`expr 2 '*' $ac_mid + 1`
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 done
24381 else
24382 echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h. */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h. */
24391 $ac_includes_default
24392 typedef unsigned int ac__type_sizeof_;
24394 main ()
24396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24397 test_array [0] = 0
24400 return 0;
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407 *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410 (eval "$ac_compile") 2>conftest.er1
24411 ac_status=$?
24412 grep -v '^ *+' conftest.er1 >conftest.err
24413 rm -f conftest.er1
24414 cat conftest.err >&5
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); } && {
24417 test -z "$ac_c_werror_flag" ||
24418 test ! -s conftest.err
24419 } && test -s conftest.$ac_objext; then
24420 ac_hi=-1 ac_mid=-1
24421 while :; do
24422 cat >conftest.$ac_ext <<_ACEOF
24423 /* confdefs.h. */
24424 _ACEOF
24425 cat confdefs.h >>conftest.$ac_ext
24426 cat >>conftest.$ac_ext <<_ACEOF
24427 /* end confdefs.h. */
24428 $ac_includes_default
24429 typedef unsigned int ac__type_sizeof_;
24431 main ()
24433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24434 test_array [0] = 0
24437 return 0;
24439 _ACEOF
24440 rm -f conftest.$ac_objext
24441 if { (ac_try="$ac_compile"
24442 case "(($ac_try" in
24443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444 *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447 (eval "$ac_compile") 2>conftest.er1
24448 ac_status=$?
24449 grep -v '^ *+' conftest.er1 >conftest.err
24450 rm -f conftest.er1
24451 cat conftest.err >&5
24452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest.$ac_objext; then
24457 ac_lo=$ac_mid; break
24458 else
24459 echo "$as_me: failed program was:" >&5
24460 sed 's/^/| /' conftest.$ac_ext >&5
24462 ac_hi=`expr '(' $ac_mid ')' - 1`
24463 if test $ac_mid -le $ac_hi; then
24464 ac_lo= ac_hi=
24465 break
24467 ac_mid=`expr 2 '*' $ac_mid`
24470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24471 done
24472 else
24473 echo "$as_me: failed program was:" >&5
24474 sed 's/^/| /' conftest.$ac_ext >&5
24476 ac_lo= ac_hi=
24479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 # Binary search between lo and hi bounds.
24484 while test "x$ac_lo" != "x$ac_hi"; do
24485 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24486 cat >conftest.$ac_ext <<_ACEOF
24487 /* confdefs.h. */
24488 _ACEOF
24489 cat confdefs.h >>conftest.$ac_ext
24490 cat >>conftest.$ac_ext <<_ACEOF
24491 /* end confdefs.h. */
24492 $ac_includes_default
24493 typedef unsigned int ac__type_sizeof_;
24495 main ()
24497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24498 test_array [0] = 0
24501 return 0;
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_hi=$ac_mid
24522 else
24523 echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_lo=`expr '(' $ac_mid ')' + 1`
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 done
24531 case $ac_lo in
24532 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
24533 '') if test "$ac_cv_type_unsigned_int" = yes; then
24534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24535 See \`config.log' for more details." >&5
24536 echo "$as_me: error: cannot compute sizeof (unsigned int)
24537 See \`config.log' for more details." >&2;}
24538 { (exit 77); exit 77; }; }
24539 else
24540 ac_cv_sizeof_unsigned_int=0
24541 fi ;;
24542 esac
24543 else
24544 cat >conftest.$ac_ext <<_ACEOF
24545 /* confdefs.h. */
24546 _ACEOF
24547 cat confdefs.h >>conftest.$ac_ext
24548 cat >>conftest.$ac_ext <<_ACEOF
24549 /* end confdefs.h. */
24550 $ac_includes_default
24551 typedef unsigned int ac__type_sizeof_;
24552 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24553 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24554 #include <stdio.h>
24555 #include <stdlib.h>
24557 main ()
24560 FILE *f = fopen ("conftest.val", "w");
24561 if (! f)
24562 return 1;
24563 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24565 long int i = longval ();
24566 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24567 return 1;
24568 fprintf (f, "%ld\n", i);
24570 else
24572 unsigned long int i = ulongval ();
24573 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24574 return 1;
24575 fprintf (f, "%lu\n", i);
24577 return ferror (f) || fclose (f) != 0;
24580 return 0;
24582 _ACEOF
24583 rm -f conftest$ac_exeext
24584 if { (ac_try="$ac_link"
24585 case "(($ac_try" in
24586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587 *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590 (eval "$ac_link") 2>&5
24591 ac_status=$?
24592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24594 { (case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599 (eval "$ac_try") 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; }; then
24603 ac_cv_sizeof_unsigned_int=`cat conftest.val`
24604 else
24605 echo "$as_me: program exited with status $ac_status" >&5
24606 echo "$as_me: failed program was:" >&5
24607 sed 's/^/| /' conftest.$ac_ext >&5
24609 ( exit $ac_status )
24610 if test "$ac_cv_type_unsigned_int" = yes; then
24611 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
24612 See \`config.log' for more details." >&5
24613 echo "$as_me: error: cannot compute sizeof (unsigned int)
24614 See \`config.log' for more details." >&2;}
24615 { (exit 77); exit 77; }; }
24616 else
24617 ac_cv_sizeof_unsigned_int=0
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24622 rm -f conftest.val
24624 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
24625 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
24629 cat >>confdefs.h <<_ACEOF
24630 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24631 _ACEOF
24634 { echo "$as_me:$LINENO: checking for unsigned long" >&5
24635 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
24636 if test "${ac_cv_type_unsigned_long+set}" = set; then
24637 echo $ECHO_N "(cached) $ECHO_C" >&6
24638 else
24639 cat >conftest.$ac_ext <<_ACEOF
24640 /* confdefs.h. */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h. */
24645 $ac_includes_default
24646 typedef unsigned long ac__type_new_;
24648 main ()
24650 if ((ac__type_new_ *) 0)
24651 return 0;
24652 if (sizeof (ac__type_new_))
24653 return 0;
24655 return 0;
24657 _ACEOF
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest.$ac_objext; then
24675 ac_cv_type_unsigned_long=yes
24676 else
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_cv_type_unsigned_long=no
24683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24686 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
24688 # The cast to long int works around a bug in the HP C Compiler
24689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24691 # This bug is HP SR number 8606223364.
24692 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
24693 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
24694 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24695 echo $ECHO_N "(cached) $ECHO_C" >&6
24696 else
24697 if test "$cross_compiling" = yes; then
24698 # Depending upon the size, compute the lo and hi bounds.
24699 cat >conftest.$ac_ext <<_ACEOF
24700 /* confdefs.h. */
24701 _ACEOF
24702 cat confdefs.h >>conftest.$ac_ext
24703 cat >>conftest.$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 $ac_includes_default
24706 typedef unsigned long ac__type_sizeof_;
24708 main ()
24710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24711 test_array [0] = 0
24714 return 0;
24716 _ACEOF
24717 rm -f conftest.$ac_objext
24718 if { (ac_try="$ac_compile"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722 esac
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24725 ac_status=$?
24726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 ac_lo=0 ac_mid=0
24735 while :; do
24736 cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h. */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 $ac_includes_default
24743 typedef unsigned long ac__type_sizeof_;
24745 main ()
24747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24748 test_array [0] = 0
24751 return 0;
24753 _ACEOF
24754 rm -f conftest.$ac_objext
24755 if { (ac_try="$ac_compile"
24756 case "(($ac_try" in
24757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24758 *) ac_try_echo=$ac_try;;
24759 esac
24760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24761 (eval "$ac_compile") 2>conftest.er1
24762 ac_status=$?
24763 grep -v '^ *+' conftest.er1 >conftest.err
24764 rm -f conftest.er1
24765 cat conftest.err >&5
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); } && {
24768 test -z "$ac_c_werror_flag" ||
24769 test ! -s conftest.err
24770 } && test -s conftest.$ac_objext; then
24771 ac_hi=$ac_mid; break
24772 else
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_lo=`expr $ac_mid + 1`
24777 if test $ac_lo -le $ac_mid; then
24778 ac_lo= ac_hi=
24779 break
24781 ac_mid=`expr 2 '*' $ac_mid + 1`
24784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24785 done
24786 else
24787 echo "$as_me: failed program was:" >&5
24788 sed 's/^/| /' conftest.$ac_ext >&5
24790 cat >conftest.$ac_ext <<_ACEOF
24791 /* confdefs.h. */
24792 _ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24796 $ac_includes_default
24797 typedef unsigned long ac__type_sizeof_;
24799 main ()
24801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24802 test_array [0] = 0
24805 return 0;
24807 _ACEOF
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24813 esac
24814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24815 (eval "$ac_compile") 2>conftest.er1
24816 ac_status=$?
24817 grep -v '^ *+' conftest.er1 >conftest.err
24818 rm -f conftest.er1
24819 cat conftest.err >&5
24820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest.$ac_objext; then
24825 ac_hi=-1 ac_mid=-1
24826 while :; do
24827 cat >conftest.$ac_ext <<_ACEOF
24828 /* confdefs.h. */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h. */
24833 $ac_includes_default
24834 typedef unsigned long ac__type_sizeof_;
24836 main ()
24838 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24839 test_array [0] = 0
24842 return 0;
24844 _ACEOF
24845 rm -f conftest.$ac_objext
24846 if { (ac_try="$ac_compile"
24847 case "(($ac_try" in
24848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24849 *) ac_try_echo=$ac_try;;
24850 esac
24851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24852 (eval "$ac_compile") 2>conftest.er1
24853 ac_status=$?
24854 grep -v '^ *+' conftest.er1 >conftest.err
24855 rm -f conftest.er1
24856 cat conftest.err >&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } && {
24859 test -z "$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24861 } && test -s conftest.$ac_objext; then
24862 ac_lo=$ac_mid; break
24863 else
24864 echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.$ac_ext >&5
24867 ac_hi=`expr '(' $ac_mid ')' - 1`
24868 if test $ac_mid -le $ac_hi; then
24869 ac_lo= ac_hi=
24870 break
24872 ac_mid=`expr 2 '*' $ac_mid`
24875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24876 done
24877 else
24878 echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24881 ac_lo= ac_hi=
24884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888 # Binary search between lo and hi bounds.
24889 while test "x$ac_lo" != "x$ac_hi"; do
24890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24891 cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h. */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h. */
24897 $ac_includes_default
24898 typedef unsigned long ac__type_sizeof_;
24900 main ()
24902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24903 test_array [0] = 0
24906 return 0;
24908 _ACEOF
24909 rm -f conftest.$ac_objext
24910 if { (ac_try="$ac_compile"
24911 case "(($ac_try" in
24912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913 *) ac_try_echo=$ac_try;;
24914 esac
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916 (eval "$ac_compile") 2>conftest.er1
24917 ac_status=$?
24918 grep -v '^ *+' conftest.er1 >conftest.err
24919 rm -f conftest.er1
24920 cat conftest.err >&5
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); } && {
24923 test -z "$ac_c_werror_flag" ||
24924 test ! -s conftest.err
24925 } && test -s conftest.$ac_objext; then
24926 ac_hi=$ac_mid
24927 else
24928 echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24931 ac_lo=`expr '(' $ac_mid ')' + 1`
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935 done
24936 case $ac_lo in
24937 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24938 '') if test "$ac_cv_type_unsigned_long" = yes; then
24939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
24940 See \`config.log' for more details." >&5
24941 echo "$as_me: error: cannot compute sizeof (unsigned long)
24942 See \`config.log' for more details." >&2;}
24943 { (exit 77); exit 77; }; }
24944 else
24945 ac_cv_sizeof_unsigned_long=0
24946 fi ;;
24947 esac
24948 else
24949 cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h. */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 $ac_includes_default
24956 typedef unsigned long ac__type_sizeof_;
24957 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24958 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24959 #include <stdio.h>
24960 #include <stdlib.h>
24962 main ()
24965 FILE *f = fopen ("conftest.val", "w");
24966 if (! f)
24967 return 1;
24968 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24970 long int i = longval ();
24971 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24972 return 1;
24973 fprintf (f, "%ld\n", i);
24975 else
24977 unsigned long int i = ulongval ();
24978 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24979 return 1;
24980 fprintf (f, "%lu\n", i);
24982 return ferror (f) || fclose (f) != 0;
24985 return 0;
24987 _ACEOF
24988 rm -f conftest$ac_exeext
24989 if { (ac_try="$ac_link"
24990 case "(($ac_try" in
24991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992 *) ac_try_echo=$ac_try;;
24993 esac
24994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24995 (eval "$ac_link") 2>&5
24996 ac_status=$?
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24999 { (case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_try") 2>&5
25005 ac_status=$?
25006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007 (exit $ac_status); }; }; then
25008 ac_cv_sizeof_unsigned_long=`cat conftest.val`
25009 else
25010 echo "$as_me: program exited with status $ac_status" >&5
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ( exit $ac_status )
25015 if test "$ac_cv_type_unsigned_long" = yes; then
25016 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
25017 See \`config.log' for more details." >&5
25018 echo "$as_me: error: cannot compute sizeof (unsigned long)
25019 See \`config.log' for more details." >&2;}
25020 { (exit 77); exit 77; }; }
25021 else
25022 ac_cv_sizeof_unsigned_long=0
25025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25027 rm -f conftest.val
25029 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
25030 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
25034 cat >>confdefs.h <<_ACEOF
25035 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25036 _ACEOF
25039 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
25040 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
25041 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
25042 echo $ECHO_N "(cached) $ECHO_C" >&6
25043 else
25044 cat >conftest.$ac_ext <<_ACEOF
25045 /* confdefs.h. */
25046 _ACEOF
25047 cat confdefs.h >>conftest.$ac_ext
25048 cat >>conftest.$ac_ext <<_ACEOF
25049 /* end confdefs.h. */
25050 $ac_includes_default
25051 typedef unsigned long long ac__type_new_;
25053 main ()
25055 if ((ac__type_new_ *) 0)
25056 return 0;
25057 if (sizeof (ac__type_new_))
25058 return 0;
25060 return 0;
25062 _ACEOF
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25071 ac_status=$?
25072 grep -v '^ *+' conftest.er1 >conftest.err
25073 rm -f conftest.er1
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 ac_cv_type_unsigned_long_long=yes
25081 else
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 ac_cv_type_unsigned_long_long=no
25088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25090 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
25091 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
25093 # The cast to long int works around a bug in the HP C Compiler
25094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25096 # This bug is HP SR number 8606223364.
25097 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
25098 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
25099 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102 if test "$cross_compiling" = yes; then
25103 # Depending upon the size, compute the lo and hi bounds.
25104 cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h. */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h. */
25110 $ac_includes_default
25111 typedef unsigned long long ac__type_sizeof_;
25113 main ()
25115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25116 test_array [0] = 0
25119 return 0;
25121 _ACEOF
25122 rm -f conftest.$ac_objext
25123 if { (ac_try="$ac_compile"
25124 case "(($ac_try" in
25125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25127 esac
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129 (eval "$ac_compile") 2>conftest.er1
25130 ac_status=$?
25131 grep -v '^ *+' conftest.er1 >conftest.err
25132 rm -f conftest.er1
25133 cat conftest.err >&5
25134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135 (exit $ac_status); } && {
25136 test -z "$ac_c_werror_flag" ||
25137 test ! -s conftest.err
25138 } && test -s conftest.$ac_objext; then
25139 ac_lo=0 ac_mid=0
25140 while :; do
25141 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h. */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h. */
25147 $ac_includes_default
25148 typedef unsigned long long ac__type_sizeof_;
25150 main ()
25152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25153 test_array [0] = 0
25156 return 0;
25158 _ACEOF
25159 rm -f conftest.$ac_objext
25160 if { (ac_try="$ac_compile"
25161 case "(($ac_try" in
25162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163 *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166 (eval "$ac_compile") 2>conftest.er1
25167 ac_status=$?
25168 grep -v '^ *+' conftest.er1 >conftest.err
25169 rm -f conftest.er1
25170 cat conftest.err >&5
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); } && {
25173 test -z "$ac_c_werror_flag" ||
25174 test ! -s conftest.err
25175 } && test -s conftest.$ac_objext; then
25176 ac_hi=$ac_mid; break
25177 else
25178 echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25181 ac_lo=`expr $ac_mid + 1`
25182 if test $ac_lo -le $ac_mid; then
25183 ac_lo= ac_hi=
25184 break
25186 ac_mid=`expr 2 '*' $ac_mid + 1`
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 done
25191 else
25192 echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25195 cat >conftest.$ac_ext <<_ACEOF
25196 /* confdefs.h. */
25197 _ACEOF
25198 cat confdefs.h >>conftest.$ac_ext
25199 cat >>conftest.$ac_ext <<_ACEOF
25200 /* end confdefs.h. */
25201 $ac_includes_default
25202 typedef unsigned long long ac__type_sizeof_;
25204 main ()
25206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25207 test_array [0] = 0
25210 return 0;
25212 _ACEOF
25213 rm -f conftest.$ac_objext
25214 if { (ac_try="$ac_compile"
25215 case "(($ac_try" in
25216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217 *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220 (eval "$ac_compile") 2>conftest.er1
25221 ac_status=$?
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } && {
25227 test -z "$ac_c_werror_flag" ||
25228 test ! -s conftest.err
25229 } && test -s conftest.$ac_objext; then
25230 ac_hi=-1 ac_mid=-1
25231 while :; do
25232 cat >conftest.$ac_ext <<_ACEOF
25233 /* confdefs.h. */
25234 _ACEOF
25235 cat confdefs.h >>conftest.$ac_ext
25236 cat >>conftest.$ac_ext <<_ACEOF
25237 /* end confdefs.h. */
25238 $ac_includes_default
25239 typedef unsigned long long ac__type_sizeof_;
25241 main ()
25243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25244 test_array [0] = 0
25247 return 0;
25249 _ACEOF
25250 rm -f conftest.$ac_objext
25251 if { (ac_try="$ac_compile"
25252 case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255 esac
25256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25257 (eval "$ac_compile") 2>conftest.er1
25258 ac_status=$?
25259 grep -v '^ *+' conftest.er1 >conftest.err
25260 rm -f conftest.er1
25261 cat conftest.err >&5
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } && {
25264 test -z "$ac_c_werror_flag" ||
25265 test ! -s conftest.err
25266 } && test -s conftest.$ac_objext; then
25267 ac_lo=$ac_mid; break
25268 else
25269 echo "$as_me: failed program was:" >&5
25270 sed 's/^/| /' conftest.$ac_ext >&5
25272 ac_hi=`expr '(' $ac_mid ')' - 1`
25273 if test $ac_mid -le $ac_hi; then
25274 ac_lo= ac_hi=
25275 break
25277 ac_mid=`expr 2 '*' $ac_mid`
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 done
25282 else
25283 echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.$ac_ext >&5
25286 ac_lo= ac_hi=
25289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293 # Binary search between lo and hi bounds.
25294 while test "x$ac_lo" != "x$ac_hi"; do
25295 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h. */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 typedef unsigned long long ac__type_sizeof_;
25305 main ()
25307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25308 test_array [0] = 0
25311 return 0;
25313 _ACEOF
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318 *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25322 ac_status=$?
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 ac_hi=$ac_mid
25332 else
25333 echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25336 ac_lo=`expr '(' $ac_mid ')' + 1`
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 done
25341 case $ac_lo in
25342 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
25343 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
25344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25345 See \`config.log' for more details." >&5
25346 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25347 See \`config.log' for more details." >&2;}
25348 { (exit 77); exit 77; }; }
25349 else
25350 ac_cv_sizeof_unsigned_long_long=0
25351 fi ;;
25352 esac
25353 else
25354 cat >conftest.$ac_ext <<_ACEOF
25355 /* confdefs.h. */
25356 _ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h. */
25360 $ac_includes_default
25361 typedef unsigned long long ac__type_sizeof_;
25362 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25363 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25364 #include <stdio.h>
25365 #include <stdlib.h>
25367 main ()
25370 FILE *f = fopen ("conftest.val", "w");
25371 if (! f)
25372 return 1;
25373 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25375 long int i = longval ();
25376 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25377 return 1;
25378 fprintf (f, "%ld\n", i);
25380 else
25382 unsigned long int i = ulongval ();
25383 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25384 return 1;
25385 fprintf (f, "%lu\n", i);
25387 return ferror (f) || fclose (f) != 0;
25390 return 0;
25392 _ACEOF
25393 rm -f conftest$ac_exeext
25394 if { (ac_try="$ac_link"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25398 esac
25399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25400 (eval "$ac_link") 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25404 { (case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25407 esac
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409 (eval "$ac_try") 2>&5
25410 ac_status=$?
25411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412 (exit $ac_status); }; }; then
25413 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
25414 else
25415 echo "$as_me: program exited with status $ac_status" >&5
25416 echo "$as_me: failed program was:" >&5
25417 sed 's/^/| /' conftest.$ac_ext >&5
25419 ( exit $ac_status )
25420 if test "$ac_cv_type_unsigned_long_long" = yes; then
25421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
25422 See \`config.log' for more details." >&5
25423 echo "$as_me: error: cannot compute sizeof (unsigned long long)
25424 See \`config.log' for more details." >&2;}
25425 { (exit 77); exit 77; }; }
25426 else
25427 ac_cv_sizeof_unsigned_long_long=0
25430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25432 rm -f conftest.val
25434 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
25435 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
25439 cat >>confdefs.h <<_ACEOF
25440 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25441 _ACEOF
25444 { echo "$as_me:$LINENO: checking for int *" >&5
25445 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25446 if test "${ac_cv_type_int_p+set}" = set; then
25447 echo $ECHO_N "(cached) $ECHO_C" >&6
25448 else
25449 cat >conftest.$ac_ext <<_ACEOF
25450 /* confdefs.h. */
25451 _ACEOF
25452 cat confdefs.h >>conftest.$ac_ext
25453 cat >>conftest.$ac_ext <<_ACEOF
25454 /* end confdefs.h. */
25455 $ac_includes_default
25456 typedef int * ac__type_new_;
25458 main ()
25460 if ((ac__type_new_ *) 0)
25461 return 0;
25462 if (sizeof (ac__type_new_))
25463 return 0;
25465 return 0;
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25476 ac_status=$?
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25485 ac_cv_type_int_p=yes
25486 else
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_cv_type_int_p=no
25493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25496 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25498 # The cast to long int works around a bug in the HP C Compiler
25499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25501 # This bug is HP SR number 8606223364.
25502 { echo "$as_me:$LINENO: checking size of int *" >&5
25503 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25504 if test "${ac_cv_sizeof_int_p+set}" = set; then
25505 echo $ECHO_N "(cached) $ECHO_C" >&6
25506 else
25507 if test "$cross_compiling" = yes; then
25508 # Depending upon the size, compute the lo and hi bounds.
25509 cat >conftest.$ac_ext <<_ACEOF
25510 /* confdefs.h. */
25511 _ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 typedef int * ac__type_sizeof_;
25518 main ()
25520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25521 test_array [0] = 0
25524 return 0;
25526 _ACEOF
25527 rm -f conftest.$ac_objext
25528 if { (ac_try="$ac_compile"
25529 case "(($ac_try" in
25530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25531 *) ac_try_echo=$ac_try;;
25532 esac
25533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25534 (eval "$ac_compile") 2>conftest.er1
25535 ac_status=$?
25536 grep -v '^ *+' conftest.er1 >conftest.err
25537 rm -f conftest.er1
25538 cat conftest.err >&5
25539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540 (exit $ac_status); } && {
25541 test -z "$ac_c_werror_flag" ||
25542 test ! -s conftest.err
25543 } && test -s conftest.$ac_objext; then
25544 ac_lo=0 ac_mid=0
25545 while :; do
25546 cat >conftest.$ac_ext <<_ACEOF
25547 /* confdefs.h. */
25548 _ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 typedef int * ac__type_sizeof_;
25555 main ()
25557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25558 test_array [0] = 0
25561 return 0;
25563 _ACEOF
25564 rm -f conftest.$ac_objext
25565 if { (ac_try="$ac_compile"
25566 case "(($ac_try" in
25567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25568 *) ac_try_echo=$ac_try;;
25569 esac
25570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25571 (eval "$ac_compile") 2>conftest.er1
25572 ac_status=$?
25573 grep -v '^ *+' conftest.er1 >conftest.err
25574 rm -f conftest.er1
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } && {
25578 test -z "$ac_c_werror_flag" ||
25579 test ! -s conftest.err
25580 } && test -s conftest.$ac_objext; then
25581 ac_hi=$ac_mid; break
25582 else
25583 echo "$as_me: failed program was:" >&5
25584 sed 's/^/| /' conftest.$ac_ext >&5
25586 ac_lo=`expr $ac_mid + 1`
25587 if test $ac_lo -le $ac_mid; then
25588 ac_lo= ac_hi=
25589 break
25591 ac_mid=`expr 2 '*' $ac_mid + 1`
25594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25595 done
25596 else
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25600 cat >conftest.$ac_ext <<_ACEOF
25601 /* confdefs.h. */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h. */
25606 $ac_includes_default
25607 typedef int * ac__type_sizeof_;
25609 main ()
25611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25612 test_array [0] = 0
25615 return 0;
25617 _ACEOF
25618 rm -f conftest.$ac_objext
25619 if { (ac_try="$ac_compile"
25620 case "(($ac_try" in
25621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25623 esac
25624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25625 (eval "$ac_compile") 2>conftest.er1
25626 ac_status=$?
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } && {
25632 test -z "$ac_c_werror_flag" ||
25633 test ! -s conftest.err
25634 } && test -s conftest.$ac_objext; then
25635 ac_hi=-1 ac_mid=-1
25636 while :; do
25637 cat >conftest.$ac_ext <<_ACEOF
25638 /* confdefs.h. */
25639 _ACEOF
25640 cat confdefs.h >>conftest.$ac_ext
25641 cat >>conftest.$ac_ext <<_ACEOF
25642 /* end confdefs.h. */
25643 $ac_includes_default
25644 typedef int * ac__type_sizeof_;
25646 main ()
25648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25649 test_array [0] = 0
25652 return 0;
25654 _ACEOF
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25660 esac
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662 (eval "$ac_compile") 2>conftest.er1
25663 ac_status=$?
25664 grep -v '^ *+' conftest.er1 >conftest.err
25665 rm -f conftest.er1
25666 cat conftest.err >&5
25667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668 (exit $ac_status); } && {
25669 test -z "$ac_c_werror_flag" ||
25670 test ! -s conftest.err
25671 } && test -s conftest.$ac_objext; then
25672 ac_lo=$ac_mid; break
25673 else
25674 echo "$as_me: failed program was:" >&5
25675 sed 's/^/| /' conftest.$ac_ext >&5
25677 ac_hi=`expr '(' $ac_mid ')' - 1`
25678 if test $ac_mid -le $ac_hi; then
25679 ac_lo= ac_hi=
25680 break
25682 ac_mid=`expr 2 '*' $ac_mid`
25685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25686 done
25687 else
25688 echo "$as_me: failed program was:" >&5
25689 sed 's/^/| /' conftest.$ac_ext >&5
25691 ac_lo= ac_hi=
25694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 # Binary search between lo and hi bounds.
25699 while test "x$ac_lo" != "x$ac_hi"; do
25700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25701 cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h. */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h. */
25707 $ac_includes_default
25708 typedef int * ac__type_sizeof_;
25710 main ()
25712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25713 test_array [0] = 0
25716 return 0;
25718 _ACEOF
25719 rm -f conftest.$ac_objext
25720 if { (ac_try="$ac_compile"
25721 case "(($ac_try" in
25722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723 *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726 (eval "$ac_compile") 2>conftest.er1
25727 ac_status=$?
25728 grep -v '^ *+' conftest.er1 >conftest.err
25729 rm -f conftest.er1
25730 cat conftest.err >&5
25731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732 (exit $ac_status); } && {
25733 test -z "$ac_c_werror_flag" ||
25734 test ! -s conftest.err
25735 } && test -s conftest.$ac_objext; then
25736 ac_hi=$ac_mid
25737 else
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25741 ac_lo=`expr '(' $ac_mid ')' + 1`
25744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25745 done
25746 case $ac_lo in
25747 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25748 '') if test "$ac_cv_type_int_p" = yes; then
25749 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25750 See \`config.log' for more details." >&5
25751 echo "$as_me: error: cannot compute sizeof (int *)
25752 See \`config.log' for more details." >&2;}
25753 { (exit 77); exit 77; }; }
25754 else
25755 ac_cv_sizeof_int_p=0
25756 fi ;;
25757 esac
25758 else
25759 cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h. */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 $ac_includes_default
25766 typedef int * ac__type_sizeof_;
25767 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25768 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25769 #include <stdio.h>
25770 #include <stdlib.h>
25772 main ()
25775 FILE *f = fopen ("conftest.val", "w");
25776 if (! f)
25777 return 1;
25778 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25780 long int i = longval ();
25781 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25782 return 1;
25783 fprintf (f, "%ld\n", i);
25785 else
25787 unsigned long int i = ulongval ();
25788 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25789 return 1;
25790 fprintf (f, "%lu\n", i);
25792 return ferror (f) || fclose (f) != 0;
25795 return 0;
25797 _ACEOF
25798 rm -f conftest$ac_exeext
25799 if { (ac_try="$ac_link"
25800 case "(($ac_try" in
25801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802 *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805 (eval "$ac_link") 2>&5
25806 ac_status=$?
25807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25809 { (case "(($ac_try" in
25810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811 *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814 (eval "$ac_try") 2>&5
25815 ac_status=$?
25816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817 (exit $ac_status); }; }; then
25818 ac_cv_sizeof_int_p=`cat conftest.val`
25819 else
25820 echo "$as_me: program exited with status $ac_status" >&5
25821 echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.$ac_ext >&5
25824 ( exit $ac_status )
25825 if test "$ac_cv_type_int_p" = yes; then
25826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25827 See \`config.log' for more details." >&5
25828 echo "$as_me: error: cannot compute sizeof (int *)
25829 See \`config.log' for more details." >&2;}
25830 { (exit 77); exit 77; }; }
25831 else
25832 ac_cv_sizeof_int_p=0
25835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25837 rm -f conftest.val
25839 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25840 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25844 cat >>confdefs.h <<_ACEOF
25845 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25846 _ACEOF
25850 for ac_func in getenv
25852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25856 echo $ECHO_N "(cached) $ECHO_C" >&6
25857 else
25858 cat >conftest.$ac_ext <<_ACEOF
25859 /* confdefs.h. */
25860 _ACEOF
25861 cat confdefs.h >>conftest.$ac_ext
25862 cat >>conftest.$ac_ext <<_ACEOF
25863 /* end confdefs.h. */
25864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25866 #define $ac_func innocuous_$ac_func
25868 /* System header to define __stub macros and hopefully few prototypes,
25869 which can conflict with char $ac_func (); below.
25870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25871 <limits.h> exists even on freestanding compilers. */
25873 #ifdef __STDC__
25874 # include <limits.h>
25875 #else
25876 # include <assert.h>
25877 #endif
25879 #undef $ac_func
25881 /* Override any GCC internal prototype to avoid an error.
25882 Use char because int might match the return type of a GCC
25883 builtin and then its argument prototype would still apply. */
25884 #ifdef __cplusplus
25885 extern "C"
25886 #endif
25887 char $ac_func ();
25888 /* The GNU C library defines this for functions which it implements
25889 to always fail with ENOSYS. Some functions are actually named
25890 something starting with __ and the normal name is an alias. */
25891 #if defined __stub_$ac_func || defined __stub___$ac_func
25892 choke me
25893 #endif
25896 main ()
25898 return $ac_func ();
25900 return 0;
25902 _ACEOF
25903 rm -f conftest.$ac_objext conftest$ac_exeext
25904 if { (ac_try="$ac_link"
25905 case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25908 esac
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_link") 2>conftest.er1
25911 ac_status=$?
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest$ac_exeext &&
25920 $as_test_x conftest$ac_exeext; then
25921 eval "$as_ac_var=yes"
25922 else
25923 echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 eval "$as_ac_var=no"
25929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25930 conftest$ac_exeext conftest.$ac_ext
25932 ac_res=`eval echo '${'$as_ac_var'}'`
25933 { echo "$as_me:$LINENO: result: $ac_res" >&5
25934 echo "${ECHO_T}$ac_res" >&6; }
25935 if test `eval echo '${'$as_ac_var'}'` = yes; then
25936 cat >>confdefs.h <<_ACEOF
25937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25938 _ACEOF
25939 cat >>confdefs.h <<\_ACEOF
25940 #define BX_HAVE_GETENV 1
25941 _ACEOF
25944 done
25947 for ac_func in setenv
25949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 else
25955 cat >conftest.$ac_ext <<_ACEOF
25956 /* confdefs.h. */
25957 _ACEOF
25958 cat confdefs.h >>conftest.$ac_ext
25959 cat >>conftest.$ac_ext <<_ACEOF
25960 /* end confdefs.h. */
25961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25963 #define $ac_func innocuous_$ac_func
25965 /* System header to define __stub macros and hopefully few prototypes,
25966 which can conflict with char $ac_func (); below.
25967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25968 <limits.h> exists even on freestanding compilers. */
25970 #ifdef __STDC__
25971 # include <limits.h>
25972 #else
25973 # include <assert.h>
25974 #endif
25976 #undef $ac_func
25978 /* Override any GCC internal prototype to avoid an error.
25979 Use char because int might match the return type of a GCC
25980 builtin and then its argument prototype would still apply. */
25981 #ifdef __cplusplus
25982 extern "C"
25983 #endif
25984 char $ac_func ();
25985 /* The GNU C library defines this for functions which it implements
25986 to always fail with ENOSYS. Some functions are actually named
25987 something starting with __ and the normal name is an alias. */
25988 #if defined __stub_$ac_func || defined __stub___$ac_func
25989 choke me
25990 #endif
25993 main ()
25995 return $ac_func ();
25997 return 0;
25999 _ACEOF
26000 rm -f conftest.$ac_objext conftest$ac_exeext
26001 if { (ac_try="$ac_link"
26002 case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007 (eval "$ac_link") 2>conftest.er1
26008 ac_status=$?
26009 grep -v '^ *+' conftest.er1 >conftest.err
26010 rm -f conftest.er1
26011 cat conftest.err >&5
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && {
26014 test -z "$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 } && test -s conftest$ac_exeext &&
26017 $as_test_x conftest$ac_exeext; then
26018 eval "$as_ac_var=yes"
26019 else
26020 echo "$as_me: failed program was:" >&5
26021 sed 's/^/| /' conftest.$ac_ext >&5
26023 eval "$as_ac_var=no"
26026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26027 conftest$ac_exeext conftest.$ac_ext
26029 ac_res=`eval echo '${'$as_ac_var'}'`
26030 { echo "$as_me:$LINENO: result: $ac_res" >&5
26031 echo "${ECHO_T}$ac_res" >&6; }
26032 if test `eval echo '${'$as_ac_var'}'` = yes; then
26033 cat >>confdefs.h <<_ACEOF
26034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26035 _ACEOF
26036 cat >>confdefs.h <<\_ACEOF
26037 #define BX_HAVE_SETENV 1
26038 _ACEOF
26041 done
26044 for ac_func in select
26046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26050 echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052 cat >conftest.$ac_ext <<_ACEOF
26053 /* confdefs.h. */
26054 _ACEOF
26055 cat confdefs.h >>conftest.$ac_ext
26056 cat >>conftest.$ac_ext <<_ACEOF
26057 /* end confdefs.h. */
26058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26060 #define $ac_func innocuous_$ac_func
26062 /* System header to define __stub macros and hopefully few prototypes,
26063 which can conflict with char $ac_func (); below.
26064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26065 <limits.h> exists even on freestanding compilers. */
26067 #ifdef __STDC__
26068 # include <limits.h>
26069 #else
26070 # include <assert.h>
26071 #endif
26073 #undef $ac_func
26075 /* Override any GCC internal prototype to avoid an error.
26076 Use char because int might match the return type of a GCC
26077 builtin and then its argument prototype would still apply. */
26078 #ifdef __cplusplus
26079 extern "C"
26080 #endif
26081 char $ac_func ();
26082 /* The GNU C library defines this for functions which it implements
26083 to always fail with ENOSYS. Some functions are actually named
26084 something starting with __ and the normal name is an alias. */
26085 #if defined __stub_$ac_func || defined __stub___$ac_func
26086 choke me
26087 #endif
26090 main ()
26092 return $ac_func ();
26094 return 0;
26096 _ACEOF
26097 rm -f conftest.$ac_objext conftest$ac_exeext
26098 if { (ac_try="$ac_link"
26099 case "(($ac_try" in
26100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101 *) ac_try_echo=$ac_try;;
26102 esac
26103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26104 (eval "$ac_link") 2>conftest.er1
26105 ac_status=$?
26106 grep -v '^ *+' conftest.er1 >conftest.err
26107 rm -f conftest.er1
26108 cat conftest.err >&5
26109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110 (exit $ac_status); } && {
26111 test -z "$ac_c_werror_flag" ||
26112 test ! -s conftest.err
26113 } && test -s conftest$ac_exeext &&
26114 $as_test_x conftest$ac_exeext; then
26115 eval "$as_ac_var=yes"
26116 else
26117 echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26120 eval "$as_ac_var=no"
26123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26124 conftest$ac_exeext conftest.$ac_ext
26126 ac_res=`eval echo '${'$as_ac_var'}'`
26127 { echo "$as_me:$LINENO: result: $ac_res" >&5
26128 echo "${ECHO_T}$ac_res" >&6; }
26129 if test `eval echo '${'$as_ac_var'}'` = yes; then
26130 cat >>confdefs.h <<_ACEOF
26131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26132 _ACEOF
26133 cat >>confdefs.h <<\_ACEOF
26134 #define BX_HAVE_SELECT 1
26135 _ACEOF
26138 done
26141 for ac_func in snprintf
26143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26147 echo $ECHO_N "(cached) $ECHO_C" >&6
26148 else
26149 cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h. */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h. */
26155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26157 #define $ac_func innocuous_$ac_func
26159 /* System header to define __stub macros and hopefully few prototypes,
26160 which can conflict with char $ac_func (); below.
26161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26162 <limits.h> exists even on freestanding compilers. */
26164 #ifdef __STDC__
26165 # include <limits.h>
26166 #else
26167 # include <assert.h>
26168 #endif
26170 #undef $ac_func
26172 /* Override any GCC internal prototype to avoid an error.
26173 Use char because int might match the return type of a GCC
26174 builtin and then its argument prototype would still apply. */
26175 #ifdef __cplusplus
26176 extern "C"
26177 #endif
26178 char $ac_func ();
26179 /* The GNU C library defines this for functions which it implements
26180 to always fail with ENOSYS. Some functions are actually named
26181 something starting with __ and the normal name is an alias. */
26182 #if defined __stub_$ac_func || defined __stub___$ac_func
26183 choke me
26184 #endif
26187 main ()
26189 return $ac_func ();
26191 return 0;
26193 _ACEOF
26194 rm -f conftest.$ac_objext conftest$ac_exeext
26195 if { (ac_try="$ac_link"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26199 esac
26200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26201 (eval "$ac_link") 2>conftest.er1
26202 ac_status=$?
26203 grep -v '^ *+' conftest.er1 >conftest.err
26204 rm -f conftest.er1
26205 cat conftest.err >&5
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); } && {
26208 test -z "$ac_c_werror_flag" ||
26209 test ! -s conftest.err
26210 } && test -s conftest$ac_exeext &&
26211 $as_test_x conftest$ac_exeext; then
26212 eval "$as_ac_var=yes"
26213 else
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 eval "$as_ac_var=no"
26220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26221 conftest$ac_exeext conftest.$ac_ext
26223 ac_res=`eval echo '${'$as_ac_var'}'`
26224 { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26226 if test `eval echo '${'$as_ac_var'}'` = yes; then
26227 cat >>confdefs.h <<_ACEOF
26228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26229 _ACEOF
26230 cat >>confdefs.h <<\_ACEOF
26231 #define BX_HAVE_SNPRINTF 1
26232 _ACEOF
26235 done
26238 for ac_func in vsnprintf
26240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26244 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 else
26246 cat >conftest.$ac_ext <<_ACEOF
26247 /* confdefs.h. */
26248 _ACEOF
26249 cat confdefs.h >>conftest.$ac_ext
26250 cat >>conftest.$ac_ext <<_ACEOF
26251 /* end confdefs.h. */
26252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26254 #define $ac_func innocuous_$ac_func
26256 /* System header to define __stub macros and hopefully few prototypes,
26257 which can conflict with char $ac_func (); below.
26258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26259 <limits.h> exists even on freestanding compilers. */
26261 #ifdef __STDC__
26262 # include <limits.h>
26263 #else
26264 # include <assert.h>
26265 #endif
26267 #undef $ac_func
26269 /* Override any GCC internal prototype to avoid an error.
26270 Use char because int might match the return type of a GCC
26271 builtin and then its argument prototype would still apply. */
26272 #ifdef __cplusplus
26273 extern "C"
26274 #endif
26275 char $ac_func ();
26276 /* The GNU C library defines this for functions which it implements
26277 to always fail with ENOSYS. Some functions are actually named
26278 something starting with __ and the normal name is an alias. */
26279 #if defined __stub_$ac_func || defined __stub___$ac_func
26280 choke me
26281 #endif
26284 main ()
26286 return $ac_func ();
26288 return 0;
26290 _ACEOF
26291 rm -f conftest.$ac_objext conftest$ac_exeext
26292 if { (ac_try="$ac_link"
26293 case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26296 esac
26297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26298 (eval "$ac_link") 2>conftest.er1
26299 ac_status=$?
26300 grep -v '^ *+' conftest.er1 >conftest.err
26301 rm -f conftest.er1
26302 cat conftest.err >&5
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); } && {
26305 test -z "$ac_c_werror_flag" ||
26306 test ! -s conftest.err
26307 } && test -s conftest$ac_exeext &&
26308 $as_test_x conftest$ac_exeext; then
26309 eval "$as_ac_var=yes"
26310 else
26311 echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26314 eval "$as_ac_var=no"
26317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26318 conftest$ac_exeext conftest.$ac_ext
26320 ac_res=`eval echo '${'$as_ac_var'}'`
26321 { echo "$as_me:$LINENO: result: $ac_res" >&5
26322 echo "${ECHO_T}$ac_res" >&6; }
26323 if test `eval echo '${'$as_ac_var'}'` = yes; then
26324 cat >>confdefs.h <<_ACEOF
26325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26326 _ACEOF
26327 cat >>confdefs.h <<\_ACEOF
26328 #define BX_HAVE_VSNPRINTF 1
26329 _ACEOF
26332 done
26335 for ac_func in strtoull
26337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26341 echo $ECHO_N "(cached) $ECHO_C" >&6
26342 else
26343 cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h. */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26351 #define $ac_func innocuous_$ac_func
26353 /* System header to define __stub macros and hopefully few prototypes,
26354 which can conflict with char $ac_func (); below.
26355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26356 <limits.h> exists even on freestanding compilers. */
26358 #ifdef __STDC__
26359 # include <limits.h>
26360 #else
26361 # include <assert.h>
26362 #endif
26364 #undef $ac_func
26366 /* Override any GCC internal prototype to avoid an error.
26367 Use char because int might match the return type of a GCC
26368 builtin and then its argument prototype would still apply. */
26369 #ifdef __cplusplus
26370 extern "C"
26371 #endif
26372 char $ac_func ();
26373 /* The GNU C library defines this for functions which it implements
26374 to always fail with ENOSYS. Some functions are actually named
26375 something starting with __ and the normal name is an alias. */
26376 #if defined __stub_$ac_func || defined __stub___$ac_func
26377 choke me
26378 #endif
26381 main ()
26383 return $ac_func ();
26385 return 0;
26387 _ACEOF
26388 rm -f conftest.$ac_objext conftest$ac_exeext
26389 if { (ac_try="$ac_link"
26390 case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26393 esac
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395 (eval "$ac_link") 2>conftest.er1
26396 ac_status=$?
26397 grep -v '^ *+' conftest.er1 >conftest.err
26398 rm -f conftest.er1
26399 cat conftest.err >&5
26400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401 (exit $ac_status); } && {
26402 test -z "$ac_c_werror_flag" ||
26403 test ! -s conftest.err
26404 } && test -s conftest$ac_exeext &&
26405 $as_test_x conftest$ac_exeext; then
26406 eval "$as_ac_var=yes"
26407 else
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26411 eval "$as_ac_var=no"
26414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26415 conftest$ac_exeext conftest.$ac_ext
26417 ac_res=`eval echo '${'$as_ac_var'}'`
26418 { echo "$as_me:$LINENO: result: $ac_res" >&5
26419 echo "${ECHO_T}$ac_res" >&6; }
26420 if test `eval echo '${'$as_ac_var'}'` = yes; then
26421 cat >>confdefs.h <<_ACEOF
26422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26423 _ACEOF
26424 cat >>confdefs.h <<\_ACEOF
26425 #define BX_HAVE_STRTOULL 1
26426 _ACEOF
26429 done
26432 for ac_func in strtouq
26434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26438 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 else
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h. */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26448 #define $ac_func innocuous_$ac_func
26450 /* System header to define __stub macros and hopefully few prototypes,
26451 which can conflict with char $ac_func (); below.
26452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26453 <limits.h> exists even on freestanding compilers. */
26455 #ifdef __STDC__
26456 # include <limits.h>
26457 #else
26458 # include <assert.h>
26459 #endif
26461 #undef $ac_func
26463 /* Override any GCC internal prototype to avoid an error.
26464 Use char because int might match the return type of a GCC
26465 builtin and then its argument prototype would still apply. */
26466 #ifdef __cplusplus
26467 extern "C"
26468 #endif
26469 char $ac_func ();
26470 /* The GNU C library defines this for functions which it implements
26471 to always fail with ENOSYS. Some functions are actually named
26472 something starting with __ and the normal name is an alias. */
26473 #if defined __stub_$ac_func || defined __stub___$ac_func
26474 choke me
26475 #endif
26478 main ()
26480 return $ac_func ();
26482 return 0;
26484 _ACEOF
26485 rm -f conftest.$ac_objext conftest$ac_exeext
26486 if { (ac_try="$ac_link"
26487 case "(($ac_try" in
26488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26489 *) ac_try_echo=$ac_try;;
26490 esac
26491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26492 (eval "$ac_link") 2>conftest.er1
26493 ac_status=$?
26494 grep -v '^ *+' conftest.er1 >conftest.err
26495 rm -f conftest.er1
26496 cat conftest.err >&5
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } && {
26499 test -z "$ac_c_werror_flag" ||
26500 test ! -s conftest.err
26501 } && test -s conftest$ac_exeext &&
26502 $as_test_x conftest$ac_exeext; then
26503 eval "$as_ac_var=yes"
26504 else
26505 echo "$as_me: failed program was:" >&5
26506 sed 's/^/| /' conftest.$ac_ext >&5
26508 eval "$as_ac_var=no"
26511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26512 conftest$ac_exeext conftest.$ac_ext
26514 ac_res=`eval echo '${'$as_ac_var'}'`
26515 { echo "$as_me:$LINENO: result: $ac_res" >&5
26516 echo "${ECHO_T}$ac_res" >&6; }
26517 if test `eval echo '${'$as_ac_var'}'` = yes; then
26518 cat >>confdefs.h <<_ACEOF
26519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26520 _ACEOF
26521 cat >>confdefs.h <<\_ACEOF
26522 #define BX_HAVE_STRTOUQ 1
26523 _ACEOF
26526 done
26529 for ac_func in strdup
26531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26535 echo $ECHO_N "(cached) $ECHO_C" >&6
26536 else
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h. */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h. */
26543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26545 #define $ac_func innocuous_$ac_func
26547 /* System header to define __stub macros and hopefully few prototypes,
26548 which can conflict with char $ac_func (); below.
26549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26550 <limits.h> exists even on freestanding compilers. */
26552 #ifdef __STDC__
26553 # include <limits.h>
26554 #else
26555 # include <assert.h>
26556 #endif
26558 #undef $ac_func
26560 /* Override any GCC internal prototype to avoid an error.
26561 Use char because int might match the return type of a GCC
26562 builtin and then its argument prototype would still apply. */
26563 #ifdef __cplusplus
26564 extern "C"
26565 #endif
26566 char $ac_func ();
26567 /* The GNU C library defines this for functions which it implements
26568 to always fail with ENOSYS. Some functions are actually named
26569 something starting with __ and the normal name is an alias. */
26570 #if defined __stub_$ac_func || defined __stub___$ac_func
26571 choke me
26572 #endif
26575 main ()
26577 return $ac_func ();
26579 return 0;
26581 _ACEOF
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (ac_try="$ac_link"
26584 case "(($ac_try" in
26585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586 *) ac_try_echo=$ac_try;;
26587 esac
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589 (eval "$ac_link") 2>conftest.er1
26590 ac_status=$?
26591 grep -v '^ *+' conftest.er1 >conftest.err
26592 rm -f conftest.er1
26593 cat conftest.err >&5
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } && {
26596 test -z "$ac_c_werror_flag" ||
26597 test ! -s conftest.err
26598 } && test -s conftest$ac_exeext &&
26599 $as_test_x conftest$ac_exeext; then
26600 eval "$as_ac_var=yes"
26601 else
26602 echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26605 eval "$as_ac_var=no"
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609 conftest$ac_exeext conftest.$ac_ext
26611 ac_res=`eval echo '${'$as_ac_var'}'`
26612 { echo "$as_me:$LINENO: result: $ac_res" >&5
26613 echo "${ECHO_T}$ac_res" >&6; }
26614 if test `eval echo '${'$as_ac_var'}'` = yes; then
26615 cat >>confdefs.h <<_ACEOF
26616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26617 _ACEOF
26618 cat >>confdefs.h <<\_ACEOF
26619 #define BX_HAVE_STRDUP 1
26620 _ACEOF
26623 done
26626 for ac_func in strrev
26628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634 cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h. */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h. */
26640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26642 #define $ac_func innocuous_$ac_func
26644 /* System header to define __stub macros and hopefully few prototypes,
26645 which can conflict with char $ac_func (); below.
26646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26647 <limits.h> exists even on freestanding compilers. */
26649 #ifdef __STDC__
26650 # include <limits.h>
26651 #else
26652 # include <assert.h>
26653 #endif
26655 #undef $ac_func
26657 /* Override any GCC internal prototype to avoid an error.
26658 Use char because int might match the return type of a GCC
26659 builtin and then its argument prototype would still apply. */
26660 #ifdef __cplusplus
26661 extern "C"
26662 #endif
26663 char $ac_func ();
26664 /* The GNU C library defines this for functions which it implements
26665 to always fail with ENOSYS. Some functions are actually named
26666 something starting with __ and the normal name is an alias. */
26667 #if defined __stub_$ac_func || defined __stub___$ac_func
26668 choke me
26669 #endif
26672 main ()
26674 return $ac_func ();
26676 return 0;
26678 _ACEOF
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26684 esac
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_link") 2>conftest.er1
26687 ac_status=$?
26688 grep -v '^ *+' conftest.er1 >conftest.err
26689 rm -f conftest.er1
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && {
26693 test -z "$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 } && test -s conftest$ac_exeext &&
26696 $as_test_x conftest$ac_exeext; then
26697 eval "$as_ac_var=yes"
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 eval "$as_ac_var=no"
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706 conftest$ac_exeext conftest.$ac_ext
26708 ac_res=`eval echo '${'$as_ac_var'}'`
26709 { echo "$as_me:$LINENO: result: $ac_res" >&5
26710 echo "${ECHO_T}$ac_res" >&6; }
26711 if test `eval echo '${'$as_ac_var'}'` = yes; then
26712 cat >>confdefs.h <<_ACEOF
26713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26714 _ACEOF
26715 cat >>confdefs.h <<\_ACEOF
26716 #define BX_HAVE_STRREV 1
26717 _ACEOF
26720 done
26723 for ac_func in sleep
26725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26729 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 else
26731 cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h. */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26739 #define $ac_func innocuous_$ac_func
26741 /* System header to define __stub macros and hopefully few prototypes,
26742 which can conflict with char $ac_func (); below.
26743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744 <limits.h> exists even on freestanding compilers. */
26746 #ifdef __STDC__
26747 # include <limits.h>
26748 #else
26749 # include <assert.h>
26750 #endif
26752 #undef $ac_func
26754 /* Override any GCC internal prototype to avoid an error.
26755 Use char because int might match the return type of a GCC
26756 builtin and then its argument prototype would still apply. */
26757 #ifdef __cplusplus
26758 extern "C"
26759 #endif
26760 char $ac_func ();
26761 /* The GNU C library defines this for functions which it implements
26762 to always fail with ENOSYS. Some functions are actually named
26763 something starting with __ and the normal name is an alias. */
26764 #if defined __stub_$ac_func || defined __stub___$ac_func
26765 choke me
26766 #endif
26769 main ()
26771 return $ac_func ();
26773 return 0;
26775 _ACEOF
26776 rm -f conftest.$ac_objext conftest$ac_exeext
26777 if { (ac_try="$ac_link"
26778 case "(($ac_try" in
26779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780 *) ac_try_echo=$ac_try;;
26781 esac
26782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783 (eval "$ac_link") 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } && {
26790 test -z "$ac_c_werror_flag" ||
26791 test ! -s conftest.err
26792 } && test -s conftest$ac_exeext &&
26793 $as_test_x conftest$ac_exeext; then
26794 eval "$as_ac_var=yes"
26795 else
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 eval "$as_ac_var=no"
26802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26803 conftest$ac_exeext conftest.$ac_ext
26805 ac_res=`eval echo '${'$as_ac_var'}'`
26806 { echo "$as_me:$LINENO: result: $ac_res" >&5
26807 echo "${ECHO_T}$ac_res" >&6; }
26808 if test `eval echo '${'$as_ac_var'}'` = yes; then
26809 cat >>confdefs.h <<_ACEOF
26810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26811 _ACEOF
26812 cat >>confdefs.h <<\_ACEOF
26813 #define BX_HAVE_SLEEP 1
26814 _ACEOF
26817 done
26820 for ac_func in usleep
26822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26826 echo $ECHO_N "(cached) $ECHO_C" >&6
26827 else
26828 cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h. */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26836 #define $ac_func innocuous_$ac_func
26838 /* System header to define __stub macros and hopefully few prototypes,
26839 which can conflict with char $ac_func (); below.
26840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26841 <limits.h> exists even on freestanding compilers. */
26843 #ifdef __STDC__
26844 # include <limits.h>
26845 #else
26846 # include <assert.h>
26847 #endif
26849 #undef $ac_func
26851 /* Override any GCC internal prototype to avoid an error.
26852 Use char because int might match the return type of a GCC
26853 builtin and then its argument prototype would still apply. */
26854 #ifdef __cplusplus
26855 extern "C"
26856 #endif
26857 char $ac_func ();
26858 /* The GNU C library defines this for functions which it implements
26859 to always fail with ENOSYS. Some functions are actually named
26860 something starting with __ and the normal name is an alias. */
26861 #if defined __stub_$ac_func || defined __stub___$ac_func
26862 choke me
26863 #endif
26866 main ()
26868 return $ac_func ();
26870 return 0;
26872 _ACEOF
26873 rm -f conftest.$ac_objext conftest$ac_exeext
26874 if { (ac_try="$ac_link"
26875 case "(($ac_try" in
26876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26877 *) ac_try_echo=$ac_try;;
26878 esac
26879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26880 (eval "$ac_link") 2>conftest.er1
26881 ac_status=$?
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } && {
26887 test -z "$ac_c_werror_flag" ||
26888 test ! -s conftest.err
26889 } && test -s conftest$ac_exeext &&
26890 $as_test_x conftest$ac_exeext; then
26891 eval "$as_ac_var=yes"
26892 else
26893 echo "$as_me: failed program was:" >&5
26894 sed 's/^/| /' conftest.$ac_ext >&5
26896 eval "$as_ac_var=no"
26899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26900 conftest$ac_exeext conftest.$ac_ext
26902 ac_res=`eval echo '${'$as_ac_var'}'`
26903 { echo "$as_me:$LINENO: result: $ac_res" >&5
26904 echo "${ECHO_T}$ac_res" >&6; }
26905 if test `eval echo '${'$as_ac_var'}'` = yes; then
26906 cat >>confdefs.h <<_ACEOF
26907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26908 _ACEOF
26909 cat >>confdefs.h <<\_ACEOF
26910 #define BX_HAVE_USLEEP 1
26911 _ACEOF
26914 done
26917 for ac_func in nanosleep
26919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26923 echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26925 cat >conftest.$ac_ext <<_ACEOF
26926 /* confdefs.h. */
26927 _ACEOF
26928 cat confdefs.h >>conftest.$ac_ext
26929 cat >>conftest.$ac_ext <<_ACEOF
26930 /* end confdefs.h. */
26931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26933 #define $ac_func innocuous_$ac_func
26935 /* System header to define __stub macros and hopefully few prototypes,
26936 which can conflict with char $ac_func (); below.
26937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26938 <limits.h> exists even on freestanding compilers. */
26940 #ifdef __STDC__
26941 # include <limits.h>
26942 #else
26943 # include <assert.h>
26944 #endif
26946 #undef $ac_func
26948 /* Override any GCC internal prototype to avoid an error.
26949 Use char because int might match the return type of a GCC
26950 builtin and then its argument prototype would still apply. */
26951 #ifdef __cplusplus
26952 extern "C"
26953 #endif
26954 char $ac_func ();
26955 /* The GNU C library defines this for functions which it implements
26956 to always fail with ENOSYS. Some functions are actually named
26957 something starting with __ and the normal name is an alias. */
26958 #if defined __stub_$ac_func || defined __stub___$ac_func
26959 choke me
26960 #endif
26963 main ()
26965 return $ac_func ();
26967 return 0;
26969 _ACEOF
26970 rm -f conftest.$ac_objext conftest$ac_exeext
26971 if { (ac_try="$ac_link"
26972 case "(($ac_try" in
26973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26974 *) ac_try_echo=$ac_try;;
26975 esac
26976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26977 (eval "$ac_link") 2>conftest.er1
26978 ac_status=$?
26979 grep -v '^ *+' conftest.er1 >conftest.err
26980 rm -f conftest.er1
26981 cat conftest.err >&5
26982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983 (exit $ac_status); } && {
26984 test -z "$ac_c_werror_flag" ||
26985 test ! -s conftest.err
26986 } && test -s conftest$ac_exeext &&
26987 $as_test_x conftest$ac_exeext; then
26988 eval "$as_ac_var=yes"
26989 else
26990 echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 eval "$as_ac_var=no"
26996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26997 conftest$ac_exeext conftest.$ac_ext
26999 ac_res=`eval echo '${'$as_ac_var'}'`
27000 { echo "$as_me:$LINENO: result: $ac_res" >&5
27001 echo "${ECHO_T}$ac_res" >&6; }
27002 if test `eval echo '${'$as_ac_var'}'` = yes; then
27003 cat >>confdefs.h <<_ACEOF
27004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27005 _ACEOF
27006 cat >>confdefs.h <<\_ACEOF
27007 #define BX_HAVE_NANOSLEEP 1
27008 _ACEOF
27011 done
27014 for ac_func in abort
27016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27020 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 else
27022 cat >conftest.$ac_ext <<_ACEOF
27023 /* confdefs.h. */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27030 #define $ac_func innocuous_$ac_func
27032 /* System header to define __stub macros and hopefully few prototypes,
27033 which can conflict with char $ac_func (); below.
27034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27035 <limits.h> exists even on freestanding compilers. */
27037 #ifdef __STDC__
27038 # include <limits.h>
27039 #else
27040 # include <assert.h>
27041 #endif
27043 #undef $ac_func
27045 /* Override any GCC internal prototype to avoid an error.
27046 Use char because int might match the return type of a GCC
27047 builtin and then its argument prototype would still apply. */
27048 #ifdef __cplusplus
27049 extern "C"
27050 #endif
27051 char $ac_func ();
27052 /* The GNU C library defines this for functions which it implements
27053 to always fail with ENOSYS. Some functions are actually named
27054 something starting with __ and the normal name is an alias. */
27055 #if defined __stub_$ac_func || defined __stub___$ac_func
27056 choke me
27057 #endif
27060 main ()
27062 return $ac_func ();
27064 return 0;
27066 _ACEOF
27067 rm -f conftest.$ac_objext conftest$ac_exeext
27068 if { (ac_try="$ac_link"
27069 case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072 esac
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_link") 2>conftest.er1
27075 ac_status=$?
27076 grep -v '^ *+' conftest.er1 >conftest.err
27077 rm -f conftest.er1
27078 cat conftest.err >&5
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); } && {
27081 test -z "$ac_c_werror_flag" ||
27082 test ! -s conftest.err
27083 } && test -s conftest$ac_exeext &&
27084 $as_test_x conftest$ac_exeext; then
27085 eval "$as_ac_var=yes"
27086 else
27087 echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27090 eval "$as_ac_var=no"
27093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27094 conftest$ac_exeext conftest.$ac_ext
27096 ac_res=`eval echo '${'$as_ac_var'}'`
27097 { echo "$as_me:$LINENO: result: $ac_res" >&5
27098 echo "${ECHO_T}$ac_res" >&6; }
27099 if test `eval echo '${'$as_ac_var'}'` = yes; then
27100 cat >>confdefs.h <<_ACEOF
27101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27102 _ACEOF
27103 cat >>confdefs.h <<\_ACEOF
27104 #define BX_HAVE_ABORT 1
27105 _ACEOF
27108 done
27111 for ac_func in gettimeofday
27113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27117 echo $ECHO_N "(cached) $ECHO_C" >&6
27118 else
27119 cat >conftest.$ac_ext <<_ACEOF
27120 /* confdefs.h. */
27121 _ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h. */
27125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27127 #define $ac_func innocuous_$ac_func
27129 /* System header to define __stub macros and hopefully few prototypes,
27130 which can conflict with char $ac_func (); below.
27131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27132 <limits.h> exists even on freestanding compilers. */
27134 #ifdef __STDC__
27135 # include <limits.h>
27136 #else
27137 # include <assert.h>
27138 #endif
27140 #undef $ac_func
27142 /* Override any GCC internal prototype to avoid an error.
27143 Use char because int might match the return type of a GCC
27144 builtin and then its argument prototype would still apply. */
27145 #ifdef __cplusplus
27146 extern "C"
27147 #endif
27148 char $ac_func ();
27149 /* The GNU C library defines this for functions which it implements
27150 to always fail with ENOSYS. Some functions are actually named
27151 something starting with __ and the normal name is an alias. */
27152 #if defined __stub_$ac_func || defined __stub___$ac_func
27153 choke me
27154 #endif
27157 main ()
27159 return $ac_func ();
27161 return 0;
27163 _ACEOF
27164 rm -f conftest.$ac_objext conftest$ac_exeext
27165 if { (ac_try="$ac_link"
27166 case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27169 esac
27170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_link") 2>conftest.er1
27172 ac_status=$?
27173 grep -v '^ *+' conftest.er1 >conftest.err
27174 rm -f conftest.er1
27175 cat conftest.err >&5
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } && {
27178 test -z "$ac_c_werror_flag" ||
27179 test ! -s conftest.err
27180 } && test -s conftest$ac_exeext &&
27181 $as_test_x conftest$ac_exeext; then
27182 eval "$as_ac_var=yes"
27183 else
27184 echo "$as_me: failed program was:" >&5
27185 sed 's/^/| /' conftest.$ac_ext >&5
27187 eval "$as_ac_var=no"
27190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27191 conftest$ac_exeext conftest.$ac_ext
27193 ac_res=`eval echo '${'$as_ac_var'}'`
27194 { echo "$as_me:$LINENO: result: $ac_res" >&5
27195 echo "${ECHO_T}$ac_res" >&6; }
27196 if test `eval echo '${'$as_ac_var'}'` = yes; then
27197 cat >>confdefs.h <<_ACEOF
27198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27199 _ACEOF
27200 cat >>confdefs.h <<\_ACEOF
27201 #define BX_HAVE_GETTIMEOFDAY 1
27202 _ACEOF
27205 done
27207 { echo "$as_me:$LINENO: checking for socklen_t" >&5
27208 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
27209 if test "${ac_cv_type_socklen_t+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212 cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h. */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h. */
27218 #include <sys/types.h>
27219 #include <sys/socket.h>
27221 typedef socklen_t ac__type_new_;
27223 main ()
27225 if ((ac__type_new_ *) 0)
27226 return 0;
27227 if (sizeof (ac__type_new_))
27228 return 0;
27230 return 0;
27232 _ACEOF
27233 rm -f conftest.$ac_objext
27234 if { (ac_try="$ac_compile"
27235 case "(($ac_try" in
27236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27237 *) ac_try_echo=$ac_try;;
27238 esac
27239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27240 (eval "$ac_compile") 2>conftest.er1
27241 ac_status=$?
27242 grep -v '^ *+' conftest.er1 >conftest.err
27243 rm -f conftest.er1
27244 cat conftest.err >&5
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); } && {
27247 test -z "$ac_c_werror_flag" ||
27248 test ! -s conftest.err
27249 } && test -s conftest.$ac_objext; then
27250 ac_cv_type_socklen_t=yes
27251 else
27252 echo "$as_me: failed program was:" >&5
27253 sed 's/^/| /' conftest.$ac_ext >&5
27255 ac_cv_type_socklen_t=no
27258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27261 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
27262 if test $ac_cv_type_socklen_t = yes; then
27263 cat >>confdefs.h <<\_ACEOF
27264 #define BX_HAVE_SOCKLEN_T 1
27265 _ACEOF
27269 { echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
27270 echo $ECHO_N "checking for struct sockaddr_in.sin_len... $ECHO_C" >&6; }
27271 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274 cat >conftest.$ac_ext <<_ACEOF
27275 /* confdefs.h. */
27276 _ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27280 #include <sys/socket.h>
27281 #include <netinet/in.h>
27284 main ()
27286 static struct sockaddr_in ac_aggr;
27287 if (ac_aggr.sin_len)
27288 return 0;
27290 return 0;
27292 _ACEOF
27293 rm -f conftest.$ac_objext
27294 if { (ac_try="$ac_compile"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_compile") 2>conftest.er1
27301 ac_status=$?
27302 grep -v '^ *+' conftest.er1 >conftest.err
27303 rm -f conftest.er1
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && {
27307 test -z "$ac_c_werror_flag" ||
27308 test ! -s conftest.err
27309 } && test -s conftest.$ac_objext; then
27310 ac_cv_member_struct_sockaddr_in_sin_len=yes
27311 else
27312 echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27315 cat >conftest.$ac_ext <<_ACEOF
27316 /* confdefs.h. */
27317 _ACEOF
27318 cat confdefs.h >>conftest.$ac_ext
27319 cat >>conftest.$ac_ext <<_ACEOF
27320 /* end confdefs.h. */
27321 #include <sys/socket.h>
27322 #include <netinet/in.h>
27325 main ()
27327 static struct sockaddr_in ac_aggr;
27328 if (sizeof ac_aggr.sin_len)
27329 return 0;
27331 return 0;
27333 _ACEOF
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_compile") 2>conftest.er1
27342 ac_status=$?
27343 grep -v '^ *+' conftest.er1 >conftest.err
27344 rm -f conftest.er1
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } && {
27348 test -z "$ac_c_werror_flag" ||
27349 test ! -s conftest.err
27350 } && test -s conftest.$ac_objext; then
27351 ac_cv_member_struct_sockaddr_in_sin_len=yes
27352 else
27353 echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27356 ac_cv_member_struct_sockaddr_in_sin_len=no
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
27365 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
27366 if test $ac_cv_member_struct_sockaddr_in_sin_len = yes; then
27367 cat >>confdefs.h <<\_ACEOF
27368 #define BX_HAVE_SOCKADDR_IN_SIN_LEN 1
27369 _ACEOF
27374 for ac_func in mkstemp
27376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27381 else
27382 cat >conftest.$ac_ext <<_ACEOF
27383 /* confdefs.h. */
27384 _ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27390 #define $ac_func innocuous_$ac_func
27392 /* System header to define __stub macros and hopefully few prototypes,
27393 which can conflict with char $ac_func (); below.
27394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27395 <limits.h> exists even on freestanding compilers. */
27397 #ifdef __STDC__
27398 # include <limits.h>
27399 #else
27400 # include <assert.h>
27401 #endif
27403 #undef $ac_func
27405 /* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
27408 #ifdef __cplusplus
27409 extern "C"
27410 #endif
27411 char $ac_func ();
27412 /* The GNU C library defines this for functions which it implements
27413 to always fail with ENOSYS. Some functions are actually named
27414 something starting with __ and the normal name is an alias. */
27415 #if defined __stub_$ac_func || defined __stub___$ac_func
27416 choke me
27417 #endif
27420 main ()
27422 return $ac_func ();
27424 return 0;
27426 _ACEOF
27427 rm -f conftest.$ac_objext conftest$ac_exeext
27428 if { (ac_try="$ac_link"
27429 case "(($ac_try" in
27430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431 *) ac_try_echo=$ac_try;;
27432 esac
27433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434 (eval "$ac_link") 2>conftest.er1
27435 ac_status=$?
27436 grep -v '^ *+' conftest.er1 >conftest.err
27437 rm -f conftest.er1
27438 cat conftest.err >&5
27439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440 (exit $ac_status); } && {
27441 test -z "$ac_c_werror_flag" ||
27442 test ! -s conftest.err
27443 } && test -s conftest$ac_exeext &&
27444 $as_test_x conftest$ac_exeext; then
27445 eval "$as_ac_var=yes"
27446 else
27447 echo "$as_me: failed program was:" >&5
27448 sed 's/^/| /' conftest.$ac_ext >&5
27450 eval "$as_ac_var=no"
27453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27454 conftest$ac_exeext conftest.$ac_ext
27456 ac_res=`eval echo '${'$as_ac_var'}'`
27457 { echo "$as_me:$LINENO: result: $ac_res" >&5
27458 echo "${ECHO_T}$ac_res" >&6; }
27459 if test `eval echo '${'$as_ac_var'}'` = yes; then
27460 cat >>confdefs.h <<_ACEOF
27461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27462 _ACEOF
27463 cat >>confdefs.h <<\_ACEOF
27464 #define BX_HAVE_MKSTEMP 1
27465 _ACEOF
27468 done
27470 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27471 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27472 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27473 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27474 echo $ECHO_N "(cached) $ECHO_C" >&6
27476 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27477 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27478 else
27479 # Is the header compilable?
27480 { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
27481 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
27482 cat >conftest.$ac_ext <<_ACEOF
27483 /* confdefs.h. */
27484 _ACEOF
27485 cat confdefs.h >>conftest.$ac_ext
27486 cat >>conftest.$ac_ext <<_ACEOF
27487 /* end confdefs.h. */
27488 $ac_includes_default
27489 #include <sys/mman.h>
27490 _ACEOF
27491 rm -f conftest.$ac_objext
27492 if { (ac_try="$ac_compile"
27493 case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27496 esac
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_compile") 2>conftest.er1
27499 ac_status=$?
27500 grep -v '^ *+' conftest.er1 >conftest.err
27501 rm -f conftest.er1
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } && {
27505 test -z "$ac_c_werror_flag" ||
27506 test ! -s conftest.err
27507 } && test -s conftest.$ac_objext; then
27508 ac_header_compiler=yes
27509 else
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27513 ac_header_compiler=no
27516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27518 echo "${ECHO_T}$ac_header_compiler" >&6; }
27520 # Is the header present?
27521 { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
27522 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h. */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27529 #include <sys/mman.h>
27530 _ACEOF
27531 if { (ac_try="$ac_cpp conftest.$ac_ext"
27532 case "(($ac_try" in
27533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534 *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27538 ac_status=$?
27539 grep -v '^ *+' conftest.er1 >conftest.err
27540 rm -f conftest.er1
27541 cat conftest.err >&5
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); } >/dev/null && {
27544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27545 test ! -s conftest.err
27546 }; then
27547 ac_header_preproc=yes
27548 else
27549 echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27552 ac_header_preproc=no
27555 rm -f conftest.err conftest.$ac_ext
27556 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27557 echo "${ECHO_T}$ac_header_preproc" >&6; }
27559 # So? What about this header?
27560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27561 yes:no: )
27562 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
27563 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27564 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
27565 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
27566 ac_header_preproc=yes
27568 no:yes:* )
27569 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
27570 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
27572 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
27574 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
27576 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
27577 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
27578 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
27579 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
27580 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
27583 esac
27584 { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
27585 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
27586 if test "${ac_cv_header_sys_mman_h+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589 ac_cv_header_sys_mman_h=$ac_header_preproc
27591 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
27592 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
27595 if test $ac_cv_header_sys_mman_h = yes; then
27596 cat >>confdefs.h <<\_ACEOF
27597 #define BX_HAVE_SYS_MMAN_H 1
27598 _ACEOF
27604 for ac_func in timelocal
27606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27610 echo $ECHO_N "(cached) $ECHO_C" >&6
27611 else
27612 cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h. */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h. */
27618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27620 #define $ac_func innocuous_$ac_func
27622 /* System header to define __stub macros and hopefully few prototypes,
27623 which can conflict with char $ac_func (); below.
27624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27625 <limits.h> exists even on freestanding compilers. */
27627 #ifdef __STDC__
27628 # include <limits.h>
27629 #else
27630 # include <assert.h>
27631 #endif
27633 #undef $ac_func
27635 /* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
27638 #ifdef __cplusplus
27639 extern "C"
27640 #endif
27641 char $ac_func ();
27642 /* The GNU C library defines this for functions which it implements
27643 to always fail with ENOSYS. Some functions are actually named
27644 something starting with __ and the normal name is an alias. */
27645 #if defined __stub_$ac_func || defined __stub___$ac_func
27646 choke me
27647 #endif
27650 main ()
27652 return $ac_func ();
27654 return 0;
27656 _ACEOF
27657 rm -f conftest.$ac_objext conftest$ac_exeext
27658 if { (ac_try="$ac_link"
27659 case "(($ac_try" in
27660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661 *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664 (eval "$ac_link") 2>conftest.er1
27665 ac_status=$?
27666 grep -v '^ *+' conftest.er1 >conftest.err
27667 rm -f conftest.er1
27668 cat conftest.err >&5
27669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670 (exit $ac_status); } && {
27671 test -z "$ac_c_werror_flag" ||
27672 test ! -s conftest.err
27673 } && test -s conftest$ac_exeext &&
27674 $as_test_x conftest$ac_exeext; then
27675 eval "$as_ac_var=yes"
27676 else
27677 echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27680 eval "$as_ac_var=no"
27683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27684 conftest$ac_exeext conftest.$ac_ext
27686 ac_res=`eval echo '${'$as_ac_var'}'`
27687 { echo "$as_me:$LINENO: result: $ac_res" >&5
27688 echo "${ECHO_T}$ac_res" >&6; }
27689 if test `eval echo '${'$as_ac_var'}'` = yes; then
27690 cat >>confdefs.h <<_ACEOF
27691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27692 _ACEOF
27693 cat >>confdefs.h <<\_ACEOF
27694 #define BX_HAVE_TIMELOCAL 1
27695 _ACEOF
27698 done
27701 for ac_func in gmtime
27703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27704 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27706 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27707 echo $ECHO_N "(cached) $ECHO_C" >&6
27708 else
27709 cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h. */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h. */
27715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27717 #define $ac_func innocuous_$ac_func
27719 /* System header to define __stub macros and hopefully few prototypes,
27720 which can conflict with char $ac_func (); below.
27721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27722 <limits.h> exists even on freestanding compilers. */
27724 #ifdef __STDC__
27725 # include <limits.h>
27726 #else
27727 # include <assert.h>
27728 #endif
27730 #undef $ac_func
27732 /* Override any GCC internal prototype to avoid an error.
27733 Use char because int might match the return type of a GCC
27734 builtin and then its argument prototype would still apply. */
27735 #ifdef __cplusplus
27736 extern "C"
27737 #endif
27738 char $ac_func ();
27739 /* The GNU C library defines this for functions which it implements
27740 to always fail with ENOSYS. Some functions are actually named
27741 something starting with __ and the normal name is an alias. */
27742 #if defined __stub_$ac_func || defined __stub___$ac_func
27743 choke me
27744 #endif
27747 main ()
27749 return $ac_func ();
27751 return 0;
27753 _ACEOF
27754 rm -f conftest.$ac_objext conftest$ac_exeext
27755 if { (ac_try="$ac_link"
27756 case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_link") 2>conftest.er1
27762 ac_status=$?
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); } && {
27768 test -z "$ac_c_werror_flag" ||
27769 test ! -s conftest.err
27770 } && test -s conftest$ac_exeext &&
27771 $as_test_x conftest$ac_exeext; then
27772 eval "$as_ac_var=yes"
27773 else
27774 echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27777 eval "$as_ac_var=no"
27780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27781 conftest$ac_exeext conftest.$ac_ext
27783 ac_res=`eval echo '${'$as_ac_var'}'`
27784 { echo "$as_me:$LINENO: result: $ac_res" >&5
27785 echo "${ECHO_T}$ac_res" >&6; }
27786 if test `eval echo '${'$as_ac_var'}'` = yes; then
27787 cat >>confdefs.h <<_ACEOF
27788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27789 _ACEOF
27790 cat >>confdefs.h <<\_ACEOF
27791 #define BX_HAVE_GMTIME 1
27792 _ACEOF
27795 done
27798 for ac_func in mktime
27800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27804 echo $ECHO_N "(cached) $ECHO_C" >&6
27805 else
27806 cat >conftest.$ac_ext <<_ACEOF
27807 /* confdefs.h. */
27808 _ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h. */
27812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27814 #define $ac_func innocuous_$ac_func
27816 /* System header to define __stub macros and hopefully few prototypes,
27817 which can conflict with char $ac_func (); below.
27818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27819 <limits.h> exists even on freestanding compilers. */
27821 #ifdef __STDC__
27822 # include <limits.h>
27823 #else
27824 # include <assert.h>
27825 #endif
27827 #undef $ac_func
27829 /* Override any GCC internal prototype to avoid an error.
27830 Use char because int might match the return type of a GCC
27831 builtin and then its argument prototype would still apply. */
27832 #ifdef __cplusplus
27833 extern "C"
27834 #endif
27835 char $ac_func ();
27836 /* The GNU C library defines this for functions which it implements
27837 to always fail with ENOSYS. Some functions are actually named
27838 something starting with __ and the normal name is an alias. */
27839 #if defined __stub_$ac_func || defined __stub___$ac_func
27840 choke me
27841 #endif
27844 main ()
27846 return $ac_func ();
27848 return 0;
27850 _ACEOF
27851 rm -f conftest.$ac_objext conftest$ac_exeext
27852 if { (ac_try="$ac_link"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27856 esac
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_link") 2>conftest.er1
27859 ac_status=$?
27860 grep -v '^ *+' conftest.er1 >conftest.err
27861 rm -f conftest.er1
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } && {
27865 test -z "$ac_c_werror_flag" ||
27866 test ! -s conftest.err
27867 } && test -s conftest$ac_exeext &&
27868 $as_test_x conftest$ac_exeext; then
27869 eval "$as_ac_var=yes"
27870 else
27871 echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27874 eval "$as_ac_var=no"
27877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27878 conftest$ac_exeext conftest.$ac_ext
27880 ac_res=`eval echo '${'$as_ac_var'}'`
27881 { echo "$as_me:$LINENO: result: $ac_res" >&5
27882 echo "${ECHO_T}$ac_res" >&6; }
27883 if test `eval echo '${'$as_ac_var'}'` = yes; then
27884 cat >>confdefs.h <<_ACEOF
27885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27886 _ACEOF
27887 cat >>confdefs.h <<\_ACEOF
27888 #define BX_HAVE_MKTIME 1
27889 _ACEOF
27892 done
27895 # Check whether --enable-largefile was given.
27896 if test "${enable_largefile+set}" = set; then
27897 enableval=$enable_largefile;
27900 if test "$enable_largefile" != no; then
27901 wx_largefile=no
27903 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
27904 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
27905 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
27906 echo $ECHO_N "(cached) $ECHO_C" >&6
27907 else
27909 cat >conftest.$ac_ext <<_ACEOF
27910 /* confdefs.h. */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h. */
27915 #define _FILE_OFFSET_BITS 64
27916 #include <sys/types.h>
27918 main ()
27920 typedef struct {
27921 unsigned int field: sizeof(off_t) == 8;
27922 } wxlf;
27925 return 0;
27927 _ACEOF
27928 rm -f conftest.$ac_objext
27929 if { (ac_try="$ac_compile"
27930 case "(($ac_try" in
27931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27932 *) ac_try_echo=$ac_try;;
27933 esac
27934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27935 (eval "$ac_compile") 2>conftest.er1
27936 ac_status=$?
27937 grep -v '^ *+' conftest.er1 >conftest.err
27938 rm -f conftest.er1
27939 cat conftest.err >&5
27940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27941 (exit $ac_status); } && {
27942 test -z "$ac_c_werror_flag" ||
27943 test ! -s conftest.err
27944 } && test -s conftest.$ac_objext; then
27945 ac_cv_sys_file_offset_bits=64
27946 else
27947 echo "$as_me: failed program was:" >&5
27948 sed 's/^/| /' conftest.$ac_ext >&5
27950 ac_cv_sys_file_offset_bits=no
27953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
27958 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
27960 if test "$ac_cv_sys_file_offset_bits" != no; then
27961 wx_largefile=yes
27962 cat >>confdefs.h <<_ACEOF
27963 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
27964 _ACEOF
27968 if test "x$wx_largefile" != "xyes"; then
27970 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
27971 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
27972 if test "${ac_cv_sys_large_files+set}" = set; then
27973 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 else
27976 cat >conftest.$ac_ext <<_ACEOF
27977 /* confdefs.h. */
27978 _ACEOF
27979 cat confdefs.h >>conftest.$ac_ext
27980 cat >>conftest.$ac_ext <<_ACEOF
27981 /* end confdefs.h. */
27982 #define _LARGE_FILES 1
27983 #include <sys/types.h>
27985 main ()
27987 typedef struct {
27988 unsigned int field: sizeof(off_t) == 8;
27989 } wxlf;
27992 return 0;
27994 _ACEOF
27995 rm -f conftest.$ac_objext
27996 if { (ac_try="$ac_compile"
27997 case "(($ac_try" in
27998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999 *) ac_try_echo=$ac_try;;
28000 esac
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002 (eval "$ac_compile") 2>conftest.er1
28003 ac_status=$?
28004 grep -v '^ *+' conftest.er1 >conftest.err
28005 rm -f conftest.er1
28006 cat conftest.err >&5
28007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008 (exit $ac_status); } && {
28009 test -z "$ac_c_werror_flag" ||
28010 test ! -s conftest.err
28011 } && test -s conftest.$ac_objext; then
28012 ac_cv_sys_large_files=1
28013 else
28014 echo "$as_me: failed program was:" >&5
28015 sed 's/^/| /' conftest.$ac_ext >&5
28017 ac_cv_sys_large_files=no
28020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
28025 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
28027 if test "$ac_cv_sys_large_files" != no; then
28028 wx_largefile=yes
28029 cat >>confdefs.h <<_ACEOF
28030 #define _LARGE_FILES $ac_cv_sys_large_files
28031 _ACEOF
28037 { echo "$as_me:$LINENO: checking if large file support is available" >&5
28038 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
28039 if test "x$wx_largefile" = "xyes"; then
28040 cat >>confdefs.h <<\_ACEOF
28041 #define HAVE_LARGEFILE_SUPPORT 1
28042 _ACEOF
28045 { echo "$as_me:$LINENO: result: $wx_largefile" >&5
28046 echo "${ECHO_T}$wx_largefile" >&6; }
28050 if test "x$wx_largefile" = "xyes"; then
28051 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
28052 BX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
28053 else
28054 BX_LARGEFILE_FLAGS="-D_LARGE_FILES"
28056 CPPFLAGS="$CPPFLAGS $BX_LARGEFILE_FLAGS"
28057 CFLAGS="$CFLAGS $BX_LARGEFILE_FLAGS"
28058 CXXFLAGS="$CXXFLAGS $BX_LARGEFILE_FLAGS"
28061 have_cos=0
28062 have_floor=0
28064 for ac_func in cos
28066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 else
28072 cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h. */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h. */
28078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28080 #define $ac_func innocuous_$ac_func
28082 /* System header to define __stub macros and hopefully few prototypes,
28083 which can conflict with char $ac_func (); below.
28084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28085 <limits.h> exists even on freestanding compilers. */
28087 #ifdef __STDC__
28088 # include <limits.h>
28089 #else
28090 # include <assert.h>
28091 #endif
28093 #undef $ac_func
28095 /* Override any GCC internal prototype to avoid an error.
28096 Use char because int might match the return type of a GCC
28097 builtin and then its argument prototype would still apply. */
28098 #ifdef __cplusplus
28099 extern "C"
28100 #endif
28101 char $ac_func ();
28102 /* The GNU C library defines this for functions which it implements
28103 to always fail with ENOSYS. Some functions are actually named
28104 something starting with __ and the normal name is an alias. */
28105 #if defined __stub_$ac_func || defined __stub___$ac_func
28106 choke me
28107 #endif
28110 main ()
28112 return $ac_func ();
28114 return 0;
28116 _ACEOF
28117 rm -f conftest.$ac_objext conftest$ac_exeext
28118 if { (ac_try="$ac_link"
28119 case "(($ac_try" in
28120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121 *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124 (eval "$ac_link") 2>conftest.er1
28125 ac_status=$?
28126 grep -v '^ *+' conftest.er1 >conftest.err
28127 rm -f conftest.er1
28128 cat conftest.err >&5
28129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } && {
28131 test -z "$ac_c_werror_flag" ||
28132 test ! -s conftest.err
28133 } && test -s conftest$ac_exeext &&
28134 $as_test_x conftest$ac_exeext; then
28135 eval "$as_ac_var=yes"
28136 else
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28140 eval "$as_ac_var=no"
28143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28144 conftest$ac_exeext conftest.$ac_ext
28146 ac_res=`eval echo '${'$as_ac_var'}'`
28147 { echo "$as_me:$LINENO: result: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28149 if test `eval echo '${'$as_ac_var'}'` = yes; then
28150 cat >>confdefs.h <<_ACEOF
28151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28152 _ACEOF
28153 have_cos=1
28155 done
28158 for ac_func in floor
28160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28164 echo $ECHO_N "(cached) $ECHO_C" >&6
28165 else
28166 cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h. */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h. */
28172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28174 #define $ac_func innocuous_$ac_func
28176 /* System header to define __stub macros and hopefully few prototypes,
28177 which can conflict with char $ac_func (); below.
28178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28179 <limits.h> exists even on freestanding compilers. */
28181 #ifdef __STDC__
28182 # include <limits.h>
28183 #else
28184 # include <assert.h>
28185 #endif
28187 #undef $ac_func
28189 /* Override any GCC internal prototype to avoid an error.
28190 Use char because int might match the return type of a GCC
28191 builtin and then its argument prototype would still apply. */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char $ac_func ();
28196 /* The GNU C library defines this for functions which it implements
28197 to always fail with ENOSYS. Some functions are actually named
28198 something starting with __ and the normal name is an alias. */
28199 #if defined __stub_$ac_func || defined __stub___$ac_func
28200 choke me
28201 #endif
28204 main ()
28206 return $ac_func ();
28208 return 0;
28210 _ACEOF
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_link") 2>conftest.er1
28219 ac_status=$?
28220 grep -v '^ *+' conftest.er1 >conftest.err
28221 rm -f conftest.er1
28222 cat conftest.err >&5
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } && {
28225 test -z "$ac_c_werror_flag" ||
28226 test ! -s conftest.err
28227 } && test -s conftest$ac_exeext &&
28228 $as_test_x conftest$ac_exeext; then
28229 eval "$as_ac_var=yes"
28230 else
28231 echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28234 eval "$as_ac_var=no"
28237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28238 conftest$ac_exeext conftest.$ac_ext
28240 ac_res=`eval echo '${'$as_ac_var'}'`
28241 { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28243 if test `eval echo '${'$as_ac_var'}'` = yes; then
28244 cat >>confdefs.h <<_ACEOF
28245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28246 _ACEOF
28247 have_floor=1
28249 done
28251 { echo "$as_me:$LINENO: checking if math functions link without -lm" >&5
28252 echo $ECHO_N "checking if math functions link without -lm... $ECHO_C" >&6; }
28253 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28254 { echo "$as_me:$LINENO: result: yes" >&5
28255 echo "${ECHO_T}yes" >&6; }
28256 else
28257 { echo "$as_me:$LINENO: result: no" >&5
28258 echo "${ECHO_T}no" >&6; }
28259 LIBS="$LIBS -lm"
28260 # use different functions to bypass configure caching
28261 have_sin=0
28262 have_ceil=0
28264 for ac_func in sin
28266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28270 echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272 cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h. */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28280 #define $ac_func innocuous_$ac_func
28282 /* System header to define __stub macros and hopefully few prototypes,
28283 which can conflict with char $ac_func (); below.
28284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28285 <limits.h> exists even on freestanding compilers. */
28287 #ifdef __STDC__
28288 # include <limits.h>
28289 #else
28290 # include <assert.h>
28291 #endif
28293 #undef $ac_func
28295 /* Override any GCC internal prototype to avoid an error.
28296 Use char because int might match the return type of a GCC
28297 builtin and then its argument prototype would still apply. */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char $ac_func ();
28302 /* The GNU C library defines this for functions which it implements
28303 to always fail with ENOSYS. Some functions are actually named
28304 something starting with __ and the normal name is an alias. */
28305 #if defined __stub_$ac_func || defined __stub___$ac_func
28306 choke me
28307 #endif
28310 main ()
28312 return $ac_func ();
28314 return 0;
28316 _ACEOF
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_link") 2>conftest.er1
28325 ac_status=$?
28326 grep -v '^ *+' conftest.er1 >conftest.err
28327 rm -f conftest.er1
28328 cat conftest.err >&5
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } && {
28331 test -z "$ac_c_werror_flag" ||
28332 test ! -s conftest.err
28333 } && test -s conftest$ac_exeext &&
28334 $as_test_x conftest$ac_exeext; then
28335 eval "$as_ac_var=yes"
28336 else
28337 echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28340 eval "$as_ac_var=no"
28343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28344 conftest$ac_exeext conftest.$ac_ext
28346 ac_res=`eval echo '${'$as_ac_var'}'`
28347 { echo "$as_me:$LINENO: result: $ac_res" >&5
28348 echo "${ECHO_T}$ac_res" >&6; }
28349 if test `eval echo '${'$as_ac_var'}'` = yes; then
28350 cat >>confdefs.h <<_ACEOF
28351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28352 _ACEOF
28353 have_sin=1
28355 done
28358 for ac_func in ceil
28360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28364 echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366 cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h. */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h. */
28372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28374 #define $ac_func innocuous_$ac_func
28376 /* System header to define __stub macros and hopefully few prototypes,
28377 which can conflict with char $ac_func (); below.
28378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379 <limits.h> exists even on freestanding compilers. */
28381 #ifdef __STDC__
28382 # include <limits.h>
28383 #else
28384 # include <assert.h>
28385 #endif
28387 #undef $ac_func
28389 /* Override any GCC internal prototype to avoid an error.
28390 Use char because int might match the return type of a GCC
28391 builtin and then its argument prototype would still apply. */
28392 #ifdef __cplusplus
28393 extern "C"
28394 #endif
28395 char $ac_func ();
28396 /* The GNU C library defines this for functions which it implements
28397 to always fail with ENOSYS. Some functions are actually named
28398 something starting with __ and the normal name is an alias. */
28399 #if defined __stub_$ac_func || defined __stub___$ac_func
28400 choke me
28401 #endif
28404 main ()
28406 return $ac_func ();
28408 return 0;
28410 _ACEOF
28411 rm -f conftest.$ac_objext conftest$ac_exeext
28412 if { (ac_try="$ac_link"
28413 case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_link") 2>conftest.er1
28419 ac_status=$?
28420 grep -v '^ *+' conftest.er1 >conftest.err
28421 rm -f conftest.er1
28422 cat conftest.err >&5
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); } && {
28425 test -z "$ac_c_werror_flag" ||
28426 test ! -s conftest.err
28427 } && test -s conftest$ac_exeext &&
28428 $as_test_x conftest$ac_exeext; then
28429 eval "$as_ac_var=yes"
28430 else
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28434 eval "$as_ac_var=no"
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438 conftest$ac_exeext conftest.$ac_ext
28440 ac_res=`eval echo '${'$as_ac_var'}'`
28441 { echo "$as_me:$LINENO: result: $ac_res" >&5
28442 echo "${ECHO_T}$ac_res" >&6; }
28443 if test `eval echo '${'$as_ac_var'}'` = yes; then
28444 cat >>confdefs.h <<_ACEOF
28445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28446 _ACEOF
28447 have_ceil=1
28449 done
28451 { echo "$as_me:$LINENO: checking if math functions link with -lm" >&5
28452 echo $ECHO_N "checking if math functions link with -lm... $ECHO_C" >&6; }
28453 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28454 { echo "$as_me:$LINENO: result: yes" >&5
28455 echo "${ECHO_T}yes" >&6; }
28456 else
28457 { echo "$as_me:$LINENO: result: no" >&5
28458 echo "${ECHO_T}no" >&6; }
28459 # not sure we should warn the user, crash, etc.
28460 # expect link failure
28464 { echo "$as_me:$LINENO: checking for struct timeval" >&5
28465 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
28466 cat >conftest.$ac_ext <<_ACEOF
28467 /* confdefs.h. */
28468 _ACEOF
28469 cat confdefs.h >>conftest.$ac_ext
28470 cat >>conftest.$ac_ext <<_ACEOF
28471 /* end confdefs.h. */
28472 #include <sys/time.h>
28474 main ()
28476 struct timeval x;
28478 return 0;
28480 _ACEOF
28481 rm -f conftest.$ac_objext
28482 if { (ac_try="$ac_compile"
28483 case "(($ac_try" in
28484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28485 *) ac_try_echo=$ac_try;;
28486 esac
28487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28488 (eval "$ac_compile") 2>conftest.er1
28489 ac_status=$?
28490 grep -v '^ *+' conftest.er1 >conftest.err
28491 rm -f conftest.er1
28492 cat conftest.err >&5
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); } && {
28495 test -z "$ac_c_werror_flag" ||
28496 test ! -s conftest.err
28497 } && test -s conftest.$ac_objext; then
28499 { echo "$as_me:$LINENO: result: yes" >&5
28500 echo "${ECHO_T}yes" >&6; }
28501 cat >>confdefs.h <<\_ACEOF
28502 #define BX_HAVE_STRUCT_TIMEVAL 1
28503 _ACEOF
28506 else
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28516 { echo "$as_me:$LINENO: checking if compiler allows empty structs" >&5
28517 echo $ECHO_N "checking if compiler allows empty structs... $ECHO_C" >&6; }
28518 cat >conftest.$ac_ext <<_ACEOF
28519 /* confdefs.h. */
28520 _ACEOF
28521 cat confdefs.h >>conftest.$ac_ext
28522 cat >>conftest.$ac_ext <<_ACEOF
28523 /* end confdefs.h. */
28526 main ()
28528 typedef struct { } junk;
28530 return 0;
28532 _ACEOF
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_compile") 2>conftest.er1
28541 ac_status=$?
28542 grep -v '^ *+' conftest.er1 >conftest.err
28543 rm -f conftest.er1
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } && {
28547 test -z "$ac_c_werror_flag" ||
28548 test ! -s conftest.err
28549 } && test -s conftest.$ac_objext; then
28550 { echo "$as_me:$LINENO: result: yes" >&5
28551 echo "${ECHO_T}yes" >&6; }
28552 else
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28557 cat >>confdefs.h <<\_ACEOF
28558 #define BX_NO_EMPTY_STRUCTS 1
28559 _ACEOF
28561 { echo "$as_me:$LINENO: result: no" >&5
28562 echo "${ECHO_T}no" >&6; }
28566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568 { echo "$as_me:$LINENO: checking if compiler allows __attribute__" >&5
28569 echo $ECHO_N "checking if compiler allows __attribute__... $ECHO_C" >&6; }
28570 cat >conftest.$ac_ext <<_ACEOF
28571 /* confdefs.h. */
28572 _ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28578 main ()
28580 typedef struct { } __attribute__ ((packed)) junk;
28582 return 0;
28584 _ACEOF
28585 rm -f conftest.$ac_objext
28586 if { (ac_try="$ac_compile"
28587 case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590 esac
28591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
28593 ac_status=$?
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } && {
28599 test -z "$ac_c_werror_flag" ||
28600 test ! -s conftest.err
28601 } && test -s conftest.$ac_objext; then
28602 { echo "$as_me:$LINENO: result: yes" >&5
28603 echo "${ECHO_T}yes" >&6; }
28604 else
28605 echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.$ac_ext >&5
28609 { echo "$as_me:$LINENO: result: no" >&5
28610 echo "${ECHO_T}no" >&6; }
28611 cat >>confdefs.h <<\_ACEOF
28612 #define BX_NO_ATTRIBUTES 1
28613 _ACEOF
28618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 ac_ext=cpp
28622 ac_cpp='$CXXCPP $CPPFLAGS'
28623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28627 { echo "$as_me:$LINENO: checking for hash_map" >&5
28628 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h. */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h. */
28635 #include <hash_map>
28637 main ()
28641 return 0;
28643 _ACEOF
28644 rm -f conftest.$ac_objext
28645 if { (ac_try="$ac_compile"
28646 case "(($ac_try" in
28647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648 *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651 (eval "$ac_compile") 2>conftest.er1
28652 ac_status=$?
28653 grep -v '^ *+' conftest.er1 >conftest.err
28654 rm -f conftest.er1
28655 cat conftest.err >&5
28656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } && {
28658 test -z "$ac_cxx_werror_flag" ||
28659 test ! -s conftest.err
28660 } && test -s conftest.$ac_objext; then
28662 { echo "$as_me:$LINENO: result: yes" >&5
28663 echo "${ECHO_T}yes" >&6; }
28664 cat >>confdefs.h <<\_ACEOF
28665 #define BX_HAVE_HASH_MAP 1
28666 _ACEOF
28669 else
28670 echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28673 { echo "$as_me:$LINENO: result: no" >&5
28674 echo "${ECHO_T}no" >&6; }
28677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28678 { echo "$as_me:$LINENO: checking for hash_map.h" >&5
28679 echo $ECHO_N "checking for hash_map.h... $ECHO_C" >&6; }
28680 cat >conftest.$ac_ext <<_ACEOF
28681 /* confdefs.h. */
28682 _ACEOF
28683 cat confdefs.h >>conftest.$ac_ext
28684 cat >>conftest.$ac_ext <<_ACEOF
28685 /* end confdefs.h. */
28686 #include <hash_map.h>
28688 main ()
28692 return 0;
28694 _ACEOF
28695 rm -f conftest.$ac_objext
28696 if { (ac_try="$ac_compile"
28697 case "(($ac_try" in
28698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699 *) ac_try_echo=$ac_try;;
28700 esac
28701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702 (eval "$ac_compile") 2>conftest.er1
28703 ac_status=$?
28704 grep -v '^ *+' conftest.er1 >conftest.err
28705 rm -f conftest.er1
28706 cat conftest.err >&5
28707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } && {
28709 test -z "$ac_cxx_werror_flag" ||
28710 test ! -s conftest.err
28711 } && test -s conftest.$ac_objext; then
28713 { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28715 cat >>confdefs.h <<\_ACEOF
28716 #define BX_HAVE_HASH_MAP_H 1
28717 _ACEOF
28720 else
28721 echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.$ac_ext >&5
28724 { echo "$as_me:$LINENO: result: no" >&5
28725 echo "${ECHO_T}no" >&6; }
28728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28729 { echo "$as_me:$LINENO: checking for set" >&5
28730 echo $ECHO_N "checking for set... $ECHO_C" >&6; }
28731 cat >conftest.$ac_ext <<_ACEOF
28732 /* confdefs.h. */
28733 _ACEOF
28734 cat confdefs.h >>conftest.$ac_ext
28735 cat >>conftest.$ac_ext <<_ACEOF
28736 /* end confdefs.h. */
28737 #include <set>
28739 main ()
28743 return 0;
28745 _ACEOF
28746 rm -f conftest.$ac_objext
28747 if { (ac_try="$ac_compile"
28748 case "(($ac_try" in
28749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28750 *) ac_try_echo=$ac_try;;
28751 esac
28752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28753 (eval "$ac_compile") 2>conftest.er1
28754 ac_status=$?
28755 grep -v '^ *+' conftest.er1 >conftest.err
28756 rm -f conftest.er1
28757 cat conftest.err >&5
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); } && {
28760 test -z "$ac_cxx_werror_flag" ||
28761 test ! -s conftest.err
28762 } && test -s conftest.$ac_objext; then
28764 { echo "$as_me:$LINENO: result: yes" >&5
28765 echo "${ECHO_T}yes" >&6; }
28766 cat >>confdefs.h <<\_ACEOF
28767 #define BX_HAVE_SET 1
28768 _ACEOF
28771 else
28772 echo "$as_me: failed program was:" >&5
28773 sed 's/^/| /' conftest.$ac_ext >&5
28775 { echo "$as_me:$LINENO: result: no" >&5
28776 echo "${ECHO_T}no" >&6; }
28779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780 { echo "$as_me:$LINENO: checking for set.h" >&5
28781 echo $ECHO_N "checking for set.h... $ECHO_C" >&6; }
28782 cat >conftest.$ac_ext <<_ACEOF
28783 /* confdefs.h. */
28784 _ACEOF
28785 cat confdefs.h >>conftest.$ac_ext
28786 cat >>conftest.$ac_ext <<_ACEOF
28787 /* end confdefs.h. */
28788 #include <set.h>
28790 main ()
28794 return 0;
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_compile") 2>conftest.er1
28805 ac_status=$?
28806 grep -v '^ *+' conftest.er1 >conftest.err
28807 rm -f conftest.er1
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } && {
28811 test -z "$ac_cxx_werror_flag" ||
28812 test ! -s conftest.err
28813 } && test -s conftest.$ac_objext; then
28815 { echo "$as_me:$LINENO: result: yes" >&5
28816 echo "${ECHO_T}yes" >&6; }
28817 cat >>confdefs.h <<\_ACEOF
28818 #define BX_HAVE_SET_H 1
28819 _ACEOF
28822 else
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 { echo "$as_me:$LINENO: result: no" >&5
28827 echo "${ECHO_T}no" >&6; }
28830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28831 ac_ext=c
28832 ac_cpp='$CPP $CPPFLAGS'
28833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28838 if test "$with_all_libs" = yes; then
28839 if test "$cross_configure" = 1; then
28840 { echo "$as_me:$LINENO: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&5
28841 echo "$as_me: WARNING: Using --with-all-libs while cross configuring is very unlikely to be what you want. You should specify the --with-* args yourself." >&2;}
28843 if test "$with_beos" != yes; then
28844 can_compile_beos=1
28845 if test "${ac_cv_header_app_Application_h+set}" = set; then
28846 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28847 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28848 if test "${ac_cv_header_app_Application_h+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28851 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28852 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28853 else
28854 # Is the header compilable?
28855 { echo "$as_me:$LINENO: checking app/Application.h usability" >&5
28856 echo $ECHO_N "checking app/Application.h usability... $ECHO_C" >&6; }
28857 cat >conftest.$ac_ext <<_ACEOF
28858 /* confdefs.h. */
28859 _ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h. */
28863 $ac_includes_default
28864 #include <app/Application.h>
28865 _ACEOF
28866 rm -f conftest.$ac_objext
28867 if { (ac_try="$ac_compile"
28868 case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28871 esac
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
28874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } && {
28880 test -z "$ac_c_werror_flag" ||
28881 test ! -s conftest.err
28882 } && test -s conftest.$ac_objext; then
28883 ac_header_compiler=yes
28884 else
28885 echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28888 ac_header_compiler=no
28891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28893 echo "${ECHO_T}$ac_header_compiler" >&6; }
28895 # Is the header present?
28896 { echo "$as_me:$LINENO: checking app/Application.h presence" >&5
28897 echo $ECHO_N "checking app/Application.h presence... $ECHO_C" >&6; }
28898 cat >conftest.$ac_ext <<_ACEOF
28899 /* confdefs.h. */
28900 _ACEOF
28901 cat confdefs.h >>conftest.$ac_ext
28902 cat >>conftest.$ac_ext <<_ACEOF
28903 /* end confdefs.h. */
28904 #include <app/Application.h>
28905 _ACEOF
28906 if { (ac_try="$ac_cpp conftest.$ac_ext"
28907 case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910 esac
28911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28913 ac_status=$?
28914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } >/dev/null && {
28919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28920 test ! -s conftest.err
28921 }; then
28922 ac_header_preproc=yes
28923 else
28924 echo "$as_me: failed program was:" >&5
28925 sed 's/^/| /' conftest.$ac_ext >&5
28927 ac_header_preproc=no
28930 rm -f conftest.err conftest.$ac_ext
28931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28932 echo "${ECHO_T}$ac_header_preproc" >&6; }
28934 # So? What about this header?
28935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28936 yes:no: )
28937 { echo "$as_me:$LINENO: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&5
28938 echo "$as_me: WARNING: app/Application.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28939 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the compiler's result" >&5
28940 echo "$as_me: WARNING: app/Application.h: proceeding with the compiler's result" >&2;}
28941 ac_header_preproc=yes
28943 no:yes:* )
28944 { echo "$as_me:$LINENO: WARNING: app/Application.h: present but cannot be compiled" >&5
28945 echo "$as_me: WARNING: app/Application.h: present but cannot be compiled" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: app/Application.h: check for missing prerequisite headers?" >&5
28947 echo "$as_me: WARNING: app/Application.h: check for missing prerequisite headers?" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: app/Application.h: see the Autoconf documentation" >&5
28949 echo "$as_me: WARNING: app/Application.h: see the Autoconf documentation" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&5
28951 echo "$as_me: WARNING: app/Application.h: section \"Present But Cannot Be Compiled\"" >&2;}
28952 { echo "$as_me:$LINENO: WARNING: app/Application.h: proceeding with the preprocessor's result" >&5
28953 echo "$as_me: WARNING: app/Application.h: proceeding with the preprocessor's result" >&2;}
28954 { echo "$as_me:$LINENO: WARNING: app/Application.h: in the future, the compiler will take precedence" >&5
28955 echo "$as_me: WARNING: app/Application.h: in the future, the compiler will take precedence" >&2;}
28958 esac
28959 { echo "$as_me:$LINENO: checking for app/Application.h" >&5
28960 echo $ECHO_N "checking for app/Application.h... $ECHO_C" >&6; }
28961 if test "${ac_cv_header_app_Application_h+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28963 else
28964 ac_cv_header_app_Application_h=$ac_header_preproc
28966 { echo "$as_me:$LINENO: result: $ac_cv_header_app_Application_h" >&5
28967 echo "${ECHO_T}$ac_cv_header_app_Application_h" >&6; }
28970 if test $ac_cv_header_app_Application_h = yes; then
28972 else
28973 can_compile_beos=0
28977 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28978 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
28979 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
28980 if test "${ac_cv_header_interface_Window_h+set}" = set; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28983 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
28984 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
28985 else
28986 # Is the header compilable?
28987 { echo "$as_me:$LINENO: checking interface/Window.h usability" >&5
28988 echo $ECHO_N "checking interface/Window.h usability... $ECHO_C" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28990 /* confdefs.h. */
28991 _ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 $ac_includes_default
28996 #include <interface/Window.h>
28997 _ACEOF
28998 rm -f conftest.$ac_objext
28999 if { (ac_try="$ac_compile"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_compile") 2>conftest.er1
29006 ac_status=$?
29007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest.$ac_objext; then
29015 ac_header_compiler=yes
29016 else
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 ac_header_compiler=no
29023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29025 echo "${ECHO_T}$ac_header_compiler" >&6; }
29027 # Is the header present?
29028 { echo "$as_me:$LINENO: checking interface/Window.h presence" >&5
29029 echo $ECHO_N "checking interface/Window.h presence... $ECHO_C" >&6; }
29030 cat >conftest.$ac_ext <<_ACEOF
29031 /* confdefs.h. */
29032 _ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h. */
29036 #include <interface/Window.h>
29037 _ACEOF
29038 if { (ac_try="$ac_cpp conftest.$ac_ext"
29039 case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29042 esac
29043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29045 ac_status=$?
29046 grep -v '^ *+' conftest.er1 >conftest.err
29047 rm -f conftest.er1
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } >/dev/null && {
29051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29052 test ! -s conftest.err
29053 }; then
29054 ac_header_preproc=yes
29055 else
29056 echo "$as_me: failed program was:" >&5
29057 sed 's/^/| /' conftest.$ac_ext >&5
29059 ac_header_preproc=no
29062 rm -f conftest.err conftest.$ac_ext
29063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29064 echo "${ECHO_T}$ac_header_preproc" >&6; }
29066 # So? What about this header?
29067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29068 yes:no: )
29069 { echo "$as_me:$LINENO: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&5
29070 echo "$as_me: WARNING: interface/Window.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29071 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the compiler's result" >&5
29072 echo "$as_me: WARNING: interface/Window.h: proceeding with the compiler's result" >&2;}
29073 ac_header_preproc=yes
29075 no:yes:* )
29076 { echo "$as_me:$LINENO: WARNING: interface/Window.h: present but cannot be compiled" >&5
29077 echo "$as_me: WARNING: interface/Window.h: present but cannot be compiled" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: interface/Window.h: check for missing prerequisite headers?" >&5
29079 echo "$as_me: WARNING: interface/Window.h: check for missing prerequisite headers?" >&2;}
29080 { echo "$as_me:$LINENO: WARNING: interface/Window.h: see the Autoconf documentation" >&5
29081 echo "$as_me: WARNING: interface/Window.h: see the Autoconf documentation" >&2;}
29082 { echo "$as_me:$LINENO: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&5
29083 echo "$as_me: WARNING: interface/Window.h: section \"Present But Cannot Be Compiled\"" >&2;}
29084 { echo "$as_me:$LINENO: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&5
29085 echo "$as_me: WARNING: interface/Window.h: proceeding with the preprocessor's result" >&2;}
29086 { echo "$as_me:$LINENO: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&5
29087 echo "$as_me: WARNING: interface/Window.h: in the future, the compiler will take precedence" >&2;}
29090 esac
29091 { echo "$as_me:$LINENO: checking for interface/Window.h" >&5
29092 echo $ECHO_N "checking for interface/Window.h... $ECHO_C" >&6; }
29093 if test "${ac_cv_header_interface_Window_h+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095 else
29096 ac_cv_header_interface_Window_h=$ac_header_preproc
29098 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_Window_h" >&5
29099 echo "${ECHO_T}$ac_cv_header_interface_Window_h" >&6; }
29102 if test $ac_cv_header_interface_Window_h = yes; then
29104 else
29105 can_compile_beos=0
29109 if test "${ac_cv_header_interface_View_h+set}" = set; then
29110 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29111 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29112 if test "${ac_cv_header_interface_View_h+set}" = set; then
29113 echo $ECHO_N "(cached) $ECHO_C" >&6
29115 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29116 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29117 else
29118 # Is the header compilable?
29119 { echo "$as_me:$LINENO: checking interface/View.h usability" >&5
29120 echo $ECHO_N "checking interface/View.h usability... $ECHO_C" >&6; }
29121 cat >conftest.$ac_ext <<_ACEOF
29122 /* confdefs.h. */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h. */
29127 $ac_includes_default
29128 #include <interface/View.h>
29129 _ACEOF
29130 rm -f conftest.$ac_objext
29131 if { (ac_try="$ac_compile"
29132 case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_compile") 2>conftest.er1
29138 ac_status=$?
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } && {
29144 test -z "$ac_c_werror_flag" ||
29145 test ! -s conftest.err
29146 } && test -s conftest.$ac_objext; then
29147 ac_header_compiler=yes
29148 else
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29152 ac_header_compiler=no
29155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29157 echo "${ECHO_T}$ac_header_compiler" >&6; }
29159 # Is the header present?
29160 { echo "$as_me:$LINENO: checking interface/View.h presence" >&5
29161 echo $ECHO_N "checking interface/View.h presence... $ECHO_C" >&6; }
29162 cat >conftest.$ac_ext <<_ACEOF
29163 /* confdefs.h. */
29164 _ACEOF
29165 cat confdefs.h >>conftest.$ac_ext
29166 cat >>conftest.$ac_ext <<_ACEOF
29167 /* end confdefs.h. */
29168 #include <interface/View.h>
29169 _ACEOF
29170 if { (ac_try="$ac_cpp conftest.$ac_ext"
29171 case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29174 esac
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29177 ac_status=$?
29178 grep -v '^ *+' conftest.er1 >conftest.err
29179 rm -f conftest.er1
29180 cat conftest.err >&5
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); } >/dev/null && {
29183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29184 test ! -s conftest.err
29185 }; then
29186 ac_header_preproc=yes
29187 else
29188 echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29191 ac_header_preproc=no
29194 rm -f conftest.err conftest.$ac_ext
29195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29196 echo "${ECHO_T}$ac_header_preproc" >&6; }
29198 # So? What about this header?
29199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29200 yes:no: )
29201 { echo "$as_me:$LINENO: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&5
29202 echo "$as_me: WARNING: interface/View.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the compiler's result" >&5
29204 echo "$as_me: WARNING: interface/View.h: proceeding with the compiler's result" >&2;}
29205 ac_header_preproc=yes
29207 no:yes:* )
29208 { echo "$as_me:$LINENO: WARNING: interface/View.h: present but cannot be compiled" >&5
29209 echo "$as_me: WARNING: interface/View.h: present but cannot be compiled" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: interface/View.h: check for missing prerequisite headers?" >&5
29211 echo "$as_me: WARNING: interface/View.h: check for missing prerequisite headers?" >&2;}
29212 { echo "$as_me:$LINENO: WARNING: interface/View.h: see the Autoconf documentation" >&5
29213 echo "$as_me: WARNING: interface/View.h: see the Autoconf documentation" >&2;}
29214 { echo "$as_me:$LINENO: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&5
29215 echo "$as_me: WARNING: interface/View.h: section \"Present But Cannot Be Compiled\"" >&2;}
29216 { echo "$as_me:$LINENO: WARNING: interface/View.h: proceeding with the preprocessor's result" >&5
29217 echo "$as_me: WARNING: interface/View.h: proceeding with the preprocessor's result" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: interface/View.h: in the future, the compiler will take precedence" >&5
29219 echo "$as_me: WARNING: interface/View.h: in the future, the compiler will take precedence" >&2;}
29222 esac
29223 { echo "$as_me:$LINENO: checking for interface/View.h" >&5
29224 echo $ECHO_N "checking for interface/View.h... $ECHO_C" >&6; }
29225 if test "${ac_cv_header_interface_View_h+set}" = set; then
29226 echo $ECHO_N "(cached) $ECHO_C" >&6
29227 else
29228 ac_cv_header_interface_View_h=$ac_header_preproc
29230 { echo "$as_me:$LINENO: result: $ac_cv_header_interface_View_h" >&5
29231 echo "${ECHO_T}$ac_cv_header_interface_View_h" >&6; }
29234 if test $ac_cv_header_interface_View_h = yes; then
29236 else
29237 can_compile_beos=0
29241 if test $can_compile_beos = 1; then
29242 with_beos=yes
29246 if test "$with_amigaos" != yes; then
29247 can_compile_amigaos=1
29248 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29249 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29250 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29251 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29252 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29255 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29256 else
29257 # Is the header compilable?
29258 { echo "$as_me:$LINENO: checking proto/intuition.h usability" >&5
29259 echo $ECHO_N "checking proto/intuition.h usability... $ECHO_C" >&6; }
29260 cat >conftest.$ac_ext <<_ACEOF
29261 /* confdefs.h. */
29262 _ACEOF
29263 cat confdefs.h >>conftest.$ac_ext
29264 cat >>conftest.$ac_ext <<_ACEOF
29265 /* end confdefs.h. */
29266 $ac_includes_default
29267 #include <proto/intuition.h>
29268 _ACEOF
29269 rm -f conftest.$ac_objext
29270 if { (ac_try="$ac_compile"
29271 case "(($ac_try" in
29272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29273 *) ac_try_echo=$ac_try;;
29274 esac
29275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29276 (eval "$ac_compile") 2>conftest.er1
29277 ac_status=$?
29278 grep -v '^ *+' conftest.er1 >conftest.err
29279 rm -f conftest.er1
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } && {
29283 test -z "$ac_c_werror_flag" ||
29284 test ! -s conftest.err
29285 } && test -s conftest.$ac_objext; then
29286 ac_header_compiler=yes
29287 else
29288 echo "$as_me: failed program was:" >&5
29289 sed 's/^/| /' conftest.$ac_ext >&5
29291 ac_header_compiler=no
29294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29296 echo "${ECHO_T}$ac_header_compiler" >&6; }
29298 # Is the header present?
29299 { echo "$as_me:$LINENO: checking proto/intuition.h presence" >&5
29300 echo $ECHO_N "checking proto/intuition.h presence... $ECHO_C" >&6; }
29301 cat >conftest.$ac_ext <<_ACEOF
29302 /* confdefs.h. */
29303 _ACEOF
29304 cat confdefs.h >>conftest.$ac_ext
29305 cat >>conftest.$ac_ext <<_ACEOF
29306 /* end confdefs.h. */
29307 #include <proto/intuition.h>
29308 _ACEOF
29309 if { (ac_try="$ac_cpp conftest.$ac_ext"
29310 case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29316 ac_status=$?
29317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } >/dev/null && {
29322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29323 test ! -s conftest.err
29324 }; then
29325 ac_header_preproc=yes
29326 else
29327 echo "$as_me: failed program was:" >&5
29328 sed 's/^/| /' conftest.$ac_ext >&5
29330 ac_header_preproc=no
29333 rm -f conftest.err conftest.$ac_ext
29334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29335 echo "${ECHO_T}$ac_header_preproc" >&6; }
29337 # So? What about this header?
29338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29339 yes:no: )
29340 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&5
29341 echo "$as_me: WARNING: proto/intuition.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29342 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the compiler's result" >&5
29343 echo "$as_me: WARNING: proto/intuition.h: proceeding with the compiler's result" >&2;}
29344 ac_header_preproc=yes
29346 no:yes:* )
29347 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: present but cannot be compiled" >&5
29348 echo "$as_me: WARNING: proto/intuition.h: present but cannot be compiled" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&5
29350 echo "$as_me: WARNING: proto/intuition.h: check for missing prerequisite headers?" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: see the Autoconf documentation" >&5
29352 echo "$as_me: WARNING: proto/intuition.h: see the Autoconf documentation" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&5
29354 echo "$as_me: WARNING: proto/intuition.h: section \"Present But Cannot Be Compiled\"" >&2;}
29355 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&5
29356 echo "$as_me: WARNING: proto/intuition.h: proceeding with the preprocessor's result" >&2;}
29357 { echo "$as_me:$LINENO: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&5
29358 echo "$as_me: WARNING: proto/intuition.h: in the future, the compiler will take precedence" >&2;}
29361 esac
29362 { echo "$as_me:$LINENO: checking for proto/intuition.h" >&5
29363 echo $ECHO_N "checking for proto/intuition.h... $ECHO_C" >&6; }
29364 if test "${ac_cv_header_proto_intuition_h+set}" = set; then
29365 echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29367 ac_cv_header_proto_intuition_h=$ac_header_preproc
29369 { echo "$as_me:$LINENO: result: $ac_cv_header_proto_intuition_h" >&5
29370 echo "${ECHO_T}$ac_cv_header_proto_intuition_h" >&6; }
29373 if test $ac_cv_header_proto_intuition_h = yes; then
29375 else
29376 can_compile_amigaos=0
29380 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29381 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29382 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29383 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29384 echo $ECHO_N "(cached) $ECHO_C" >&6
29386 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29387 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29388 else
29389 # Is the header compilable?
29390 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h usability" >&5
29391 echo $ECHO_N "checking intuition/intuitionbase.h usability... $ECHO_C" >&6; }
29392 cat >conftest.$ac_ext <<_ACEOF
29393 /* confdefs.h. */
29394 _ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h. */
29398 $ac_includes_default
29399 #include <intuition/intuitionbase.h>
29400 _ACEOF
29401 rm -f conftest.$ac_objext
29402 if { (ac_try="$ac_compile"
29403 case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29406 esac
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_compile") 2>conftest.er1
29409 ac_status=$?
29410 grep -v '^ *+' conftest.er1 >conftest.err
29411 rm -f conftest.er1
29412 cat conftest.err >&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } && {
29415 test -z "$ac_c_werror_flag" ||
29416 test ! -s conftest.err
29417 } && test -s conftest.$ac_objext; then
29418 ac_header_compiler=yes
29419 else
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29423 ac_header_compiler=no
29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29428 echo "${ECHO_T}$ac_header_compiler" >&6; }
29430 # Is the header present?
29431 { echo "$as_me:$LINENO: checking intuition/intuitionbase.h presence" >&5
29432 echo $ECHO_N "checking intuition/intuitionbase.h presence... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29434 /* confdefs.h. */
29435 _ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 #include <intuition/intuitionbase.h>
29440 _ACEOF
29441 if { (ac_try="$ac_cpp conftest.$ac_ext"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29448 ac_status=$?
29449 grep -v '^ *+' conftest.er1 >conftest.err
29450 rm -f conftest.er1
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } >/dev/null && {
29454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29455 test ! -s conftest.err
29456 }; then
29457 ac_header_preproc=yes
29458 else
29459 echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29462 ac_header_preproc=no
29465 rm -f conftest.err conftest.$ac_ext
29466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29467 echo "${ECHO_T}$ac_header_preproc" >&6; }
29469 # So? What about this header?
29470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29471 yes:no: )
29472 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&5
29473 echo "$as_me: WARNING: intuition/intuitionbase.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&5
29475 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the compiler's result" >&2;}
29476 ac_header_preproc=yes
29478 no:yes:* )
29479 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&5
29480 echo "$as_me: WARNING: intuition/intuitionbase.h: present but cannot be compiled" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&5
29482 echo "$as_me: WARNING: intuition/intuitionbase.h: check for missing prerequisite headers?" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&5
29484 echo "$as_me: WARNING: intuition/intuitionbase.h: see the Autoconf documentation" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&5
29486 echo "$as_me: WARNING: intuition/intuitionbase.h: section \"Present But Cannot Be Compiled\"" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&5
29488 echo "$as_me: WARNING: intuition/intuitionbase.h: proceeding with the preprocessor's result" >&2;}
29489 { echo "$as_me:$LINENO: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&5
29490 echo "$as_me: WARNING: intuition/intuitionbase.h: in the future, the compiler will take precedence" >&2;}
29493 esac
29494 { echo "$as_me:$LINENO: checking for intuition/intuitionbase.h" >&5
29495 echo $ECHO_N "checking for intuition/intuitionbase.h... $ECHO_C" >&6; }
29496 if test "${ac_cv_header_intuition_intuitionbase_h+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499 ac_cv_header_intuition_intuitionbase_h=$ac_header_preproc
29501 { echo "$as_me:$LINENO: result: $ac_cv_header_intuition_intuitionbase_h" >&5
29502 echo "${ECHO_T}$ac_cv_header_intuition_intuitionbase_h" >&6; }
29505 if test $ac_cv_header_intuition_intuitionbase_h = yes; then
29507 else
29508 can_compile_amigaos=0
29512 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29513 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29514 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29515 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29516 echo $ECHO_N "(cached) $ECHO_C" >&6
29518 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29519 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29520 else
29521 # Is the header compilable?
29522 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h usability" >&5
29523 echo $ECHO_N "checking cybergraphx/cybergraphics.h usability... $ECHO_C" >&6; }
29524 cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h. */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 $ac_includes_default
29531 #include <cybergraphx/cybergraphics.h>
29532 _ACEOF
29533 rm -f conftest.$ac_objext
29534 if { (ac_try="$ac_compile"
29535 case "(($ac_try" in
29536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29537 *) ac_try_echo=$ac_try;;
29538 esac
29539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29540 (eval "$ac_compile") 2>conftest.er1
29541 ac_status=$?
29542 grep -v '^ *+' conftest.er1 >conftest.err
29543 rm -f conftest.er1
29544 cat conftest.err >&5
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); } && {
29547 test -z "$ac_c_werror_flag" ||
29548 test ! -s conftest.err
29549 } && test -s conftest.$ac_objext; then
29550 ac_header_compiler=yes
29551 else
29552 echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29555 ac_header_compiler=no
29558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29560 echo "${ECHO_T}$ac_header_compiler" >&6; }
29562 # Is the header present?
29563 { echo "$as_me:$LINENO: checking cybergraphx/cybergraphics.h presence" >&5
29564 echo $ECHO_N "checking cybergraphx/cybergraphics.h presence... $ECHO_C" >&6; }
29565 cat >conftest.$ac_ext <<_ACEOF
29566 /* confdefs.h. */
29567 _ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h. */
29571 #include <cybergraphx/cybergraphics.h>
29572 _ACEOF
29573 if { (ac_try="$ac_cpp conftest.$ac_ext"
29574 case "(($ac_try" in
29575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29576 *) ac_try_echo=$ac_try;;
29577 esac
29578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29580 ac_status=$?
29581 grep -v '^ *+' conftest.er1 >conftest.err
29582 rm -f conftest.er1
29583 cat conftest.err >&5
29584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29585 (exit $ac_status); } >/dev/null && {
29586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29587 test ! -s conftest.err
29588 }; then
29589 ac_header_preproc=yes
29590 else
29591 echo "$as_me: failed program was:" >&5
29592 sed 's/^/| /' conftest.$ac_ext >&5
29594 ac_header_preproc=no
29597 rm -f conftest.err conftest.$ac_ext
29598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29599 echo "${ECHO_T}$ac_header_preproc" >&6; }
29601 # So? What about this header?
29602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29603 yes:no: )
29604 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&5
29605 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&5
29607 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the compiler's result" >&2;}
29608 ac_header_preproc=yes
29610 no:yes:* )
29611 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&5
29612 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: present but cannot be compiled" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&5
29614 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: check for missing prerequisite headers?" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&5
29616 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: see the Autoconf documentation" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&5
29618 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: section \"Present But Cannot Be Compiled\"" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&5
29620 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: proceeding with the preprocessor's result" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&5
29622 echo "$as_me: WARNING: cybergraphx/cybergraphics.h: in the future, the compiler will take precedence" >&2;}
29625 esac
29626 { echo "$as_me:$LINENO: checking for cybergraphx/cybergraphics.h" >&5
29627 echo $ECHO_N "checking for cybergraphx/cybergraphics.h... $ECHO_C" >&6; }
29628 if test "${ac_cv_header_cybergraphx_cybergraphics_h+set}" = set; then
29629 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 else
29631 ac_cv_header_cybergraphx_cybergraphics_h=$ac_header_preproc
29633 { echo "$as_me:$LINENO: result: $ac_cv_header_cybergraphx_cybergraphics_h" >&5
29634 echo "${ECHO_T}$ac_cv_header_cybergraphx_cybergraphics_h" >&6; }
29637 if test $ac_cv_header_cybergraphx_cybergraphics_h = yes; then
29639 else
29640 can_compile_amigaos=0
29644 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29645 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29646 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29647 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29650 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29651 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29652 else
29653 # Is the header compilable?
29654 { echo "$as_me:$LINENO: checking devices/trackdisk.h usability" >&5
29655 echo $ECHO_N "checking devices/trackdisk.h usability... $ECHO_C" >&6; }
29656 cat >conftest.$ac_ext <<_ACEOF
29657 /* confdefs.h. */
29658 _ACEOF
29659 cat confdefs.h >>conftest.$ac_ext
29660 cat >>conftest.$ac_ext <<_ACEOF
29661 /* end confdefs.h. */
29662 $ac_includes_default
29663 #include <devices/trackdisk.h>
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669 *) ac_try_echo=$ac_try;;
29670 esac
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672 (eval "$ac_compile") 2>conftest.er1
29673 ac_status=$?
29674 grep -v '^ *+' conftest.er1 >conftest.err
29675 rm -f conftest.er1
29676 cat conftest.err >&5
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); } && {
29679 test -z "$ac_c_werror_flag" ||
29680 test ! -s conftest.err
29681 } && test -s conftest.$ac_objext; then
29682 ac_header_compiler=yes
29683 else
29684 echo "$as_me: failed program was:" >&5
29685 sed 's/^/| /' conftest.$ac_ext >&5
29687 ac_header_compiler=no
29690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29692 echo "${ECHO_T}$ac_header_compiler" >&6; }
29694 # Is the header present?
29695 { echo "$as_me:$LINENO: checking devices/trackdisk.h presence" >&5
29696 echo $ECHO_N "checking devices/trackdisk.h presence... $ECHO_C" >&6; }
29697 cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h. */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h. */
29703 #include <devices/trackdisk.h>
29704 _ACEOF
29705 if { (ac_try="$ac_cpp conftest.$ac_ext"
29706 case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29709 esac
29710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29712 ac_status=$?
29713 grep -v '^ *+' conftest.er1 >conftest.err
29714 rm -f conftest.er1
29715 cat conftest.err >&5
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); } >/dev/null && {
29718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29719 test ! -s conftest.err
29720 }; then
29721 ac_header_preproc=yes
29722 else
29723 echo "$as_me: failed program was:" >&5
29724 sed 's/^/| /' conftest.$ac_ext >&5
29726 ac_header_preproc=no
29729 rm -f conftest.err conftest.$ac_ext
29730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29731 echo "${ECHO_T}$ac_header_preproc" >&6; }
29733 # So? What about this header?
29734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29735 yes:no: )
29736 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&5
29737 echo "$as_me: WARNING: devices/trackdisk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29738 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&5
29739 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the compiler's result" >&2;}
29740 ac_header_preproc=yes
29742 no:yes:* )
29743 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: present but cannot be compiled" >&5
29744 echo "$as_me: WARNING: devices/trackdisk.h: present but cannot be compiled" >&2;}
29745 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&5
29746 echo "$as_me: WARNING: devices/trackdisk.h: check for missing prerequisite headers?" >&2;}
29747 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&5
29748 echo "$as_me: WARNING: devices/trackdisk.h: see the Autoconf documentation" >&2;}
29749 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&5
29750 echo "$as_me: WARNING: devices/trackdisk.h: section \"Present But Cannot Be Compiled\"" >&2;}
29751 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&5
29752 echo "$as_me: WARNING: devices/trackdisk.h: proceeding with the preprocessor's result" >&2;}
29753 { echo "$as_me:$LINENO: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&5
29754 echo "$as_me: WARNING: devices/trackdisk.h: in the future, the compiler will take precedence" >&2;}
29757 esac
29758 { echo "$as_me:$LINENO: checking for devices/trackdisk.h" >&5
29759 echo $ECHO_N "checking for devices/trackdisk.h... $ECHO_C" >&6; }
29760 if test "${ac_cv_header_devices_trackdisk_h+set}" = set; then
29761 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 else
29763 ac_cv_header_devices_trackdisk_h=$ac_header_preproc
29765 { echo "$as_me:$LINENO: result: $ac_cv_header_devices_trackdisk_h" >&5
29766 echo "${ECHO_T}$ac_cv_header_devices_trackdisk_h" >&6; }
29769 if test $ac_cv_header_devices_trackdisk_h = yes; then
29771 else
29772 can_compile_amigaos=0
29776 if test $can_compile_amigaos = 1; then
29777 with_amigaos=yes
29781 if test "$with_macos" != yes; then
29782 can_compile_macos=1
29783 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29784 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29785 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29786 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29787 echo $ECHO_N "(cached) $ECHO_C" >&6
29789 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29790 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29791 else
29792 # Is the header compilable?
29793 { echo "$as_me:$LINENO: checking Quickdraw.h usability" >&5
29794 echo $ECHO_N "checking Quickdraw.h usability... $ECHO_C" >&6; }
29795 cat >conftest.$ac_ext <<_ACEOF
29796 /* confdefs.h. */
29797 _ACEOF
29798 cat confdefs.h >>conftest.$ac_ext
29799 cat >>conftest.$ac_ext <<_ACEOF
29800 /* end confdefs.h. */
29801 $ac_includes_default
29802 #include <Quickdraw.h>
29803 _ACEOF
29804 rm -f conftest.$ac_objext
29805 if { (ac_try="$ac_compile"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809 esac
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_compile") 2>conftest.er1
29812 ac_status=$?
29813 grep -v '^ *+' conftest.er1 >conftest.err
29814 rm -f conftest.er1
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest.$ac_objext; then
29821 ac_header_compiler=yes
29822 else
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_header_compiler=no
29829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29831 echo "${ECHO_T}$ac_header_compiler" >&6; }
29833 # Is the header present?
29834 { echo "$as_me:$LINENO: checking Quickdraw.h presence" >&5
29835 echo $ECHO_N "checking Quickdraw.h presence... $ECHO_C" >&6; }
29836 cat >conftest.$ac_ext <<_ACEOF
29837 /* confdefs.h. */
29838 _ACEOF
29839 cat confdefs.h >>conftest.$ac_ext
29840 cat >>conftest.$ac_ext <<_ACEOF
29841 /* end confdefs.h. */
29842 #include <Quickdraw.h>
29843 _ACEOF
29844 if { (ac_try="$ac_cpp conftest.$ac_ext"
29845 case "(($ac_try" in
29846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847 *) ac_try_echo=$ac_try;;
29848 esac
29849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29851 ac_status=$?
29852 grep -v '^ *+' conftest.er1 >conftest.err
29853 rm -f conftest.er1
29854 cat conftest.err >&5
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); } >/dev/null && {
29857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29858 test ! -s conftest.err
29859 }; then
29860 ac_header_preproc=yes
29861 else
29862 echo "$as_me: failed program was:" >&5
29863 sed 's/^/| /' conftest.$ac_ext >&5
29865 ac_header_preproc=no
29868 rm -f conftest.err conftest.$ac_ext
29869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29870 echo "${ECHO_T}$ac_header_preproc" >&6; }
29872 # So? What about this header?
29873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29874 yes:no: )
29875 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&5
29876 echo "$as_me: WARNING: Quickdraw.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29877 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the compiler's result" >&5
29878 echo "$as_me: WARNING: Quickdraw.h: proceeding with the compiler's result" >&2;}
29879 ac_header_preproc=yes
29881 no:yes:* )
29882 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: present but cannot be compiled" >&5
29883 echo "$as_me: WARNING: Quickdraw.h: present but cannot be compiled" >&2;}
29884 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&5
29885 echo "$as_me: WARNING: Quickdraw.h: check for missing prerequisite headers?" >&2;}
29886 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: see the Autoconf documentation" >&5
29887 echo "$as_me: WARNING: Quickdraw.h: see the Autoconf documentation" >&2;}
29888 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&5
29889 echo "$as_me: WARNING: Quickdraw.h: section \"Present But Cannot Be Compiled\"" >&2;}
29890 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&5
29891 echo "$as_me: WARNING: Quickdraw.h: proceeding with the preprocessor's result" >&2;}
29892 { echo "$as_me:$LINENO: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&5
29893 echo "$as_me: WARNING: Quickdraw.h: in the future, the compiler will take precedence" >&2;}
29896 esac
29897 { echo "$as_me:$LINENO: checking for Quickdraw.h" >&5
29898 echo $ECHO_N "checking for Quickdraw.h... $ECHO_C" >&6; }
29899 if test "${ac_cv_header_Quickdraw_h+set}" = set; then
29900 echo $ECHO_N "(cached) $ECHO_C" >&6
29901 else
29902 ac_cv_header_Quickdraw_h=$ac_header_preproc
29904 { echo "$as_me:$LINENO: result: $ac_cv_header_Quickdraw_h" >&5
29905 echo "${ECHO_T}$ac_cv_header_Quickdraw_h" >&6; }
29908 if test $ac_cv_header_Quickdraw_h = yes; then
29910 else
29911 can_compile_macos=0
29915 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29916 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
29917 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
29918 if test "${ac_cv_header_Dialogs_h+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29921 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
29922 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
29923 else
29924 # Is the header compilable?
29925 { echo "$as_me:$LINENO: checking Dialogs.h usability" >&5
29926 echo $ECHO_N "checking Dialogs.h usability... $ECHO_C" >&6; }
29927 cat >conftest.$ac_ext <<_ACEOF
29928 /* confdefs.h. */
29929 _ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29933 $ac_includes_default
29934 #include <Dialogs.h>
29935 _ACEOF
29936 rm -f conftest.$ac_objext
29937 if { (ac_try="$ac_compile"
29938 case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_compile") 2>conftest.er1
29944 ac_status=$?
29945 grep -v '^ *+' conftest.er1 >conftest.err
29946 rm -f conftest.er1
29947 cat conftest.err >&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); } && {
29950 test -z "$ac_c_werror_flag" ||
29951 test ! -s conftest.err
29952 } && test -s conftest.$ac_objext; then
29953 ac_header_compiler=yes
29954 else
29955 echo "$as_me: failed program was:" >&5
29956 sed 's/^/| /' conftest.$ac_ext >&5
29958 ac_header_compiler=no
29961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29963 echo "${ECHO_T}$ac_header_compiler" >&6; }
29965 # Is the header present?
29966 { echo "$as_me:$LINENO: checking Dialogs.h presence" >&5
29967 echo $ECHO_N "checking Dialogs.h presence... $ECHO_C" >&6; }
29968 cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h. */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h. */
29974 #include <Dialogs.h>
29975 _ACEOF
29976 if { (ac_try="$ac_cpp conftest.$ac_ext"
29977 case "(($ac_try" in
29978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29979 *) ac_try_echo=$ac_try;;
29980 esac
29981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29983 ac_status=$?
29984 grep -v '^ *+' conftest.er1 >conftest.err
29985 rm -f conftest.er1
29986 cat conftest.err >&5
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } >/dev/null && {
29989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29990 test ! -s conftest.err
29991 }; then
29992 ac_header_preproc=yes
29993 else
29994 echo "$as_me: failed program was:" >&5
29995 sed 's/^/| /' conftest.$ac_ext >&5
29997 ac_header_preproc=no
30000 rm -f conftest.err conftest.$ac_ext
30001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30002 echo "${ECHO_T}$ac_header_preproc" >&6; }
30004 # So? What about this header?
30005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30006 yes:no: )
30007 { echo "$as_me:$LINENO: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&5
30008 echo "$as_me: WARNING: Dialogs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30009 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the compiler's result" >&5
30010 echo "$as_me: WARNING: Dialogs.h: proceeding with the compiler's result" >&2;}
30011 ac_header_preproc=yes
30013 no:yes:* )
30014 { echo "$as_me:$LINENO: WARNING: Dialogs.h: present but cannot be compiled" >&5
30015 echo "$as_me: WARNING: Dialogs.h: present but cannot be compiled" >&2;}
30016 { echo "$as_me:$LINENO: WARNING: Dialogs.h: check for missing prerequisite headers?" >&5
30017 echo "$as_me: WARNING: Dialogs.h: check for missing prerequisite headers?" >&2;}
30018 { echo "$as_me:$LINENO: WARNING: Dialogs.h: see the Autoconf documentation" >&5
30019 echo "$as_me: WARNING: Dialogs.h: see the Autoconf documentation" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&5
30021 echo "$as_me: WARNING: Dialogs.h: section \"Present But Cannot Be Compiled\"" >&2;}
30022 { echo "$as_me:$LINENO: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&5
30023 echo "$as_me: WARNING: Dialogs.h: proceeding with the preprocessor's result" >&2;}
30024 { echo "$as_me:$LINENO: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&5
30025 echo "$as_me: WARNING: Dialogs.h: in the future, the compiler will take precedence" >&2;}
30028 esac
30029 { echo "$as_me:$LINENO: checking for Dialogs.h" >&5
30030 echo $ECHO_N "checking for Dialogs.h... $ECHO_C" >&6; }
30031 if test "${ac_cv_header_Dialogs_h+set}" = set; then
30032 echo $ECHO_N "(cached) $ECHO_C" >&6
30033 else
30034 ac_cv_header_Dialogs_h=$ac_header_preproc
30036 { echo "$as_me:$LINENO: result: $ac_cv_header_Dialogs_h" >&5
30037 echo "${ECHO_T}$ac_cv_header_Dialogs_h" >&6; }
30040 if test $ac_cv_header_Dialogs_h = yes; then
30042 else
30043 can_compile_macos=0
30047 if test $can_compile_macos = 1; then
30048 with_macos=yes
30052 if test "$with_carbon" != yes; then
30053 can_compile_carbon=1
30054 if test "${ac_cv_header_Carbon_h+set}" = set; then
30055 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30056 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30057 if test "${ac_cv_header_Carbon_h+set}" = set; then
30058 echo $ECHO_N "(cached) $ECHO_C" >&6
30060 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30061 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30062 else
30063 # Is the header compilable?
30064 { echo "$as_me:$LINENO: checking Carbon.h usability" >&5
30065 echo $ECHO_N "checking Carbon.h usability... $ECHO_C" >&6; }
30066 cat >conftest.$ac_ext <<_ACEOF
30067 /* confdefs.h. */
30068 _ACEOF
30069 cat confdefs.h >>conftest.$ac_ext
30070 cat >>conftest.$ac_ext <<_ACEOF
30071 /* end confdefs.h. */
30072 $ac_includes_default
30073 #include <Carbon.h>
30074 _ACEOF
30075 rm -f conftest.$ac_objext
30076 if { (ac_try="$ac_compile"
30077 case "(($ac_try" in
30078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30079 *) ac_try_echo=$ac_try;;
30080 esac
30081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30082 (eval "$ac_compile") 2>conftest.er1
30083 ac_status=$?
30084 grep -v '^ *+' conftest.er1 >conftest.err
30085 rm -f conftest.er1
30086 cat conftest.err >&5
30087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088 (exit $ac_status); } && {
30089 test -z "$ac_c_werror_flag" ||
30090 test ! -s conftest.err
30091 } && test -s conftest.$ac_objext; then
30092 ac_header_compiler=yes
30093 else
30094 echo "$as_me: failed program was:" >&5
30095 sed 's/^/| /' conftest.$ac_ext >&5
30097 ac_header_compiler=no
30100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30102 echo "${ECHO_T}$ac_header_compiler" >&6; }
30104 # Is the header present?
30105 { echo "$as_me:$LINENO: checking Carbon.h presence" >&5
30106 echo $ECHO_N "checking Carbon.h presence... $ECHO_C" >&6; }
30107 cat >conftest.$ac_ext <<_ACEOF
30108 /* confdefs.h. */
30109 _ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h. */
30113 #include <Carbon.h>
30114 _ACEOF
30115 if { (ac_try="$ac_cpp conftest.$ac_ext"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30122 ac_status=$?
30123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } >/dev/null && {
30128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30129 test ! -s conftest.err
30130 }; then
30131 ac_header_preproc=yes
30132 else
30133 echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 ac_header_preproc=no
30139 rm -f conftest.err conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30141 echo "${ECHO_T}$ac_header_preproc" >&6; }
30143 # So? What about this header?
30144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30145 yes:no: )
30146 { echo "$as_me:$LINENO: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
30147 echo "$as_me: WARNING: Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30148 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the compiler's result" >&5
30149 echo "$as_me: WARNING: Carbon.h: proceeding with the compiler's result" >&2;}
30150 ac_header_preproc=yes
30152 no:yes:* )
30153 { echo "$as_me:$LINENO: WARNING: Carbon.h: present but cannot be compiled" >&5
30154 echo "$as_me: WARNING: Carbon.h: present but cannot be compiled" >&2;}
30155 { echo "$as_me:$LINENO: WARNING: Carbon.h: check for missing prerequisite headers?" >&5
30156 echo "$as_me: WARNING: Carbon.h: check for missing prerequisite headers?" >&2;}
30157 { echo "$as_me:$LINENO: WARNING: Carbon.h: see the Autoconf documentation" >&5
30158 echo "$as_me: WARNING: Carbon.h: see the Autoconf documentation" >&2;}
30159 { echo "$as_me:$LINENO: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
30160 echo "$as_me: WARNING: Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
30161 { echo "$as_me:$LINENO: WARNING: Carbon.h: proceeding with the preprocessor's result" >&5
30162 echo "$as_me: WARNING: Carbon.h: proceeding with the preprocessor's result" >&2;}
30163 { echo "$as_me:$LINENO: WARNING: Carbon.h: in the future, the compiler will take precedence" >&5
30164 echo "$as_me: WARNING: Carbon.h: in the future, the compiler will take precedence" >&2;}
30167 esac
30168 { echo "$as_me:$LINENO: checking for Carbon.h" >&5
30169 echo $ECHO_N "checking for Carbon.h... $ECHO_C" >&6; }
30170 if test "${ac_cv_header_Carbon_h+set}" = set; then
30171 echo $ECHO_N "(cached) $ECHO_C" >&6
30172 else
30173 ac_cv_header_Carbon_h=$ac_header_preproc
30175 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_h" >&5
30176 echo "${ECHO_T}$ac_cv_header_Carbon_h" >&6; }
30179 if test $ac_cv_header_Carbon_h = yes; then
30181 else
30182 can_compile_carbon=0
30186 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30187 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30188 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30189 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30190 echo $ECHO_N "(cached) $ECHO_C" >&6
30192 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30193 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30194 else
30195 # Is the header compilable?
30196 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h usability" >&5
30197 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h usability... $ECHO_C" >&6; }
30198 cat >conftest.$ac_ext <<_ACEOF
30199 /* confdefs.h. */
30200 _ACEOF
30201 cat confdefs.h >>conftest.$ac_ext
30202 cat >>conftest.$ac_ext <<_ACEOF
30203 /* end confdefs.h. */
30204 $ac_includes_default
30205 #include <ApplicationServices/ApplicationServices.h>
30206 _ACEOF
30207 rm -f conftest.$ac_objext
30208 if { (ac_try="$ac_compile"
30209 case "(($ac_try" in
30210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30211 *) ac_try_echo=$ac_try;;
30212 esac
30213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30214 (eval "$ac_compile") 2>conftest.er1
30215 ac_status=$?
30216 grep -v '^ *+' conftest.er1 >conftest.err
30217 rm -f conftest.er1
30218 cat conftest.err >&5
30219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220 (exit $ac_status); } && {
30221 test -z "$ac_c_werror_flag" ||
30222 test ! -s conftest.err
30223 } && test -s conftest.$ac_objext; then
30224 ac_header_compiler=yes
30225 else
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ac_header_compiler=no
30232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30234 echo "${ECHO_T}$ac_header_compiler" >&6; }
30236 # Is the header present?
30237 { echo "$as_me:$LINENO: checking ApplicationServices/ApplicationServices.h presence" >&5
30238 echo $ECHO_N "checking ApplicationServices/ApplicationServices.h presence... $ECHO_C" >&6; }
30239 cat >conftest.$ac_ext <<_ACEOF
30240 /* confdefs.h. */
30241 _ACEOF
30242 cat confdefs.h >>conftest.$ac_ext
30243 cat >>conftest.$ac_ext <<_ACEOF
30244 /* end confdefs.h. */
30245 #include <ApplicationServices/ApplicationServices.h>
30246 _ACEOF
30247 if { (ac_try="$ac_cpp conftest.$ac_ext"
30248 case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30251 esac
30252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30254 ac_status=$?
30255 grep -v '^ *+' conftest.er1 >conftest.err
30256 rm -f conftest.er1
30257 cat conftest.err >&5
30258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } >/dev/null && {
30260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30261 test ! -s conftest.err
30262 }; then
30263 ac_header_preproc=yes
30264 else
30265 echo "$as_me: failed program was:" >&5
30266 sed 's/^/| /' conftest.$ac_ext >&5
30268 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6; }
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277 yes:no: )
30278 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30284 no:yes:* )
30285 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: ApplicationServices/ApplicationServices.h: in the future, the compiler will take precedence" >&2;}
30299 esac
30300 { echo "$as_me:$LINENO: checking for ApplicationServices/ApplicationServices.h" >&5
30301 echo $ECHO_N "checking for ApplicationServices/ApplicationServices.h... $ECHO_C" >&6; }
30302 if test "${ac_cv_header_ApplicationServices_ApplicationServices_h+set}" = set; then
30303 echo $ECHO_N "(cached) $ECHO_C" >&6
30304 else
30305 ac_cv_header_ApplicationServices_ApplicationServices_h=$ac_header_preproc
30307 { echo "$as_me:$LINENO: result: $ac_cv_header_ApplicationServices_ApplicationServices_h" >&5
30308 echo "${ECHO_T}$ac_cv_header_ApplicationServices_ApplicationServices_h" >&6; }
30311 if test $ac_cv_header_ApplicationServices_ApplicationServices_h = yes; then
30313 else
30314 can_compile_carbon=0
30318 if test $can_compile_carbon = 1; then
30319 with_carbon=yes
30323 if test "$with_win32" != yes; then
30324 can_compile_win32=1
30325 if test "${ac_cv_header_windows_h+set}" = set; then
30326 { echo "$as_me:$LINENO: checking for windows.h" >&5
30327 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30328 if test "${ac_cv_header_windows_h+set}" = set; then
30329 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30332 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30333 else
30334 # Is the header compilable?
30335 { echo "$as_me:$LINENO: checking windows.h usability" >&5
30336 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
30337 cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h. */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 $ac_includes_default
30344 #include <windows.h>
30345 _ACEOF
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351 esac
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30354 ac_status=$?
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_c_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_header_compiler=yes
30364 else
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_header_compiler=no
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30373 echo "${ECHO_T}$ac_header_compiler" >&6; }
30375 # Is the header present?
30376 { echo "$as_me:$LINENO: checking windows.h presence" >&5
30377 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
30378 cat >conftest.$ac_ext <<_ACEOF
30379 /* confdefs.h. */
30380 _ACEOF
30381 cat confdefs.h >>conftest.$ac_ext
30382 cat >>conftest.$ac_ext <<_ACEOF
30383 /* end confdefs.h. */
30384 #include <windows.h>
30385 _ACEOF
30386 if { (ac_try="$ac_cpp conftest.$ac_ext"
30387 case "(($ac_try" in
30388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30389 *) ac_try_echo=$ac_try;;
30390 esac
30391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30393 ac_status=$?
30394 grep -v '^ *+' conftest.er1 >conftest.err
30395 rm -f conftest.er1
30396 cat conftest.err >&5
30397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30398 (exit $ac_status); } >/dev/null && {
30399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30400 test ! -s conftest.err
30401 }; then
30402 ac_header_preproc=yes
30403 else
30404 echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30407 ac_header_preproc=no
30410 rm -f conftest.err conftest.$ac_ext
30411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30412 echo "${ECHO_T}$ac_header_preproc" >&6; }
30414 # So? What about this header?
30415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30416 yes:no: )
30417 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
30418 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30419 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
30420 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
30421 ac_header_preproc=yes
30423 no:yes:* )
30424 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
30425 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
30426 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
30427 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
30428 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
30429 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
30431 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
30432 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
30433 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
30434 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
30435 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
30438 esac
30439 { echo "$as_me:$LINENO: checking for windows.h" >&5
30440 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30441 if test "${ac_cv_header_windows_h+set}" = set; then
30442 echo $ECHO_N "(cached) $ECHO_C" >&6
30443 else
30444 ac_cv_header_windows_h=$ac_header_preproc
30446 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30447 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30450 if test $ac_cv_header_windows_h = yes; then
30452 else
30453 can_compile_win32=0
30457 if test "${ac_cv_header_commctrl_h+set}" = set; then
30458 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30459 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30460 if test "${ac_cv_header_commctrl_h+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30463 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30464 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30465 else
30466 # Is the header compilable?
30467 { echo "$as_me:$LINENO: checking commctrl.h usability" >&5
30468 echo $ECHO_N "checking commctrl.h usability... $ECHO_C" >&6; }
30469 cat >conftest.$ac_ext <<_ACEOF
30470 /* confdefs.h. */
30471 _ACEOF
30472 cat confdefs.h >>conftest.$ac_ext
30473 cat >>conftest.$ac_ext <<_ACEOF
30474 /* end confdefs.h. */
30475 $ac_includes_default
30476 #include <commctrl.h>
30477 _ACEOF
30478 rm -f conftest.$ac_objext
30479 if { (ac_try="$ac_compile"
30480 case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30483 esac
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485 (eval "$ac_compile") 2>conftest.er1
30486 ac_status=$?
30487 grep -v '^ *+' conftest.er1 >conftest.err
30488 rm -f conftest.er1
30489 cat conftest.err >&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest.$ac_objext; then
30495 ac_header_compiler=yes
30496 else
30497 echo "$as_me: failed program was:" >&5
30498 sed 's/^/| /' conftest.$ac_ext >&5
30500 ac_header_compiler=no
30503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30505 echo "${ECHO_T}$ac_header_compiler" >&6; }
30507 # Is the header present?
30508 { echo "$as_me:$LINENO: checking commctrl.h presence" >&5
30509 echo $ECHO_N "checking commctrl.h presence... $ECHO_C" >&6; }
30510 cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h. */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516 #include <commctrl.h>
30517 _ACEOF
30518 if { (ac_try="$ac_cpp conftest.$ac_ext"
30519 case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30522 esac
30523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30525 ac_status=$?
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } >/dev/null && {
30531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30532 test ! -s conftest.err
30533 }; then
30534 ac_header_preproc=yes
30535 else
30536 echo "$as_me: failed program was:" >&5
30537 sed 's/^/| /' conftest.$ac_ext >&5
30539 ac_header_preproc=no
30542 rm -f conftest.err conftest.$ac_ext
30543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30544 echo "${ECHO_T}$ac_header_preproc" >&6; }
30546 # So? What about this header?
30547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30548 yes:no: )
30549 { echo "$as_me:$LINENO: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&5
30550 echo "$as_me: WARNING: commctrl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30551 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the compiler's result" >&5
30552 echo "$as_me: WARNING: commctrl.h: proceeding with the compiler's result" >&2;}
30553 ac_header_preproc=yes
30555 no:yes:* )
30556 { echo "$as_me:$LINENO: WARNING: commctrl.h: present but cannot be compiled" >&5
30557 echo "$as_me: WARNING: commctrl.h: present but cannot be compiled" >&2;}
30558 { echo "$as_me:$LINENO: WARNING: commctrl.h: check for missing prerequisite headers?" >&5
30559 echo "$as_me: WARNING: commctrl.h: check for missing prerequisite headers?" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: commctrl.h: see the Autoconf documentation" >&5
30561 echo "$as_me: WARNING: commctrl.h: see the Autoconf documentation" >&2;}
30562 { echo "$as_me:$LINENO: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&5
30563 echo "$as_me: WARNING: commctrl.h: section \"Present But Cannot Be Compiled\"" >&2;}
30564 { echo "$as_me:$LINENO: WARNING: commctrl.h: proceeding with the preprocessor's result" >&5
30565 echo "$as_me: WARNING: commctrl.h: proceeding with the preprocessor's result" >&2;}
30566 { echo "$as_me:$LINENO: WARNING: commctrl.h: in the future, the compiler will take precedence" >&5
30567 echo "$as_me: WARNING: commctrl.h: in the future, the compiler will take precedence" >&2;}
30570 esac
30571 { echo "$as_me:$LINENO: checking for commctrl.h" >&5
30572 echo $ECHO_N "checking for commctrl.h... $ECHO_C" >&6; }
30573 if test "${ac_cv_header_commctrl_h+set}" = set; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30575 else
30576 ac_cv_header_commctrl_h=$ac_header_preproc
30578 { echo "$as_me:$LINENO: result: $ac_cv_header_commctrl_h" >&5
30579 echo "${ECHO_T}$ac_cv_header_commctrl_h" >&6; }
30582 if test $ac_cv_header_commctrl_h = yes; then
30584 else
30585 can_compile_win32=0
30589 if test $can_compile_win32 = 1; then
30590 with_win32=yes
30594 if test "$with_sdl" != yes; then
30595 can_compile_sdl=1
30596 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30597 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30598 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30599 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30602 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30603 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30604 else
30605 # Is the header compilable?
30606 { echo "$as_me:$LINENO: checking SDL/SDL.h usability" >&5
30607 echo $ECHO_N "checking SDL/SDL.h usability... $ECHO_C" >&6; }
30608 cat >conftest.$ac_ext <<_ACEOF
30609 /* confdefs.h. */
30610 _ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h. */
30614 $ac_includes_default
30615 #include <SDL/SDL.h>
30616 _ACEOF
30617 rm -f conftest.$ac_objext
30618 if { (ac_try="$ac_compile"
30619 case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30622 esac
30623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_compile") 2>conftest.er1
30625 ac_status=$?
30626 grep -v '^ *+' conftest.er1 >conftest.err
30627 rm -f conftest.er1
30628 cat conftest.err >&5
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } && {
30631 test -z "$ac_c_werror_flag" ||
30632 test ! -s conftest.err
30633 } && test -s conftest.$ac_objext; then
30634 ac_header_compiler=yes
30635 else
30636 echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30639 ac_header_compiler=no
30642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30644 echo "${ECHO_T}$ac_header_compiler" >&6; }
30646 # Is the header present?
30647 { echo "$as_me:$LINENO: checking SDL/SDL.h presence" >&5
30648 echo $ECHO_N "checking SDL/SDL.h presence... $ECHO_C" >&6; }
30649 cat >conftest.$ac_ext <<_ACEOF
30650 /* confdefs.h. */
30651 _ACEOF
30652 cat confdefs.h >>conftest.$ac_ext
30653 cat >>conftest.$ac_ext <<_ACEOF
30654 /* end confdefs.h. */
30655 #include <SDL/SDL.h>
30656 _ACEOF
30657 if { (ac_try="$ac_cpp conftest.$ac_ext"
30658 case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30661 esac
30662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30664 ac_status=$?
30665 grep -v '^ *+' conftest.er1 >conftest.err
30666 rm -f conftest.er1
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } >/dev/null && {
30670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30671 test ! -s conftest.err
30672 }; then
30673 ac_header_preproc=yes
30674 else
30675 echo "$as_me: failed program was:" >&5
30676 sed 's/^/| /' conftest.$ac_ext >&5
30678 ac_header_preproc=no
30681 rm -f conftest.err conftest.$ac_ext
30682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30683 echo "${ECHO_T}$ac_header_preproc" >&6; }
30685 # So? What about this header?
30686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30687 yes:no: )
30688 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&5
30689 echo "$as_me: WARNING: SDL/SDL.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30690 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&5
30691 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the compiler's result" >&2;}
30692 ac_header_preproc=yes
30694 no:yes:* )
30695 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: present but cannot be compiled" >&5
30696 echo "$as_me: WARNING: SDL/SDL.h: present but cannot be compiled" >&2;}
30697 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&5
30698 echo "$as_me: WARNING: SDL/SDL.h: check for missing prerequisite headers?" >&2;}
30699 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: see the Autoconf documentation" >&5
30700 echo "$as_me: WARNING: SDL/SDL.h: see the Autoconf documentation" >&2;}
30701 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&5
30702 echo "$as_me: WARNING: SDL/SDL.h: section \"Present But Cannot Be Compiled\"" >&2;}
30703 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&5
30704 echo "$as_me: WARNING: SDL/SDL.h: proceeding with the preprocessor's result" >&2;}
30705 { echo "$as_me:$LINENO: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&5
30706 echo "$as_me: WARNING: SDL/SDL.h: in the future, the compiler will take precedence" >&2;}
30709 esac
30710 { echo "$as_me:$LINENO: checking for SDL/SDL.h" >&5
30711 echo $ECHO_N "checking for SDL/SDL.h... $ECHO_C" >&6; }
30712 if test "${ac_cv_header_SDL_SDL_h+set}" = set; then
30713 echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715 ac_cv_header_SDL_SDL_h=$ac_header_preproc
30717 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_h" >&5
30718 echo "${ECHO_T}$ac_cv_header_SDL_SDL_h" >&6; }
30721 if test $ac_cv_header_SDL_SDL_h = yes; then
30723 else
30724 can_compile_sdl=0
30728 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30729 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30730 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30731 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
30734 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30735 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30736 else
30737 # Is the header compilable?
30738 { echo "$as_me:$LINENO: checking SDL/SDL_main.h usability" >&5
30739 echo $ECHO_N "checking SDL/SDL_main.h usability... $ECHO_C" >&6; }
30740 cat >conftest.$ac_ext <<_ACEOF
30741 /* confdefs.h. */
30742 _ACEOF
30743 cat confdefs.h >>conftest.$ac_ext
30744 cat >>conftest.$ac_ext <<_ACEOF
30745 /* end confdefs.h. */
30746 $ac_includes_default
30747 #include <SDL/SDL_main.h>
30748 _ACEOF
30749 rm -f conftest.$ac_objext
30750 if { (ac_try="$ac_compile"
30751 case "(($ac_try" in
30752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30753 *) ac_try_echo=$ac_try;;
30754 esac
30755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30756 (eval "$ac_compile") 2>conftest.er1
30757 ac_status=$?
30758 grep -v '^ *+' conftest.er1 >conftest.err
30759 rm -f conftest.er1
30760 cat conftest.err >&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); } && {
30763 test -z "$ac_c_werror_flag" ||
30764 test ! -s conftest.err
30765 } && test -s conftest.$ac_objext; then
30766 ac_header_compiler=yes
30767 else
30768 echo "$as_me: failed program was:" >&5
30769 sed 's/^/| /' conftest.$ac_ext >&5
30771 ac_header_compiler=no
30774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30776 echo "${ECHO_T}$ac_header_compiler" >&6; }
30778 # Is the header present?
30779 { echo "$as_me:$LINENO: checking SDL/SDL_main.h presence" >&5
30780 echo $ECHO_N "checking SDL/SDL_main.h presence... $ECHO_C" >&6; }
30781 cat >conftest.$ac_ext <<_ACEOF
30782 /* confdefs.h. */
30783 _ACEOF
30784 cat confdefs.h >>conftest.$ac_ext
30785 cat >>conftest.$ac_ext <<_ACEOF
30786 /* end confdefs.h. */
30787 #include <SDL/SDL_main.h>
30788 _ACEOF
30789 if { (ac_try="$ac_cpp conftest.$ac_ext"
30790 case "(($ac_try" in
30791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30792 *) ac_try_echo=$ac_try;;
30793 esac
30794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30796 ac_status=$?
30797 grep -v '^ *+' conftest.er1 >conftest.err
30798 rm -f conftest.er1
30799 cat conftest.err >&5
30800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801 (exit $ac_status); } >/dev/null && {
30802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30803 test ! -s conftest.err
30804 }; then
30805 ac_header_preproc=yes
30806 else
30807 echo "$as_me: failed program was:" >&5
30808 sed 's/^/| /' conftest.$ac_ext >&5
30810 ac_header_preproc=no
30813 rm -f conftest.err conftest.$ac_ext
30814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30815 echo "${ECHO_T}$ac_header_preproc" >&6; }
30817 # So? What about this header?
30818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30819 yes:no: )
30820 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&5
30821 echo "$as_me: WARNING: SDL/SDL_main.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30822 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&5
30823 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the compiler's result" >&2;}
30824 ac_header_preproc=yes
30826 no:yes:* )
30827 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&5
30828 echo "$as_me: WARNING: SDL/SDL_main.h: present but cannot be compiled" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&5
30830 echo "$as_me: WARNING: SDL/SDL_main.h: check for missing prerequisite headers?" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&5
30832 echo "$as_me: WARNING: SDL/SDL_main.h: see the Autoconf documentation" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&5
30834 echo "$as_me: WARNING: SDL/SDL_main.h: section \"Present But Cannot Be Compiled\"" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&5
30836 echo "$as_me: WARNING: SDL/SDL_main.h: proceeding with the preprocessor's result" >&2;}
30837 { echo "$as_me:$LINENO: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&5
30838 echo "$as_me: WARNING: SDL/SDL_main.h: in the future, the compiler will take precedence" >&2;}
30841 esac
30842 { echo "$as_me:$LINENO: checking for SDL/SDL_main.h" >&5
30843 echo $ECHO_N "checking for SDL/SDL_main.h... $ECHO_C" >&6; }
30844 if test "${ac_cv_header_SDL_SDL_main_h+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30846 else
30847 ac_cv_header_SDL_SDL_main_h=$ac_header_preproc
30849 { echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_main_h" >&5
30850 echo "${ECHO_T}$ac_cv_header_SDL_SDL_main_h" >&6; }
30853 if test $ac_cv_header_SDL_SDL_main_h = yes; then
30855 else
30856 can_compile_sdl=0
30860 if test $can_compile_sdl = 1; then
30861 with_sdl=yes
30865 if test "$with_svga" != yes; then
30866 can_compile_svga=1
30867 if test "${ac_cv_header_vga_h+set}" = set; then
30868 { echo "$as_me:$LINENO: checking for vga.h" >&5
30869 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30870 if test "${ac_cv_header_vga_h+set}" = set; then
30871 echo $ECHO_N "(cached) $ECHO_C" >&6
30873 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30874 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30875 else
30876 # Is the header compilable?
30877 { echo "$as_me:$LINENO: checking vga.h usability" >&5
30878 echo $ECHO_N "checking vga.h usability... $ECHO_C" >&6; }
30879 cat >conftest.$ac_ext <<_ACEOF
30880 /* confdefs.h. */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h. */
30885 $ac_includes_default
30886 #include <vga.h>
30887 _ACEOF
30888 rm -f conftest.$ac_objext
30889 if { (ac_try="$ac_compile"
30890 case "(($ac_try" in
30891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30892 *) ac_try_echo=$ac_try;;
30893 esac
30894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895 (eval "$ac_compile") 2>conftest.er1
30896 ac_status=$?
30897 grep -v '^ *+' conftest.er1 >conftest.err
30898 rm -f conftest.er1
30899 cat conftest.err >&5
30900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901 (exit $ac_status); } && {
30902 test -z "$ac_c_werror_flag" ||
30903 test ! -s conftest.err
30904 } && test -s conftest.$ac_objext; then
30905 ac_header_compiler=yes
30906 else
30907 echo "$as_me: failed program was:" >&5
30908 sed 's/^/| /' conftest.$ac_ext >&5
30910 ac_header_compiler=no
30913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30915 echo "${ECHO_T}$ac_header_compiler" >&6; }
30917 # Is the header present?
30918 { echo "$as_me:$LINENO: checking vga.h presence" >&5
30919 echo $ECHO_N "checking vga.h presence... $ECHO_C" >&6; }
30920 cat >conftest.$ac_ext <<_ACEOF
30921 /* confdefs.h. */
30922 _ACEOF
30923 cat confdefs.h >>conftest.$ac_ext
30924 cat >>conftest.$ac_ext <<_ACEOF
30925 /* end confdefs.h. */
30926 #include <vga.h>
30927 _ACEOF
30928 if { (ac_try="$ac_cpp conftest.$ac_ext"
30929 case "(($ac_try" in
30930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30931 *) ac_try_echo=$ac_try;;
30932 esac
30933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30935 ac_status=$?
30936 grep -v '^ *+' conftest.er1 >conftest.err
30937 rm -f conftest.er1
30938 cat conftest.err >&5
30939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940 (exit $ac_status); } >/dev/null && {
30941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30942 test ! -s conftest.err
30943 }; then
30944 ac_header_preproc=yes
30945 else
30946 echo "$as_me: failed program was:" >&5
30947 sed 's/^/| /' conftest.$ac_ext >&5
30949 ac_header_preproc=no
30952 rm -f conftest.err conftest.$ac_ext
30953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30954 echo "${ECHO_T}$ac_header_preproc" >&6; }
30956 # So? What about this header?
30957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30958 yes:no: )
30959 { echo "$as_me:$LINENO: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&5
30960 echo "$as_me: WARNING: vga.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30961 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the compiler's result" >&5
30962 echo "$as_me: WARNING: vga.h: proceeding with the compiler's result" >&2;}
30963 ac_header_preproc=yes
30965 no:yes:* )
30966 { echo "$as_me:$LINENO: WARNING: vga.h: present but cannot be compiled" >&5
30967 echo "$as_me: WARNING: vga.h: present but cannot be compiled" >&2;}
30968 { echo "$as_me:$LINENO: WARNING: vga.h: check for missing prerequisite headers?" >&5
30969 echo "$as_me: WARNING: vga.h: check for missing prerequisite headers?" >&2;}
30970 { echo "$as_me:$LINENO: WARNING: vga.h: see the Autoconf documentation" >&5
30971 echo "$as_me: WARNING: vga.h: see the Autoconf documentation" >&2;}
30972 { echo "$as_me:$LINENO: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&5
30973 echo "$as_me: WARNING: vga.h: section \"Present But Cannot Be Compiled\"" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: vga.h: proceeding with the preprocessor's result" >&5
30975 echo "$as_me: WARNING: vga.h: proceeding with the preprocessor's result" >&2;}
30976 { echo "$as_me:$LINENO: WARNING: vga.h: in the future, the compiler will take precedence" >&5
30977 echo "$as_me: WARNING: vga.h: in the future, the compiler will take precedence" >&2;}
30980 esac
30981 { echo "$as_me:$LINENO: checking for vga.h" >&5
30982 echo $ECHO_N "checking for vga.h... $ECHO_C" >&6; }
30983 if test "${ac_cv_header_vga_h+set}" = set; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30985 else
30986 ac_cv_header_vga_h=$ac_header_preproc
30988 { echo "$as_me:$LINENO: result: $ac_cv_header_vga_h" >&5
30989 echo "${ECHO_T}$ac_cv_header_vga_h" >&6; }
30992 if test $ac_cv_header_vga_h = yes; then
30994 else
30995 can_compile_svga=0
30999 if test "${ac_cv_header_vgagl_h+set}" = set; then
31000 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31001 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31002 if test "${ac_cv_header_vgagl_h+set}" = set; then
31003 echo $ECHO_N "(cached) $ECHO_C" >&6
31005 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31006 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31007 else
31008 # Is the header compilable?
31009 { echo "$as_me:$LINENO: checking vgagl.h usability" >&5
31010 echo $ECHO_N "checking vgagl.h usability... $ECHO_C" >&6; }
31011 cat >conftest.$ac_ext <<_ACEOF
31012 /* confdefs.h. */
31013 _ACEOF
31014 cat confdefs.h >>conftest.$ac_ext
31015 cat >>conftest.$ac_ext <<_ACEOF
31016 /* end confdefs.h. */
31017 $ac_includes_default
31018 #include <vgagl.h>
31019 _ACEOF
31020 rm -f conftest.$ac_objext
31021 if { (ac_try="$ac_compile"
31022 case "(($ac_try" in
31023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024 *) ac_try_echo=$ac_try;;
31025 esac
31026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31027 (eval "$ac_compile") 2>conftest.er1
31028 ac_status=$?
31029 grep -v '^ *+' conftest.er1 >conftest.err
31030 rm -f conftest.er1
31031 cat conftest.err >&5
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); } && {
31034 test -z "$ac_c_werror_flag" ||
31035 test ! -s conftest.err
31036 } && test -s conftest.$ac_objext; then
31037 ac_header_compiler=yes
31038 else
31039 echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31042 ac_header_compiler=no
31045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31047 echo "${ECHO_T}$ac_header_compiler" >&6; }
31049 # Is the header present?
31050 { echo "$as_me:$LINENO: checking vgagl.h presence" >&5
31051 echo $ECHO_N "checking vgagl.h presence... $ECHO_C" >&6; }
31052 cat >conftest.$ac_ext <<_ACEOF
31053 /* confdefs.h. */
31054 _ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h. */
31058 #include <vgagl.h>
31059 _ACEOF
31060 if { (ac_try="$ac_cpp conftest.$ac_ext"
31061 case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064 esac
31065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } >/dev/null && {
31073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31074 test ! -s conftest.err
31075 }; then
31076 ac_header_preproc=yes
31077 else
31078 echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31081 ac_header_preproc=no
31084 rm -f conftest.err conftest.$ac_ext
31085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31086 echo "${ECHO_T}$ac_header_preproc" >&6; }
31088 # So? What about this header?
31089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31090 yes:no: )
31091 { echo "$as_me:$LINENO: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31092 echo "$as_me: WARNING: vgagl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31093 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the compiler's result" >&5
31094 echo "$as_me: WARNING: vgagl.h: proceeding with the compiler's result" >&2;}
31095 ac_header_preproc=yes
31097 no:yes:* )
31098 { echo "$as_me:$LINENO: WARNING: vgagl.h: present but cannot be compiled" >&5
31099 echo "$as_me: WARNING: vgagl.h: present but cannot be compiled" >&2;}
31100 { echo "$as_me:$LINENO: WARNING: vgagl.h: check for missing prerequisite headers?" >&5
31101 echo "$as_me: WARNING: vgagl.h: check for missing prerequisite headers?" >&2;}
31102 { echo "$as_me:$LINENO: WARNING: vgagl.h: see the Autoconf documentation" >&5
31103 echo "$as_me: WARNING: vgagl.h: see the Autoconf documentation" >&2;}
31104 { echo "$as_me:$LINENO: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&5
31105 echo "$as_me: WARNING: vgagl.h: section \"Present But Cannot Be Compiled\"" >&2;}
31106 { echo "$as_me:$LINENO: WARNING: vgagl.h: proceeding with the preprocessor's result" >&5
31107 echo "$as_me: WARNING: vgagl.h: proceeding with the preprocessor's result" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: vgagl.h: in the future, the compiler will take precedence" >&5
31109 echo "$as_me: WARNING: vgagl.h: in the future, the compiler will take precedence" >&2;}
31112 esac
31113 { echo "$as_me:$LINENO: checking for vgagl.h" >&5
31114 echo $ECHO_N "checking for vgagl.h... $ECHO_C" >&6; }
31115 if test "${ac_cv_header_vgagl_h+set}" = set; then
31116 echo $ECHO_N "(cached) $ECHO_C" >&6
31117 else
31118 ac_cv_header_vgagl_h=$ac_header_preproc
31120 { echo "$as_me:$LINENO: result: $ac_cv_header_vgagl_h" >&5
31121 echo "${ECHO_T}$ac_cv_header_vgagl_h" >&6; }
31124 if test $ac_cv_header_vgagl_h = yes; then
31126 else
31127 can_compile_svga=0
31131 if test $can_compile_svga = 1; then
31132 with_svga=yes
31136 if test "$with_x11" != yes; then
31137 can_compile_x11=1
31138 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31139 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31140 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31141 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31142 echo $ECHO_N "(cached) $ECHO_C" >&6
31144 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31145 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31146 else
31147 # Is the header compilable?
31148 { echo "$as_me:$LINENO: checking X11/Xlib.h usability" >&5
31149 echo $ECHO_N "checking X11/Xlib.h usability... $ECHO_C" >&6; }
31150 cat >conftest.$ac_ext <<_ACEOF
31151 /* confdefs.h. */
31152 _ACEOF
31153 cat confdefs.h >>conftest.$ac_ext
31154 cat >>conftest.$ac_ext <<_ACEOF
31155 /* end confdefs.h. */
31156 $ac_includes_default
31157 #include <X11/Xlib.h>
31158 _ACEOF
31159 rm -f conftest.$ac_objext
31160 if { (ac_try="$ac_compile"
31161 case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31164 esac
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_compile") 2>conftest.er1
31167 ac_status=$?
31168 grep -v '^ *+' conftest.er1 >conftest.err
31169 rm -f conftest.er1
31170 cat conftest.err >&5
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); } && {
31173 test -z "$ac_c_werror_flag" ||
31174 test ! -s conftest.err
31175 } && test -s conftest.$ac_objext; then
31176 ac_header_compiler=yes
31177 else
31178 echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31181 ac_header_compiler=no
31184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31186 echo "${ECHO_T}$ac_header_compiler" >&6; }
31188 # Is the header present?
31189 { echo "$as_me:$LINENO: checking X11/Xlib.h presence" >&5
31190 echo $ECHO_N "checking X11/Xlib.h presence... $ECHO_C" >&6; }
31191 cat >conftest.$ac_ext <<_ACEOF
31192 /* confdefs.h. */
31193 _ACEOF
31194 cat confdefs.h >>conftest.$ac_ext
31195 cat >>conftest.$ac_ext <<_ACEOF
31196 /* end confdefs.h. */
31197 #include <X11/Xlib.h>
31198 _ACEOF
31199 if { (ac_try="$ac_cpp conftest.$ac_ext"
31200 case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31203 esac
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31206 ac_status=$?
31207 grep -v '^ *+' conftest.er1 >conftest.err
31208 rm -f conftest.er1
31209 cat conftest.err >&5
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); } >/dev/null && {
31212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31213 test ! -s conftest.err
31214 }; then
31215 ac_header_preproc=yes
31216 else
31217 echo "$as_me: failed program was:" >&5
31218 sed 's/^/| /' conftest.$ac_ext >&5
31220 ac_header_preproc=no
31223 rm -f conftest.err conftest.$ac_ext
31224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31225 echo "${ECHO_T}$ac_header_preproc" >&6; }
31227 # So? What about this header?
31228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31229 yes:no: )
31230 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
31231 echo "$as_me: WARNING: X11/Xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31232 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&5
31233 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the compiler's result" >&2;}
31234 ac_header_preproc=yes
31236 no:yes:* )
31237 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: present but cannot be compiled" >&5
31238 echo "$as_me: WARNING: X11/Xlib.h: present but cannot be compiled" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&5
31240 echo "$as_me: WARNING: X11/Xlib.h: check for missing prerequisite headers?" >&2;}
31241 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: see the Autoconf documentation" >&5
31242 echo "$as_me: WARNING: X11/Xlib.h: see the Autoconf documentation" >&2;}
31243 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&5
31244 echo "$as_me: WARNING: X11/Xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
31245 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&5
31246 echo "$as_me: WARNING: X11/Xlib.h: proceeding with the preprocessor's result" >&2;}
31247 { echo "$as_me:$LINENO: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&5
31248 echo "$as_me: WARNING: X11/Xlib.h: in the future, the compiler will take precedence" >&2;}
31251 esac
31252 { echo "$as_me:$LINENO: checking for X11/Xlib.h" >&5
31253 echo $ECHO_N "checking for X11/Xlib.h... $ECHO_C" >&6; }
31254 if test "${ac_cv_header_X11_Xlib_h+set}" = set; then
31255 echo $ECHO_N "(cached) $ECHO_C" >&6
31256 else
31257 ac_cv_header_X11_Xlib_h=$ac_header_preproc
31259 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xlib_h" >&5
31260 echo "${ECHO_T}$ac_cv_header_X11_Xlib_h" >&6; }
31263 if test $ac_cv_header_X11_Xlib_h = yes; then
31265 else
31266 can_compile_x11=0
31270 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31271 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31272 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31273 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31274 echo $ECHO_N "(cached) $ECHO_C" >&6
31276 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31277 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31278 else
31279 # Is the header compilable?
31280 { echo "$as_me:$LINENO: checking X11/Xutil.h usability" >&5
31281 echo $ECHO_N "checking X11/Xutil.h usability... $ECHO_C" >&6; }
31282 cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h. */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288 $ac_includes_default
31289 #include <X11/Xutil.h>
31290 _ACEOF
31291 rm -f conftest.$ac_objext
31292 if { (ac_try="$ac_compile"
31293 case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31296 esac
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_compile") 2>conftest.er1
31299 ac_status=$?
31300 grep -v '^ *+' conftest.er1 >conftest.err
31301 rm -f conftest.er1
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304 (exit $ac_status); } && {
31305 test -z "$ac_c_werror_flag" ||
31306 test ! -s conftest.err
31307 } && test -s conftest.$ac_objext; then
31308 ac_header_compiler=yes
31309 else
31310 echo "$as_me: failed program was:" >&5
31311 sed 's/^/| /' conftest.$ac_ext >&5
31313 ac_header_compiler=no
31316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31318 echo "${ECHO_T}$ac_header_compiler" >&6; }
31320 # Is the header present?
31321 { echo "$as_me:$LINENO: checking X11/Xutil.h presence" >&5
31322 echo $ECHO_N "checking X11/Xutil.h presence... $ECHO_C" >&6; }
31323 cat >conftest.$ac_ext <<_ACEOF
31324 /* confdefs.h. */
31325 _ACEOF
31326 cat confdefs.h >>conftest.$ac_ext
31327 cat >>conftest.$ac_ext <<_ACEOF
31328 /* end confdefs.h. */
31329 #include <X11/Xutil.h>
31330 _ACEOF
31331 if { (ac_try="$ac_cpp conftest.$ac_ext"
31332 case "(($ac_try" in
31333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334 *) ac_try_echo=$ac_try;;
31335 esac
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31338 ac_status=$?
31339 grep -v '^ *+' conftest.er1 >conftest.err
31340 rm -f conftest.er1
31341 cat conftest.err >&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); } >/dev/null && {
31344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31345 test ! -s conftest.err
31346 }; then
31347 ac_header_preproc=yes
31348 else
31349 echo "$as_me: failed program was:" >&5
31350 sed 's/^/| /' conftest.$ac_ext >&5
31352 ac_header_preproc=no
31355 rm -f conftest.err conftest.$ac_ext
31356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31357 echo "${ECHO_T}$ac_header_preproc" >&6; }
31359 # So? What about this header?
31360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31361 yes:no: )
31362 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
31363 echo "$as_me: WARNING: X11/Xutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31364 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&5
31365 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the compiler's result" >&2;}
31366 ac_header_preproc=yes
31368 no:yes:* )
31369 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: present but cannot be compiled" >&5
31370 echo "$as_me: WARNING: X11/Xutil.h: present but cannot be compiled" >&2;}
31371 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&5
31372 echo "$as_me: WARNING: X11/Xutil.h: check for missing prerequisite headers?" >&2;}
31373 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: see the Autoconf documentation" >&5
31374 echo "$as_me: WARNING: X11/Xutil.h: see the Autoconf documentation" >&2;}
31375 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&5
31376 echo "$as_me: WARNING: X11/Xutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
31377 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&5
31378 echo "$as_me: WARNING: X11/Xutil.h: proceeding with the preprocessor's result" >&2;}
31379 { echo "$as_me:$LINENO: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&5
31380 echo "$as_me: WARNING: X11/Xutil.h: in the future, the compiler will take precedence" >&2;}
31383 esac
31384 { echo "$as_me:$LINENO: checking for X11/Xutil.h" >&5
31385 echo $ECHO_N "checking for X11/Xutil.h... $ECHO_C" >&6; }
31386 if test "${ac_cv_header_X11_Xutil_h+set}" = set; then
31387 echo $ECHO_N "(cached) $ECHO_C" >&6
31388 else
31389 ac_cv_header_X11_Xutil_h=$ac_header_preproc
31391 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xutil_h" >&5
31392 echo "${ECHO_T}$ac_cv_header_X11_Xutil_h" >&6; }
31395 if test $ac_cv_header_X11_Xutil_h = yes; then
31397 else
31398 can_compile_x11=0
31402 if test $can_compile_x11 = 1; then
31403 with_x11=yes
31407 if test "$with_rfb" != yes; then
31408 can_compile_rfb=1
31409 case $target in
31410 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
31411 if test "${ac_cv_header_winsock_h+set}" = set; then
31412 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31413 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31414 if test "${ac_cv_header_winsock_h+set}" = set; then
31415 echo $ECHO_N "(cached) $ECHO_C" >&6
31417 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31418 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31419 else
31420 # Is the header compilable?
31421 { echo "$as_me:$LINENO: checking winsock.h usability" >&5
31422 echo $ECHO_N "checking winsock.h usability... $ECHO_C" >&6; }
31423 cat >conftest.$ac_ext <<_ACEOF
31424 /* confdefs.h. */
31425 _ACEOF
31426 cat confdefs.h >>conftest.$ac_ext
31427 cat >>conftest.$ac_ext <<_ACEOF
31428 /* end confdefs.h. */
31429 $ac_includes_default
31430 #include <winsock.h>
31431 _ACEOF
31432 rm -f conftest.$ac_objext
31433 if { (ac_try="$ac_compile"
31434 case "(($ac_try" in
31435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31436 *) ac_try_echo=$ac_try;;
31437 esac
31438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31439 (eval "$ac_compile") 2>conftest.er1
31440 ac_status=$?
31441 grep -v '^ *+' conftest.er1 >conftest.err
31442 rm -f conftest.er1
31443 cat conftest.err >&5
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } && {
31446 test -z "$ac_c_werror_flag" ||
31447 test ! -s conftest.err
31448 } && test -s conftest.$ac_objext; then
31449 ac_header_compiler=yes
31450 else
31451 echo "$as_me: failed program was:" >&5
31452 sed 's/^/| /' conftest.$ac_ext >&5
31454 ac_header_compiler=no
31457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31459 echo "${ECHO_T}$ac_header_compiler" >&6; }
31461 # Is the header present?
31462 { echo "$as_me:$LINENO: checking winsock.h presence" >&5
31463 echo $ECHO_N "checking winsock.h presence... $ECHO_C" >&6; }
31464 cat >conftest.$ac_ext <<_ACEOF
31465 /* confdefs.h. */
31466 _ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31470 #include <winsock.h>
31471 _ACEOF
31472 if { (ac_try="$ac_cpp conftest.$ac_ext"
31473 case "(($ac_try" in
31474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31475 *) ac_try_echo=$ac_try;;
31476 esac
31477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31479 ac_status=$?
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } >/dev/null && {
31485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31486 test ! -s conftest.err
31487 }; then
31488 ac_header_preproc=yes
31489 else
31490 echo "$as_me: failed program was:" >&5
31491 sed 's/^/| /' conftest.$ac_ext >&5
31493 ac_header_preproc=no
31496 rm -f conftest.err conftest.$ac_ext
31497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31498 echo "${ECHO_T}$ac_header_preproc" >&6; }
31500 # So? What about this header?
31501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31502 yes:no: )
31503 { echo "$as_me:$LINENO: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&5
31504 echo "$as_me: WARNING: winsock.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the compiler's result" >&5
31506 echo "$as_me: WARNING: winsock.h: proceeding with the compiler's result" >&2;}
31507 ac_header_preproc=yes
31509 no:yes:* )
31510 { echo "$as_me:$LINENO: WARNING: winsock.h: present but cannot be compiled" >&5
31511 echo "$as_me: WARNING: winsock.h: present but cannot be compiled" >&2;}
31512 { echo "$as_me:$LINENO: WARNING: winsock.h: check for missing prerequisite headers?" >&5
31513 echo "$as_me: WARNING: winsock.h: check for missing prerequisite headers?" >&2;}
31514 { echo "$as_me:$LINENO: WARNING: winsock.h: see the Autoconf documentation" >&5
31515 echo "$as_me: WARNING: winsock.h: see the Autoconf documentation" >&2;}
31516 { echo "$as_me:$LINENO: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&5
31517 echo "$as_me: WARNING: winsock.h: section \"Present But Cannot Be Compiled\"" >&2;}
31518 { echo "$as_me:$LINENO: WARNING: winsock.h: proceeding with the preprocessor's result" >&5
31519 echo "$as_me: WARNING: winsock.h: proceeding with the preprocessor's result" >&2;}
31520 { echo "$as_me:$LINENO: WARNING: winsock.h: in the future, the compiler will take precedence" >&5
31521 echo "$as_me: WARNING: winsock.h: in the future, the compiler will take precedence" >&2;}
31524 esac
31525 { echo "$as_me:$LINENO: checking for winsock.h" >&5
31526 echo $ECHO_N "checking for winsock.h... $ECHO_C" >&6; }
31527 if test "${ac_cv_header_winsock_h+set}" = set; then
31528 echo $ECHO_N "(cached) $ECHO_C" >&6
31529 else
31530 ac_cv_header_winsock_h=$ac_header_preproc
31532 { echo "$as_me:$LINENO: result: $ac_cv_header_winsock_h" >&5
31533 echo "${ECHO_T}$ac_cv_header_winsock_h" >&6; }
31536 if test $ac_cv_header_winsock_h = yes; then
31538 else
31539 can_compile_rfb=0
31543 if test "${ac_cv_header_process_h+set}" = set; then
31544 { echo "$as_me:$LINENO: checking for process.h" >&5
31545 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31546 if test "${ac_cv_header_process_h+set}" = set; then
31547 echo $ECHO_N "(cached) $ECHO_C" >&6
31549 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31550 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31551 else
31552 # Is the header compilable?
31553 { echo "$as_me:$LINENO: checking process.h usability" >&5
31554 echo $ECHO_N "checking process.h usability... $ECHO_C" >&6; }
31555 cat >conftest.$ac_ext <<_ACEOF
31556 /* confdefs.h. */
31557 _ACEOF
31558 cat confdefs.h >>conftest.$ac_ext
31559 cat >>conftest.$ac_ext <<_ACEOF
31560 /* end confdefs.h. */
31561 $ac_includes_default
31562 #include <process.h>
31563 _ACEOF
31564 rm -f conftest.$ac_objext
31565 if { (ac_try="$ac_compile"
31566 case "(($ac_try" in
31567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31568 *) ac_try_echo=$ac_try;;
31569 esac
31570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31571 (eval "$ac_compile") 2>conftest.er1
31572 ac_status=$?
31573 grep -v '^ *+' conftest.er1 >conftest.err
31574 rm -f conftest.er1
31575 cat conftest.err >&5
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); } && {
31578 test -z "$ac_c_werror_flag" ||
31579 test ! -s conftest.err
31580 } && test -s conftest.$ac_objext; then
31581 ac_header_compiler=yes
31582 else
31583 echo "$as_me: failed program was:" >&5
31584 sed 's/^/| /' conftest.$ac_ext >&5
31586 ac_header_compiler=no
31589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31591 echo "${ECHO_T}$ac_header_compiler" >&6; }
31593 # Is the header present?
31594 { echo "$as_me:$LINENO: checking process.h presence" >&5
31595 echo $ECHO_N "checking process.h presence... $ECHO_C" >&6; }
31596 cat >conftest.$ac_ext <<_ACEOF
31597 /* confdefs.h. */
31598 _ACEOF
31599 cat confdefs.h >>conftest.$ac_ext
31600 cat >>conftest.$ac_ext <<_ACEOF
31601 /* end confdefs.h. */
31602 #include <process.h>
31603 _ACEOF
31604 if { (ac_try="$ac_cpp conftest.$ac_ext"
31605 case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31611 ac_status=$?
31612 grep -v '^ *+' conftest.er1 >conftest.err
31613 rm -f conftest.er1
31614 cat conftest.err >&5
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } >/dev/null && {
31617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31618 test ! -s conftest.err
31619 }; then
31620 ac_header_preproc=yes
31621 else
31622 echo "$as_me: failed program was:" >&5
31623 sed 's/^/| /' conftest.$ac_ext >&5
31625 ac_header_preproc=no
31628 rm -f conftest.err conftest.$ac_ext
31629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31630 echo "${ECHO_T}$ac_header_preproc" >&6; }
31632 # So? What about this header?
31633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31634 yes:no: )
31635 { echo "$as_me:$LINENO: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&5
31636 echo "$as_me: WARNING: process.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31637 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the compiler's result" >&5
31638 echo "$as_me: WARNING: process.h: proceeding with the compiler's result" >&2;}
31639 ac_header_preproc=yes
31641 no:yes:* )
31642 { echo "$as_me:$LINENO: WARNING: process.h: present but cannot be compiled" >&5
31643 echo "$as_me: WARNING: process.h: present but cannot be compiled" >&2;}
31644 { echo "$as_me:$LINENO: WARNING: process.h: check for missing prerequisite headers?" >&5
31645 echo "$as_me: WARNING: process.h: check for missing prerequisite headers?" >&2;}
31646 { echo "$as_me:$LINENO: WARNING: process.h: see the Autoconf documentation" >&5
31647 echo "$as_me: WARNING: process.h: see the Autoconf documentation" >&2;}
31648 { echo "$as_me:$LINENO: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&5
31649 echo "$as_me: WARNING: process.h: section \"Present But Cannot Be Compiled\"" >&2;}
31650 { echo "$as_me:$LINENO: WARNING: process.h: proceeding with the preprocessor's result" >&5
31651 echo "$as_me: WARNING: process.h: proceeding with the preprocessor's result" >&2;}
31652 { echo "$as_me:$LINENO: WARNING: process.h: in the future, the compiler will take precedence" >&5
31653 echo "$as_me: WARNING: process.h: in the future, the compiler will take precedence" >&2;}
31656 esac
31657 { echo "$as_me:$LINENO: checking for process.h" >&5
31658 echo $ECHO_N "checking for process.h... $ECHO_C" >&6; }
31659 if test "${ac_cv_header_process_h+set}" = set; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31661 else
31662 ac_cv_header_process_h=$ac_header_preproc
31664 { echo "$as_me:$LINENO: result: $ac_cv_header_process_h" >&5
31665 echo "${ECHO_T}$ac_cv_header_process_h" >&6; }
31668 if test $ac_cv_header_process_h = yes; then
31670 else
31671 can_compile_rfb=0
31677 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31678 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31679 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31680 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31681 echo $ECHO_N "(cached) $ECHO_C" >&6
31683 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31684 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31685 else
31686 # Is the header compilable?
31687 { echo "$as_me:$LINENO: checking sys/socket.h usability" >&5
31688 echo $ECHO_N "checking sys/socket.h usability... $ECHO_C" >&6; }
31689 cat >conftest.$ac_ext <<_ACEOF
31690 /* confdefs.h. */
31691 _ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31695 $ac_includes_default
31696 #include <sys/socket.h>
31697 _ACEOF
31698 rm -f conftest.$ac_objext
31699 if { (ac_try="$ac_compile"
31700 case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703 esac
31704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_compile") 2>conftest.er1
31706 ac_status=$?
31707 grep -v '^ *+' conftest.er1 >conftest.err
31708 rm -f conftest.er1
31709 cat conftest.err >&5
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } && {
31712 test -z "$ac_c_werror_flag" ||
31713 test ! -s conftest.err
31714 } && test -s conftest.$ac_objext; then
31715 ac_header_compiler=yes
31716 else
31717 echo "$as_me: failed program was:" >&5
31718 sed 's/^/| /' conftest.$ac_ext >&5
31720 ac_header_compiler=no
31723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31725 echo "${ECHO_T}$ac_header_compiler" >&6; }
31727 # Is the header present?
31728 { echo "$as_me:$LINENO: checking sys/socket.h presence" >&5
31729 echo $ECHO_N "checking sys/socket.h presence... $ECHO_C" >&6; }
31730 cat >conftest.$ac_ext <<_ACEOF
31731 /* confdefs.h. */
31732 _ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h. */
31736 #include <sys/socket.h>
31737 _ACEOF
31738 if { (ac_try="$ac_cpp conftest.$ac_ext"
31739 case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742 esac
31743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31745 ac_status=$?
31746 grep -v '^ *+' conftest.er1 >conftest.err
31747 rm -f conftest.er1
31748 cat conftest.err >&5
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); } >/dev/null && {
31751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31752 test ! -s conftest.err
31753 }; then
31754 ac_header_preproc=yes
31755 else
31756 echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.$ac_ext >&5
31759 ac_header_preproc=no
31762 rm -f conftest.err conftest.$ac_ext
31763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31764 echo "${ECHO_T}$ac_header_preproc" >&6; }
31766 # So? What about this header?
31767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31768 yes:no: )
31769 { echo "$as_me:$LINENO: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&5
31770 echo "$as_me: WARNING: sys/socket.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31771 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the compiler's result" >&5
31772 echo "$as_me: WARNING: sys/socket.h: proceeding with the compiler's result" >&2;}
31773 ac_header_preproc=yes
31775 no:yes:* )
31776 { echo "$as_me:$LINENO: WARNING: sys/socket.h: present but cannot be compiled" >&5
31777 echo "$as_me: WARNING: sys/socket.h: present but cannot be compiled" >&2;}
31778 { echo "$as_me:$LINENO: WARNING: sys/socket.h: check for missing prerequisite headers?" >&5
31779 echo "$as_me: WARNING: sys/socket.h: check for missing prerequisite headers?" >&2;}
31780 { echo "$as_me:$LINENO: WARNING: sys/socket.h: see the Autoconf documentation" >&5
31781 echo "$as_me: WARNING: sys/socket.h: see the Autoconf documentation" >&2;}
31782 { echo "$as_me:$LINENO: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&5
31783 echo "$as_me: WARNING: sys/socket.h: section \"Present But Cannot Be Compiled\"" >&2;}
31784 { echo "$as_me:$LINENO: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&5
31785 echo "$as_me: WARNING: sys/socket.h: proceeding with the preprocessor's result" >&2;}
31786 { echo "$as_me:$LINENO: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&5
31787 echo "$as_me: WARNING: sys/socket.h: in the future, the compiler will take precedence" >&2;}
31790 esac
31791 { echo "$as_me:$LINENO: checking for sys/socket.h" >&5
31792 echo $ECHO_N "checking for sys/socket.h... $ECHO_C" >&6; }
31793 if test "${ac_cv_header_sys_socket_h+set}" = set; then
31794 echo $ECHO_N "(cached) $ECHO_C" >&6
31795 else
31796 ac_cv_header_sys_socket_h=$ac_header_preproc
31798 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_socket_h" >&5
31799 echo "${ECHO_T}$ac_cv_header_sys_socket_h" >&6; }
31802 if test $ac_cv_header_sys_socket_h = yes; then
31804 else
31805 can_compile_rfb=0
31809 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31810 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31811 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31812 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31813 echo $ECHO_N "(cached) $ECHO_C" >&6
31815 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31816 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31817 else
31818 # Is the header compilable?
31819 { echo "$as_me:$LINENO: checking netinet/tcp.h usability" >&5
31820 echo $ECHO_N "checking netinet/tcp.h usability... $ECHO_C" >&6; }
31821 cat >conftest.$ac_ext <<_ACEOF
31822 /* confdefs.h. */
31823 _ACEOF
31824 cat confdefs.h >>conftest.$ac_ext
31825 cat >>conftest.$ac_ext <<_ACEOF
31826 /* end confdefs.h. */
31827 $ac_includes_default
31828 #include <netinet/tcp.h>
31829 _ACEOF
31830 rm -f conftest.$ac_objext
31831 if { (ac_try="$ac_compile"
31832 case "(($ac_try" in
31833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31834 *) ac_try_echo=$ac_try;;
31835 esac
31836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31837 (eval "$ac_compile") 2>conftest.er1
31838 ac_status=$?
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } && {
31844 test -z "$ac_c_werror_flag" ||
31845 test ! -s conftest.err
31846 } && test -s conftest.$ac_objext; then
31847 ac_header_compiler=yes
31848 else
31849 echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31852 ac_header_compiler=no
31855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31857 echo "${ECHO_T}$ac_header_compiler" >&6; }
31859 # Is the header present?
31860 { echo "$as_me:$LINENO: checking netinet/tcp.h presence" >&5
31861 echo $ECHO_N "checking netinet/tcp.h presence... $ECHO_C" >&6; }
31862 cat >conftest.$ac_ext <<_ACEOF
31863 /* confdefs.h. */
31864 _ACEOF
31865 cat confdefs.h >>conftest.$ac_ext
31866 cat >>conftest.$ac_ext <<_ACEOF
31867 /* end confdefs.h. */
31868 #include <netinet/tcp.h>
31869 _ACEOF
31870 if { (ac_try="$ac_cpp conftest.$ac_ext"
31871 case "(($ac_try" in
31872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31873 *) ac_try_echo=$ac_try;;
31874 esac
31875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31877 ac_status=$?
31878 grep -v '^ *+' conftest.er1 >conftest.err
31879 rm -f conftest.er1
31880 cat conftest.err >&5
31881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882 (exit $ac_status); } >/dev/null && {
31883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31884 test ! -s conftest.err
31885 }; then
31886 ac_header_preproc=yes
31887 else
31888 echo "$as_me: failed program was:" >&5
31889 sed 's/^/| /' conftest.$ac_ext >&5
31891 ac_header_preproc=no
31894 rm -f conftest.err conftest.$ac_ext
31895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31896 echo "${ECHO_T}$ac_header_preproc" >&6; }
31898 # So? What about this header?
31899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31900 yes:no: )
31901 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
31902 echo "$as_me: WARNING: netinet/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31903 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&5
31904 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the compiler's result" >&2;}
31905 ac_header_preproc=yes
31907 no:yes:* )
31908 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: present but cannot be compiled" >&5
31909 echo "$as_me: WARNING: netinet/tcp.h: present but cannot be compiled" >&2;}
31910 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&5
31911 echo "$as_me: WARNING: netinet/tcp.h: check for missing prerequisite headers?" >&2;}
31912 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: see the Autoconf documentation" >&5
31913 echo "$as_me: WARNING: netinet/tcp.h: see the Autoconf documentation" >&2;}
31914 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
31915 echo "$as_me: WARNING: netinet/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
31916 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&5
31917 echo "$as_me: WARNING: netinet/tcp.h: proceeding with the preprocessor's result" >&2;}
31918 { echo "$as_me:$LINENO: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&5
31919 echo "$as_me: WARNING: netinet/tcp.h: in the future, the compiler will take precedence" >&2;}
31922 esac
31923 { echo "$as_me:$LINENO: checking for netinet/tcp.h" >&5
31924 echo $ECHO_N "checking for netinet/tcp.h... $ECHO_C" >&6; }
31925 if test "${ac_cv_header_netinet_tcp_h+set}" = set; then
31926 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 else
31928 ac_cv_header_netinet_tcp_h=$ac_header_preproc
31930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_tcp_h" >&5
31931 echo "${ECHO_T}$ac_cv_header_netinet_tcp_h" >&6; }
31934 if test $ac_cv_header_netinet_tcp_h = yes; then
31936 else
31937 can_compile_rfb=0
31941 if test "${ac_cv_header_pthread_h+set}" = set; then
31942 { echo "$as_me:$LINENO: checking for pthread.h" >&5
31943 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
31944 if test "${ac_cv_header_pthread_h+set}" = set; then
31945 echo $ECHO_N "(cached) $ECHO_C" >&6
31947 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
31948 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
31949 else
31950 # Is the header compilable?
31951 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
31952 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
31953 cat >conftest.$ac_ext <<_ACEOF
31954 /* confdefs.h. */
31955 _ACEOF
31956 cat confdefs.h >>conftest.$ac_ext
31957 cat >>conftest.$ac_ext <<_ACEOF
31958 /* end confdefs.h. */
31959 $ac_includes_default
31960 #include <pthread.h>
31961 _ACEOF
31962 rm -f conftest.$ac_objext
31963 if { (ac_try="$ac_compile"
31964 case "(($ac_try" in
31965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31966 *) ac_try_echo=$ac_try;;
31967 esac
31968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31969 (eval "$ac_compile") 2>conftest.er1
31970 ac_status=$?
31971 grep -v '^ *+' conftest.er1 >conftest.err
31972 rm -f conftest.er1
31973 cat conftest.err >&5
31974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975 (exit $ac_status); } && {
31976 test -z "$ac_c_werror_flag" ||
31977 test ! -s conftest.err
31978 } && test -s conftest.$ac_objext; then
31979 ac_header_compiler=yes
31980 else
31981 echo "$as_me: failed program was:" >&5
31982 sed 's/^/| /' conftest.$ac_ext >&5
31984 ac_header_compiler=no
31987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31989 echo "${ECHO_T}$ac_header_compiler" >&6; }
31991 # Is the header present?
31992 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
31993 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
31994 cat >conftest.$ac_ext <<_ACEOF
31995 /* confdefs.h. */
31996 _ACEOF
31997 cat confdefs.h >>conftest.$ac_ext
31998 cat >>conftest.$ac_ext <<_ACEOF
31999 /* end confdefs.h. */
32000 #include <pthread.h>
32001 _ACEOF
32002 if { (ac_try="$ac_cpp conftest.$ac_ext"
32003 case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32006 esac
32007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32009 ac_status=$?
32010 grep -v '^ *+' conftest.er1 >conftest.err
32011 rm -f conftest.er1
32012 cat conftest.err >&5
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); } >/dev/null && {
32015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32016 test ! -s conftest.err
32017 }; then
32018 ac_header_preproc=yes
32019 else
32020 echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32023 ac_header_preproc=no
32026 rm -f conftest.err conftest.$ac_ext
32027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32028 echo "${ECHO_T}$ac_header_preproc" >&6; }
32030 # So? What about this header?
32031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32032 yes:no: )
32033 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
32034 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32035 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
32036 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
32037 ac_header_preproc=yes
32039 no:yes:* )
32040 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
32041 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
32042 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
32043 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
32044 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
32045 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
32046 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
32047 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
32048 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
32049 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
32050 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
32051 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
32054 esac
32055 { echo "$as_me:$LINENO: checking for pthread.h" >&5
32056 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
32057 if test "${ac_cv_header_pthread_h+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32059 else
32060 ac_cv_header_pthread_h=$ac_header_preproc
32062 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
32063 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
32066 if test $ac_cv_header_pthread_h = yes; then
32068 else
32069 can_compile_rfb=0
32074 esac
32075 if test $can_compile_rfb = 1; then
32076 with_rfb=yes
32080 if test "$with_term" != yes; then
32081 can_compile_term=1
32082 if test "${ac_cv_header_curses_h+set}" = set; then
32083 { echo "$as_me:$LINENO: checking for curses.h" >&5
32084 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32085 if test "${ac_cv_header_curses_h+set}" = set; then
32086 echo $ECHO_N "(cached) $ECHO_C" >&6
32088 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32089 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32090 else
32091 # Is the header compilable?
32092 { echo "$as_me:$LINENO: checking curses.h usability" >&5
32093 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
32094 cat >conftest.$ac_ext <<_ACEOF
32095 /* confdefs.h. */
32096 _ACEOF
32097 cat confdefs.h >>conftest.$ac_ext
32098 cat >>conftest.$ac_ext <<_ACEOF
32099 /* end confdefs.h. */
32100 $ac_includes_default
32101 #include <curses.h>
32102 _ACEOF
32103 rm -f conftest.$ac_objext
32104 if { (ac_try="$ac_compile"
32105 case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32108 esac
32109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_compile") 2>conftest.er1
32111 ac_status=$?
32112 grep -v '^ *+' conftest.er1 >conftest.err
32113 rm -f conftest.er1
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } && {
32117 test -z "$ac_c_werror_flag" ||
32118 test ! -s conftest.err
32119 } && test -s conftest.$ac_objext; then
32120 ac_header_compiler=yes
32121 else
32122 echo "$as_me: failed program was:" >&5
32123 sed 's/^/| /' conftest.$ac_ext >&5
32125 ac_header_compiler=no
32128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32130 echo "${ECHO_T}$ac_header_compiler" >&6; }
32132 # Is the header present?
32133 { echo "$as_me:$LINENO: checking curses.h presence" >&5
32134 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
32135 cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h. */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h. */
32141 #include <curses.h>
32142 _ACEOF
32143 if { (ac_try="$ac_cpp conftest.$ac_ext"
32144 case "(($ac_try" in
32145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32146 *) ac_try_echo=$ac_try;;
32147 esac
32148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32150 ac_status=$?
32151 grep -v '^ *+' conftest.er1 >conftest.err
32152 rm -f conftest.er1
32153 cat conftest.err >&5
32154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155 (exit $ac_status); } >/dev/null && {
32156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32157 test ! -s conftest.err
32158 }; then
32159 ac_header_preproc=yes
32160 else
32161 echo "$as_me: failed program was:" >&5
32162 sed 's/^/| /' conftest.$ac_ext >&5
32164 ac_header_preproc=no
32167 rm -f conftest.err conftest.$ac_ext
32168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32169 echo "${ECHO_T}$ac_header_preproc" >&6; }
32171 # So? What about this header?
32172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32173 yes:no: )
32174 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
32175 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32176 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
32177 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
32178 ac_header_preproc=yes
32180 no:yes:* )
32181 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
32182 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
32183 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
32184 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
32185 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
32186 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
32187 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
32188 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
32189 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
32190 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
32191 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
32192 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
32195 esac
32196 { echo "$as_me:$LINENO: checking for curses.h" >&5
32197 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
32198 if test "${ac_cv_header_curses_h+set}" = set; then
32199 echo $ECHO_N "(cached) $ECHO_C" >&6
32200 else
32201 ac_cv_header_curses_h=$ac_header_preproc
32203 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
32204 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
32207 if test $ac_cv_header_curses_h = yes; then
32209 else
32210 can_compile_term=0
32214 if test "${ac_cv_header_signal_h+set}" = set; then
32215 { echo "$as_me:$LINENO: checking for signal.h" >&5
32216 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32217 if test "${ac_cv_header_signal_h+set}" = set; then
32218 echo $ECHO_N "(cached) $ECHO_C" >&6
32220 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32221 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32222 else
32223 # Is the header compilable?
32224 { echo "$as_me:$LINENO: checking signal.h usability" >&5
32225 echo $ECHO_N "checking signal.h usability... $ECHO_C" >&6; }
32226 cat >conftest.$ac_ext <<_ACEOF
32227 /* confdefs.h. */
32228 _ACEOF
32229 cat confdefs.h >>conftest.$ac_ext
32230 cat >>conftest.$ac_ext <<_ACEOF
32231 /* end confdefs.h. */
32232 $ac_includes_default
32233 #include <signal.h>
32234 _ACEOF
32235 rm -f conftest.$ac_objext
32236 if { (ac_try="$ac_compile"
32237 case "(($ac_try" in
32238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32239 *) ac_try_echo=$ac_try;;
32240 esac
32241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32242 (eval "$ac_compile") 2>conftest.er1
32243 ac_status=$?
32244 grep -v '^ *+' conftest.er1 >conftest.err
32245 rm -f conftest.er1
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } && {
32249 test -z "$ac_c_werror_flag" ||
32250 test ! -s conftest.err
32251 } && test -s conftest.$ac_objext; then
32252 ac_header_compiler=yes
32253 else
32254 echo "$as_me: failed program was:" >&5
32255 sed 's/^/| /' conftest.$ac_ext >&5
32257 ac_header_compiler=no
32260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32262 echo "${ECHO_T}$ac_header_compiler" >&6; }
32264 # Is the header present?
32265 { echo "$as_me:$LINENO: checking signal.h presence" >&5
32266 echo $ECHO_N "checking signal.h presence... $ECHO_C" >&6; }
32267 cat >conftest.$ac_ext <<_ACEOF
32268 /* confdefs.h. */
32269 _ACEOF
32270 cat confdefs.h >>conftest.$ac_ext
32271 cat >>conftest.$ac_ext <<_ACEOF
32272 /* end confdefs.h. */
32273 #include <signal.h>
32274 _ACEOF
32275 if { (ac_try="$ac_cpp conftest.$ac_ext"
32276 case "(($ac_try" in
32277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32278 *) ac_try_echo=$ac_try;;
32279 esac
32280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32282 ac_status=$?
32283 grep -v '^ *+' conftest.er1 >conftest.err
32284 rm -f conftest.er1
32285 cat conftest.err >&5
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); } >/dev/null && {
32288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32289 test ! -s conftest.err
32290 }; then
32291 ac_header_preproc=yes
32292 else
32293 echo "$as_me: failed program was:" >&5
32294 sed 's/^/| /' conftest.$ac_ext >&5
32296 ac_header_preproc=no
32299 rm -f conftest.err conftest.$ac_ext
32300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32301 echo "${ECHO_T}$ac_header_preproc" >&6; }
32303 # So? What about this header?
32304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32305 yes:no: )
32306 { echo "$as_me:$LINENO: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&5
32307 echo "$as_me: WARNING: signal.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32308 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the compiler's result" >&5
32309 echo "$as_me: WARNING: signal.h: proceeding with the compiler's result" >&2;}
32310 ac_header_preproc=yes
32312 no:yes:* )
32313 { echo "$as_me:$LINENO: WARNING: signal.h: present but cannot be compiled" >&5
32314 echo "$as_me: WARNING: signal.h: present but cannot be compiled" >&2;}
32315 { echo "$as_me:$LINENO: WARNING: signal.h: check for missing prerequisite headers?" >&5
32316 echo "$as_me: WARNING: signal.h: check for missing prerequisite headers?" >&2;}
32317 { echo "$as_me:$LINENO: WARNING: signal.h: see the Autoconf documentation" >&5
32318 echo "$as_me: WARNING: signal.h: see the Autoconf documentation" >&2;}
32319 { echo "$as_me:$LINENO: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&5
32320 echo "$as_me: WARNING: signal.h: section \"Present But Cannot Be Compiled\"" >&2;}
32321 { echo "$as_me:$LINENO: WARNING: signal.h: proceeding with the preprocessor's result" >&5
32322 echo "$as_me: WARNING: signal.h: proceeding with the preprocessor's result" >&2;}
32323 { echo "$as_me:$LINENO: WARNING: signal.h: in the future, the compiler will take precedence" >&5
32324 echo "$as_me: WARNING: signal.h: in the future, the compiler will take precedence" >&2;}
32327 esac
32328 { echo "$as_me:$LINENO: checking for signal.h" >&5
32329 echo $ECHO_N "checking for signal.h... $ECHO_C" >&6; }
32330 if test "${ac_cv_header_signal_h+set}" = set; then
32331 echo $ECHO_N "(cached) $ECHO_C" >&6
32332 else
32333 ac_cv_header_signal_h=$ac_header_preproc
32335 { echo "$as_me:$LINENO: result: $ac_cv_header_signal_h" >&5
32336 echo "${ECHO_T}$ac_cv_header_signal_h" >&6; }
32339 if test $ac_cv_header_signal_h = yes; then
32341 else
32342 can_compile_term=0
32346 if test $can_compile_term = 1; then
32347 with_term=yes
32351 if test "$with_nogui" != yes; then
32352 with_nogui=yes
32354 fi # end of if $with_all_libs = yes
32356 { echo "$as_me:$LINENO: checking for idle hack" >&5
32357 echo $ECHO_N "checking for idle hack... $ECHO_C" >&6; }
32358 # Check whether --enable-idle-hack was given.
32359 if test "${enable_idle_hack+set}" = set; then
32360 enableval=$enable_idle_hack; if test "$enableval" = yes; then
32361 { echo "$as_me:$LINENO: result: yes" >&5
32362 echo "${ECHO_T}yes" >&6; }
32363 cat >>confdefs.h <<\_ACEOF
32364 #define BX_USE_IDLE_HACK 1
32365 _ACEOF
32367 else
32368 { echo "$as_me:$LINENO: result: no" >&5
32369 echo "${ECHO_T}no" >&6; }
32370 cat >>confdefs.h <<\_ACEOF
32371 #define BX_USE_IDLE_HACK 0
32372 _ACEOF
32375 else
32377 { echo "$as_me:$LINENO: result: no" >&5
32378 echo "${ECHO_T}no" >&6; }
32379 cat >>confdefs.h <<\_ACEOF
32380 #define BX_USE_IDLE_HACK 0
32381 _ACEOF
32389 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32390 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32391 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32392 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32395 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32396 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32397 else
32398 # Is the header compilable?
32399 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
32400 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
32401 cat >conftest.$ac_ext <<_ACEOF
32402 /* confdefs.h. */
32403 _ACEOF
32404 cat confdefs.h >>conftest.$ac_ext
32405 cat >>conftest.$ac_ext <<_ACEOF
32406 /* end confdefs.h. */
32407 $ac_includes_default
32408 #include <dlfcn.h>
32409 _ACEOF
32410 rm -f conftest.$ac_objext
32411 if { (ac_try="$ac_compile"
32412 case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415 esac
32416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_compile") 2>conftest.er1
32418 ac_status=$?
32419 grep -v '^ *+' conftest.er1 >conftest.err
32420 rm -f conftest.er1
32421 cat conftest.err >&5
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); } && {
32424 test -z "$ac_c_werror_flag" ||
32425 test ! -s conftest.err
32426 } && test -s conftest.$ac_objext; then
32427 ac_header_compiler=yes
32428 else
32429 echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32432 ac_header_compiler=no
32435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32437 echo "${ECHO_T}$ac_header_compiler" >&6; }
32439 # Is the header present?
32440 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
32441 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
32442 cat >conftest.$ac_ext <<_ACEOF
32443 /* confdefs.h. */
32444 _ACEOF
32445 cat confdefs.h >>conftest.$ac_ext
32446 cat >>conftest.$ac_ext <<_ACEOF
32447 /* end confdefs.h. */
32448 #include <dlfcn.h>
32449 _ACEOF
32450 if { (ac_try="$ac_cpp conftest.$ac_ext"
32451 case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32454 esac
32455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32457 ac_status=$?
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } >/dev/null && {
32463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32464 test ! -s conftest.err
32465 }; then
32466 ac_header_preproc=yes
32467 else
32468 echo "$as_me: failed program was:" >&5
32469 sed 's/^/| /' conftest.$ac_ext >&5
32471 ac_header_preproc=no
32474 rm -f conftest.err conftest.$ac_ext
32475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32476 echo "${ECHO_T}$ac_header_preproc" >&6; }
32478 # So? What about this header?
32479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32480 yes:no: )
32481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
32482 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32483 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
32484 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
32485 ac_header_preproc=yes
32487 no:yes:* )
32488 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
32489 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
32490 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
32491 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
32492 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
32493 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
32494 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
32495 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
32496 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
32497 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
32498 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
32499 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
32502 esac
32503 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
32504 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
32505 if test "${ac_cv_header_dlfcn_h+set}" = set; then
32506 echo $ECHO_N "(cached) $ECHO_C" >&6
32507 else
32508 ac_cv_header_dlfcn_h=$ac_header_preproc
32510 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
32511 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
32514 if test $ac_cv_header_dlfcn_h = yes; then
32515 cat >>confdefs.h <<\_ACEOF
32516 #define BX_HAVE_DLFCN_H 1
32517 _ACEOF
32522 if test "${ac_cv_header_assert_h+set}" = set; then
32523 { echo "$as_me:$LINENO: checking for assert.h" >&5
32524 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32525 if test "${ac_cv_header_assert_h+set}" = set; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32528 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32529 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32530 else
32531 # Is the header compilable?
32532 { echo "$as_me:$LINENO: checking assert.h usability" >&5
32533 echo $ECHO_N "checking assert.h usability... $ECHO_C" >&6; }
32534 cat >conftest.$ac_ext <<_ACEOF
32535 /* confdefs.h. */
32536 _ACEOF
32537 cat confdefs.h >>conftest.$ac_ext
32538 cat >>conftest.$ac_ext <<_ACEOF
32539 /* end confdefs.h. */
32540 $ac_includes_default
32541 #include <assert.h>
32542 _ACEOF
32543 rm -f conftest.$ac_objext
32544 if { (ac_try="$ac_compile"
32545 case "(($ac_try" in
32546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32547 *) ac_try_echo=$ac_try;;
32548 esac
32549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32550 (eval "$ac_compile") 2>conftest.er1
32551 ac_status=$?
32552 grep -v '^ *+' conftest.er1 >conftest.err
32553 rm -f conftest.er1
32554 cat conftest.err >&5
32555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556 (exit $ac_status); } && {
32557 test -z "$ac_c_werror_flag" ||
32558 test ! -s conftest.err
32559 } && test -s conftest.$ac_objext; then
32560 ac_header_compiler=yes
32561 else
32562 echo "$as_me: failed program was:" >&5
32563 sed 's/^/| /' conftest.$ac_ext >&5
32565 ac_header_compiler=no
32568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32570 echo "${ECHO_T}$ac_header_compiler" >&6; }
32572 # Is the header present?
32573 { echo "$as_me:$LINENO: checking assert.h presence" >&5
32574 echo $ECHO_N "checking assert.h presence... $ECHO_C" >&6; }
32575 cat >conftest.$ac_ext <<_ACEOF
32576 /* confdefs.h. */
32577 _ACEOF
32578 cat confdefs.h >>conftest.$ac_ext
32579 cat >>conftest.$ac_ext <<_ACEOF
32580 /* end confdefs.h. */
32581 #include <assert.h>
32582 _ACEOF
32583 if { (ac_try="$ac_cpp conftest.$ac_ext"
32584 case "(($ac_try" in
32585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32586 *) ac_try_echo=$ac_try;;
32587 esac
32588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32590 ac_status=$?
32591 grep -v '^ *+' conftest.er1 >conftest.err
32592 rm -f conftest.er1
32593 cat conftest.err >&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); } >/dev/null && {
32596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32597 test ! -s conftest.err
32598 }; then
32599 ac_header_preproc=yes
32600 else
32601 echo "$as_me: failed program was:" >&5
32602 sed 's/^/| /' conftest.$ac_ext >&5
32604 ac_header_preproc=no
32607 rm -f conftest.err conftest.$ac_ext
32608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32609 echo "${ECHO_T}$ac_header_preproc" >&6; }
32611 # So? What about this header?
32612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32613 yes:no: )
32614 { echo "$as_me:$LINENO: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&5
32615 echo "$as_me: WARNING: assert.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32616 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the compiler's result" >&5
32617 echo "$as_me: WARNING: assert.h: proceeding with the compiler's result" >&2;}
32618 ac_header_preproc=yes
32620 no:yes:* )
32621 { echo "$as_me:$LINENO: WARNING: assert.h: present but cannot be compiled" >&5
32622 echo "$as_me: WARNING: assert.h: present but cannot be compiled" >&2;}
32623 { echo "$as_me:$LINENO: WARNING: assert.h: check for missing prerequisite headers?" >&5
32624 echo "$as_me: WARNING: assert.h: check for missing prerequisite headers?" >&2;}
32625 { echo "$as_me:$LINENO: WARNING: assert.h: see the Autoconf documentation" >&5
32626 echo "$as_me: WARNING: assert.h: see the Autoconf documentation" >&2;}
32627 { echo "$as_me:$LINENO: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&5
32628 echo "$as_me: WARNING: assert.h: section \"Present But Cannot Be Compiled\"" >&2;}
32629 { echo "$as_me:$LINENO: WARNING: assert.h: proceeding with the preprocessor's result" >&5
32630 echo "$as_me: WARNING: assert.h: proceeding with the preprocessor's result" >&2;}
32631 { echo "$as_me:$LINENO: WARNING: assert.h: in the future, the compiler will take precedence" >&5
32632 echo "$as_me: WARNING: assert.h: in the future, the compiler will take precedence" >&2;}
32635 esac
32636 { echo "$as_me:$LINENO: checking for assert.h" >&5
32637 echo $ECHO_N "checking for assert.h... $ECHO_C" >&6; }
32638 if test "${ac_cv_header_assert_h+set}" = set; then
32639 echo $ECHO_N "(cached) $ECHO_C" >&6
32640 else
32641 ac_cv_header_assert_h=$ac_header_preproc
32643 { echo "$as_me:$LINENO: result: $ac_cv_header_assert_h" >&5
32644 echo "${ECHO_T}$ac_cv_header_assert_h" >&6; }
32647 if test $ac_cv_header_assert_h = yes; then
32648 cat >>confdefs.h <<\_ACEOF
32649 #define HAVE_ASSERT_H 1
32650 _ACEOF
32656 { echo "$as_me:$LINENO: checking for plugins support" >&5
32657 echo $ECHO_N "checking for plugins support... $ECHO_C" >&6; }
32658 # Check whether --enable-plugins was given.
32659 if test "${enable_plugins+set}" = set; then
32660 enableval=$enable_plugins; if test "$enableval" = yes; then
32661 bx_plugins=1
32662 else
32663 bx_plugins=0
32665 else
32667 bx_plugins=0
32673 if test "$bx_plugins" = 1; then
32674 { echo "$as_me:$LINENO: result: yes" >&5
32675 echo "${ECHO_T}yes" >&6; }
32676 cat >>confdefs.h <<\_ACEOF
32677 #define BX_PLUGINS 1
32678 _ACEOF
32680 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS)'
32681 GUI_PLUGIN_OBJS='$(OBJS_THAT_CAN_BE_PLUGINS)'
32682 DEFINE_PLUGIN_PATH='-DBX_PLUGIN_PATH="\"${plugdir}\""'
32683 # and the $(OBJS_THAT_SUPPORT_OTHER_PLUGINS) will be built and linked
32684 # by special link rules for the plugins that they support.
32685 LIBS="$LIBS $LIBADD_DL"
32686 PLUGIN_VAR='ltdl.o'
32687 PLUGIN_TARGET=bochs_plugins
32688 INSTALL_PLUGINS_VAR=install_libtool_plugins
32689 NONPLUGIN_GUI_LINK_OPTS=''
32690 else
32691 { echo "$as_me:$LINENO: result: no" >&5
32692 echo "${ECHO_T}no" >&6; }
32693 bx_plugins=0
32694 cat >>confdefs.h <<\_ACEOF
32695 #define BX_PLUGINS 0
32696 _ACEOF
32698 GUI_NON_PLUGIN_OBJS='$(OBJS_THAT_CANNOT_BE_PLUGINS) $(OBJS_THAT_CAN_BE_PLUGINS) $(OBJS_THAT_SUPPORT_OTHER_PLUGINS)'
32699 GUI_PLUGIN_OBJS=''
32700 NONPLUGIN_GUI_LINK_OPTS='$(GUI_LINK_OPTS)'
32705 # copy gui variables into iodev variables. Later, we will add to the gui
32706 # objs list, according to which display libraries are enabled.
32707 IODEV_NON_PLUGIN_OBJS=$GUI_NON_PLUGIN_OBJS
32708 IODEV_PLUGIN_OBJS=$GUI_PLUGIN_OBJS
32710 # on MacOSX if they enabled plugins, make sure that dlopen() was found.
32711 # It is provided by a library called dlcompat.
32712 if test "$bx_plugins" = 1 -a "$need_dlcompat_for_plugins" = 1; then
32713 have_dlopen=0
32714 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32715 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
32716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32717 echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32719 ac_check_lib_save_LIBS=$LIBS
32720 LIBS="-ldl $LIBS"
32721 cat >conftest.$ac_ext <<_ACEOF
32722 /* confdefs.h. */
32723 _ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32728 /* Override any GCC internal prototype to avoid an error.
32729 Use char because int might match the return type of a GCC
32730 builtin and then its argument prototype would still apply. */
32731 #ifdef __cplusplus
32732 extern "C"
32733 #endif
32734 char dlopen ();
32736 main ()
32738 return dlopen ();
32740 return 0;
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (ac_try="$ac_link"
32745 case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32748 esac
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_link") 2>conftest.er1
32751 ac_status=$?
32752 grep -v '^ *+' conftest.er1 >conftest.err
32753 rm -f conftest.er1
32754 cat conftest.err >&5
32755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756 (exit $ac_status); } && {
32757 test -z "$ac_c_werror_flag" ||
32758 test ! -s conftest.err
32759 } && test -s conftest$ac_exeext &&
32760 $as_test_x conftest$ac_exeext; then
32761 ac_cv_lib_dl_dlopen=yes
32762 else
32763 echo "$as_me: failed program was:" >&5
32764 sed 's/^/| /' conftest.$ac_ext >&5
32766 ac_cv_lib_dl_dlopen=no
32769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32770 conftest$ac_exeext conftest.$ac_ext
32771 LIBS=$ac_check_lib_save_LIBS
32773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
32775 if test $ac_cv_lib_dl_dlopen = yes; then
32776 have_dlopen=1
32779 { echo "$as_me:$LINENO: checking if you have dlcompat" >&5
32780 echo $ECHO_N "checking if you have dlcompat... $ECHO_C" >&6; }
32781 if test "$have_dlopen" = 0; then
32782 { echo "$as_me:$LINENO: result: no" >&5
32783 echo "${ECHO_T}no" >&6; }
32784 { { echo "$as_me:$LINENO: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&5
32785 echo "$as_me: error: To use plugins on MacOSX you must use a library called dlcompat. The configure script was not able to find dlcompat. If it is already installed then you must set up your environment variables to point to it, as is done in .conf.macosx. If you cannot resolve this, you should turn off plugins." >&2;}
32786 { (exit 1); exit 1; }; }
32787 else
32788 { echo "$as_me:$LINENO: result: yes" >&5
32789 echo "${ECHO_T}yes" >&6; }
32793 { echo "$as_me:$LINENO: checking if compiler allows blank labels" >&5
32794 echo $ECHO_N "checking if compiler allows blank labels... $ECHO_C" >&6; }
32795 cat >conftest.$ac_ext <<_ACEOF
32796 /* confdefs.h. */
32797 _ACEOF
32798 cat confdefs.h >>conftest.$ac_ext
32799 cat >>conftest.$ac_ext <<_ACEOF
32800 /* end confdefs.h. */
32803 main ()
32805 { label1: }
32807 return 0;
32809 _ACEOF
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32818 ac_status=$?
32819 grep -v '^ *+' conftest.er1 >conftest.err
32820 rm -f conftest.er1
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.$ac_objext; then
32827 { echo "$as_me:$LINENO: result: yes" >&5
32828 echo "${ECHO_T}yes" >&6; }
32829 else
32830 echo "$as_me: failed program was:" >&5
32831 sed 's/^/| /' conftest.$ac_ext >&5
32834 { echo "$as_me:$LINENO: result: no" >&5
32835 echo "${ECHO_T}no" >&6; }
32836 cat >>confdefs.h <<\_ACEOF
32837 #define BX_NO_BLANK_LABELS 1
32838 _ACEOF
32843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32845 { echo "$as_me:$LINENO: checking if compiler allows LL for 64-bit constants" >&5
32846 echo $ECHO_N "checking if compiler allows LL for 64-bit constants... $ECHO_C" >&6; }
32847 cat >conftest.$ac_ext <<_ACEOF
32848 /* confdefs.h. */
32849 _ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h. */
32855 main ()
32857 { 42LL; }
32859 return 0;
32861 _ACEOF
32862 rm -f conftest.$ac_objext
32863 if { (ac_try="$ac_compile"
32864 case "(($ac_try" in
32865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32866 *) ac_try_echo=$ac_try;;
32867 esac
32868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32869 (eval "$ac_compile") 2>conftest.er1
32870 ac_status=$?
32871 grep -v '^ *+' conftest.er1 >conftest.err
32872 rm -f conftest.er1
32873 cat conftest.err >&5
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); } && {
32876 test -z "$ac_c_werror_flag" ||
32877 test ! -s conftest.err
32878 } && test -s conftest.$ac_objext; then
32879 { echo "$as_me:$LINENO: result: yes" >&5
32880 echo "${ECHO_T}yes" >&6; }
32881 else
32882 echo "$as_me: failed program was:" >&5
32883 sed 's/^/| /' conftest.$ac_ext >&5
32886 { echo "$as_me:$LINENO: result: no" >&5
32887 echo "${ECHO_T}no" >&6; }
32888 cat >>confdefs.h <<\_ACEOF
32889 #define BX_64BIT_CONSTANTS_USE_LL 0
32890 _ACEOF
32895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32897 use_x86_64=0
32898 { echo "$as_me:$LINENO: checking for x86-64 support" >&5
32899 echo $ECHO_N "checking for x86-64 support... $ECHO_C" >&6; }
32900 # Check whether --enable-x86-64 was given.
32901 if test "${enable_x86_64+set}" = set; then
32902 enableval=$enable_x86_64; if test "$enableval" = yes; then
32903 { echo "$as_me:$LINENO: result: yes" >&5
32904 echo "${ECHO_T}yes" >&6; }
32905 OBJS64='$(OBJS64)'
32906 cat >>confdefs.h <<\_ACEOF
32907 #define BX_SUPPORT_X86_64 1
32908 _ACEOF
32910 use_x86_64=1
32911 else
32912 { echo "$as_me:$LINENO: result: no" >&5
32913 echo "${ECHO_T}no" >&6; }
32914 OBJS64=''
32915 cat >>confdefs.h <<\_ACEOF
32916 #define BX_SUPPORT_X86_64 0
32917 _ACEOF
32921 else
32923 { echo "$as_me:$LINENO: result: no" >&5
32924 echo "${ECHO_T}no" >&6; }
32925 OBJS64=''
32926 cat >>confdefs.h <<\_ACEOF
32927 #define BX_SUPPORT_X86_64 0
32928 _ACEOF
32936 use_smp=0
32937 { echo "$as_me:$LINENO: checking for SMP support" >&5
32938 echo $ECHO_N "checking for SMP support... $ECHO_C" >&6; }
32939 # Check whether --enable-smp was given.
32940 if test "${enable_smp+set}" = set; then
32941 enableval=$enable_smp; if test "$enableval" = yes; then
32942 { echo "$as_me:$LINENO: result: yes" >&5
32943 echo "${ECHO_T}yes" >&6; }
32944 cat >>confdefs.h <<\_ACEOF
32945 #define BX_SUPPORT_SMP 1
32946 _ACEOF
32948 cat >>confdefs.h <<\_ACEOF
32949 #define BX_USE_CPU_SMF 0
32950 _ACEOF
32952 use_smp=1
32953 else
32954 { echo "$as_me:$LINENO: result: no" >&5
32955 echo "${ECHO_T}no" >&6; }
32956 cat >>confdefs.h <<\_ACEOF
32957 #define BX_SUPPORT_SMP 0
32958 _ACEOF
32962 else
32964 { echo "$as_me:$LINENO: result: no" >&5
32965 echo "${ECHO_T}no" >&6; }
32966 cat >>confdefs.h <<\_ACEOF
32967 #define BX_SUPPORT_SMP 0
32968 _ACEOF
32975 { echo "$as_me:$LINENO: checking for cpu level" >&5
32976 echo $ECHO_N "checking for cpu level... $ECHO_C" >&6; }
32977 # Check whether --enable-cpu-level was given.
32978 if test "${enable_cpu_level+set}" = set; then
32979 enableval=$enable_cpu_level; case "$enableval" in
32981 { echo "$as_me:$LINENO: result: 3" >&5
32982 echo "${ECHO_T}3" >&6; }
32983 cat >>confdefs.h <<\_ACEOF
32984 #define BX_CPU_LEVEL 3
32985 _ACEOF
32987 cat >>confdefs.h <<\_ACEOF
32988 #define BX_CPU_LEVEL_HACKED 3
32989 _ACEOF
32993 { echo "$as_me:$LINENO: result: 4" >&5
32994 echo "${ECHO_T}4" >&6; }
32995 cat >>confdefs.h <<\_ACEOF
32996 #define BX_CPU_LEVEL 4
32997 _ACEOF
32999 cat >>confdefs.h <<\_ACEOF
33000 #define BX_CPU_LEVEL_HACKED 4
33001 _ACEOF
33005 { echo "$as_me:$LINENO: result: 5" >&5
33006 echo "${ECHO_T}5" >&6; }
33007 cat >>confdefs.h <<\_ACEOF
33008 #define BX_CPU_LEVEL 5
33009 _ACEOF
33011 cat >>confdefs.h <<\_ACEOF
33012 #define BX_CPU_LEVEL_HACKED 5
33013 _ACEOF
33017 { echo "$as_me:$LINENO: result: 6" >&5
33018 echo "${ECHO_T}6" >&6; }
33019 cat >>confdefs.h <<\_ACEOF
33020 #define BX_CPU_LEVEL 6
33021 _ACEOF
33023 cat >>confdefs.h <<\_ACEOF
33024 #define BX_CPU_LEVEL_HACKED 6
33025 _ACEOF
33029 echo " "
33030 echo "ERROR: you must supply a valid CPU level to --enable-cpu-level"
33031 exit 1
33033 esac
33034 bx_cpu_level=$enableval
33035 if test "$use_smp" = 1 -a "$enableval" -lt 6; then
33036 echo "ERROR: with >1 processor, use --enable-cpu-level=6"
33037 exit 1
33040 else
33042 # for multiprocessors or x86-64, cpu level must be 6
33043 if test "$use_smp" = 1 -o "$use_x86_64" = 1; then
33044 { echo "$as_me:$LINENO: result: 6" >&5
33045 echo "${ECHO_T}6" >&6; }
33046 cat >>confdefs.h <<\_ACEOF
33047 #define BX_CPU_LEVEL 6
33048 _ACEOF
33050 cat >>confdefs.h <<\_ACEOF
33051 #define BX_CPU_LEVEL_HACKED 6
33052 _ACEOF
33054 bx_cpu_level=6
33055 else
33056 { echo "$as_me:$LINENO: result: 5" >&5
33057 echo "${ECHO_T}5" >&6; }
33058 cat >>confdefs.h <<\_ACEOF
33059 #define BX_CPU_LEVEL 5
33060 _ACEOF
33062 cat >>confdefs.h <<\_ACEOF
33063 #define BX_CPU_LEVEL_HACKED 5
33064 _ACEOF
33066 bx_cpu_level=5
33074 { echo "$as_me:$LINENO: checking for APIC support" >&5
33075 echo $ECHO_N "checking for APIC support... $ECHO_C" >&6; }
33076 # Check whether --enable-apic was given.
33077 if test "${enable_apic+set}" = set; then
33078 enableval=$enable_apic; if test "$enableval" = yes; then
33079 { echo "$as_me:$LINENO: result: yes" >&5
33080 echo "${ECHO_T}yes" >&6; }
33081 cat >>confdefs.h <<\_ACEOF
33082 #define BX_SUPPORT_APIC 1
33083 _ACEOF
33085 IOAPIC_OBJS='ioapic.o'
33086 else
33087 { echo "$as_me:$LINENO: result: no" >&5
33088 echo "${ECHO_T}no" >&6; }
33089 if test "$use_smp" = 1; then
33090 echo "ERROR: With SMP configuration you must use --enable-apic"
33091 exit 1
33093 cat >>confdefs.h <<\_ACEOF
33094 #define BX_SUPPORT_APIC 0
33095 _ACEOF
33097 IOAPIC_OBJS=''
33100 else
33102 if test "$use_smp" = 1 -o "$bx_cpu_level" -gt 5; then
33103 # enable APIC by default, if SMP configuration or if cpulevel>5
33104 { echo "$as_me:$LINENO: result: yes" >&5
33105 echo "${ECHO_T}yes" >&6; }
33106 cat >>confdefs.h <<\_ACEOF
33107 #define BX_SUPPORT_APIC 1
33108 _ACEOF
33110 IOAPIC_OBJS='ioapic.o'
33111 else
33112 { echo "$as_me:$LINENO: result: no" >&5
33113 echo "${ECHO_T}no" >&6; }
33114 cat >>confdefs.h <<\_ACEOF
33115 #define BX_SUPPORT_APIC 0
33116 _ACEOF
33118 IOAPIC_OBJS=''
33126 if test "${ac_cv_header_zlib_h+set}" = set; then
33127 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33128 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33129 if test "${ac_cv_header_zlib_h+set}" = set; then
33130 echo $ECHO_N "(cached) $ECHO_C" >&6
33132 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33133 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33134 else
33135 # Is the header compilable?
33136 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
33137 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
33138 cat >conftest.$ac_ext <<_ACEOF
33139 /* confdefs.h. */
33140 _ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33144 $ac_includes_default
33145 #include <zlib.h>
33146 _ACEOF
33147 rm -f conftest.$ac_objext
33148 if { (ac_try="$ac_compile"
33149 case "(($ac_try" in
33150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33151 *) ac_try_echo=$ac_try;;
33152 esac
33153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33154 (eval "$ac_compile") 2>conftest.er1
33155 ac_status=$?
33156 grep -v '^ *+' conftest.er1 >conftest.err
33157 rm -f conftest.er1
33158 cat conftest.err >&5
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); } && {
33161 test -z "$ac_c_werror_flag" ||
33162 test ! -s conftest.err
33163 } && test -s conftest.$ac_objext; then
33164 ac_header_compiler=yes
33165 else
33166 echo "$as_me: failed program was:" >&5
33167 sed 's/^/| /' conftest.$ac_ext >&5
33169 ac_header_compiler=no
33172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33174 echo "${ECHO_T}$ac_header_compiler" >&6; }
33176 # Is the header present?
33177 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
33178 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
33179 cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h. */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h. */
33185 #include <zlib.h>
33186 _ACEOF
33187 if { (ac_try="$ac_cpp conftest.$ac_ext"
33188 case "(($ac_try" in
33189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190 *) ac_try_echo=$ac_try;;
33191 esac
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33194 ac_status=$?
33195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); } >/dev/null && {
33200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33201 test ! -s conftest.err
33202 }; then
33203 ac_header_preproc=yes
33204 else
33205 echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33208 ac_header_preproc=no
33211 rm -f conftest.err conftest.$ac_ext
33212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33213 echo "${ECHO_T}$ac_header_preproc" >&6; }
33215 # So? What about this header?
33216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33217 yes:no: )
33218 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33219 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33220 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
33221 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
33222 ac_header_preproc=yes
33224 no:yes:* )
33225 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
33226 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
33227 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
33228 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
33229 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
33230 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
33231 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
33232 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33233 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
33234 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
33235 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
33236 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
33239 esac
33240 { echo "$as_me:$LINENO: checking for zlib.h" >&5
33241 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
33242 if test "${ac_cv_header_zlib_h+set}" = set; then
33243 echo $ECHO_N "(cached) $ECHO_C" >&6
33244 else
33245 ac_cv_header_zlib_h=$ac_header_preproc
33247 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
33248 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
33251 if test $ac_cv_header_zlib_h = yes; then
33252 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
33253 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
33254 if test "${ac_cv_lib_z_gzopen+set}" = set; then
33255 echo $ECHO_N "(cached) $ECHO_C" >&6
33256 else
33257 ac_check_lib_save_LIBS=$LIBS
33258 LIBS="-lz $LIBS"
33259 cat >conftest.$ac_ext <<_ACEOF
33260 /* confdefs.h. */
33261 _ACEOF
33262 cat confdefs.h >>conftest.$ac_ext
33263 cat >>conftest.$ac_ext <<_ACEOF
33264 /* end confdefs.h. */
33266 /* Override any GCC internal prototype to avoid an error.
33267 Use char because int might match the return type of a GCC
33268 builtin and then its argument prototype would still apply. */
33269 #ifdef __cplusplus
33270 extern "C"
33271 #endif
33272 char gzopen ();
33274 main ()
33276 return gzopen ();
33278 return 0;
33280 _ACEOF
33281 rm -f conftest.$ac_objext conftest$ac_exeext
33282 if { (ac_try="$ac_link"
33283 case "(($ac_try" in
33284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33285 *) ac_try_echo=$ac_try;;
33286 esac
33287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33288 (eval "$ac_link") 2>conftest.er1
33289 ac_status=$?
33290 grep -v '^ *+' conftest.er1 >conftest.err
33291 rm -f conftest.er1
33292 cat conftest.err >&5
33293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294 (exit $ac_status); } && {
33295 test -z "$ac_c_werror_flag" ||
33296 test ! -s conftest.err
33297 } && test -s conftest$ac_exeext &&
33298 $as_test_x conftest$ac_exeext; then
33299 ac_cv_lib_z_gzopen=yes
33300 else
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 ac_cv_lib_z_gzopen=no
33307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33308 conftest$ac_exeext conftest.$ac_ext
33309 LIBS=$ac_check_lib_save_LIBS
33311 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
33312 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
33313 if test $ac_cv_lib_z_gzopen = yes; then
33314 cat >>confdefs.h <<\_ACEOF
33315 #define BX_HAVE_ZLIB 1
33316 _ACEOF
33324 { echo "$as_me:$LINENO: checking for compressed hard disk image support" >&5
33325 echo $ECHO_N "checking for compressed hard disk image support... $ECHO_C" >&6; }
33326 # Check whether --enable-compressed-hd was given.
33327 if test "${enable_compressed_hd+set}" = set; then
33328 enableval=$enable_compressed_hd; if test "$enableval" = yes; then
33329 { echo "$as_me:$LINENO: result: yes" >&5
33330 echo "${ECHO_T}yes" >&6; }
33331 cat >>confdefs.h <<\_ACEOF
33332 #define BX_COMPRESSED_HD_SUPPORT 1
33333 _ACEOF
33335 LIBS="$LIBS -lz"
33336 else
33337 { echo "$as_me:$LINENO: result: no" >&5
33338 echo "${ECHO_T}no" >&6; }
33339 cat >>confdefs.h <<\_ACEOF
33340 #define BX_COMPRESSED_HD_SUPPORT 0
33341 _ACEOF
33344 else
33346 { echo "$as_me:$LINENO: result: no" >&5
33347 echo "${ECHO_T}no" >&6; }
33348 cat >>confdefs.h <<\_ACEOF
33349 #define BX_COMPRESSED_HD_SUPPORT 0
33350 _ACEOF
33358 { echo "$as_me:$LINENO: checking for NE2000 support" >&5
33359 echo $ECHO_N "checking for NE2000 support... $ECHO_C" >&6; }
33360 # Check whether --enable-ne2000 was given.
33361 if test "${enable_ne2000+set}" = set; then
33362 enableval=$enable_ne2000; if test "$enableval" = yes; then
33363 { echo "$as_me:$LINENO: result: yes" >&5
33364 echo "${ECHO_T}yes" >&6; }
33365 cat >>confdefs.h <<\_ACEOF
33366 #define BX_SUPPORT_NE2K 1
33367 _ACEOF
33369 NE2K_OBJS='ne2k.o'
33370 networking=yes
33371 else
33372 { echo "$as_me:$LINENO: result: no" >&5
33373 echo "${ECHO_T}no" >&6; }
33374 cat >>confdefs.h <<\_ACEOF
33375 #define BX_SUPPORT_NE2K 0
33376 _ACEOF
33378 NE2K_OBJS=''
33379 networking=no
33381 else
33383 { echo "$as_me:$LINENO: result: no" >&5
33384 echo "${ECHO_T}no" >&6; }
33385 cat >>confdefs.h <<\_ACEOF
33386 #define BX_SUPPORT_NE2K 0
33387 _ACEOF
33389 NE2K_OBJS=''
33390 networking=no
33397 { echo "$as_me:$LINENO: checking for ACPI support" >&5
33398 echo $ECHO_N "checking for ACPI support... $ECHO_C" >&6; }
33399 # Check whether --enable-acpi was given.
33400 if test "${enable_acpi+set}" = set; then
33401 enableval=$enable_acpi; if test "$enableval" = yes; then
33402 { echo "$as_me:$LINENO: result: yes" >&5
33403 echo "${ECHO_T}yes" >&6; }
33404 cat >>confdefs.h <<\_ACEOF
33405 #define BX_SUPPORT_ACPI 1
33406 _ACEOF
33408 else
33409 { echo "$as_me:$LINENO: result: no" >&5
33410 echo "${ECHO_T}no" >&6; }
33411 cat >>confdefs.h <<\_ACEOF
33412 #define BX_SUPPORT_ACPI 0
33413 _ACEOF
33416 else
33418 { echo "$as_me:$LINENO: result: no" >&5
33419 echo "${ECHO_T}no" >&6; }
33420 cat >>confdefs.h <<\_ACEOF
33421 #define BX_SUPPORT_ACPI 0
33422 _ACEOF
33430 { echo "$as_me:$LINENO: checking for i440FX PCI support" >&5
33431 echo $ECHO_N "checking for i440FX PCI support... $ECHO_C" >&6; }
33432 # Check whether --enable-pci was given.
33433 if test "${enable_pci+set}" = set; then
33434 enableval=$enable_pci; if test "$enableval" = yes; then
33435 { echo "$as_me:$LINENO: result: yes" >&5
33436 echo "${ECHO_T}yes" >&6; }
33437 cat >>confdefs.h <<\_ACEOF
33438 #define BX_SUPPORT_PCI 1
33439 _ACEOF
33441 pci=1
33442 PCI_OBJ='pci.o pci2isa.o pci_ide.o pcivga.o acpi.o'
33443 else
33444 { echo "$as_me:$LINENO: result: no" >&5
33445 echo "${ECHO_T}no" >&6; }
33446 cat >>confdefs.h <<\_ACEOF
33447 #define BX_SUPPORT_PCI 0
33448 _ACEOF
33450 pci=0
33451 PCI_OBJ=''
33453 else
33455 { echo "$as_me:$LINENO: result: no" >&5
33456 echo "${ECHO_T}no" >&6; }
33457 cat >>confdefs.h <<\_ACEOF
33458 #define BX_SUPPORT_PCI 0
33459 _ACEOF
33461 pci=0
33462 PCI_OBJ=''
33470 # PCI host device support
33472 { echo "$as_me:$LINENO: checking for PCI host device mapping support" >&5
33473 echo $ECHO_N "checking for PCI host device mapping support... $ECHO_C" >&6; }
33474 # Check whether --enable-pcidev was given.
33475 if test "${enable_pcidev+set}" = set; then
33476 enableval=$enable_pcidev;
33477 if test "$enableval" = "yes"; then
33478 { echo "$as_me:$LINENO: result: yes" >&5
33479 echo "${ECHO_T}yes" >&6; }
33480 if test "$pci" != "1"; then
33481 { { echo "$as_me:$LINENO: error: PCI host device mapping requires PCI support" >&5
33482 echo "$as_me: error: PCI host device mapping requires PCI support" >&2;}
33483 { (exit 1); exit 1; }; }
33485 case "$target" in
33486 *-linux*)
33487 { echo "$as_me:$LINENO: Linux detected as host for PCI host device mapping" >&5
33488 echo "$as_me: Linux detected as host for PCI host device mapping" >&6;}
33489 linux_version=`uname -r`
33490 case "$linux_version" in
33491 2.4*)
33492 PCIDEV_MODULE_MAKE_ALL="all-kernel24"
33493 KERNEL_MODULE_SUFFIX="o"
33495 2.6*)
33496 PCIDEV_MODULE_MAKE_ALL="all-kernel26"
33497 KERNEL_MODULE_SUFFIX="ko"
33500 { { echo "$as_me:$LINENO: error: Linux kernel 2.4 or 2.6 is required" >&5
33501 echo "$as_me: error: Linux kernel 2.4 or 2.6 is required" >&2;}
33502 { (exit 1); exit 1; }; }
33504 esac
33505 KERNELDIR="/lib/modules/$linux_version/build"
33506 LSMOD="lsmod"
33507 INSMOD="insmod"
33508 RMMOD="rmmod"
33509 DEPMOD="depmod"
33519 { { echo "$as_me:$LINENO: error: PCI host device mapping requires Linux as host" >&5
33520 echo "$as_me: error: PCI host device mapping requires Linux as host" >&2;}
33521 { (exit 1); exit 1; }; }
33523 esac
33524 cat >>confdefs.h <<\_ACEOF
33525 #define BX_SUPPORT_PCIDEV 1
33526 _ACEOF
33528 PCI_OBJ="$PCI_OBJ pcidev.o"
33529 else
33530 { echo "$as_me:$LINENO: result: no" >&5
33531 echo "${ECHO_T}no" >&6; }
33532 cat >>confdefs.h <<\_ACEOF
33533 #define BX_SUPPORT_PCIDEV 0
33534 _ACEOF
33538 else
33540 { echo "$as_me:$LINENO: result: no" >&5
33541 echo "${ECHO_T}no" >&6; }
33542 cat >>confdefs.h <<\_ACEOF
33543 #define BX_SUPPORT_PCIDEV 0
33544 _ACEOF
33551 USBDEV_OBJS=''
33552 SCSI_OBJS=''
33553 { echo "$as_me:$LINENO: checking for limited USB support" >&5
33554 echo $ECHO_N "checking for limited USB support... $ECHO_C" >&6; }
33555 # Check whether --enable-usb was given.
33556 if test "${enable_usb+set}" = set; then
33557 enableval=$enable_usb; if test "$enableval" = yes; then
33558 { echo "$as_me:$LINENO: result: yes" >&5
33559 echo "${ECHO_T}yes" >&6; }
33560 cat >>confdefs.h <<\_ACEOF
33561 #define BX_SUPPORT_PCIUSB 1
33562 _ACEOF
33564 PCI_OBJ="$PCI_OBJ pciusb.o"
33565 USBDEV_OBJS="usb_hid.o usb_msd.o"
33566 SCSI_OBJS="scsi_device.o"
33567 else
33568 { echo "$as_me:$LINENO: result: no" >&5
33569 echo "${ECHO_T}no" >&6; }
33570 cat >>confdefs.h <<\_ACEOF
33571 #define BX_SUPPORT_PCIUSB 0
33572 _ACEOF
33575 else
33577 { echo "$as_me:$LINENO: result: no" >&5
33578 echo "${ECHO_T}no" >&6; }
33579 cat >>confdefs.h <<\_ACEOF
33580 #define BX_SUPPORT_PCIUSB 0
33581 _ACEOF
33591 { echo "$as_me:$LINENO: checking for PCI pseudo NIC support" >&5
33592 echo $ECHO_N "checking for PCI pseudo NIC support... $ECHO_C" >&6; }
33593 # Check whether --enable-pnic was given.
33594 if test "${enable_pnic+set}" = set; then
33595 enableval=$enable_pnic; if test "$enableval" = yes; then
33596 { echo "$as_me:$LINENO: result: yes" >&5
33597 echo "${ECHO_T}yes" >&6; }
33598 cat >>confdefs.h <<\_ACEOF
33599 #define BX_SUPPORT_PCIPNIC 1
33600 _ACEOF
33602 PCI_OBJ="$PCI_OBJ pcipnic.o"
33603 networking=yes
33604 else
33605 { echo "$as_me:$LINENO: result: no" >&5
33606 echo "${ECHO_T}no" >&6; }
33607 cat >>confdefs.h <<\_ACEOF
33608 #define BX_SUPPORT_PCIPNIC 0
33609 _ACEOF
33612 else
33614 { echo "$as_me:$LINENO: result: no" >&5
33615 echo "${ECHO_T}no" >&6; }
33616 cat >>confdefs.h <<\_ACEOF
33617 #define BX_SUPPORT_PCIPNIC 0
33618 _ACEOF
33625 NETLOW_OBJS=''
33626 if test "$networking" = yes; then
33627 NETLOW_OBJS='eth.o eth_null.o eth_vnet.o'
33628 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33629 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33630 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33631 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33634 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33635 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33636 else
33637 # Is the header compilable?
33638 { echo "$as_me:$LINENO: checking net/bpf.h usability" >&5
33639 echo $ECHO_N "checking net/bpf.h usability... $ECHO_C" >&6; }
33640 cat >conftest.$ac_ext <<_ACEOF
33641 /* confdefs.h. */
33642 _ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33646 $ac_includes_default
33647 #include <net/bpf.h>
33648 _ACEOF
33649 rm -f conftest.$ac_objext
33650 if { (ac_try="$ac_compile"
33651 case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33654 esac
33655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_compile") 2>conftest.er1
33657 ac_status=$?
33658 grep -v '^ *+' conftest.er1 >conftest.err
33659 rm -f conftest.er1
33660 cat conftest.err >&5
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); } && {
33663 test -z "$ac_c_werror_flag" ||
33664 test ! -s conftest.err
33665 } && test -s conftest.$ac_objext; then
33666 ac_header_compiler=yes
33667 else
33668 echo "$as_me: failed program was:" >&5
33669 sed 's/^/| /' conftest.$ac_ext >&5
33671 ac_header_compiler=no
33674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33676 echo "${ECHO_T}$ac_header_compiler" >&6; }
33678 # Is the header present?
33679 { echo "$as_me:$LINENO: checking net/bpf.h presence" >&5
33680 echo $ECHO_N "checking net/bpf.h presence... $ECHO_C" >&6; }
33681 cat >conftest.$ac_ext <<_ACEOF
33682 /* confdefs.h. */
33683 _ACEOF
33684 cat confdefs.h >>conftest.$ac_ext
33685 cat >>conftest.$ac_ext <<_ACEOF
33686 /* end confdefs.h. */
33687 #include <net/bpf.h>
33688 _ACEOF
33689 if { (ac_try="$ac_cpp conftest.$ac_ext"
33690 case "(($ac_try" in
33691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33692 *) ac_try_echo=$ac_try;;
33693 esac
33694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33696 ac_status=$?
33697 grep -v '^ *+' conftest.er1 >conftest.err
33698 rm -f conftest.er1
33699 cat conftest.err >&5
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); } >/dev/null && {
33702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33703 test ! -s conftest.err
33704 }; then
33705 ac_header_preproc=yes
33706 else
33707 echo "$as_me: failed program was:" >&5
33708 sed 's/^/| /' conftest.$ac_ext >&5
33710 ac_header_preproc=no
33713 rm -f conftest.err conftest.$ac_ext
33714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33715 echo "${ECHO_T}$ac_header_preproc" >&6; }
33717 # So? What about this header?
33718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33719 yes:no: )
33720 { echo "$as_me:$LINENO: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&5
33721 echo "$as_me: WARNING: net/bpf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33722 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the compiler's result" >&5
33723 echo "$as_me: WARNING: net/bpf.h: proceeding with the compiler's result" >&2;}
33724 ac_header_preproc=yes
33726 no:yes:* )
33727 { echo "$as_me:$LINENO: WARNING: net/bpf.h: present but cannot be compiled" >&5
33728 echo "$as_me: WARNING: net/bpf.h: present but cannot be compiled" >&2;}
33729 { echo "$as_me:$LINENO: WARNING: net/bpf.h: check for missing prerequisite headers?" >&5
33730 echo "$as_me: WARNING: net/bpf.h: check for missing prerequisite headers?" >&2;}
33731 { echo "$as_me:$LINENO: WARNING: net/bpf.h: see the Autoconf documentation" >&5
33732 echo "$as_me: WARNING: net/bpf.h: see the Autoconf documentation" >&2;}
33733 { echo "$as_me:$LINENO: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&5
33734 echo "$as_me: WARNING: net/bpf.h: section \"Present But Cannot Be Compiled\"" >&2;}
33735 { echo "$as_me:$LINENO: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&5
33736 echo "$as_me: WARNING: net/bpf.h: proceeding with the preprocessor's result" >&2;}
33737 { echo "$as_me:$LINENO: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&5
33738 echo "$as_me: WARNING: net/bpf.h: in the future, the compiler will take precedence" >&2;}
33741 esac
33742 { echo "$as_me:$LINENO: checking for net/bpf.h" >&5
33743 echo $ECHO_N "checking for net/bpf.h... $ECHO_C" >&6; }
33744 if test "${ac_cv_header_net_bpf_h+set}" = set; then
33745 echo $ECHO_N "(cached) $ECHO_C" >&6
33746 else
33747 ac_cv_header_net_bpf_h=$ac_header_preproc
33749 { echo "$as_me:$LINENO: result: $ac_cv_header_net_bpf_h" >&5
33750 echo "${ECHO_T}$ac_cv_header_net_bpf_h" >&6; }
33753 if test $ac_cv_header_net_bpf_h = yes; then
33754 NETLOW_OBJS="$NETLOW_OBJS eth_fbsd.o"
33758 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33759 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33760 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33761 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33764 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33765 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33766 else
33767 # Is the header compilable?
33768 { echo "$as_me:$LINENO: checking netpacket/packet.h usability" >&5
33769 echo $ECHO_N "checking netpacket/packet.h usability... $ECHO_C" >&6; }
33770 cat >conftest.$ac_ext <<_ACEOF
33771 /* confdefs.h. */
33772 _ACEOF
33773 cat confdefs.h >>conftest.$ac_ext
33774 cat >>conftest.$ac_ext <<_ACEOF
33775 /* end confdefs.h. */
33776 $ac_includes_default
33777 #include <netpacket/packet.h>
33778 _ACEOF
33779 rm -f conftest.$ac_objext
33780 if { (ac_try="$ac_compile"
33781 case "(($ac_try" in
33782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33783 *) ac_try_echo=$ac_try;;
33784 esac
33785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33786 (eval "$ac_compile") 2>conftest.er1
33787 ac_status=$?
33788 grep -v '^ *+' conftest.er1 >conftest.err
33789 rm -f conftest.er1
33790 cat conftest.err >&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); } && {
33793 test -z "$ac_c_werror_flag" ||
33794 test ! -s conftest.err
33795 } && test -s conftest.$ac_objext; then
33796 ac_header_compiler=yes
33797 else
33798 echo "$as_me: failed program was:" >&5
33799 sed 's/^/| /' conftest.$ac_ext >&5
33801 ac_header_compiler=no
33804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33806 echo "${ECHO_T}$ac_header_compiler" >&6; }
33808 # Is the header present?
33809 { echo "$as_me:$LINENO: checking netpacket/packet.h presence" >&5
33810 echo $ECHO_N "checking netpacket/packet.h presence... $ECHO_C" >&6; }
33811 cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h. */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h. */
33817 #include <netpacket/packet.h>
33818 _ACEOF
33819 if { (ac_try="$ac_cpp conftest.$ac_ext"
33820 case "(($ac_try" in
33821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33822 *) ac_try_echo=$ac_try;;
33823 esac
33824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33826 ac_status=$?
33827 grep -v '^ *+' conftest.er1 >conftest.err
33828 rm -f conftest.er1
33829 cat conftest.err >&5
33830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831 (exit $ac_status); } >/dev/null && {
33832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33833 test ! -s conftest.err
33834 }; then
33835 ac_header_preproc=yes
33836 else
33837 echo "$as_me: failed program was:" >&5
33838 sed 's/^/| /' conftest.$ac_ext >&5
33840 ac_header_preproc=no
33843 rm -f conftest.err conftest.$ac_ext
33844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33845 echo "${ECHO_T}$ac_header_preproc" >&6; }
33847 # So? What about this header?
33848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33849 yes:no: )
33850 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&5
33851 echo "$as_me: WARNING: netpacket/packet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33852 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&5
33853 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the compiler's result" >&2;}
33854 ac_header_preproc=yes
33856 no:yes:* )
33857 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: present but cannot be compiled" >&5
33858 echo "$as_me: WARNING: netpacket/packet.h: present but cannot be compiled" >&2;}
33859 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&5
33860 echo "$as_me: WARNING: netpacket/packet.h: check for missing prerequisite headers?" >&2;}
33861 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: see the Autoconf documentation" >&5
33862 echo "$as_me: WARNING: netpacket/packet.h: see the Autoconf documentation" >&2;}
33863 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&5
33864 echo "$as_me: WARNING: netpacket/packet.h: section \"Present But Cannot Be Compiled\"" >&2;}
33865 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&5
33866 echo "$as_me: WARNING: netpacket/packet.h: proceeding with the preprocessor's result" >&2;}
33867 { echo "$as_me:$LINENO: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&5
33868 echo "$as_me: WARNING: netpacket/packet.h: in the future, the compiler will take precedence" >&2;}
33871 esac
33872 { echo "$as_me:$LINENO: checking for netpacket/packet.h" >&5
33873 echo $ECHO_N "checking for netpacket/packet.h... $ECHO_C" >&6; }
33874 if test "${ac_cv_header_netpacket_packet_h+set}" = set; then
33875 echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877 ac_cv_header_netpacket_packet_h=$ac_header_preproc
33879 { echo "$as_me:$LINENO: result: $ac_cv_header_netpacket_packet_h" >&5
33880 echo "${ECHO_T}$ac_cv_header_netpacket_packet_h" >&6; }
33883 if test $ac_cv_header_netpacket_packet_h = yes; then
33884 NETLOW_OBJS="$NETLOW_OBJS eth_linux.o"
33888 case "$target" in
33889 *-pc-windows* | *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
33890 NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
33892 *-macosx* | *-darwin*)
33893 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
33894 cat >>confdefs.h <<\_ACEOF
33895 #define HAVE_TUNTAP 1
33896 _ACEOF
33900 { echo "$as_me:$LINENO: checking for net/if.h" >&5
33901 echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6; }
33902 if test "${ac_cv_header_net_if_h+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904 else
33905 cat >conftest.$ac_ext <<_ACEOF
33906 /* confdefs.h. */
33907 _ACEOF
33908 cat confdefs.h >>conftest.$ac_ext
33909 cat >>conftest.$ac_ext <<_ACEOF
33910 /* end confdefs.h. */
33912 #include <sys/types.h>
33913 #include <sys/socket.h>
33916 #include <net/if.h>
33917 _ACEOF
33918 rm -f conftest.$ac_objext
33919 if { (ac_try="$ac_compile"
33920 case "(($ac_try" in
33921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33922 *) ac_try_echo=$ac_try;;
33923 esac
33924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33925 (eval "$ac_compile") 2>conftest.er1
33926 ac_status=$?
33927 grep -v '^ *+' conftest.er1 >conftest.err
33928 rm -f conftest.er1
33929 cat conftest.err >&5
33930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931 (exit $ac_status); } && {
33932 test -z "$ac_c_werror_flag" ||
33933 test ! -s conftest.err
33934 } && test -s conftest.$ac_objext; then
33935 ac_cv_header_net_if_h=yes
33936 else
33937 echo "$as_me: failed program was:" >&5
33938 sed 's/^/| /' conftest.$ac_ext >&5
33940 ac_cv_header_net_if_h=no
33943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33945 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
33946 echo "${ECHO_T}$ac_cv_header_net_if_h" >&6; }
33947 if test $ac_cv_header_net_if_h = yes; then
33949 use_ethertap=yes
33950 cat >>confdefs.h <<\_ACEOF
33951 #define BX_HAVE_NET_IF_H 1
33952 _ACEOF
33958 { echo "$as_me:$LINENO: checking for linux/netlink.h" >&5
33959 echo $ECHO_N "checking for linux/netlink.h... $ECHO_C" >&6; }
33960 if test "${ac_cv_header_linux_netlink_h+set}" = set; then
33961 echo $ECHO_N "(cached) $ECHO_C" >&6
33962 else
33963 cat >conftest.$ac_ext <<_ACEOF
33964 /* confdefs.h. */
33965 _ACEOF
33966 cat confdefs.h >>conftest.$ac_ext
33967 cat >>conftest.$ac_ext <<_ACEOF
33968 /* end confdefs.h. */
33970 #include <asm/types.h>
33971 #include <sys/socket.h>
33974 #include <linux/netlink.h>
33975 _ACEOF
33976 rm -f conftest.$ac_objext
33977 if { (ac_try="$ac_compile"
33978 case "(($ac_try" in
33979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33980 *) ac_try_echo=$ac_try;;
33981 esac
33982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33983 (eval "$ac_compile") 2>conftest.er1
33984 ac_status=$?
33985 grep -v '^ *+' conftest.er1 >conftest.err
33986 rm -f conftest.er1
33987 cat conftest.err >&5
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); } && {
33990 test -z "$ac_c_werror_flag" ||
33991 test ! -s conftest.err
33992 } && test -s conftest.$ac_objext; then
33993 ac_cv_header_linux_netlink_h=yes
33994 else
33995 echo "$as_me: failed program was:" >&5
33996 sed 's/^/| /' conftest.$ac_ext >&5
33998 ac_cv_header_linux_netlink_h=no
34001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34003 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_netlink_h" >&5
34004 echo "${ECHO_T}$ac_cv_header_linux_netlink_h" >&6; }
34005 if test $ac_cv_header_linux_netlink_h = yes; then
34007 use_ethertap=yes
34013 if test "$use_ethertap" = yes; then
34014 NETLOW_OBJS="$NETLOW_OBJS eth_tap.o eth_vde.o"
34015 cat >>confdefs.h <<\_ACEOF
34016 #define HAVE_ETHERTAP 1
34017 _ACEOF
34019 cat >>confdefs.h <<\_ACEOF
34020 #define HAVE_VDE 1
34021 _ACEOF
34025 { echo "$as_me:$LINENO: checking for net/if_tun.h" >&5
34026 echo $ECHO_N "checking for net/if_tun.h... $ECHO_C" >&6; }
34027 if test "${ac_cv_header_net_if_tun_h+set}" = set; then
34028 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 else
34030 cat >conftest.$ac_ext <<_ACEOF
34031 /* confdefs.h. */
34032 _ACEOF
34033 cat confdefs.h >>conftest.$ac_ext
34034 cat >>conftest.$ac_ext <<_ACEOF
34035 /* end confdefs.h. */
34037 #include <sys/types.h>
34038 #include <sys/socket.h>
34039 #include <net/if.h>
34042 #include <net/if_tun.h>
34043 _ACEOF
34044 rm -f conftest.$ac_objext
34045 if { (ac_try="$ac_compile"
34046 case "(($ac_try" in
34047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34048 *) ac_try_echo=$ac_try;;
34049 esac
34050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34051 (eval "$ac_compile") 2>conftest.er1
34052 ac_status=$?
34053 grep -v '^ *+' conftest.er1 >conftest.err
34054 rm -f conftest.er1
34055 cat conftest.err >&5
34056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 (exit $ac_status); } && {
34058 test -z "$ac_c_werror_flag" ||
34059 test ! -s conftest.err
34060 } && test -s conftest.$ac_objext; then
34061 ac_cv_header_net_if_tun_h=yes
34062 else
34063 echo "$as_me: failed program was:" >&5
34064 sed 's/^/| /' conftest.$ac_ext >&5
34066 ac_cv_header_net_if_tun_h=no
34069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34071 { echo "$as_me:$LINENO: result: $ac_cv_header_net_if_tun_h" >&5
34072 echo "${ECHO_T}$ac_cv_header_net_if_tun_h" >&6; }
34073 if test $ac_cv_header_net_if_tun_h = yes; then
34075 use_tuntap=yes
34080 { echo "$as_me:$LINENO: checking for linux/if_tun.h" >&5
34081 echo $ECHO_N "checking for linux/if_tun.h... $ECHO_C" >&6; }
34082 if test "${ac_cv_header_linux_if_tun_h+set}" = set; then
34083 echo $ECHO_N "(cached) $ECHO_C" >&6
34084 else
34085 cat >conftest.$ac_ext <<_ACEOF
34086 /* confdefs.h. */
34087 _ACEOF
34088 cat confdefs.h >>conftest.$ac_ext
34089 cat >>conftest.$ac_ext <<_ACEOF
34090 /* end confdefs.h. */
34092 #include <asm/types.h>
34093 #include <sys/socket.h>
34096 #include <linux/if_tun.h>
34097 _ACEOF
34098 rm -f conftest.$ac_objext
34099 if { (ac_try="$ac_compile"
34100 case "(($ac_try" in
34101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34102 *) ac_try_echo=$ac_try;;
34103 esac
34104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34105 (eval "$ac_compile") 2>conftest.er1
34106 ac_status=$?
34107 grep -v '^ *+' conftest.er1 >conftest.err
34108 rm -f conftest.er1
34109 cat conftest.err >&5
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); } && {
34112 test -z "$ac_c_werror_flag" ||
34113 test ! -s conftest.err
34114 } && test -s conftest.$ac_objext; then
34115 ac_cv_header_linux_if_tun_h=yes
34116 else
34117 echo "$as_me: failed program was:" >&5
34118 sed 's/^/| /' conftest.$ac_ext >&5
34120 ac_cv_header_linux_if_tun_h=no
34123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34125 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_tun_h" >&5
34126 echo "${ECHO_T}$ac_cv_header_linux_if_tun_h" >&6; }
34127 if test $ac_cv_header_linux_if_tun_h = yes; then
34129 use_tuntap=yes
34134 if test "$use_tuntap" = yes; then
34135 NETLOW_OBJS="$NETLOW_OBJS eth_tuntap.o"
34136 cat >>confdefs.h <<\_ACEOF
34137 #define HAVE_TUNTAP 1
34138 _ACEOF
34143 esac
34144 cat >>confdefs.h <<\_ACEOF
34145 #define BX_NETWORKING 1
34146 _ACEOF
34148 else
34149 cat >>confdefs.h <<\_ACEOF
34150 #define BX_NETWORKING 0
34151 _ACEOF
34158 { echo "$as_me:$LINENO: checking for large pages support" >&5
34159 echo $ECHO_N "checking for large pages support... $ECHO_C" >&6; }
34160 # Check whether --enable-large-pages was given.
34161 if test "${enable_large_pages+set}" = set; then
34162 enableval=$enable_large_pages; if test "$enableval" = yes; then
34163 { echo "$as_me:$LINENO: result: yes" >&5
34164 echo "${ECHO_T}yes" >&6; }
34165 cat >>confdefs.h <<\_ACEOF
34166 #define BX_SUPPORT_LARGE_PAGES 1
34167 _ACEOF
34169 support_large_pages=1
34170 else
34171 { echo "$as_me:$LINENO: result: no" >&5
34172 echo "${ECHO_T}no" >&6; }
34173 cat >>confdefs.h <<\_ACEOF
34174 #define BX_SUPPORT_LARGE_PAGES 0
34175 _ACEOF
34177 support_large_pages=0
34179 else
34181 if test "$bx_cpu_level" -gt 4; then
34182 { echo "$as_me:$LINENO: result: yes" >&5
34183 echo "${ECHO_T}yes" >&6; }
34184 cat >>confdefs.h <<\_ACEOF
34185 #define BX_SUPPORT_LARGE_PAGES 1
34186 _ACEOF
34188 support_large_pages=1
34189 else
34190 { echo "$as_me:$LINENO: result: no" >&5
34191 echo "${ECHO_T}no" >&6; }
34192 cat >>confdefs.h <<\_ACEOF
34193 #define BX_SUPPORT_LARGE_PAGES 0
34194 _ACEOF
34196 support_large_pages=0
34204 { echo "$as_me:$LINENO: checking for PAE support" >&5
34205 echo $ECHO_N "checking for PAE support... $ECHO_C" >&6; }
34206 # Check whether --enable-pae was given.
34207 if test "${enable_pae+set}" = set; then
34208 enableval=$enable_pae; if test "$enableval" = yes; then
34209 { echo "$as_me:$LINENO: result: yes" >&5
34210 echo "${ECHO_T}yes" >&6; }
34211 cat >>confdefs.h <<\_ACEOF
34212 #define BX_SUPPORT_PAE 1
34213 _ACEOF
34215 support_pae=1
34216 else
34217 { echo "$as_me:$LINENO: result: no" >&5
34218 echo "${ECHO_T}no" >&6; }
34219 cat >>confdefs.h <<\_ACEOF
34220 #define BX_SUPPORT_PAE 0
34221 _ACEOF
34223 support_pae=0
34225 else
34227 if test "$bx_cpu_level" -gt 5; then
34228 { echo "$as_me:$LINENO: result: yes" >&5
34229 echo "${ECHO_T}yes" >&6; }
34230 cat >>confdefs.h <<\_ACEOF
34231 #define BX_SUPPORT_PAE 1
34232 _ACEOF
34234 support_pae=1
34235 else
34236 { echo "$as_me:$LINENO: result: no" >&5
34237 echo "${ECHO_T}no" >&6; }
34238 cat >>confdefs.h <<\_ACEOF
34239 #define BX_SUPPORT_PAE 0
34240 _ACEOF
34242 support_pae=0
34249 { echo "$as_me:$LINENO: checking for global pages support" >&5
34250 echo $ECHO_N "checking for global pages support... $ECHO_C" >&6; }
34251 # Check whether --enable-global-pages was given.
34252 if test "${enable_global_pages+set}" = set; then
34253 enableval=$enable_global_pages; if test "$enableval" = yes; then
34254 { echo "$as_me:$LINENO: result: yes" >&5
34255 echo "${ECHO_T}yes" >&6; }
34256 cat >>confdefs.h <<\_ACEOF
34257 #define BX_SUPPORT_GLOBAL_PAGES 1
34258 _ACEOF
34260 support_global_pages=1
34261 else
34262 { echo "$as_me:$LINENO: result: no" >&5
34263 echo "${ECHO_T}no" >&6; }
34264 cat >>confdefs.h <<\_ACEOF
34265 #define BX_SUPPORT_GLOBAL_PAGES 0
34266 _ACEOF
34268 support_global_pages=0
34270 else
34272 if test "$bx_cpu_level" -gt 5; then
34273 # enable by default
34274 { echo "$as_me:$LINENO: result: yes" >&5
34275 echo "${ECHO_T}yes" >&6; }
34276 cat >>confdefs.h <<\_ACEOF
34277 #define BX_SUPPORT_GLOBAL_PAGES 1
34278 _ACEOF
34280 support_global_pages=1
34281 else
34282 { echo "$as_me:$LINENO: result: no" >&5
34283 echo "${ECHO_T}no" >&6; }
34284 cat >>confdefs.h <<\_ACEOF
34285 #define BX_SUPPORT_GLOBAL_PAGES 0
34286 _ACEOF
34288 support_global_pages=0
34295 { echo "$as_me:$LINENO: checking for long mode 1G pages support" >&5
34296 echo $ECHO_N "checking for long mode 1G pages support... $ECHO_C" >&6; }
34297 # Check whether --enable-1g-pages was given.
34298 if test "${enable_1g_pages+set}" = set; then
34299 enableval=$enable_1g_pages; if test "$enableval" = yes; then
34300 { echo "$as_me:$LINENO: result: yes" >&5
34301 echo "${ECHO_T}yes" >&6; }
34302 cat >>confdefs.h <<\_ACEOF
34303 #define BX_SUPPORT_1G_PAGES 1
34304 _ACEOF
34306 support_1g_pages=1
34307 else
34308 { echo "$as_me:$LINENO: result: no" >&5
34309 echo "${ECHO_T}no" >&6; }
34310 cat >>confdefs.h <<\_ACEOF
34311 #define BX_SUPPORT_1G_PAGES 0
34312 _ACEOF
34314 support_1g_pages=0
34316 else
34318 { echo "$as_me:$LINENO: result: no" >&5
34319 echo "${ECHO_T}no" >&6; }
34320 cat >>confdefs.h <<\_ACEOF
34321 #define BX_SUPPORT_1G_PAGES 0
34322 _ACEOF
34324 support_1g_pages=0
34330 if test "$support_1g_pages" = 1 -a "$use_x86_64" = 0; then
34331 { { echo "$as_me:$LINENO: error: x86-64 mode is required for 1G pages support" >&5
34332 echo "$as_me: error: x86-64 mode is required for 1G pages support" >&2;}
34333 { (exit 1); exit 1; }; }
34336 if test "$bx_cpu_level" -lt 4 -a "$support_large_pages" = 1; then
34337 { { echo "$as_me:$LINENO: error: for large paging support the CPU level must be >= 4" >&5
34338 echo "$as_me: error: for large paging support the CPU level must be >= 4" >&2;}
34339 { (exit 1); exit 1; }; }
34342 if test "$bx_cpu_level" -lt 5 -a "$support_pae" = 1; then
34343 { { echo "$as_me:$LINENO: error: for PAE support the CPU level must be >= 5" >&5
34344 echo "$as_me: error: for PAE support the CPU level must be >= 5" >&2;}
34345 { (exit 1); exit 1; }; }
34348 if test "$bx_cpu_level" -lt 5 -a "$support_global_pages" = 1; then
34349 { { echo "$as_me:$LINENO: error: for Global Pages support the CPU level must be >= 5" >&5
34350 echo "$as_me: error: for Global Pages support the CPU level must be >= 5" >&2;}
34351 { (exit 1); exit 1; }; }
34354 { echo "$as_me:$LINENO: checking for MTRRs support" >&5
34355 echo $ECHO_N "checking for MTRRs support... $ECHO_C" >&6; }
34356 # Check whether --enable-mtrr was given.
34357 if test "${enable_mtrr+set}" = set; then
34358 enableval=$enable_mtrr; if test "$enableval" = yes; then
34359 { echo "$as_me:$LINENO: result: yes" >&5
34360 echo "${ECHO_T}yes" >&6; }
34361 cat >>confdefs.h <<\_ACEOF
34362 #define BX_SUPPORT_MTRR 1
34363 _ACEOF
34365 else
34366 { echo "$as_me:$LINENO: result: no" >&5
34367 echo "${ECHO_T}no" >&6; }
34368 cat >>confdefs.h <<\_ACEOF
34369 #define BX_SUPPORT_MTRR 0
34370 _ACEOF
34373 else
34375 if test "$bx_cpu_level" -gt 5; then
34376 # enable by default
34377 { echo "$as_me:$LINENO: result: yes" >&5
34378 echo "${ECHO_T}yes" >&6; }
34379 cat >>confdefs.h <<\_ACEOF
34380 #define BX_SUPPORT_MTRR 1
34381 _ACEOF
34383 else
34384 { echo "$as_me:$LINENO: result: no" >&5
34385 echo "${ECHO_T}no" >&6; }
34386 cat >>confdefs.h <<\_ACEOF
34387 #define BX_SUPPORT_MTRR 0
34388 _ACEOF
34396 { echo "$as_me:$LINENO: checking for repeated IO and mem copy speedups" >&5
34397 echo $ECHO_N "checking for repeated IO and mem copy speedups... $ECHO_C" >&6; }
34398 # Check whether --enable-repeat-speedups was given.
34399 if test "${enable_repeat_speedups+set}" = set; then
34400 enableval=$enable_repeat_speedups; if test "$enableval" = yes; then
34401 { echo "$as_me:$LINENO: result: yes" >&5
34402 echo "${ECHO_T}yes" >&6; }
34403 speedup_repeat=1
34404 else
34405 { echo "$as_me:$LINENO: result: no" >&5
34406 echo "${ECHO_T}no" >&6; }
34407 speedup_repeat=0
34409 else
34411 { echo "$as_me:$LINENO: result: no" >&5
34412 echo "${ECHO_T}no" >&6; }
34413 speedup_repeat=0
34419 { echo "$as_me:$LINENO: checking for instruction trace cache support" >&5
34420 echo $ECHO_N "checking for instruction trace cache support... $ECHO_C" >&6; }
34421 # Check whether --enable-trace-cache was given.
34422 if test "${enable_trace_cache+set}" = set; then
34423 enableval=$enable_trace_cache; if test "$enableval" = yes; then
34424 { echo "$as_me:$LINENO: result: yes" >&5
34425 echo "${ECHO_T}yes" >&6; }
34426 speedup_TraceCache=1
34427 else
34428 { echo "$as_me:$LINENO: result: no" >&5
34429 echo "${ECHO_T}no" >&6; }
34430 speedup_TraceCache=0
34432 else
34434 if test "$speedup_TraceCache " = 1; then
34435 { echo "$as_me:$LINENO: result: yes" >&5
34436 echo "${ECHO_T}yes" >&6; }
34437 speedup_TraceCache=1
34438 else
34439 { echo "$as_me:$LINENO: result: no" >&5
34440 echo "${ECHO_T}no" >&6; }
34441 speedup_TraceCache=0
34448 { echo "$as_me:$LINENO: checking for instruction cache support" >&5
34449 echo $ECHO_N "checking for instruction cache support... $ECHO_C" >&6; }
34450 # Check whether --enable-icache was given.
34451 if test "${enable_icache+set}" = set; then
34452 enableval=$enable_icache; if test "$enableval" = yes; then
34453 { echo "$as_me:$LINENO: result: yes" >&5
34454 echo "${ECHO_T}yes" >&6; }
34455 speedup_iCache=1
34456 else
34457 { echo "$as_me:$LINENO: result: no" >&5
34458 echo "${ECHO_T}no" >&6; }
34459 speedup_iCache=0
34461 else
34463 { echo "$as_me:$LINENO: result: no" >&5
34464 echo "${ECHO_T}no" >&6; }
34465 speedup_iCache=0
34471 { echo "$as_me:$LINENO: checking for gcc fast function calls optimization" >&5
34472 echo $ECHO_N "checking for gcc fast function calls optimization... $ECHO_C" >&6; }
34473 # Check whether --enable-fast-function-calls was given.
34474 if test "${enable_fast_function_calls+set}" = set; then
34475 enableval=$enable_fast_function_calls; if test "$enableval" = yes; then
34476 { echo "$as_me:$LINENO: result: yes" >&5
34477 echo "${ECHO_T}yes" >&6; }
34478 speedup_fastcall=1
34479 else
34480 { echo "$as_me:$LINENO: result: no" >&5
34481 echo "${ECHO_T}no" >&6; }
34482 speedup_fastcall=0
34484 else
34486 { echo "$as_me:$LINENO: result: no" >&5
34487 echo "${ECHO_T}no" >&6; }
34488 speedup_fastcall=0
34494 { echo "$as_me:$LINENO: checking for host specific inline assembly accelerations" >&5
34495 echo $ECHO_N "checking for host specific inline assembly accelerations... $ECHO_C" >&6; }
34496 # Check whether --enable-host-specific-asms was given.
34497 if test "${enable_host_specific_asms+set}" = set; then
34498 enableval=$enable_host_specific_asms; if test "$enableval" = yes; then
34499 { echo "$as_me:$LINENO: result: yes" >&5
34500 echo "${ECHO_T}yes" >&6; }
34501 speedup_host_specific_asms=1
34502 else
34503 { echo "$as_me:$LINENO: result: no" >&5
34504 echo "${ECHO_T}no" >&6; }
34505 speedup_host_specific_asms=0
34507 else
34509 { echo "$as_me:$LINENO: result: no" >&5
34510 echo "${ECHO_T}no" >&6; }
34511 speedup_host_specific_asms=0
34517 { echo "$as_me:$LINENO: checking whether to ignore bad MSR references" >&5
34518 echo $ECHO_N "checking whether to ignore bad MSR references... $ECHO_C" >&6; }
34519 # Check whether --enable-ignore-bad-msr was given.
34520 if test "${enable_ignore_bad_msr+set}" = set; then
34521 enableval=$enable_ignore_bad_msr; if test "$enableval" = yes; then
34522 { echo "$as_me:$LINENO: result: yes" >&5
34523 echo "${ECHO_T}yes" >&6; }
34524 cat >>confdefs.h <<\_ACEOF
34525 #define BX_IGNORE_BAD_MSR 1
34526 _ACEOF
34528 else
34529 { echo "$as_me:$LINENO: result: no" >&5
34530 echo "${ECHO_T}no" >&6; }
34531 cat >>confdefs.h <<\_ACEOF
34532 #define BX_IGNORE_BAD_MSR 0
34533 _ACEOF
34536 else
34538 { echo "$as_me:$LINENO: result: yes" >&5
34539 echo "${ECHO_T}yes" >&6; }
34540 cat >>confdefs.h <<\_ACEOF
34541 #define BX_IGNORE_BAD_MSR 1
34542 _ACEOF
34549 { echo "$as_me:$LINENO: checking for port e9 hack" >&5
34550 echo $ECHO_N "checking for port e9 hack... $ECHO_C" >&6; }
34551 # Check whether --enable-port-e9-hack was given.
34552 if test "${enable_port_e9_hack+set}" = set; then
34553 enableval=$enable_port_e9_hack; if test "$enableval" = yes; then
34554 { echo "$as_me:$LINENO: result: yes" >&5
34555 echo "${ECHO_T}yes" >&6; }
34556 cat >>confdefs.h <<\_ACEOF
34557 #define BX_PORT_E9_HACK 1
34558 _ACEOF
34560 else
34561 { echo "$as_me:$LINENO: result: no" >&5
34562 echo "${ECHO_T}no" >&6; }
34563 cat >>confdefs.h <<\_ACEOF
34564 #define BX_PORT_E9_HACK 0
34565 _ACEOF
34568 else
34570 { echo "$as_me:$LINENO: result: yes" >&5
34571 echo "${ECHO_T}yes" >&6; }
34572 cat >>confdefs.h <<\_ACEOF
34573 #define BX_PORT_E9_HACK 1
34574 _ACEOF
34581 { echo "$as_me:$LINENO: checking show IPS" >&5
34582 echo $ECHO_N "checking show IPS... $ECHO_C" >&6; }
34583 # Check whether --enable-show-ips was given.
34584 if test "${enable_show_ips+set}" = set; then
34585 enableval=$enable_show_ips; if test "$enableval" = yes; then
34586 { echo "$as_me:$LINENO: result: yes" >&5
34587 echo "${ECHO_T}yes" >&6; }
34588 cat >>confdefs.h <<\_ACEOF
34589 #define BX_SHOW_IPS 1
34590 _ACEOF
34592 else
34593 { echo "$as_me:$LINENO: result: no" >&5
34594 echo "${ECHO_T}no" >&6; }
34595 cat >>confdefs.h <<\_ACEOF
34596 #define BX_SHOW_IPS 0
34597 _ACEOF
34600 else
34602 { echo "$as_me:$LINENO: result: no" >&5
34603 echo "${ECHO_T}no" >&6; }
34604 cat >>confdefs.h <<\_ACEOF
34605 #define BX_SHOW_IPS 0
34606 _ACEOF
34613 { echo "$as_me:$LINENO: checking for use of .cpp as suffix" >&5
34614 echo $ECHO_N "checking for use of .cpp as suffix... $ECHO_C" >&6; }
34615 # Check whether --enable-cpp was given.
34616 if test "${enable_cpp+set}" = set; then
34617 enableval=$enable_cpp; if test "$enableval" = yes; then
34618 { echo "$as_me:$LINENO: result: yes" >&5
34619 echo "${ECHO_T}yes" >&6; }
34620 SUFFIX_LINE='.SUFFIXES: .cpp'
34621 CPP_SUFFIX='cpp'
34622 else
34623 { echo "$as_me:$LINENO: result: no" >&5
34624 echo "${ECHO_T}no" >&6; }
34625 SUFFIX_LINE='.SUFFIXES: .cc'
34626 CPP_SUFFIX='cc'
34628 else
34630 { echo "$as_me:$LINENO: result: no" >&5
34631 echo "${ECHO_T}no" >&6; }
34632 SUFFIX_LINE='.SUFFIXES: .cc'
34633 CPP_SUFFIX='cc'
34641 if test "$enable_cpp" = yes; then
34642 echo "moving .cc source files to .cpp"
34643 sourcefiles=`find . -name "*.cc" -print`
34644 if test "$sourcefiles" != ""; then
34645 for ccname in $sourcefiles
34647 cppname=`echo $ccname | sed -e "s/\.cc$/.cpp/"`
34648 echo "mv $ccname $cppname"
34649 mv $ccname $cppname
34650 done
34651 else
34652 echo "no more .cc source files to rename"
34658 { echo "$as_me:$LINENO: checking for Bochs internal debugger support" >&5
34659 echo $ECHO_N "checking for Bochs internal debugger support... $ECHO_C" >&6; }
34660 # Check whether --enable-debugger was given.
34661 if test "${enable_debugger+set}" = set; then
34662 enableval=$enable_debugger; if test "$enableval" = yes; then
34663 { echo "$as_me:$LINENO: result: yes" >&5
34664 echo "${ECHO_T}yes" >&6; }
34665 cat >>confdefs.h <<\_ACEOF
34666 #define BX_DEBUGGER 1
34667 _ACEOF
34669 DEBUGGER_VAR='$(DEBUGGER_LIB)'
34670 bx_debugger=1
34671 else
34672 { echo "$as_me:$LINENO: result: no" >&5
34673 echo "${ECHO_T}no" >&6; }
34674 cat >>confdefs.h <<\_ACEOF
34675 #define BX_DEBUGGER 0
34676 _ACEOF
34678 DEBUGGER_VAR=''
34679 bx_debugger=0
34682 else
34684 { echo "$as_me:$LINENO: result: no" >&5
34685 echo "${ECHO_T}no" >&6; }
34686 cat >>confdefs.h <<\_ACEOF
34687 #define BX_DEBUGGER 0
34688 _ACEOF
34690 DEBUGGER_VAR=''
34691 bx_debugger=0
34698 { echo "$as_me:$LINENO: checking for disassembler support" >&5
34699 echo $ECHO_N "checking for disassembler support... $ECHO_C" >&6; }
34700 # Check whether --enable-disasm was given.
34701 if test "${enable_disasm+set}" = set; then
34702 enableval=$enable_disasm; if test "$enableval" = yes; then
34703 { echo "$as_me:$LINENO: result: yes" >&5
34704 echo "${ECHO_T}yes" >&6; }
34705 cat >>confdefs.h <<\_ACEOF
34706 #define BX_DISASM 1
34707 _ACEOF
34709 DISASM_VAR='$(DISASM_LIB)'
34710 else
34711 { echo "$as_me:$LINENO: result: no" >&5
34712 echo "${ECHO_T}no" >&6; }
34713 if test "$bx_debugger" = 1; then
34714 echo "ERROR: debugger is enabled, so --enable-disasm is required"
34715 exit 1
34717 cat >>confdefs.h <<\_ACEOF
34718 #define BX_DISASM 0
34719 _ACEOF
34721 DISASM_VAR=''
34723 else
34725 { echo "$as_me:$LINENO: result: yes" >&5
34726 echo "${ECHO_T}yes" >&6; }
34727 cat >>confdefs.h <<\_ACEOF
34728 #define BX_DISASM 1
34729 _ACEOF
34731 DISASM_VAR='$(DISASM_LIB)'
34737 { echo "$as_me:$LINENO: checking for ALL optimizations enabled" >&5
34738 echo $ECHO_N "checking for ALL optimizations enabled... $ECHO_C" >&6; }
34739 # Check whether --enable-all-optimizations was given.
34740 if test "${enable_all_optimizations+set}" = set; then
34741 enableval=$enable_all_optimizations; if test "$enableval" = yes; then
34742 { echo "$as_me:$LINENO: result: yes" >&5
34743 echo "${ECHO_T}yes" >&6; }
34744 speedups_all=1
34745 else
34746 { echo "$as_me:$LINENO: result: no" >&5
34747 echo "${ECHO_T}no" >&6; }
34748 speedups_all=0
34751 else
34753 { echo "$as_me:$LINENO: result: no" >&5
34754 echo "${ECHO_T}no" >&6; }
34755 speedups_all=0
34762 # Optimizations section. Decide what the status of various optimizations
34763 # should be based on configure choices and other factors.
34766 if test "$speedups_all" = 1; then
34767 # Configure requested to force all options enabled.
34768 speedup_repeat=1
34769 speedup_iCache=1
34770 speedup_TraceCache=1
34771 speedup_fastcall=1
34774 if test "$speedup_iCache" = 0 -a "$speedup_TraceCache" = 1; then
34775 { { echo "$as_me:$LINENO: error: iCache is required to compile with trace cache optimization" >&5
34776 echo "$as_me: error: iCache is required to compile with trace cache optimization" >&2;}
34777 { (exit 1); exit 1; }; }
34780 if test "$speedup_repeat" = 1; then
34781 cat >>confdefs.h <<\_ACEOF
34782 #define BX_SupportRepeatSpeedups 1
34783 _ACEOF
34785 else
34786 cat >>confdefs.h <<\_ACEOF
34787 #define BX_SupportRepeatSpeedups 0
34788 _ACEOF
34792 if test "$speedup_iCache" = 1; then
34793 cat >>confdefs.h <<\_ACEOF
34794 #define BX_SUPPORT_ICACHE 1
34795 _ACEOF
34797 else
34798 cat >>confdefs.h <<\_ACEOF
34799 #define BX_SUPPORT_ICACHE 0
34800 _ACEOF
34804 if test "$speedup_host_specific_asms" = 1; then
34805 cat >>confdefs.h <<\_ACEOF
34806 #define BX_SupportHostAsms 1
34807 _ACEOF
34809 else
34810 cat >>confdefs.h <<\_ACEOF
34811 #define BX_SupportHostAsms 0
34812 _ACEOF
34816 if test "$speedup_fastcall" = 1; then
34817 cat >>confdefs.h <<\_ACEOF
34818 #define BX_FAST_FUNC_CALL 1
34819 _ACEOF
34821 else
34822 cat >>confdefs.h <<\_ACEOF
34823 #define BX_FAST_FUNC_CALL 0
34824 _ACEOF
34828 if test "$speedup_TraceCache" = 1; then
34829 cat >>confdefs.h <<\_ACEOF
34830 #define BX_SUPPORT_TRACE_CACHE 1
34831 _ACEOF
34833 else
34834 cat >>confdefs.h <<\_ACEOF
34835 #define BX_SUPPORT_TRACE_CACHE 0
34836 _ACEOF
34841 READLINE_LIB=""
34842 rl_without_curses_ok=no
34843 rl_with_curses_ok=no
34845 { echo "$as_me:$LINENO: checking whether user wants readline" >&5
34846 echo $ECHO_N "checking whether user wants readline... $ECHO_C" >&6; }
34847 # Check whether --enable-readline was given.
34848 if test "${enable_readline+set}" = set; then
34849 enableval=$enable_readline; if test "$enableval" = yes; then
34850 { echo "$as_me:$LINENO: result: yes" >&5
34851 echo "${ECHO_T}yes" >&6; }
34852 want_readline=yes
34853 else
34854 { echo "$as_me:$LINENO: result: no" >&5
34855 echo "${ECHO_T}no" >&6; }
34856 want_readline=no
34858 else
34860 { echo "$as_me:$LINENO: result: yes" >&5
34861 echo "${ECHO_T}yes" >&6; }
34862 want_readline=yes
34868 use_readline=0
34869 { echo "$as_me:$LINENO: checking whether to use readline" >&5
34870 echo $ECHO_N "checking whether to use readline... $ECHO_C" >&6; }
34871 if test "$want_readline" = yes; then
34872 if test "$bx_debugger" = 1; then
34874 { echo "$as_me:$LINENO: checking if readline works without -lcurses" >&5
34875 echo $ECHO_N "checking if readline works without -lcurses... $ECHO_C" >&6; }
34876 OLD_LIBS=$LIBS
34877 LIBS="$LIBS -lreadline"
34878 if test "$cross_compiling" = yes; then
34879 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34880 See \`config.log' for more details." >&5
34881 echo "$as_me: error: cannot run test program while cross compiling
34882 See \`config.log' for more details." >&2;}
34883 { (exit 1); exit 1; }; }
34884 else
34885 cat >conftest.$ac_ext <<_ACEOF
34886 /* confdefs.h. */
34887 _ACEOF
34888 cat confdefs.h >>conftest.$ac_ext
34889 cat >>conftest.$ac_ext <<_ACEOF
34890 /* end confdefs.h. */
34892 #include <stdio.h>
34893 #include <readline/readline.h>
34894 int main() { rl_initialize(); exit(0); }
34896 _ACEOF
34897 rm -f conftest$ac_exeext
34898 if { (ac_try="$ac_link"
34899 case "(($ac_try" in
34900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34901 *) ac_try_echo=$ac_try;;
34902 esac
34903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34904 (eval "$ac_link") 2>&5
34905 ac_status=$?
34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34908 { (case "(($ac_try" in
34909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34910 *) ac_try_echo=$ac_try;;
34911 esac
34912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34913 (eval "$ac_try") 2>&5
34914 ac_status=$?
34915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34916 (exit $ac_status); }; }; then
34917 { echo "$as_me:$LINENO: result: yes" >&5
34918 echo "${ECHO_T}yes" >&6; }
34919 rl_without_curses_ok=yes
34920 else
34921 echo "$as_me: program exited with status $ac_status" >&5
34922 echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34925 ( exit $ac_status )
34926 { echo "$as_me:$LINENO: result: no" >&5
34927 echo "${ECHO_T}no" >&6; }
34930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34934 { echo "$as_me:$LINENO: checking if readline works with -lcurses" >&5
34935 echo $ECHO_N "checking if readline works with -lcurses... $ECHO_C" >&6; }
34936 LIBS="$LIBS -lcurses"
34937 if test "$cross_compiling" = yes; then
34938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34939 See \`config.log' for more details." >&5
34940 echo "$as_me: error: cannot run test program while cross compiling
34941 See \`config.log' for more details." >&2;}
34942 { (exit 1); exit 1; }; }
34943 else
34944 cat >conftest.$ac_ext <<_ACEOF
34945 /* confdefs.h. */
34946 _ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h. */
34951 #include <stdio.h>
34952 #include <readline/readline.h>
34953 int main() { rl_initialize(); exit(0); }
34955 _ACEOF
34956 rm -f conftest$ac_exeext
34957 if { (ac_try="$ac_link"
34958 case "(($ac_try" in
34959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34960 *) ac_try_echo=$ac_try;;
34961 esac
34962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34963 (eval "$ac_link") 2>&5
34964 ac_status=$?
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34967 { (case "(($ac_try" in
34968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34969 *) ac_try_echo=$ac_try;;
34970 esac
34971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34972 (eval "$ac_try") 2>&5
34973 ac_status=$?
34974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975 (exit $ac_status); }; }; then
34976 { echo "$as_me:$LINENO: result: yes" >&5
34977 echo "${ECHO_T}yes" >&6; }
34978 rl_with_curses_ok=yes
34979 else
34980 echo "$as_me: program exited with status $ac_status" >&5
34981 echo "$as_me: failed program was:" >&5
34982 sed 's/^/| /' conftest.$ac_ext >&5
34984 ( exit $ac_status )
34985 { echo "$as_me:$LINENO: result: no" >&5
34986 echo "${ECHO_T}no" >&6; }
34989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34993 LIBS=$OLD_LIBS
34995 if test "$rl_without_curses_ok" = yes; then
34996 { echo "$as_me:$LINENO: result: yes" >&5
34997 echo "${ECHO_T}yes" >&6; }
34998 cat >>confdefs.h <<\_ACEOF
34999 #define HAVE_LIBREADLINE 1
35000 _ACEOF
35002 READLINE_LIB="-lreadline"
35003 use_readline=1
35004 elif test "$rl_with_curses_ok" = yes; then
35005 { echo "$as_me:$LINENO: result: yes" >&5
35006 echo "${ECHO_T}yes" >&6; }
35007 cat >>confdefs.h <<\_ACEOF
35008 #define HAVE_LIBREADLINE 1
35009 _ACEOF
35011 READLINE_LIB="-lreadline -lcurses"
35012 use_readline=1
35013 else
35014 { echo "$as_me:$LINENO: result: no" >&5
35015 echo "${ECHO_T}no" >&6; }
35016 echo WARNING: The readline library was disabled because it was not found.
35018 else
35019 { echo "$as_me:$LINENO: result: no" >&5
35020 echo "${ECHO_T}no" >&6; }
35022 else
35023 { echo "$as_me:$LINENO: result: no" >&5
35024 echo "${ECHO_T}no" >&6; }
35028 if test "${ac_cv_header_readline_history_h+set}" = set; then
35029 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35030 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35031 if test "${ac_cv_header_readline_history_h+set}" = set; then
35032 echo $ECHO_N "(cached) $ECHO_C" >&6
35034 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35035 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35036 else
35037 # Is the header compilable?
35038 { echo "$as_me:$LINENO: checking readline/history.h usability" >&5
35039 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6; }
35040 cat >conftest.$ac_ext <<_ACEOF
35041 /* confdefs.h. */
35042 _ACEOF
35043 cat confdefs.h >>conftest.$ac_ext
35044 cat >>conftest.$ac_ext <<_ACEOF
35045 /* end confdefs.h. */
35046 $ac_includes_default
35047 #include <readline/history.h>
35048 _ACEOF
35049 rm -f conftest.$ac_objext
35050 if { (ac_try="$ac_compile"
35051 case "(($ac_try" in
35052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35053 *) ac_try_echo=$ac_try;;
35054 esac
35055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35056 (eval "$ac_compile") 2>conftest.er1
35057 ac_status=$?
35058 grep -v '^ *+' conftest.er1 >conftest.err
35059 rm -f conftest.er1
35060 cat conftest.err >&5
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } && {
35063 test -z "$ac_c_werror_flag" ||
35064 test ! -s conftest.err
35065 } && test -s conftest.$ac_objext; then
35066 ac_header_compiler=yes
35067 else
35068 echo "$as_me: failed program was:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35071 ac_header_compiler=no
35074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35076 echo "${ECHO_T}$ac_header_compiler" >&6; }
35078 # Is the header present?
35079 { echo "$as_me:$LINENO: checking readline/history.h presence" >&5
35080 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6; }
35081 cat >conftest.$ac_ext <<_ACEOF
35082 /* confdefs.h. */
35083 _ACEOF
35084 cat confdefs.h >>conftest.$ac_ext
35085 cat >>conftest.$ac_ext <<_ACEOF
35086 /* end confdefs.h. */
35087 #include <readline/history.h>
35088 _ACEOF
35089 if { (ac_try="$ac_cpp conftest.$ac_ext"
35090 case "(($ac_try" in
35091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35092 *) ac_try_echo=$ac_try;;
35093 esac
35094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35096 ac_status=$?
35097 grep -v '^ *+' conftest.er1 >conftest.err
35098 rm -f conftest.er1
35099 cat conftest.err >&5
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); } >/dev/null && {
35102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35103 test ! -s conftest.err
35104 }; then
35105 ac_header_preproc=yes
35106 else
35107 echo "$as_me: failed program was:" >&5
35108 sed 's/^/| /' conftest.$ac_ext >&5
35110 ac_header_preproc=no
35113 rm -f conftest.err conftest.$ac_ext
35114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35115 echo "${ECHO_T}$ac_header_preproc" >&6; }
35117 # So? What about this header?
35118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35119 yes:no: )
35120 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
35121 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35122 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
35123 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
35124 ac_header_preproc=yes
35126 no:yes:* )
35127 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
35128 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
35129 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
35130 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
35131 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
35132 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
35133 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
35134 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
35135 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
35136 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
35137 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
35138 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
35141 esac
35142 { echo "$as_me:$LINENO: checking for readline/history.h" >&5
35143 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6; }
35144 if test "${ac_cv_header_readline_history_h+set}" = set; then
35145 echo $ECHO_N "(cached) $ECHO_C" >&6
35146 else
35147 ac_cv_header_readline_history_h=$ac_header_preproc
35149 { echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
35150 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6; }
35153 if test $ac_cv_header_readline_history_h = yes; then
35154 cat >>confdefs.h <<\_ACEOF
35155 #define HAVE_READLINE_HISTORY_H 1
35156 _ACEOF
35163 INSTRUMENT_DIR='instrument/stubs'
35165 { echo "$as_me:$LINENO: checking for instrumentation support" >&5
35166 echo $ECHO_N "checking for instrumentation support... $ECHO_C" >&6; }
35167 # Check whether --enable-instrumentation was given.
35168 if test "${enable_instrumentation+set}" = set; then
35169 enableval=$enable_instrumentation; if test "$enableval" = yes; then
35170 { echo "$as_me:$LINENO: result: yes" >&5
35171 echo "${ECHO_T}yes" >&6; }
35172 cat >>confdefs.h <<\_ACEOF
35173 #define BX_INSTRUMENTATION 1
35174 _ACEOF
35176 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35177 elif test "$enableval" = no; then
35178 { echo "$as_me:$LINENO: result: no" >&5
35179 echo "${ECHO_T}no" >&6; }
35180 cat >>confdefs.h <<\_ACEOF
35181 #define BX_INSTRUMENTATION 0
35182 _ACEOF
35184 INSTRUMENT_VAR=''
35185 else
35186 { echo "$as_me:$LINENO: result: yes" >&5
35187 echo "${ECHO_T}yes" >&6; }
35188 cat >>confdefs.h <<\_ACEOF
35189 #define BX_INSTRUMENTATION 1
35190 _ACEOF
35192 INSTRUMENT_DIR=$enableval
35193 INSTRUMENT_VAR='$(INSTRUMENT_LIB)'
35195 else
35197 { echo "$as_me:$LINENO: result: no" >&5
35198 echo "${ECHO_T}no" >&6; }
35199 cat >>confdefs.h <<\_ACEOF
35200 #define BX_INSTRUMENTATION 0
35201 _ACEOF
35203 INSTRUMENT_VAR=''
35211 if test "$bx_plugins" = 0; then
35212 case $target in
35213 *-pc-windows*)
35214 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS wsock32.lib"
35216 *-cygwin* | *-mingw32*)
35217 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwsock32"
35219 esac
35222 { echo "$as_me:$LINENO: checking enable logging" >&5
35223 echo $ECHO_N "checking enable logging... $ECHO_C" >&6; }
35224 # Check whether --enable-logging was given.
35225 if test "${enable_logging+set}" = set; then
35226 enableval=$enable_logging; if test "$enableval" = yes; then
35227 { echo "$as_me:$LINENO: result: yes" >&5
35228 echo "${ECHO_T}yes" >&6; }
35229 cat >>confdefs.h <<\_ACEOF
35230 #define BX_NO_LOGGING 0
35231 _ACEOF
35233 else
35234 { echo "$as_me:$LINENO: result: no" >&5
35235 echo "${ECHO_T}no" >&6; }
35236 cat >>confdefs.h <<\_ACEOF
35237 #define BX_NO_LOGGING 1
35238 _ACEOF
35241 else
35243 { echo "$as_me:$LINENO: result: yes" >&5
35244 echo "${ECHO_T}yes" >&6; }
35245 cat >>confdefs.h <<\_ACEOF
35246 #define BX_NO_LOGGING 0
35247 _ACEOF
35254 { echo "$as_me:$LINENO: checking enable assert checks" >&5
35255 echo $ECHO_N "checking enable assert checks... $ECHO_C" >&6; }
35256 # Check whether --enable-assert-checks was given.
35257 if test "${enable_assert_checks+set}" = set; then
35258 enableval=$enable_assert_checks; if test "$enableval" = yes; then
35259 { echo "$as_me:$LINENO: result: yes" >&5
35260 echo "${ECHO_T}yes" >&6; }
35261 cat >>confdefs.h <<\_ACEOF
35262 #define BX_ASSERT_ENABLE 1
35263 _ACEOF
35265 else
35266 { echo "$as_me:$LINENO: result: no" >&5
35267 echo "${ECHO_T}no" >&6; }
35268 cat >>confdefs.h <<\_ACEOF
35269 #define BX_ASSERT_ENABLE 0
35270 _ACEOF
35273 else
35275 if test "$bx_debugger" = 1; then
35276 { echo "$as_me:$LINENO: result: yes" >&5
35277 echo "${ECHO_T}yes" >&6; }
35278 cat >>confdefs.h <<\_ACEOF
35279 #define BX_ASSERT_ENABLE 1
35280 _ACEOF
35282 else
35283 { echo "$as_me:$LINENO: result: no" >&5
35284 echo "${ECHO_T}no" >&6; }
35285 cat >>confdefs.h <<\_ACEOF
35286 #define BX_ASSERT_ENABLE 0
35287 _ACEOF
35295 { echo "$as_me:$LINENO: checking for raw serial support" >&5
35296 echo $ECHO_N "checking for raw serial support... $ECHO_C" >&6; }
35297 # Check whether --enable-raw-serial was given.
35298 if test "${enable_raw_serial+set}" = set; then
35299 enableval=$enable_raw_serial; if test "$enableval" = yes; then
35300 { echo "$as_me:$LINENO: result: yes" >&5
35301 echo "${ECHO_T}yes" >&6; }
35302 cat >>confdefs.h <<\_ACEOF
35303 #define USE_RAW_SERIAL 1
35304 _ACEOF
35306 else
35307 { echo "$as_me:$LINENO: result: no" >&5
35308 echo "${ECHO_T}no" >&6; }
35309 cat >>confdefs.h <<\_ACEOF
35310 #define USE_RAW_SERIAL 0
35311 _ACEOF
35314 else
35316 { echo "$as_me:$LINENO: result: no" >&5
35317 echo "${ECHO_T}no" >&6; }
35318 cat >>confdefs.h <<\_ACEOF
35319 #define USE_RAW_SERIAL 0
35320 _ACEOF
35327 { echo "$as_me:$LINENO: checking for VESA BIOS extensions" >&5
35328 echo $ECHO_N "checking for VESA BIOS extensions... $ECHO_C" >&6; }
35329 # Check whether --enable-vbe was given.
35330 if test "${enable_vbe+set}" = set; then
35331 enableval=$enable_vbe; if test "$enableval" = yes; then
35332 { echo "$as_me:$LINENO: result: yes" >&5
35333 echo "${ECHO_T}yes" >&6; }
35334 cat >>confdefs.h <<\_ACEOF
35335 #define BX_SUPPORT_VBE 1
35336 _ACEOF
35338 if test "$pci" = 1; then
35339 cat >>confdefs.h <<\_ACEOF
35340 #define BX_SUPPORT_PCIVGA 1
35341 _ACEOF
35344 else
35345 { echo "$as_me:$LINENO: result: no" >&5
35346 echo "${ECHO_T}no" >&6; }
35347 cat >>confdefs.h <<\_ACEOF
35348 #define BX_SUPPORT_VBE 0
35349 _ACEOF
35352 else
35354 { echo "$as_me:$LINENO: result: yes" >&5
35355 echo "${ECHO_T}yes" >&6; }
35356 cat >>confdefs.h <<\_ACEOF
35357 #define BX_SUPPORT_VBE 1
35358 _ACEOF
35360 if test "$pci" = 1; then
35361 cat >>confdefs.h <<\_ACEOF
35362 #define BX_SUPPORT_PCIVGA 1
35363 _ACEOF
35371 { echo "$as_me:$LINENO: checking for CLGD54XX emulation" >&5
35372 echo $ECHO_N "checking for CLGD54XX emulation... $ECHO_C" >&6; }
35373 # Check whether --enable-clgd54xx was given.
35374 if test "${enable_clgd54xx+set}" = set; then
35375 enableval=$enable_clgd54xx; if test "$enableval" = yes; then
35376 { echo "$as_me:$LINENO: result: yes" >&5
35377 echo "${ECHO_T}yes" >&6; }
35378 cat >>confdefs.h <<\_ACEOF
35379 #define BX_SUPPORT_CLGD54XX 1
35380 _ACEOF
35382 else
35383 { echo "$as_me:$LINENO: result: no" >&5
35384 echo "${ECHO_T}no" >&6; }
35385 cat >>confdefs.h <<\_ACEOF
35386 #define BX_SUPPORT_CLGD54XX 0
35387 _ACEOF
35390 else
35392 { echo "$as_me:$LINENO: result: no" >&5
35393 echo "${ECHO_T}no" >&6; }
35394 cat >>confdefs.h <<\_ACEOF
35395 #define BX_SUPPORT_CLGD54XX 0
35396 _ACEOF
35403 support_fpu=1
35404 { echo "$as_me:$LINENO: checking for FPU emulation" >&5
35405 echo $ECHO_N "checking for FPU emulation... $ECHO_C" >&6; }
35406 FPU_VAR=''
35407 # Check whether --enable-fpu was given.
35408 if test "${enable_fpu+set}" = set; then
35409 enableval=$enable_fpu; if test "$enableval" = yes; then
35410 { echo "$as_me:$LINENO: result: yes" >&5
35411 echo "${ECHO_T}yes" >&6; }
35412 cat >>confdefs.h <<\_ACEOF
35413 #define BX_SUPPORT_FPU 1
35414 _ACEOF
35416 FPU_VAR='$(FPU_LIB)'
35417 elif test "$enableval" = no; then
35418 { echo "$as_me:$LINENO: result: no" >&5
35419 echo "${ECHO_T}no" >&6; }
35420 cat >>confdefs.h <<\_ACEOF
35421 #define BX_SUPPORT_FPU 0
35422 _ACEOF
35424 support_fpu=0
35425 else
35426 echo " "
35427 echo "ERROR: --enable-fpu does not accept a path"
35428 exit 1
35431 else
35433 { echo "$as_me:$LINENO: result: yes" >&5
35434 echo "${ECHO_T}yes" >&6; }
35435 cat >>confdefs.h <<\_ACEOF
35436 #define BX_SUPPORT_FPU 1
35437 _ACEOF
35439 FPU_VAR='$(FPU_LIB)'
35446 { echo "$as_me:$LINENO: checking for VME support" >&5
35447 echo $ECHO_N "checking for VME support... $ECHO_C" >&6; }
35448 # Check whether --enable-vme was given.
35449 if test "${enable_vme+set}" = set; then
35450 enableval=$enable_vme; if test "$enableval" = yes; then
35451 { echo "$as_me:$LINENO: result: yes" >&5
35452 echo "${ECHO_T}yes" >&6; }
35453 cat >>confdefs.h <<\_ACEOF
35454 #define BX_SUPPORT_VME 1
35455 _ACEOF
35457 elif test "$enableval" = no; then
35458 { echo "$as_me:$LINENO: result: no" >&5
35459 echo "${ECHO_T}no" >&6; }
35460 cat >>confdefs.h <<\_ACEOF
35461 #define BX_SUPPORT_VME 0
35462 _ACEOF
35466 else
35468 if test "$bx_cpu_level" -ge 5; then
35469 { echo "$as_me:$LINENO: result: yes" >&5
35470 echo "${ECHO_T}yes" >&6; }
35471 cat >>confdefs.h <<\_ACEOF
35472 #define BX_SUPPORT_VME 1
35473 _ACEOF
35475 else
35476 { echo "$as_me:$LINENO: result: no" >&5
35477 echo "${ECHO_T}no" >&6; }
35478 cat >>confdefs.h <<\_ACEOF
35479 #define BX_SUPPORT_VME 0
35480 _ACEOF
35488 support_mmx=1
35489 { echo "$as_me:$LINENO: checking for MMX support" >&5
35490 echo $ECHO_N "checking for MMX support... $ECHO_C" >&6; }
35491 # Check whether --enable-mmx was given.
35492 if test "${enable_mmx+set}" = set; then
35493 enableval=$enable_mmx; if test "$enableval" = yes; then
35494 { echo "$as_me:$LINENO: result: yes" >&5
35495 echo "${ECHO_T}yes" >&6; }
35496 cat >>confdefs.h <<\_ACEOF
35497 #define BX_SUPPORT_MMX 1
35498 _ACEOF
35500 elif test "$enableval" = no; then
35501 { echo "$as_me:$LINENO: result: no" >&5
35502 echo "${ECHO_T}no" >&6; }
35503 cat >>confdefs.h <<\_ACEOF
35504 #define BX_SUPPORT_MMX 0
35505 _ACEOF
35507 support_mmx=0
35510 else
35512 if test "$bx_cpu_level" -ge 5; then
35513 { echo "$as_me:$LINENO: result: yes" >&5
35514 echo "${ECHO_T}yes" >&6; }
35515 cat >>confdefs.h <<\_ACEOF
35516 #define BX_SUPPORT_MMX 1
35517 _ACEOF
35519 else
35520 { echo "$as_me:$LINENO: result: no" >&5
35521 echo "${ECHO_T}no" >&6; }
35522 cat >>confdefs.h <<\_ACEOF
35523 #define BX_SUPPORT_MMX 0
35524 _ACEOF
35532 { echo "$as_me:$LINENO: checking for 3DNow! support" >&5
35533 echo $ECHO_N "checking for 3DNow! support... $ECHO_C" >&6; }
35534 # Check whether --enable-3dnow was given.
35535 if test "${enable_3dnow+set}" = set; then
35536 enableval=$enable_3dnow; if test "$enableval" = yes; then
35537 { echo "$as_me:$LINENO: result: yes" >&5
35538 echo "${ECHO_T}yes" >&6; }
35539 cat >>confdefs.h <<\_ACEOF
35540 #define BX_SUPPORT_3DNOW 1
35541 _ACEOF
35543 elif test "$enableval" = no; then
35544 { echo "$as_me:$LINENO: result: no" >&5
35545 echo "${ECHO_T}no" >&6; }
35546 cat >>confdefs.h <<\_ACEOF
35547 #define BX_SUPPORT_3DNOW 0
35548 _ACEOF
35552 else
35554 { echo "$as_me:$LINENO: result: no" >&5
35555 echo "${ECHO_T}no" >&6; }
35556 cat >>confdefs.h <<\_ACEOF
35557 #define BX_SUPPORT_3DNOW 0
35558 _ACEOF
35565 support_sse=0
35566 { echo "$as_me:$LINENO: checking for SSE support" >&5
35567 echo $ECHO_N "checking for SSE support... $ECHO_C" >&6; }
35568 # Check whether --enable-sse was given.
35569 if test "${enable_sse+set}" = set; then
35570 enableval=$enable_sse; case "$enableval" in
35571 no | 0)
35572 support_sse=0
35573 { echo "$as_me:$LINENO: result: no" >&5
35574 echo "${ECHO_T}no" >&6; }
35576 yes | 1)
35577 support_sse=1
35578 { echo "$as_me:$LINENO: result: SSE1" >&5
35579 echo "${ECHO_T}SSE1" >&6; }
35582 support_sse=2
35583 { echo "$as_me:$LINENO: result: SSE2" >&5
35584 echo "${ECHO_T}SSE2" >&6; }
35587 support_sse=3
35588 { echo "$as_me:$LINENO: result: SSE3" >&5
35589 echo "${ECHO_T}SSE3" >&6; }
35592 support_sse=4
35593 { echo "$as_me:$LINENO: result: SSE4" >&5
35594 echo "${ECHO_T}SSE4" >&6; }
35597 echo "ERROR: --enable-sse=$enableval not understood. Use --enable-sse=no|1|2|3|4"
35598 exit 1
35600 esac
35602 else
35604 if test "$use_x86_64" = 1; then
35605 support_sse=2
35606 { echo "$as_me:$LINENO: result: SSE2" >&5
35607 echo "${ECHO_T}SSE2" >&6; }
35608 else
35609 { echo "$as_me:$LINENO: result: no" >&5
35610 echo "${ECHO_T}no" >&6; }
35617 if test "$support_sse" -gt 0 -a "$bx_cpu_level" -lt 6; then
35618 { { echo "$as_me:$LINENO: error: for SSE support the CPU level must be set to 6" >&5
35619 echo "$as_me: error: for SSE support the CPU level must be set to 6" >&2;}
35620 { (exit 1); exit 1; }; }
35623 if test "$support_sse" -lt 2 -a "$use_x86_64" = 1; then
35624 { { echo "$as_me:$LINENO: error: x86-64 needs SSE2 support" >&5
35625 echo "$as_me: error: x86-64 needs SSE2 support" >&2;}
35626 { (exit 1); exit 1; }; }
35629 if test "$support_sse" = 4; then
35630 cat >>confdefs.h <<\_ACEOF
35631 #define BX_SUPPORT_SSE 4
35632 _ACEOF
35634 elif test "$support_sse" = 3; then
35635 cat >>confdefs.h <<\_ACEOF
35636 #define BX_SUPPORT_SSE 3
35637 _ACEOF
35639 elif test "$support_sse" = 2; then
35640 cat >>confdefs.h <<\_ACEOF
35641 #define BX_SUPPORT_SSE 2
35642 _ACEOF
35644 elif test "$support_sse" = 1; then
35645 cat >>confdefs.h <<\_ACEOF
35646 #define BX_SUPPORT_SSE 1
35647 _ACEOF
35649 else
35650 cat >>confdefs.h <<\_ACEOF
35651 #define BX_SUPPORT_SSE 0
35652 _ACEOF
35656 support_sse_extensions=0
35657 { echo "$as_me:$LINENO: checking for SSE extensions support" >&5
35658 echo $ECHO_N "checking for SSE extensions support... $ECHO_C" >&6; }
35659 # Check whether --enable-sse-extension was given.
35660 if test "${enable_sse_extension+set}" = set; then
35661 enableval=$enable_sse_extension; if test "$enableval" = yes; then
35662 { echo "$as_me:$LINENO: result: yes" >&5
35663 echo "${ECHO_T}yes" >&6; }
35664 cat >>confdefs.h <<\_ACEOF
35665 #define BX_SUPPORT_SSE_EXTENSION 1
35666 _ACEOF
35668 support_sse_extensions=1
35669 elif test "$enableval" = no; then
35670 { echo "$as_me:$LINENO: result: no" >&5
35671 echo "${ECHO_T}no" >&6; }
35672 cat >>confdefs.h <<\_ACEOF
35673 #define BX_SUPPORT_SSE_EXTENSION 0
35674 _ACEOF
35678 else
35680 { echo "$as_me:$LINENO: result: no" >&5
35681 echo "${ECHO_T}no" >&6; }
35682 cat >>confdefs.h <<\_ACEOF
35683 #define BX_SUPPORT_SSE_EXTENSION 0
35684 _ACEOF
35691 { echo "$as_me:$LINENO: checking for DAZ support" >&5
35692 echo $ECHO_N "checking for DAZ support... $ECHO_C" >&6; }
35693 # Check whether --enable-daz was given.
35694 if test "${enable_daz+set}" = set; then
35695 enableval=$enable_daz; if test "$enableval" = yes; then
35696 { echo "$as_me:$LINENO: result: yes" >&5
35697 echo "${ECHO_T}yes" >&6; }
35698 cat >>confdefs.h <<\_ACEOF
35699 #define BX_SUPPORT_DAZ 1
35700 _ACEOF
35702 elif test "$enableval" = no; then
35703 { echo "$as_me:$LINENO: result: no" >&5
35704 echo "${ECHO_T}no" >&6; }
35705 cat >>confdefs.h <<\_ACEOF
35706 #define BX_SUPPORT_DAZ 0
35707 _ACEOF
35711 else
35713 if test "$support_sse" -ge 2; then
35714 { echo "$as_me:$LINENO: result: yes" >&5
35715 echo "${ECHO_T}yes" >&6; }
35716 cat >>confdefs.h <<\_ACEOF
35717 #define BX_SUPPORT_DAZ 1
35718 _ACEOF
35720 else
35721 { echo "$as_me:$LINENO: result: no" >&5
35722 echo "${ECHO_T}no" >&6; }
35723 cat >>confdefs.h <<\_ACEOF
35724 #define BX_SUPPORT_DAZ 0
35725 _ACEOF
35733 use_xsave=0
35734 { echo "$as_me:$LINENO: checking for XSAVE/XRSTOR support" >&5
35735 echo $ECHO_N "checking for XSAVE/XRSTOR support... $ECHO_C" >&6; }
35736 # Check whether --enable-xsave was given.
35737 if test "${enable_xsave+set}" = set; then
35738 enableval=$enable_xsave; if test "$enableval" = yes; then
35739 { echo "$as_me:$LINENO: result: yes" >&5
35740 echo "${ECHO_T}yes" >&6; }
35741 cat >>confdefs.h <<\_ACEOF
35742 #define BX_SUPPORT_XSAVE 1
35743 _ACEOF
35745 use_xsave=1
35746 elif test "$enableval" = no; then
35747 { echo "$as_me:$LINENO: result: no" >&5
35748 echo "${ECHO_T}no" >&6; }
35749 cat >>confdefs.h <<\_ACEOF
35750 #define BX_SUPPORT_XSAVE 0
35751 _ACEOF
35755 else
35757 { echo "$as_me:$LINENO: result: no" >&5
35758 echo "${ECHO_T}no" >&6; }
35759 cat >>confdefs.h <<\_ACEOF
35760 #define BX_SUPPORT_XSAVE 0
35761 _ACEOF
35768 if test "$support_sse" -lt 1 -a "$use_xsave" = 1; then
35769 { { echo "$as_me:$LINENO: error: XSAVE requires SSE support!" >&5
35770 echo "$as_me: error: XSAVE requires SSE support!" >&2;}
35771 { (exit 1); exit 1; }; }
35774 use_aes=0
35775 { echo "$as_me:$LINENO: checking for AES instructions support" >&5
35776 echo $ECHO_N "checking for AES instructions support... $ECHO_C" >&6; }
35777 # Check whether --enable-aes was given.
35778 if test "${enable_aes+set}" = set; then
35779 enableval=$enable_aes; if test "$enableval" = yes; then
35780 { echo "$as_me:$LINENO: result: yes" >&5
35781 echo "${ECHO_T}yes" >&6; }
35782 cat >>confdefs.h <<\_ACEOF
35783 #define BX_SUPPORT_AES 1
35784 _ACEOF
35786 use_aes=1
35787 elif test "$enableval" = no; then
35788 { echo "$as_me:$LINENO: result: no" >&5
35789 echo "${ECHO_T}no" >&6; }
35790 cat >>confdefs.h <<\_ACEOF
35791 #define BX_SUPPORT_AES 0
35792 _ACEOF
35796 else
35798 { echo "$as_me:$LINENO: result: no" >&5
35799 echo "${ECHO_T}no" >&6; }
35800 cat >>confdefs.h <<\_ACEOF
35801 #define BX_SUPPORT_AES 0
35802 _ACEOF
35809 if test "$support_sse" -lt 1 -a "$use_aes" = 1; then
35810 { { echo "$as_me:$LINENO: error: AES requires SSE support!" >&5
35811 echo "$as_me: error: AES requires SSE support!" >&2;}
35812 { (exit 1); exit 1; }; }
35815 { echo "$as_me:$LINENO: checking for alignment check support" >&5
35816 echo $ECHO_N "checking for alignment check support... $ECHO_C" >&6; }
35817 # Check whether --enable-alignment-check was given.
35818 if test "${enable_alignment_check+set}" = set; then
35819 enableval=$enable_alignment_check; if test "$enableval" = yes; then
35820 { echo "$as_me:$LINENO: result: yes" >&5
35821 echo "${ECHO_T}yes" >&6; }
35822 cat >>confdefs.h <<\_ACEOF
35823 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35824 _ACEOF
35826 elif test "$enableval" = no; then
35827 { echo "$as_me:$LINENO: result: no" >&5
35828 echo "${ECHO_T}no" >&6; }
35829 cat >>confdefs.h <<\_ACEOF
35830 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35831 _ACEOF
35835 else
35837 if test "$bx_cpu_level" -gt 3; then
35838 { echo "$as_me:$LINENO: result: yes" >&5
35839 echo "${ECHO_T}yes" >&6; }
35840 cat >>confdefs.h <<\_ACEOF
35841 #define BX_SUPPORT_ALIGNMENT_CHECK 1
35842 _ACEOF
35844 else
35845 { echo "$as_me:$LINENO: result: no" >&5
35846 echo "${ECHO_T}no" >&6; }
35847 cat >>confdefs.h <<\_ACEOF
35848 #define BX_SUPPORT_ALIGNMENT_CHECK 0
35849 _ACEOF
35857 { echo "$as_me:$LINENO: checking for misaligned SSE support" >&5
35858 echo $ECHO_N "checking for misaligned SSE support... $ECHO_C" >&6; }
35859 # Check whether --enable-misaligned-sse was given.
35860 if test "${enable_misaligned_sse+set}" = set; then
35861 enableval=$enable_misaligned_sse; if test "$enableval" = yes; then
35862 { echo "$as_me:$LINENO: result: yes" >&5
35863 echo "${ECHO_T}yes" >&6; }
35864 cat >>confdefs.h <<\_ACEOF
35865 #define BX_SUPPORT_MISALIGNED_SSE 1
35866 _ACEOF
35868 elif test "$enableval" = no; then
35869 { echo "$as_me:$LINENO: result: no" >&5
35870 echo "${ECHO_T}no" >&6; }
35871 cat >>confdefs.h <<\_ACEOF
35872 #define BX_SUPPORT_MISALIGNED_SSE 0
35873 _ACEOF
35877 else
35879 { echo "$as_me:$LINENO: result: no" >&5
35880 echo "${ECHO_T}no" >&6; }
35881 cat >>confdefs.h <<\_ACEOF
35882 #define BX_SUPPORT_MISALIGNED_SSE 0
35883 _ACEOF
35890 { echo "$as_me:$LINENO: checking for SEP support" >&5
35891 echo $ECHO_N "checking for SEP support... $ECHO_C" >&6; }
35892 # Check whether --enable-sep was given.
35893 if test "${enable_sep+set}" = set; then
35894 enableval=$enable_sep; if test "$enableval" = yes; then
35895 { echo "$as_me:$LINENO: result: yes" >&5
35896 echo "${ECHO_T}yes" >&6; }
35897 cat >>confdefs.h <<\_ACEOF
35898 #define BX_SUPPORT_SEP 1
35899 _ACEOF
35901 elif test "$enableval" = no; then
35902 { echo "$as_me:$LINENO: result: no" >&5
35903 echo "${ECHO_T}no" >&6; }
35904 cat >>confdefs.h <<\_ACEOF
35905 #define BX_SUPPORT_SEP 0
35906 _ACEOF
35910 else
35912 if test "$bx_cpu_level" -ge 6 -a "$support_mmx" = 1; then
35913 { echo "$as_me:$LINENO: result: yes" >&5
35914 echo "${ECHO_T}yes" >&6; }
35915 cat >>confdefs.h <<\_ACEOF
35916 #define BX_SUPPORT_SEP 1
35917 _ACEOF
35919 else
35920 { echo "$as_me:$LINENO: result: no" >&5
35921 echo "${ECHO_T}no" >&6; }
35922 cat >>confdefs.h <<\_ACEOF
35923 #define BX_SUPPORT_SEP 0
35924 _ACEOF
35932 { echo "$as_me:$LINENO: checking for POPCNT instruction support" >&5
35933 echo $ECHO_N "checking for POPCNT instruction support... $ECHO_C" >&6; }
35934 # Check whether --enable-popcnt was given.
35935 if test "${enable_popcnt+set}" = set; then
35936 enableval=$enable_popcnt; if test "$enableval" = yes; then
35937 { echo "$as_me:$LINENO: result: yes" >&5
35938 echo "${ECHO_T}yes" >&6; }
35939 cat >>confdefs.h <<\_ACEOF
35940 #define BX_SUPPORT_POPCNT 1
35941 _ACEOF
35943 elif test "$enableval" = no; then
35944 { echo "$as_me:$LINENO: result: no" >&5
35945 echo "${ECHO_T}no" >&6; }
35946 cat >>confdefs.h <<\_ACEOF
35947 #define BX_SUPPORT_POPCNT 0
35948 _ACEOF
35952 else
35954 if test "$support_sse" -ge 4 -a "$support_sse_extensions" = 1; then
35955 { echo "$as_me:$LINENO: result: yes" >&5
35956 echo "${ECHO_T}yes" >&6; }
35957 cat >>confdefs.h <<\_ACEOF
35958 #define BX_SUPPORT_POPCNT 1
35959 _ACEOF
35961 else
35962 { echo "$as_me:$LINENO: result: no" >&5
35963 echo "${ECHO_T}no" >&6; }
35964 cat >>confdefs.h <<\_ACEOF
35965 #define BX_SUPPORT_POPCNT 0
35966 _ACEOF
35974 { echo "$as_me:$LINENO: checking for MOVBE instruction support" >&5
35975 echo $ECHO_N "checking for MOVBE instruction support... $ECHO_C" >&6; }
35976 # Check whether --enable-movbe was given.
35977 if test "${enable_movbe+set}" = set; then
35978 enableval=$enable_movbe; if test "$enableval" = yes; then
35979 { echo "$as_me:$LINENO: result: yes" >&5
35980 echo "${ECHO_T}yes" >&6; }
35981 cat >>confdefs.h <<\_ACEOF
35982 #define BX_SUPPORT_MOVBE 1
35983 _ACEOF
35985 elif test "$enableval" = no; then
35986 { echo "$as_me:$LINENO: result: no" >&5
35987 echo "${ECHO_T}no" >&6; }
35988 cat >>confdefs.h <<\_ACEOF
35989 #define BX_SUPPORT_MOVBE 0
35990 _ACEOF
35994 else
35996 { echo "$as_me:$LINENO: result: no" >&5
35997 echo "${ECHO_T}no" >&6; }
35998 cat >>confdefs.h <<\_ACEOF
35999 #define BX_SUPPORT_MOVBE 0
36000 _ACEOF
36007 { echo "$as_me:$LINENO: checking for MONITOR/MWAIT instructions support (experimental)" >&5
36008 echo $ECHO_N "checking for MONITOR/MWAIT instructions support (experimental)... $ECHO_C" >&6; }
36009 # Check whether --enable-monitor_mwait was given.
36010 if test "${enable_monitor_mwait+set}" = set; then
36011 enableval=$enable_monitor_mwait; if test "$enableval" = yes; then
36012 { echo "$as_me:$LINENO: result: yes" >&5
36013 echo "${ECHO_T}yes" >&6; }
36014 cat >>confdefs.h <<\_ACEOF
36015 #define BX_SUPPORT_MONITOR_MWAIT 1
36016 _ACEOF
36018 elif test "$enableval" = no; then
36019 { echo "$as_me:$LINENO: result: no" >&5
36020 echo "${ECHO_T}no" >&6; }
36021 cat >>confdefs.h <<\_ACEOF
36022 #define BX_SUPPORT_MONITOR_MWAIT 0
36023 _ACEOF
36027 else
36029 { echo "$as_me:$LINENO: result: no" >&5
36030 echo "${ECHO_T}no" >&6; }
36031 cat >>confdefs.h <<\_ACEOF
36032 #define BX_SUPPORT_MONITOR_MWAIT 0
36033 _ACEOF
36040 { echo "$as_me:$LINENO: checking for x86 debugger support" >&5
36041 echo $ECHO_N "checking for x86 debugger support... $ECHO_C" >&6; }
36042 # Check whether --enable-x86-debugger was given.
36043 if test "${enable_x86_debugger+set}" = set; then
36044 enableval=$enable_x86_debugger; if test "$enableval" = yes; then
36045 { echo "$as_me:$LINENO: result: yes" >&5
36046 echo "${ECHO_T}yes" >&6; }
36047 cat >>confdefs.h <<\_ACEOF
36048 #define BX_X86_DEBUGGER 1
36049 _ACEOF
36051 elif test "$enableval" = no; then
36052 { echo "$as_me:$LINENO: result: no" >&5
36053 echo "${ECHO_T}no" >&6; }
36054 cat >>confdefs.h <<\_ACEOF
36055 #define BX_X86_DEBUGGER 0
36056 _ACEOF
36060 else
36062 { echo "$as_me:$LINENO: result: no" >&5
36063 echo "${ECHO_T}no" >&6; }
36064 cat >>confdefs.h <<\_ACEOF
36065 #define BX_X86_DEBUGGER 0
36066 _ACEOF
36073 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36074 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
36075 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
36076 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36077 echo $ECHO_N "(cached) $ECHO_C" >&6
36079 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36080 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36081 else
36082 # Is the header compilable?
36083 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h usability" >&5
36084 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h usability... $ECHO_C" >&6; }
36085 cat >conftest.$ac_ext <<_ACEOF
36086 /* confdefs.h. */
36087 _ACEOF
36088 cat confdefs.h >>conftest.$ac_ext
36089 cat >>conftest.$ac_ext <<_ACEOF
36090 /* end confdefs.h. */
36091 $ac_includes_default
36092 #include <IOKit/storage/IOCDMedia.h>
36093 _ACEOF
36094 rm -f conftest.$ac_objext
36095 if { (ac_try="$ac_compile"
36096 case "(($ac_try" in
36097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36098 *) ac_try_echo=$ac_try;;
36099 esac
36100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36101 (eval "$ac_compile") 2>conftest.er1
36102 ac_status=$?
36103 grep -v '^ *+' conftest.er1 >conftest.err
36104 rm -f conftest.er1
36105 cat conftest.err >&5
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); } && {
36108 test -z "$ac_c_werror_flag" ||
36109 test ! -s conftest.err
36110 } && test -s conftest.$ac_objext; then
36111 ac_header_compiler=yes
36112 else
36113 echo "$as_me: failed program was:" >&5
36114 sed 's/^/| /' conftest.$ac_ext >&5
36116 ac_header_compiler=no
36119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36121 echo "${ECHO_T}$ac_header_compiler" >&6; }
36123 # Is the header present?
36124 { echo "$as_me:$LINENO: checking IOKit/storage/IOCDMedia.h presence" >&5
36125 echo $ECHO_N "checking IOKit/storage/IOCDMedia.h presence... $ECHO_C" >&6; }
36126 cat >conftest.$ac_ext <<_ACEOF
36127 /* confdefs.h. */
36128 _ACEOF
36129 cat confdefs.h >>conftest.$ac_ext
36130 cat >>conftest.$ac_ext <<_ACEOF
36131 /* end confdefs.h. */
36132 #include <IOKit/storage/IOCDMedia.h>
36133 _ACEOF
36134 if { (ac_try="$ac_cpp conftest.$ac_ext"
36135 case "(($ac_try" in
36136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36137 *) ac_try_echo=$ac_try;;
36138 esac
36139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36141 ac_status=$?
36142 grep -v '^ *+' conftest.er1 >conftest.err
36143 rm -f conftest.er1
36144 cat conftest.err >&5
36145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36146 (exit $ac_status); } >/dev/null && {
36147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36148 test ! -s conftest.err
36149 }; then
36150 ac_header_preproc=yes
36151 else
36152 echo "$as_me: failed program was:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36155 ac_header_preproc=no
36158 rm -f conftest.err conftest.$ac_ext
36159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36160 echo "${ECHO_T}$ac_header_preproc" >&6; }
36162 # So? What about this header?
36163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36164 yes:no: )
36165 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&5
36166 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36167 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&5
36168 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the compiler's result" >&2;}
36169 ac_header_preproc=yes
36171 no:yes:* )
36172 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&5
36173 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: present but cannot be compiled" >&2;}
36174 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&5
36175 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: check for missing prerequisite headers?" >&2;}
36176 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&5
36177 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: see the Autoconf documentation" >&2;}
36178 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&5
36179 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: section \"Present But Cannot Be Compiled\"" >&2;}
36180 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&5
36181 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: proceeding with the preprocessor's result" >&2;}
36182 { echo "$as_me:$LINENO: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&5
36183 echo "$as_me: WARNING: IOKit/storage/IOCDMedia.h: in the future, the compiler will take precedence" >&2;}
36186 esac
36187 { echo "$as_me:$LINENO: checking for IOKit/storage/IOCDMedia.h" >&5
36188 echo $ECHO_N "checking for IOKit/storage/IOCDMedia.h... $ECHO_C" >&6; }
36189 if test "${ac_cv_header_IOKit_storage_IOCDMedia_h+set}" = set; then
36190 echo $ECHO_N "(cached) $ECHO_C" >&6
36191 else
36192 ac_cv_header_IOKit_storage_IOCDMedia_h=$ac_header_preproc
36194 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_storage_IOCDMedia_h" >&5
36195 echo "${ECHO_T}$ac_cv_header_IOKit_storage_IOCDMedia_h" >&6; }
36198 if test $ac_cv_header_IOKit_storage_IOCDMedia_h = yes; then
36199 can_use_osx_cdrom=yes
36205 { echo "$as_me:$LINENO: checking for CDROM support" >&5
36206 echo $ECHO_N "checking for CDROM support... $ECHO_C" >&6; }
36207 # Check whether --enable-cdrom was given.
36208 if test "${enable_cdrom+set}" = set; then
36209 enableval=$enable_cdrom; if test "$enableval" = no; then
36210 bx_cdrom=0
36211 else
36212 bx_cdrom=1
36214 else
36215 bx_cdrom=1
36220 if test "$bx_cdrom" = 1; then
36221 { echo "$as_me:$LINENO: result: yes" >&5
36222 echo "${ECHO_T}yes" >&6; }
36223 CDROM_OBJS='cdrom.o'
36224 if test "$with_amigaos" = yes; then
36225 # use the amiga cdrom file instead.
36226 CDROM_OBJS="cdrom_amigaos.o"
36227 elif test "$can_use_osx_cdrom" = yes; then
36228 # use cdrom_osx
36229 { echo "$as_me:$LINENO: result: Using OSX IOKit CD Interface" >&5
36230 echo "${ECHO_T}Using OSX IOKit CD Interface" >&6; }
36231 CDROM_OBJS="cdrom.o"
36232 EXTRA_LINK_OPTS="${EXTRA_LINK_OPTS} -framework IOKit -framework CoreFoundation "'$(GUI_LINK_OPTS)'
36234 case $target in
36235 *-beos*)
36236 # use the beos cdrom file instead
36237 CDROM_OBJS="$CDROM_OBJS cdrom_beos.o"
36238 esac
36239 cat >>confdefs.h <<\_ACEOF
36240 #define BX_SUPPORT_CDROM 1
36241 _ACEOF
36243 else
36244 { echo "$as_me:$LINENO: result: no" >&5
36245 echo "${ECHO_T}no" >&6; }
36246 CDROM_OBJS=''
36247 cat >>confdefs.h <<\_ACEOF
36248 #define BX_SUPPORT_CDROM 0
36249 _ACEOF
36256 bx_have_alsa=0
36257 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36258 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
36259 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
36260 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36261 echo $ECHO_N "(cached) $ECHO_C" >&6
36263 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
36264 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36265 else
36266 # Is the header compilable?
36267 { echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
36268 echo $ECHO_N "checking alsa/asoundlib.h usability... $ECHO_C" >&6; }
36269 cat >conftest.$ac_ext <<_ACEOF
36270 /* confdefs.h. */
36271 _ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h. */
36275 $ac_includes_default
36276 #include <alsa/asoundlib.h>
36277 _ACEOF
36278 rm -f conftest.$ac_objext
36279 if { (ac_try="$ac_compile"
36280 case "(($ac_try" in
36281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36282 *) ac_try_echo=$ac_try;;
36283 esac
36284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36285 (eval "$ac_compile") 2>conftest.er1
36286 ac_status=$?
36287 grep -v '^ *+' conftest.er1 >conftest.err
36288 rm -f conftest.er1
36289 cat conftest.err >&5
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); } && {
36292 test -z "$ac_c_werror_flag" ||
36293 test ! -s conftest.err
36294 } && test -s conftest.$ac_objext; then
36295 ac_header_compiler=yes
36296 else
36297 echo "$as_me: failed program was:" >&5
36298 sed 's/^/| /' conftest.$ac_ext >&5
36300 ac_header_compiler=no
36303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36305 echo "${ECHO_T}$ac_header_compiler" >&6; }
36307 # Is the header present?
36308 { echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
36309 echo $ECHO_N "checking alsa/asoundlib.h presence... $ECHO_C" >&6; }
36310 cat >conftest.$ac_ext <<_ACEOF
36311 /* confdefs.h. */
36312 _ACEOF
36313 cat confdefs.h >>conftest.$ac_ext
36314 cat >>conftest.$ac_ext <<_ACEOF
36315 /* end confdefs.h. */
36316 #include <alsa/asoundlib.h>
36317 _ACEOF
36318 if { (ac_try="$ac_cpp conftest.$ac_ext"
36319 case "(($ac_try" in
36320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321 *) ac_try_echo=$ac_try;;
36322 esac
36323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36325 ac_status=$?
36326 grep -v '^ *+' conftest.er1 >conftest.err
36327 rm -f conftest.er1
36328 cat conftest.err >&5
36329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36330 (exit $ac_status); } >/dev/null && {
36331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36332 test ! -s conftest.err
36333 }; then
36334 ac_header_preproc=yes
36335 else
36336 echo "$as_me: failed program was:" >&5
36337 sed 's/^/| /' conftest.$ac_ext >&5
36339 ac_header_preproc=no
36342 rm -f conftest.err conftest.$ac_ext
36343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36344 echo "${ECHO_T}$ac_header_preproc" >&6; }
36346 # So? What about this header?
36347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36348 yes:no: )
36349 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36350 echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36351 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
36352 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
36353 ac_header_preproc=yes
36355 no:yes:* )
36356 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
36357 echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
36358 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
36359 echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
36360 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
36361 echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
36362 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
36363 echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36364 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
36365 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
36366 { echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
36367 echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
36370 esac
36371 { echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
36372 echo $ECHO_N "checking for alsa/asoundlib.h... $ECHO_C" >&6; }
36373 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
36374 echo $ECHO_N "(cached) $ECHO_C" >&6
36375 else
36376 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
36378 { echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
36379 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
36382 if test $ac_cv_header_alsa_asoundlib_h = yes; then
36383 bx_have_alsa=1
36388 { echo "$as_me:$LINENO: checking for Sound Blaster 16 support" >&5
36389 echo $ECHO_N "checking for Sound Blaster 16 support... $ECHO_C" >&6; }
36390 SB16_OBJS=''
36391 SOUNDLOW_OBJS=''
36392 GAME_OBJS=''
36393 gameport_present=0
36394 # Check whether --enable-sb16 was given.
36395 if test "${enable_sb16+set}" = set; then
36396 enableval=$enable_sb16; if test "$enableval" = no; then
36397 { echo "$as_me:$LINENO: result: no" >&5
36398 echo "${ECHO_T}no" >&6; }
36399 cat >>confdefs.h <<\_ACEOF
36400 #define BX_SUPPORT_SB16 0
36401 _ACEOF
36403 else
36404 case "$enableval" in
36405 dummy)
36406 SOUNDLOW_OBJS=''
36407 cat >>confdefs.h <<\_ACEOF
36408 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36409 _ACEOF
36411 { echo "$as_me:$LINENO: result: dummy" >&5
36412 echo "${ECHO_T}dummy" >&6; }
36414 freebsd|linux)
36415 SOUNDLOW_OBJS='soundlnx.o'
36416 cat >>confdefs.h <<\_ACEOF
36417 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36418 _ACEOF
36420 if test "$bx_have_alsa" = 1; then
36421 cat >>confdefs.h <<\_ACEOF
36422 #define BX_HAVE_ALSASOUND 1
36423 _ACEOF
36425 if test "$bx_plugins" = 1; then
36426 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36427 else
36428 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36431 { echo "$as_me:$LINENO: result: linux" >&5
36432 echo "${ECHO_T}linux" >&6; }
36434 win)
36435 SOUNDLOW_OBJS='soundwin.o'
36436 cat >>confdefs.h <<\_ACEOF
36437 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36438 _ACEOF
36440 { echo "$as_me:$LINENO: result: win" >&5
36441 echo "${ECHO_T}win" >&6; }
36442 case $target in
36443 *-pc-windows*)
36444 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36447 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36449 esac
36451 osx)
36452 SOUNDLOW_OBJS='soundosx.o'
36453 cat >>confdefs.h <<\_ACEOF
36454 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36455 _ACEOF
36457 { echo "$as_me:$LINENO: result: osx" >&5
36458 echo "${ECHO_T}osx" >&6; }
36459 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36461 yes)
36462 case "$target" in
36463 *-linux* | *-freebsd*)
36464 SOUNDLOW_OBJS='soundlnx.o'
36465 cat >>confdefs.h <<\_ACEOF
36466 #define BX_SOUND_OUTPUT_C bx_sound_linux_c
36467 _ACEOF
36469 if test "$bx_have_alsa" = 1; then
36470 cat >>confdefs.h <<\_ACEOF
36471 #define BX_HAVE_ALSASOUND 1
36472 _ACEOF
36474 if test "$bx_plugins" = 1; then
36475 SOUND_LINK_OPTS="$SOUND_LINK_OPTS -lasound"
36476 else
36477 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lasound"
36480 { echo "$as_me:$LINENO: result: linux" >&5
36481 echo "${ECHO_T}linux" >&6; }
36483 *-pc-windows*)
36484 SOUNDLOW_OBJS='soundwin.o'
36485 cat >>confdefs.h <<\_ACEOF
36486 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36487 _ACEOF
36489 { echo "$as_me:$LINENO: result: win" >&5
36490 echo "${ECHO_T}win" >&6; }
36491 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS winmm.lib"
36493 *-cygwin* | *-mingw32*)
36494 SOUNDLOW_OBJS='soundwin.o'
36495 cat >>confdefs.h <<\_ACEOF
36496 #define BX_SOUND_OUTPUT_C bx_sound_windows_c
36497 _ACEOF
36499 { echo "$as_me:$LINENO: result: win" >&5
36500 echo "${ECHO_T}win" >&6; }
36501 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36503 *-macosx* | *-macos*)
36504 SOUNDLOW_OBJS='soundosx.o'
36505 cat >>confdefs.h <<\_ACEOF
36506 #define BX_SOUND_OUTPUT_C bx_sound_osx_c
36507 _ACEOF
36509 { echo "$as_me:$LINENO: result: osx" >&5
36510 echo "${ECHO_T}osx" >&6; }
36511 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -framework AudioUnit -framework AudioToolbox"
36514 SOUNDLOW_OBJS=''
36515 cat >>confdefs.h <<\_ACEOF
36516 #define BX_SOUND_OUTPUT_C bx_sound_output_c
36517 _ACEOF
36519 { echo "$as_me:$LINENO: result: dummy" >&5
36520 echo "${ECHO_T}dummy" >&6; }
36522 esac
36525 echo " "
36526 echo \!\!\!Error\!\!\!
36527 echo "You must pass one of dummy, linux, win, freebsd, osx to --enable-sb16"
36528 exit 1 ;;
36529 esac
36530 SB16_OBJS='sb16.o'
36531 cat >>confdefs.h <<\_ACEOF
36532 #define BX_SUPPORT_SB16 1
36533 _ACEOF
36535 GAME_OBJS='gameport.o'
36536 gameport_present=1
36538 else
36540 { echo "$as_me:$LINENO: result: no" >&5
36541 echo "${ECHO_T}no" >&6; }
36542 cat >>confdefs.h <<\_ACEOF
36543 #define BX_SUPPORT_SB16 0
36544 _ACEOF
36555 { echo "$as_me:$LINENO: checking for standard PC gameport support" >&5
36556 echo $ECHO_N "checking for standard PC gameport support... $ECHO_C" >&6; }
36557 # Check whether --enable-gameport was given.
36558 if test "${enable_gameport+set}" = set; then
36559 enableval=$enable_gameport; if test "$enableval" = yes; then
36560 { echo "$as_me:$LINENO: result: yes" >&5
36561 echo "${ECHO_T}yes" >&6; }
36562 cat >>confdefs.h <<\_ACEOF
36563 #define BX_SUPPORT_GAMEPORT 1
36564 _ACEOF
36566 if test "$gameport_present" = 0; then
36567 GAME_OBJS='gameport.o'
36568 case $target in
36569 *-cygwin* | *-mingw32*)
36570 DEVICE_LINK_OPTS="$DEVICE_LINK_OPTS -lwinmm"
36572 esac
36574 else
36575 { echo "$as_me:$LINENO: result: no" >&5
36576 echo "${ECHO_T}no" >&6; }
36577 GAME_OBJS=''
36578 cat >>confdefs.h <<\_ACEOF
36579 #define BX_SUPPORT_GAMEPORT 0
36580 _ACEOF
36583 else
36585 if test "$gameport_present" = 1; then
36586 cat >>confdefs.h <<\_ACEOF
36587 #define BX_SUPPORT_GAMEPORT 1
36588 _ACEOF
36590 { echo "$as_me:$LINENO: result: yes" >&5
36591 echo "${ECHO_T}yes" >&6; }
36592 else
36593 cat >>confdefs.h <<\_ACEOF
36594 #define BX_SUPPORT_GAMEPORT 0
36595 _ACEOF
36597 { echo "$as_me:$LINENO: result: no" >&5
36598 echo "${ECHO_T}no" >&6; }
36606 { echo "$as_me:$LINENO: checking for gdb stub enable" >&5
36607 echo $ECHO_N "checking for gdb stub enable... $ECHO_C" >&6; }
36608 # Check whether --enable-gdb-stub was given.
36609 if test "${enable_gdb_stub+set}" = set; then
36610 enableval=$enable_gdb_stub; if test "$enableval" = yes; then
36611 { echo "$as_me:$LINENO: result: yes" >&5
36612 echo "${ECHO_T}yes" >&6; }
36613 cat >>confdefs.h <<\_ACEOF
36614 #define BX_GDBSTUB 1
36615 _ACEOF
36617 GDBSTUB_VAR='$(GDBSTUB_OBJS)'
36618 if test "$bx_debugger" = 1; then
36619 { { echo "$as_me:$LINENO: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&5
36620 echo "$as_me: error: --enable-debugger and --enable-gdb-stub are mutually exclusive" >&2;}
36621 { (exit 1); exit 1; }; }
36623 else
36624 { echo "$as_me:$LINENO: result: no" >&5
36625 echo "${ECHO_T}no" >&6; }
36626 cat >>confdefs.h <<\_ACEOF
36627 #define BX_GDBSTUB 0
36628 _ACEOF
36630 GDBSTUB_VAR=''
36632 else
36634 { echo "$as_me:$LINENO: result: no" >&5
36635 echo "${ECHO_T}no" >&6; }
36636 cat >>confdefs.h <<\_ACEOF
36637 #define BX_GDBSTUB 0
36638 _ACEOF
36640 GDBSTUB_VAR=''
36648 { echo "$as_me:$LINENO: checking for I/O Interface to the debugger" >&5
36649 echo $ECHO_N "checking for I/O Interface to the debugger... $ECHO_C" >&6; }
36650 IODEBUG_OBJS=''
36651 # Check whether --enable-iodebug was given.
36652 if test "${enable_iodebug+set}" = set; then
36653 enableval=$enable_iodebug; if test "$enableval" = yes; then
36654 { echo "$as_me:$LINENO: result: yes" >&5
36655 echo "${ECHO_T}yes" >&6; }
36656 cat >>confdefs.h <<\_ACEOF
36657 #define BX_SUPPORT_IODEBUG 1
36658 _ACEOF
36660 IODEBUG_OBJS='iodebug.o'
36661 else
36662 { echo "$as_me:$LINENO: result: no" >&5
36663 echo "${ECHO_T}no" >&6; }
36664 cat >>confdefs.h <<\_ACEOF
36665 #define BX_SUPPORT_IODEBUG 0
36666 _ACEOF
36670 else
36672 if test "" = 1; then
36673 # enable by default if debugger is on
36674 { echo "$as_me:$LINENO: result: yes" >&5
36675 echo "${ECHO_T}yes" >&6; }
36676 cat >>confdefs.h <<\_ACEOF
36677 #define BX_SUPPORT_IODEBUG 1
36678 _ACEOF
36680 IODEBUG_OBJS='iodebug.o'
36681 else
36682 { echo "$as_me:$LINENO: result: no" >&5
36683 echo "${ECHO_T}no" >&6; }
36692 # Extract the first word of "docbook2html", so it can be a program name with args.
36693 set dummy docbook2html; ac_word=$2
36694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36696 if test "${ac_cv_path_DOCBOOK2HTML+set}" = set; then
36697 echo $ECHO_N "(cached) $ECHO_C" >&6
36698 else
36699 case $DOCBOOK2HTML in
36700 [\\/]* | ?:[\\/]*)
36701 ac_cv_path_DOCBOOK2HTML="$DOCBOOK2HTML" # Let the user override the test with a path.
36704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36705 for as_dir in $PATH
36707 IFS=$as_save_IFS
36708 test -z "$as_dir" && as_dir=.
36709 for ac_exec_ext in '' $ac_executable_extensions; do
36710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36711 ac_cv_path_DOCBOOK2HTML="$as_dir/$ac_word$ac_exec_ext"
36712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36713 break 2
36715 done
36716 done
36717 IFS=$as_save_IFS
36719 test -z "$ac_cv_path_DOCBOOK2HTML" && ac_cv_path_DOCBOOK2HTML="not_found"
36721 esac
36723 DOCBOOK2HTML=$ac_cv_path_DOCBOOK2HTML
36724 if test -n "$DOCBOOK2HTML"; then
36725 { echo "$as_me:$LINENO: result: $DOCBOOK2HTML" >&5
36726 echo "${ECHO_T}$DOCBOOK2HTML" >&6; }
36727 else
36728 { echo "$as_me:$LINENO: result: no" >&5
36729 echo "${ECHO_T}no" >&6; }
36733 { echo "$as_me:$LINENO: checking whether to build docbook documentation" >&5
36734 echo $ECHO_N "checking whether to build docbook documentation... $ECHO_C" >&6; }
36735 build_docbook=0
36736 # Check whether --enable-docbook was given.
36737 if test "${enable_docbook+set}" = set; then
36738 enableval=$enable_docbook;
36739 if test "$enableval" = yes; then build_docbook=1; fi
36741 else
36743 if test "$DOCBOOK2HTML" != not_found; then build_docbook=1; fi
36749 if test $build_docbook = 1; then
36750 { echo "$as_me:$LINENO: result: yes" >&5
36751 echo "${ECHO_T}yes" >&6; }
36752 BUILD_DOCBOOK_VAR=build_docbook
36753 INSTALL_DOCBOOK_VAR=install_docbook
36754 if test "$DOCBOOK2HTML" = not_found; then
36755 echo "ERROR: docbook2html must be installed to build the documentation"
36756 exit 1
36758 else
36759 { echo "$as_me:$LINENO: result: no" >&5
36760 echo "${ECHO_T}no" >&6; }
36766 PRIMARY_TARGET='bochs'
36767 PLUGIN_LIBNAME_TRANSFORMATION='%.o=libbx_%.la'
36769 cat >>confdefs.h <<\_ACEOF
36770 #define BX_PROVIDE_DEVICE_MODELS 1
36771 _ACEOF
36773 IODEV_LIB_VAR='iodev/libiodev.a'
36774 cat >>confdefs.h <<\_ACEOF
36775 #define BX_PROVIDE_CPU_MEMORY 1
36776 _ACEOF
36778 NONINLINE_VAR='$(NONINLINE_OBJS)'
36790 # Check whether --with-x11 was given.
36791 if test "${with_x11+set}" = set; then
36792 withval=$with_x11;
36797 # Check whether --with-beos was given.
36798 if test "${with_beos+set}" = set; then
36799 withval=$with_beos;
36804 # Check whether --with-win32 was given.
36805 if test "${with_win32+set}" = set; then
36806 withval=$with_win32;
36811 # Check whether --with-macos was given.
36812 if test "${with_macos+set}" = set; then
36813 withval=$with_macos;
36818 # Check whether --with-carbon was given.
36819 if test "${with_carbon+set}" = set; then
36820 withval=$with_carbon;
36825 # Check whether --with-nogui was given.
36826 if test "${with_nogui+set}" = set; then
36827 withval=$with_nogui;
36832 # Check whether --with-term was given.
36833 if test "${with_term+set}" = set; then
36834 withval=$with_term;
36839 # Check whether --with-rfb was given.
36840 if test "${with_rfb+set}" = set; then
36841 withval=$with_rfb;
36846 # Check whether --with-amigaos was given.
36847 if test "${with_amigaos+set}" = set; then
36848 withval=$with_amigaos;
36853 # Check whether --with-sdl was given.
36854 if test "${with_sdl+set}" = set; then
36855 withval=$with_sdl;
36860 # Check whether --with-svga was given.
36861 if test "${with_svga+set}" = set; then
36862 withval=$with_svga;
36867 # Check whether --with-wx was given.
36868 if test "${with_wx+set}" = set; then
36869 withval=$with_wx;
36874 # Check whether --with-all-libs was given.
36875 if test "${with_all_libs+set}" = set; then
36876 withval=$with_all_libs;
36880 DASH="-"
36881 SLASH="/"
36882 CXXFP=""
36883 CFP=""
36884 OFP="-o "
36885 MAKELIB="ar rv \$@"
36886 RMCOMMAND="rm -f "
36887 # first define link variables without libtool
36888 LINK="\$(CXX) -o \$@ \$(CXXFLAGS) \$(LDFLAGS)"
36889 LINK_CONSOLE="\$(CXX) -o \$@ \$(CXXFLAGS_CONSOLE) \$(LDFLAGS)"
36890 # unless NO_LT is set, add libtool to the front of the link command
36891 if test "$NO_LT" != 1; then
36892 LINK="\$(LIBTOOL) --mode=link $LINK"
36893 LINK_CONSOLE="\$(LIBTOOL) --mode=link $LINK_CONSOLE"
36895 EXE=""
36896 COMMAND_SEPARATOR="&& \\"
36897 CD_UP_ONE="echo done"
36898 CD_UP_TWO="echo done"
36899 CD_UP_THREE="echo done"
36901 INSTALL_TARGET=install_unix
36902 INSTALL_LIST_FOR_PLATFORM=
36904 # check for existence of and usable version of wxWidgets. This comes
36905 # early so that it could affect which one gets chosen.
36906 if test x$WX_CONFIG = x; then
36907 # Extract the first word of " wx-config --version ", so it can be a program name with args.
36908 set dummy wx-config --version ; ac_word=$2
36909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36911 if test "${ac_cv_prog_WX_CONFIG+set}" = set; then
36912 echo $ECHO_N "(cached) $ECHO_C" >&6
36913 else
36914 if test -n "$WX_CONFIG"; then
36915 ac_cv_prog_WX_CONFIG="$WX_CONFIG" # Let the user override the test.
36916 else
36917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36918 for as_dir in $PATH
36920 IFS=$as_save_IFS
36921 test -z "$as_dir" && as_dir=.
36922 for ac_exec_ext in '' $ac_executable_extensions; do
36923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36924 ac_cv_prog_WX_CONFIG="wx-config"
36925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36926 break 2
36928 done
36929 done
36930 IFS=$as_save_IFS
36932 test -z "$ac_cv_prog_WX_CONFIG" && ac_cv_prog_WX_CONFIG="not_found"
36935 WX_CONFIG=$ac_cv_prog_WX_CONFIG
36936 if test -n "$WX_CONFIG"; then
36937 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36938 echo "${ECHO_T}$WX_CONFIG" >&6; }
36939 else
36940 { echo "$as_me:$LINENO: result: no" >&5
36941 echo "${ECHO_T}no" >&6; }
36946 { echo "$as_me:$LINENO: checking for wxWidgets configuration script" >&5
36947 echo $ECHO_N "checking for wxWidgets configuration script... $ECHO_C" >&6; }
36948 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
36949 echo "${ECHO_T}$WX_CONFIG" >&6; }
36951 ok_wx_version=0
36952 wx_multi_lib=0
36953 wx_needs_gtk2=0
36954 { echo "$as_me:$LINENO: checking for wxWidgets library version" >&5
36955 echo $ECHO_N "checking for wxWidgets library version... $ECHO_C" >&6; }
36956 if test x$WX_CONFIG != xnot_found; then
36957 WX_VERSION=`$WX_CONFIG --version`
36958 WX_BASENAME=`$WX_CONFIG --basename`
36960 # test that version >= 2.3.2. Anybody have a better way to do this? Yuck.
36961 case x$WX_VERSION in
36962 x2.[012]*) ;; # less than version 2.3.x
36963 x2.3.[01]) ;; # less than version 2.3.2
36964 x2.3.[2-4]*) ok_wx_version=1 ;; # 2.3.2 or greater
36965 x2.[4-5]*) ok_wx_version=1 ;; # version 2.4 / 2.5
36966 x2.[6-9]*) # version 2.6 or greater
36967 ok_wx_version=1
36968 wx_multi_lib=1
36969 case x$WX_BASENAME in
36970 xwx_gtk2|xwx_gtk2u) wx_needs_gtk2=1 ;;
36971 *) ;;
36972 esac
36974 x[3-9]*) ok_wx_version=1 ;; # version 3 or greater
36975 *) ;; # who knows?
36976 esac
36979 { echo "$as_me:$LINENO: result: $WX_VERSION" >&5
36980 echo "${ECHO_T}$WX_VERSION" >&6; }
36981 if test "$cross_configure" = 0; then
36982 if test "$ok_wx_version" = 1; then
36983 # detected a usable version
36984 if test "$with_all_libs" = yes; then
36985 with_wx=yes
36987 else
36988 if test "$with_wx" = yes; then
36989 { echo "$as_me:$LINENO: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&5
36990 echo "$as_me: WARNING: Bochs for wxWidgets cannot be compiled here, disabling it" >&2;}
36992 with_wx=no
36996 { echo "$as_me:$LINENO: checking for default gui on this platform" >&5
36997 echo $ECHO_N "checking for default gui on this platform... $ECHO_C" >&6; }
36998 { echo "$as_me:$LINENO: result: $DEFAULT_GUI" >&5
36999 echo "${ECHO_T}$DEFAULT_GUI" >&6; }
37001 display_libs=""
37003 # the $with_* variable tells the gui library to use, but does NOT necessarily
37004 # indicate the platform. Settings that depend on the platform should be
37005 # handled later.
37007 XPM_LIB=''
37008 if test "$with_x11" = yes; then
37009 display_libs="$display_libs X11"
37010 if test "$no_x" = yes; then
37011 echo ERROR: X windows gui was selected, but X windows libraries were not found.
37012 exit 1
37014 cat >>confdefs.h <<\_ACEOF
37015 #define BX_WITH_X11 1
37016 _ACEOF
37018 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_X11)"
37019 GUI_CFLAGS="$GUI_CFLAGS \$(X_CFLAGS)"
37020 GUI_CXXFLAGS="$GUI_CXXFLAGS \$(X_CFLAGS)"
37021 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_X)"
37022 check_xpm=0
37023 { echo "$as_me:$LINENO: checking whether user wants XPM support" >&5
37024 echo $ECHO_N "checking whether user wants XPM support... $ECHO_C" >&6; }
37025 # Check whether --enable-xpm was given.
37026 if test "${enable_xpm+set}" = set; then
37027 enableval=$enable_xpm; if test "$enableval" = yes; then
37028 check_xpm=0
37029 { echo "$as_me:$LINENO: result: yes" >&5
37030 echo "${ECHO_T}yes" >&6; }
37031 check_xpm=1
37032 else
37033 { echo "$as_me:$LINENO: result: no" >&5
37034 echo "${ECHO_T}no" >&6; }
37035 check_xpm=0
37037 else
37039 { echo "$as_me:$LINENO: result: yes" >&5
37040 echo "${ECHO_T}yes" >&6; }
37041 check_xpm=1
37046 if test $check_xpm = 1; then
37047 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37048 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37049 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
37050 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37051 echo $ECHO_N "(cached) $ECHO_C" >&6
37053 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37054 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37055 else
37056 # Is the header compilable?
37057 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
37058 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
37059 cat >conftest.$ac_ext <<_ACEOF
37060 /* confdefs.h. */
37061 _ACEOF
37062 cat confdefs.h >>conftest.$ac_ext
37063 cat >>conftest.$ac_ext <<_ACEOF
37064 /* end confdefs.h. */
37065 $ac_includes_default
37066 #include <X11/xpm.h>
37067 _ACEOF
37068 rm -f conftest.$ac_objext
37069 if { (ac_try="$ac_compile"
37070 case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37073 esac
37074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37075 (eval "$ac_compile") 2>conftest.er1
37076 ac_status=$?
37077 grep -v '^ *+' conftest.er1 >conftest.err
37078 rm -f conftest.er1
37079 cat conftest.err >&5
37080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081 (exit $ac_status); } && {
37082 test -z "$ac_c_werror_flag" ||
37083 test ! -s conftest.err
37084 } && test -s conftest.$ac_objext; then
37085 ac_header_compiler=yes
37086 else
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37090 ac_header_compiler=no
37093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37095 echo "${ECHO_T}$ac_header_compiler" >&6; }
37097 # Is the header present?
37098 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
37099 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
37100 cat >conftest.$ac_ext <<_ACEOF
37101 /* confdefs.h. */
37102 _ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 #include <X11/xpm.h>
37107 _ACEOF
37108 if { (ac_try="$ac_cpp conftest.$ac_ext"
37109 case "(($ac_try" in
37110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37111 *) ac_try_echo=$ac_try;;
37112 esac
37113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37115 ac_status=$?
37116 grep -v '^ *+' conftest.er1 >conftest.err
37117 rm -f conftest.er1
37118 cat conftest.err >&5
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); } >/dev/null && {
37121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37122 test ! -s conftest.err
37123 }; then
37124 ac_header_preproc=yes
37125 else
37126 echo "$as_me: failed program was:" >&5
37127 sed 's/^/| /' conftest.$ac_ext >&5
37129 ac_header_preproc=no
37132 rm -f conftest.err conftest.$ac_ext
37133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37134 echo "${ECHO_T}$ac_header_preproc" >&6; }
37136 # So? What about this header?
37137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37138 yes:no: )
37139 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
37140 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37141 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
37142 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
37143 ac_header_preproc=yes
37145 no:yes:* )
37146 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
37147 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
37148 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
37149 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
37150 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
37151 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
37152 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
37153 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
37154 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
37155 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
37156 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
37157 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
37160 esac
37161 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
37162 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
37163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
37164 echo $ECHO_N "(cached) $ECHO_C" >&6
37165 else
37166 ac_cv_header_X11_xpm_h=$ac_header_preproc
37168 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
37169 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
37172 if test $ac_cv_header_X11_xpm_h = yes; then
37174 cat >>confdefs.h <<\_ACEOF
37175 #define BX_HAVE_XPM_H 1
37176 _ACEOF
37178 XPM_LIB='-lXpm'
37187 if test "$with_beos" = yes; then
37188 display_libs="$display_libs beos"
37189 cat >>confdefs.h <<\_ACEOF
37190 #define BX_WITH_BEOS 1
37191 _ACEOF
37193 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_BEOS)"
37194 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_BEOS)"
37197 if test "$with_sdl" = yes; then
37198 display_libs="$display_libs sdl"
37199 cat >>confdefs.h <<\_ACEOF
37200 #define BX_WITH_SDL 1
37201 _ACEOF
37203 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
37204 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37205 # the files in gui/*.cc.
37206 SDL_CFLAGS=`sdl-config --cflags`
37207 GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
37208 GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
37209 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
37210 if test "$with_win32" != yes -a "$with_wx" != yes; then
37211 case $target in
37212 *-pc-windows*)
37213 RC_CMD="rc /fo"
37214 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37216 *-cygwin* | *-mingw32*)
37217 RC_CMD="windres -o "
37218 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37220 esac
37224 if test "$with_svga" = yes; then
37225 display_libs="$display_libs svga"
37226 cat >>confdefs.h <<\_ACEOF
37227 #define BX_WITH_SVGA 1
37228 _ACEOF
37230 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SVGA)"
37231 # GUI_*FLAGS are added to the compilation of every bochs file, not just
37232 # the files in gui/*.cc.
37233 GUI_CFLAGS="$GUI_CFLAGS"
37234 GUI_CXXFLAGS="$GUI_CXXFLAGS"
37235 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SVGA)"
37238 if test "$with_rfb" = yes; then
37239 display_libs="$display_libs rfb"
37240 cat >>confdefs.h <<\_ACEOF
37241 #define BX_WITH_RFB 1
37242 _ACEOF
37244 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_RFB)"
37245 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_RFB)"
37248 if test "$with_amigaos" = yes; then
37249 display_libs="$display_libs amigaos"
37250 cat >>confdefs.h <<\_ACEOF
37251 #define BX_WITH_AMIGAOS 1
37252 _ACEOF
37254 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_AMIGAOS)"
37255 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_AMIGAOS)"
37258 if test "$with_win32" = yes; then
37259 display_libs="$display_libs win32"
37260 cat >>confdefs.h <<\_ACEOF
37261 #define BX_WITH_WIN32 1
37262 _ACEOF
37264 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WIN32)"
37265 case $target in
37266 *-pc-windows*)
37267 if test "$with_wx" != yes; then
37268 RC_CMD="rc /fo"
37269 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37271 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32_VCPP)"
37273 *-cygwin* | *-mingw32*)
37274 if test "$with_wx" != yes; then
37275 RC_CMD="windres -o "
37276 EXTRA_BX_OBJS="$EXTRA_BX_OBJS win32res.o"
37278 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WIN32)"
37280 *) echo Unsupported compile setup: GUI library is win32, but target is neither windows nor cygwin.
37282 esac
37285 if test "$with_macos" = yes; then
37286 display_libs="$display_libs macos"
37287 cat >>confdefs.h <<\_ACEOF
37288 #define BX_WITH_MACOS 1
37289 _ACEOF
37291 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_MACOS)"
37292 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_MACOS)"
37295 if test "$with_carbon" = yes; then
37296 display_libs="$display_libs carbon"
37297 cat >>confdefs.h <<\_ACEOF
37298 #define BX_WITH_CARBON 1
37299 _ACEOF
37301 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_CARBON)"
37302 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_CARBON)"
37303 if test "$bx_plugins" = 1; then
37304 PRIMARY_TARGET=bochs.app/.build_plugins # only for carbon application
37305 else
37306 PRIMARY_TARGET=bochs.app/.build # only for carbon application
37308 INSTALL_TARGET='install_macosx'
37311 if test "$with_term" = yes; then
37312 display_libs="$display_libs term"
37313 cat >>confdefs.h <<\_ACEOF
37314 #define BX_WITH_TERM 1
37315 _ACEOF
37317 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_TERM)"
37318 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_TERM)"
37319 use_curses=yes
37322 if test "$with_wx" = yes; then
37323 display_libs="$display_libs wxWidgets"
37324 if test "$cross_configure" = 1; then
37325 true # do not insist, if configuring for another machine
37326 else
37327 if test x$ok_wx_version != x1; then
37328 echo ERROR: A usable version of wxWidgets was not found.
37329 echo Upgrade the library or choose another gui.
37330 exit 1
37333 cat >>confdefs.h <<\_ACEOF
37334 #define BX_WITH_WX 1
37335 _ACEOF
37337 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_WX)"
37338 SPECIFIC_GUI_SUPPORT_OBJS="$SPECIFIC_GUI_SUPPORT_OBJS \$(GUI_OBJS_WX_SUPPORT)"
37339 WX_CFLAGS="`$WX_CONFIG --cflags`"
37340 WX_CXXFLAGS="`$WX_CONFIG --cxxflags`"
37341 if test "$wx_multi_lib" = 1; then
37342 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs core,base`"
37343 else
37344 GUI_LINK_OPTS_WX="`$WX_CONFIG --libs`"
37346 if test "$wx_needs_gtk2" = 1; then
37349 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
37350 if test -n "$ac_tool_prefix"; then
37351 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
37352 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
37353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37355 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 else
37358 case $PKG_CONFIG in
37359 [\\/]* | ?:[\\/]*)
37360 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37364 for as_dir in $PATH
37366 IFS=$as_save_IFS
37367 test -z "$as_dir" && as_dir=.
37368 for ac_exec_ext in '' $ac_executable_extensions; do
37369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37372 break 2
37374 done
37375 done
37376 IFS=$as_save_IFS
37379 esac
37381 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37382 if test -n "$PKG_CONFIG"; then
37383 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37384 echo "${ECHO_T}$PKG_CONFIG" >&6; }
37385 else
37386 { echo "$as_me:$LINENO: result: no" >&5
37387 echo "${ECHO_T}no" >&6; }
37392 if test -z "$ac_cv_path_PKG_CONFIG"; then
37393 ac_pt_PKG_CONFIG=$PKG_CONFIG
37394 # Extract the first word of "pkg-config", so it can be a program name with args.
37395 set dummy pkg-config; ac_word=$2
37396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37398 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
37399 echo $ECHO_N "(cached) $ECHO_C" >&6
37400 else
37401 case $ac_pt_PKG_CONFIG in
37402 [\\/]* | ?:[\\/]*)
37403 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
37406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37407 for as_dir in $PATH
37409 IFS=$as_save_IFS
37410 test -z "$as_dir" && as_dir=.
37411 for ac_exec_ext in '' $ac_executable_extensions; do
37412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37413 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37415 break 2
37417 done
37418 done
37419 IFS=$as_save_IFS
37422 esac
37424 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
37425 if test -n "$ac_pt_PKG_CONFIG"; then
37426 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
37427 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
37428 else
37429 { echo "$as_me:$LINENO: result: no" >&5
37430 echo "${ECHO_T}no" >&6; }
37433 if test "x$ac_pt_PKG_CONFIG" = x; then
37434 PKG_CONFIG=""
37435 else
37436 case $cross_compiling:$ac_tool_warned in
37437 yes:)
37438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
37439 whose name does not start with the host triplet. If you think this
37440 configuration is useful to you, please write to autoconf@gnu.org." >&5
37441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
37442 whose name does not start with the host triplet. If you think this
37443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
37444 ac_tool_warned=yes ;;
37445 esac
37446 PKG_CONFIG=$ac_pt_PKG_CONFIG
37448 else
37449 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
37453 if test -n "$PKG_CONFIG"; then
37454 _pkg_min_version=0.9.0
37455 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
37456 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
37457 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
37458 { echo "$as_me:$LINENO: result: yes" >&5
37459 echo "${ECHO_T}yes" >&6; }
37460 else
37461 { echo "$as_me:$LINENO: result: no" >&5
37462 echo "${ECHO_T}no" >&6; }
37463 PKG_CONFIG=""
37468 pkg_failed=no
37469 { echo "$as_me:$LINENO: checking for GTK" >&5
37470 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
37472 if test -n "$PKG_CONFIG"; then
37473 if test -n "$GTK_CFLAGS"; then
37474 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
37475 else
37476 if test -n "$PKG_CONFIG" && \
37477 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37478 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37479 ac_status=$?
37480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37481 (exit $ac_status); }; then
37482 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
37483 else
37484 pkg_failed=yes
37487 else
37488 pkg_failed=untried
37490 if test -n "$PKG_CONFIG"; then
37491 if test -n "$GTK_LIBS"; then
37492 pkg_cv_GTK_LIBS="$GTK_LIBS"
37493 else
37494 if test -n "$PKG_CONFIG" && \
37495 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
37496 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
37497 ac_status=$?
37498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37499 (exit $ac_status); }; then
37500 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
37501 else
37502 pkg_failed=yes
37505 else
37506 pkg_failed=untried
37511 if test $pkg_failed = yes; then
37513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37514 _pkg_short_errors_supported=yes
37515 else
37516 _pkg_short_errors_supported=no
37518 if test $_pkg_short_errors_supported = yes; then
37519 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
37520 else
37521 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
37523 # Put the nasty error message in config.log where it belongs
37524 echo "$GTK_PKG_ERRORS" >&5
37526 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
37528 $GTK_PKG_ERRORS
37530 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37531 installed software in a non-standard prefix.
37533 Alternatively, you may set the environment variables GTK_CFLAGS
37534 and GTK_LIBS to avoid the need to call pkg-config.
37535 See the pkg-config man page for more details.
37536 " >&5
37537 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
37539 $GTK_PKG_ERRORS
37541 Consider adjusting the PKG_CONFIG_PATH environment variable if you
37542 installed software in a non-standard prefix.
37544 Alternatively, you may set the environment variables GTK_CFLAGS
37545 and GTK_LIBS to avoid the need to call pkg-config.
37546 See the pkg-config man page for more details.
37547 " >&2;}
37548 { (exit 1); exit 1; }; }
37549 elif test $pkg_failed = untried; then
37550 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
37551 is in your PATH or set the PKG_CONFIG environment variable to the full
37552 path to pkg-config.
37554 Alternatively, you may set the environment variables GTK_CFLAGS
37555 and GTK_LIBS to avoid the need to call pkg-config.
37556 See the pkg-config man page for more details.
37558 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37559 See \`config.log' for more details." >&5
37560 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
37561 is in your PATH or set the PKG_CONFIG environment variable to the full
37562 path to pkg-config.
37564 Alternatively, you may set the environment variables GTK_CFLAGS
37565 and GTK_LIBS to avoid the need to call pkg-config.
37566 See the pkg-config man page for more details.
37568 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
37569 See \`config.log' for more details." >&2;}
37570 { (exit 1); exit 1; }; }
37571 else
37572 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
37573 GTK_LIBS=$pkg_cv_GTK_LIBS
37574 { echo "$as_me:$LINENO: result: yes" >&5
37575 echo "${ECHO_T}yes" >&6; }
37577 WX_CFLAGS="$WX_CFLAGS $GTK_CFLAGS"
37578 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
37581 else
37582 # if gtk-config exists, then add it to the cflags.
37583 gtkconf=`gtk-config --cflags`
37584 if test $? = 0; then
37585 # gtk-config was found and returned 0, so it must return valid output
37586 WX_CFLAGS="$WX_CFLAGS $gtkconf"
37587 WX_CXXFLAGS="$WX_CXXFLAGS $gtkconf"
37590 # GUI_C*FLAGS are added to the compilation of every bochs file, not just
37591 # the files in gui/*.cc. They are not used when building other things
37592 # such as bximage.
37593 GUI_CFLAGS="$GUI_CFLAGS $WX_CFLAGS"
37594 GUI_CXXFLAGS="$GUI_CXXFLAGS $WX_CXXFLAGS"
37595 GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_WX)"
37596 # using debugger with readline is failing due to thread/signal handler
37597 # problems.
37598 case $target in
37599 *-pc-windows* | *-cygwin* | *-mingw32*)
37600 EXTRA_BX_OBJS="$EXTRA_BX_OBJS wxbochs_resources.o"
37601 GUI_LINK_OPTS_WX="$GUI_LINK_OPTS_WX --subsystem,windows -mwindows"
37603 esac
37606 if test "$with_nogui" = yes; then
37607 display_libs="$display_libs nogui"
37608 cat >>confdefs.h <<\_ACEOF
37609 #define BX_WITH_NOGUI 1
37610 _ACEOF
37612 SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_NOGUI)"
37615 { echo "$as_me:$LINENO: checking for display libraries" >&5
37616 echo $ECHO_N "checking for display libraries... $ECHO_C" >&6; }
37617 { echo "$as_me:$LINENO: result: $display_libs" >&5
37618 echo "${ECHO_T}$display_libs" >&6; }
37620 if test "$display_libs" = ""; then
37621 echo "No display libraries were selected. Use --with-* options to enable"
37622 echo "individual display libraries, or --with-all-libs to detect the ones"
37623 echo "that Bochs supports."
37624 exit 1
37627 if test "$display_libs" = " wxWidgets"; then
37628 { echo "$as_me:$LINENO: checking for default configuration interface" >&5
37629 echo $ECHO_N "checking for default configuration interface... $ECHO_C" >&6; }
37630 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37631 echo "${ECHO_T}wxWidgets" >&6; }
37632 { echo "$as_me:$LINENO: checking for default display library" >&5
37633 echo $ECHO_N "checking for default display library... $ECHO_C" >&6; }
37634 { echo "$as_me:$LINENO: result: wxWidgets" >&5
37635 echo "${ECHO_T}wxWidgets" >&6; }
37636 cat >>confdefs.h <<\_ACEOF
37637 #define BX_DEFAULT_CONFIG_INTERFACE "wx"
37638 _ACEOF
37640 cat >>confdefs.h <<\_ACEOF
37641 #define BX_DEFAULT_DISPLAY_LIBRARY "wx"
37642 _ACEOF
37644 cat >>confdefs.h <<\_ACEOF
37645 #define BX_USE_TEXTCONFIG 0
37646 _ACEOF
37648 else
37649 cat >>confdefs.h <<\_ACEOF
37650 #define BX_USE_TEXTCONFIG 1
37651 _ACEOF
37655 if test "$bx_plugins" = 1; then
37656 # every item in this list will be compiled as a plugin. Do not include
37657 # support objs; they will be mentioned in plugin-specific makefile rules.
37658 GUI_PLUGIN_OBJS="$GUI_PLUGIN_OBJS $SPECIFIC_GUI_OBJS"
37659 else
37660 # include support objs
37661 GUI_NON_PLUGIN_OBJS="$GUI_NON_PLUGIN_OBJS $SPECIFIC_GUI_OBJS $SPECIFIC_GUI_SUPPORT_OBJS"
37670 for ac_prog in wget curl fetch
37672 # Extract the first word of "$ac_prog", so it can be a program name with args.
37673 set dummy $ac_prog; ac_word=$2
37674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37676 if test "${ac_cv_prog_WGET+set}" = set; then
37677 echo $ECHO_N "(cached) $ECHO_C" >&6
37678 else
37679 if test -n "$WGET"; then
37680 ac_cv_prog_WGET="$WGET" # Let the user override the test.
37681 else
37682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37683 for as_dir in $PATH
37685 IFS=$as_save_IFS
37686 test -z "$as_dir" && as_dir=.
37687 for ac_exec_ext in '' $ac_executable_extensions; do
37688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37689 ac_cv_prog_WGET="$ac_prog"
37690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37691 break 2
37693 done
37694 done
37695 IFS=$as_save_IFS
37699 WGET=$ac_cv_prog_WGET
37700 if test -n "$WGET"; then
37701 { echo "$as_me:$LINENO: result: $WGET" >&5
37702 echo "${ECHO_T}$WGET" >&6; }
37703 else
37704 { echo "$as_me:$LINENO: result: no" >&5
37705 echo "${ECHO_T}no" >&6; }
37709 test -n "$WGET" && break
37710 done
37711 test -n "$WGET" || WGET="not_found"
37713 if test "$WGET" = not_found; then
37714 { echo "$as_me:$LINENO: WARNING: cannot find wget (or equivalent) command" >&5
37715 echo "$as_me: WARNING: cannot find wget (or equivalent) command" >&2;}
37717 # everybody has to re-invent the wheel. differently.
37718 test "${WGET}" = "curl" && WGET="curl -O"
37720 # modify settings based on target platform
37721 case "$target" in
37722 *-macosx*)
37723 cat >>confdefs.h <<\_ACEOF
37724 #define BX_HAVE_STRDUP 0
37725 _ACEOF
37728 *-macos*)
37729 cat >>confdefs.h <<\_ACEOF
37730 #define BX_HAVE_STRDUP 0
37731 _ACEOF
37733 cat >>confdefs.h <<\_ACEOF
37734 #define BX_PLUGINS 0
37735 _ACEOF
37737 cat >>confdefs.h <<\_ACEOF
37738 #define BX_HAVE_DLFCN_H 0
37739 _ACEOF
37741 cat >>confdefs.h <<\_ACEOF
37742 #define BX_HAVE_SOCKLEN_T 0
37743 _ACEOF
37745 cat >>confdefs.h <<\_ACEOF
37746 #define BX_HAVE_SELECT 0
37747 _ACEOF
37749 cat >>confdefs.h <<\_ACEOF
37750 #define BX_HAVE_GETTIMEOFDAY 0
37751 _ACEOF
37753 cat >>confdefs.h <<\_ACEOF
37754 #define BX_NO_ATTRIBUTES 1
37755 _ACEOF
37757 cat >>confdefs.h <<\_ACEOF
37758 #define HAVE_TUNTAP 0
37759 _ACEOF
37761 cat >>confdefs.h <<\_ACEOF
37762 #define HAVE_ETHERTAP 0
37763 _ACEOF
37765 cat >>confdefs.h <<\_ACEOF
37766 #define BX_HAVE_HASH_MAP 0
37767 _ACEOF
37770 *-pc-windows*)
37771 INSTALL_TARGET='install_win32'
37772 CC="cl"
37773 CXX="$CC"
37774 #C_OPT="/Zi" # for debugging
37775 C_OPT="/Ox" # optimize for speed
37776 CFLAGS="/nologo /G6 /MT /W3 /GX- /DNDEBUG /DWIN32 /D_WINDOWS $C_OPT"
37777 CXXFLAGS="$CFLAGS"
37778 DASH="/"
37779 SLASH="\\"
37780 CXXFP="/Tp"
37781 CFP="/Tc"
37782 OFP="/Fo"
37783 MAKE=nmake
37784 MAKELIB="lib /nologo /subsystem:console /verbose /out:\$@"
37785 RMCOMMAND="-del"
37786 RANLIB="echo"
37787 #L_OPT="/debug" # for debugging
37788 L_OPT="" # no debug info
37789 LINK="link $L_OPT /nologo /subsystem:console /incremental:no /out:\$@ "
37790 LINK_CONSOLE=$LINK
37791 EXE=".exe"
37792 PRIMARY_TARGET="bochs.exe"
37793 BXIMAGE_LINK_OPTS="user32.lib"
37794 # also compile niclist if networking is on
37795 if test "$networking" = yes; then
37796 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37798 COMMAND_SEPARATOR=""
37799 CD_UP_ONE="cd .."
37800 CD_UP_TWO="cd ..\.."
37801 CD_UP_THREE="cd ..\..\.."
37802 have_gettimeofday=0 # even though it may exist in build environment
37803 cat >>confdefs.h <<\_ACEOF
37804 #define BX_64BIT_CONSTANTS_USE_LL 0
37805 _ACEOF
37807 cat >>confdefs.h <<\_ACEOF
37808 #define inline __inline
37809 _ACEOF
37811 cat >>confdefs.h <<\_ACEOF
37812 #define BX_NO_EMPTY_STRUCTS 1
37813 _ACEOF
37815 cat >>confdefs.h <<\_ACEOF
37816 #define BX_NO_ATTRIBUTES 1
37817 _ACEOF
37819 cat >>confdefs.h <<\_ACEOF
37820 #define BX_HAVE_HASH_MAP 0
37821 _ACEOF
37823 cat >>confdefs.h <<\_ACEOF
37824 #define BX_HAVE_HASH_MAP_H 0
37825 _ACEOF
37827 cat >>confdefs.h <<\_ACEOF
37828 #define BX_HAVE_STRTOULL 0
37829 _ACEOF
37831 cat >>confdefs.h <<\_ACEOF
37832 #define BX_HAVE_STRTOUQ 0
37833 _ACEOF
37835 cat >>confdefs.h <<\_ACEOF
37836 #define HAVE_LIBREADLINE 0
37837 _ACEOF
37839 cat >>confdefs.h <<\_ACEOF
37840 #define BX_HAVE_GETTIMEOFDAY 0
37841 _ACEOF
37843 cat >>confdefs.h <<\_ACEOF
37844 #define BX_HAVE_DLFCN_H 0
37845 _ACEOF
37847 cat >>confdefs.h <<\_ACEOF
37848 #define BX_HAVE_MKSTEMP 0
37849 _ACEOF
37851 cat >>confdefs.h <<\_ACEOF
37852 #define BX_HAVE_SYS_MMAN_H 0
37853 _ACEOF
37855 cat >>confdefs.h <<\_ACEOF
37856 #define BX_HAVE_USLEEP 0
37857 _ACEOF
37859 cat >>confdefs.h <<\_ACEOF
37860 #define HAVE_ETHERTAP 0
37861 _ACEOF
37863 cat >>confdefs.h <<\_ACEOF
37864 #define BX_HAVE_SELECT 1
37865 _ACEOF
37867 cat >>confdefs.h <<\_ACEOF
37868 #define BX_HAVE_SOCKLEN_T 0
37869 _ACEOF
37872 *-pc-cygwin*)
37873 EXE=".exe"
37874 PRIMARY_TARGET="bochs.exe"
37875 BXIMAGE_LINK_OPTS="-luser32"
37876 if test "$networking" = yes; then
37877 PRIMARY_TARGET="$PRIMARY_TARGET niclist.exe"
37879 cat >>confdefs.h <<\_ACEOF
37880 #define BX_HAVE_SELECT 1
37881 _ACEOF
37884 *-pc-mingw*)
37885 BXIMAGE_LINK_OPTS="-luser32"
37886 if test "$networking" = yes; then
37887 PRIMARY_TARGET="$PRIMARY_TARGET niclist"
37889 cat >>confdefs.h <<\_ACEOF
37890 #define BX_HAVE_SELECT 1
37891 _ACEOF
37894 *-beos*)
37895 PRIMARY_TARGET=.bochs_beos_target
37897 esac
37899 DIALOG_OBJS=""
37900 EXPORT_DYNAMIC="-export-dynamic"
37901 case $target in
37902 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
37903 if test "$bx_plugins" = 1; then
37904 { echo "$as_me:$LINENO: checking for opendir in -lmingwex" >&5
37905 echo $ECHO_N "checking for opendir in -lmingwex... $ECHO_C" >&6; }
37906 if test "${ac_cv_lib_mingwex_opendir+set}" = set; then
37907 echo $ECHO_N "(cached) $ECHO_C" >&6
37908 else
37909 ac_check_lib_save_LIBS=$LIBS
37910 LIBS="-lmingwex $LIBS"
37911 cat >conftest.$ac_ext <<_ACEOF
37912 /* confdefs.h. */
37913 _ACEOF
37914 cat confdefs.h >>conftest.$ac_ext
37915 cat >>conftest.$ac_ext <<_ACEOF
37916 /* end confdefs.h. */
37918 /* Override any GCC internal prototype to avoid an error.
37919 Use char because int might match the return type of a GCC
37920 builtin and then its argument prototype would still apply. */
37921 #ifdef __cplusplus
37922 extern "C"
37923 #endif
37924 char opendir ();
37926 main ()
37928 return opendir ();
37930 return 0;
37932 _ACEOF
37933 rm -f conftest.$ac_objext conftest$ac_exeext
37934 if { (ac_try="$ac_link"
37935 case "(($ac_try" in
37936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37937 *) ac_try_echo=$ac_try;;
37938 esac
37939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37940 (eval "$ac_link") 2>conftest.er1
37941 ac_status=$?
37942 grep -v '^ *+' conftest.er1 >conftest.err
37943 rm -f conftest.er1
37944 cat conftest.err >&5
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); } && {
37947 test -z "$ac_c_werror_flag" ||
37948 test ! -s conftest.err
37949 } && test -s conftest$ac_exeext &&
37950 $as_test_x conftest$ac_exeext; then
37951 ac_cv_lib_mingwex_opendir=yes
37952 else
37953 echo "$as_me: failed program was:" >&5
37954 sed 's/^/| /' conftest.$ac_ext >&5
37956 ac_cv_lib_mingwex_opendir=no
37959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37960 conftest$ac_exeext conftest.$ac_ext
37961 LIBS=$ac_check_lib_save_LIBS
37963 { echo "$as_me:$LINENO: result: $ac_cv_lib_mingwex_opendir" >&5
37964 echo "${ECHO_T}$ac_cv_lib_mingwex_opendir" >&6; }
37965 if test $ac_cv_lib_mingwex_opendir = yes; then
37966 LIBS="$LIBS -lmingwex"
37969 # set variables for building DLL plugins
37970 PRIMARY_TARGET=".win32_dll_plugin_target"
37971 PLUGIN_LIBNAME_TRANSFORMATION='%.o=bx_%.dll'
37972 INSTALL_PLUGINS_VAR=install_dll_plugins
37973 else
37974 if test "$with_win32" != yes; then
37975 LIBS="$LIBS -lcomctl32"
37978 DIALOG_OBJS="win32dialog.o win32_enh_dbg.o"
37979 EXPORT_DYNAMIC=""
37981 esac
37985 if test "$use_curses" = yes -a "$cross_configure" = 0; then
37986 { echo "$as_me:$LINENO: checking for mvaddch in -lcurses" >&5
37987 echo $ECHO_N "checking for mvaddch in -lcurses... $ECHO_C" >&6; }
37988 if test "${ac_cv_lib_curses_mvaddch+set}" = set; then
37989 echo $ECHO_N "(cached) $ECHO_C" >&6
37990 else
37991 ac_check_lib_save_LIBS=$LIBS
37992 LIBS="-lcurses $LIBS"
37993 cat >conftest.$ac_ext <<_ACEOF
37994 /* confdefs.h. */
37995 _ACEOF
37996 cat confdefs.h >>conftest.$ac_ext
37997 cat >>conftest.$ac_ext <<_ACEOF
37998 /* end confdefs.h. */
38000 /* Override any GCC internal prototype to avoid an error.
38001 Use char because int might match the return type of a GCC
38002 builtin and then its argument prototype would still apply. */
38003 #ifdef __cplusplus
38004 extern "C"
38005 #endif
38006 char mvaddch ();
38008 main ()
38010 return mvaddch ();
38012 return 0;
38014 _ACEOF
38015 rm -f conftest.$ac_objext conftest$ac_exeext
38016 if { (ac_try="$ac_link"
38017 case "(($ac_try" in
38018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38019 *) ac_try_echo=$ac_try;;
38020 esac
38021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38022 (eval "$ac_link") 2>conftest.er1
38023 ac_status=$?
38024 grep -v '^ *+' conftest.er1 >conftest.err
38025 rm -f conftest.er1
38026 cat conftest.err >&5
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); } && {
38029 test -z "$ac_c_werror_flag" ||
38030 test ! -s conftest.err
38031 } && test -s conftest$ac_exeext &&
38032 $as_test_x conftest$ac_exeext; then
38033 ac_cv_lib_curses_mvaddch=yes
38034 else
38035 echo "$as_me: failed program was:" >&5
38036 sed 's/^/| /' conftest.$ac_ext >&5
38038 ac_cv_lib_curses_mvaddch=no
38041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38042 conftest$ac_exeext conftest.$ac_ext
38043 LIBS=$ac_check_lib_save_LIBS
38045 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_mvaddch" >&5
38046 echo "${ECHO_T}$ac_cv_lib_curses_mvaddch" >&6; }
38047 if test $ac_cv_lib_curses_mvaddch = yes; then
38048 GUI_LINK_OPTS_TERM='-lcurses'
38051 { echo "$as_me:$LINENO: checking for mvaddch in -lncurses" >&5
38052 echo $ECHO_N "checking for mvaddch in -lncurses... $ECHO_C" >&6; }
38053 if test "${ac_cv_lib_ncurses_mvaddch+set}" = set; then
38054 echo $ECHO_N "(cached) $ECHO_C" >&6
38055 else
38056 ac_check_lib_save_LIBS=$LIBS
38057 LIBS="-lncurses $LIBS"
38058 cat >conftest.$ac_ext <<_ACEOF
38059 /* confdefs.h. */
38060 _ACEOF
38061 cat confdefs.h >>conftest.$ac_ext
38062 cat >>conftest.$ac_ext <<_ACEOF
38063 /* end confdefs.h. */
38065 /* Override any GCC internal prototype to avoid an error.
38066 Use char because int might match the return type of a GCC
38067 builtin and then its argument prototype would still apply. */
38068 #ifdef __cplusplus
38069 extern "C"
38070 #endif
38071 char mvaddch ();
38073 main ()
38075 return mvaddch ();
38077 return 0;
38079 _ACEOF
38080 rm -f conftest.$ac_objext conftest$ac_exeext
38081 if { (ac_try="$ac_link"
38082 case "(($ac_try" in
38083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38084 *) ac_try_echo=$ac_try;;
38085 esac
38086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38087 (eval "$ac_link") 2>conftest.er1
38088 ac_status=$?
38089 grep -v '^ *+' conftest.er1 >conftest.err
38090 rm -f conftest.er1
38091 cat conftest.err >&5
38092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 (exit $ac_status); } && {
38094 test -z "$ac_c_werror_flag" ||
38095 test ! -s conftest.err
38096 } && test -s conftest$ac_exeext &&
38097 $as_test_x conftest$ac_exeext; then
38098 ac_cv_lib_ncurses_mvaddch=yes
38099 else
38100 echo "$as_me: failed program was:" >&5
38101 sed 's/^/| /' conftest.$ac_ext >&5
38103 ac_cv_lib_ncurses_mvaddch=no
38106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38107 conftest$ac_exeext conftest.$ac_ext
38108 LIBS=$ac_check_lib_save_LIBS
38110 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_mvaddch" >&5
38111 echo "${ECHO_T}$ac_cv_lib_ncurses_mvaddch" >&6; }
38112 if test $ac_cv_lib_ncurses_mvaddch = yes; then
38113 GUI_LINK_OPTS_TERM='-lncurses'
38116 { echo "$as_me:$LINENO: checking for mvaddch in -ltermlib" >&5
38117 echo $ECHO_N "checking for mvaddch in -ltermlib... $ECHO_C" >&6; }
38118 if test "${ac_cv_lib_termlib_mvaddch+set}" = set; then
38119 echo $ECHO_N "(cached) $ECHO_C" >&6
38120 else
38121 ac_check_lib_save_LIBS=$LIBS
38122 LIBS="-ltermlib $LIBS"
38123 cat >conftest.$ac_ext <<_ACEOF
38124 /* confdefs.h. */
38125 _ACEOF
38126 cat confdefs.h >>conftest.$ac_ext
38127 cat >>conftest.$ac_ext <<_ACEOF
38128 /* end confdefs.h. */
38130 /* Override any GCC internal prototype to avoid an error.
38131 Use char because int might match the return type of a GCC
38132 builtin and then its argument prototype would still apply. */
38133 #ifdef __cplusplus
38134 extern "C"
38135 #endif
38136 char mvaddch ();
38138 main ()
38140 return mvaddch ();
38142 return 0;
38144 _ACEOF
38145 rm -f conftest.$ac_objext conftest$ac_exeext
38146 if { (ac_try="$ac_link"
38147 case "(($ac_try" in
38148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38149 *) ac_try_echo=$ac_try;;
38150 esac
38151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38152 (eval "$ac_link") 2>conftest.er1
38153 ac_status=$?
38154 grep -v '^ *+' conftest.er1 >conftest.err
38155 rm -f conftest.er1
38156 cat conftest.err >&5
38157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38158 (exit $ac_status); } && {
38159 test -z "$ac_c_werror_flag" ||
38160 test ! -s conftest.err
38161 } && test -s conftest$ac_exeext &&
38162 $as_test_x conftest$ac_exeext; then
38163 ac_cv_lib_termlib_mvaddch=yes
38164 else
38165 echo "$as_me: failed program was:" >&5
38166 sed 's/^/| /' conftest.$ac_ext >&5
38168 ac_cv_lib_termlib_mvaddch=no
38171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38172 conftest$ac_exeext conftest.$ac_ext
38173 LIBS=$ac_check_lib_save_LIBS
38175 { echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_mvaddch" >&5
38176 echo "${ECHO_T}$ac_cv_lib_termlib_mvaddch" >&6; }
38177 if test $ac_cv_lib_termlib_mvaddch = yes; then
38178 GUI_LINK_OPTS_TERM='-ltermlib'
38181 { echo "$as_me:$LINENO: checking for mvaddch in -lpdcurses" >&5
38182 echo $ECHO_N "checking for mvaddch in -lpdcurses... $ECHO_C" >&6; }
38183 if test "${ac_cv_lib_pdcurses_mvaddch+set}" = set; then
38184 echo $ECHO_N "(cached) $ECHO_C" >&6
38185 else
38186 ac_check_lib_save_LIBS=$LIBS
38187 LIBS="-lpdcurses $LIBS"
38188 cat >conftest.$ac_ext <<_ACEOF
38189 /* confdefs.h. */
38190 _ACEOF
38191 cat confdefs.h >>conftest.$ac_ext
38192 cat >>conftest.$ac_ext <<_ACEOF
38193 /* end confdefs.h. */
38195 /* Override any GCC internal prototype to avoid an error.
38196 Use char because int might match the return type of a GCC
38197 builtin and then its argument prototype would still apply. */
38198 #ifdef __cplusplus
38199 extern "C"
38200 #endif
38201 char mvaddch ();
38203 main ()
38205 return mvaddch ();
38207 return 0;
38209 _ACEOF
38210 rm -f conftest.$ac_objext conftest$ac_exeext
38211 if { (ac_try="$ac_link"
38212 case "(($ac_try" in
38213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38214 *) ac_try_echo=$ac_try;;
38215 esac
38216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38217 (eval "$ac_link") 2>conftest.er1
38218 ac_status=$?
38219 grep -v '^ *+' conftest.er1 >conftest.err
38220 rm -f conftest.er1
38221 cat conftest.err >&5
38222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38223 (exit $ac_status); } && {
38224 test -z "$ac_c_werror_flag" ||
38225 test ! -s conftest.err
38226 } && test -s conftest$ac_exeext &&
38227 $as_test_x conftest$ac_exeext; then
38228 ac_cv_lib_pdcurses_mvaddch=yes
38229 else
38230 echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38233 ac_cv_lib_pdcurses_mvaddch=no
38236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38237 conftest$ac_exeext conftest.$ac_ext
38238 LIBS=$ac_check_lib_save_LIBS
38240 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdcurses_mvaddch" >&5
38241 echo "${ECHO_T}$ac_cv_lib_pdcurses_mvaddch" >&6; }
38242 if test $ac_cv_lib_pdcurses_mvaddch = yes; then
38243 GUI_LINK_OPTS_TERM='-lpdcurses'
38246 if test "$GUI_LINK_OPTS_TERM" = ""; then
38247 echo Curses library not found: tried curses, ncurses, termlib and pdcurses.
38248 exit 1
38252 if test "$with_term" = yes; then
38253 old_LIBS="$LIBS"
38254 LIBS="$LIBS $GUI_LINK_OPTS_TERM"
38256 for ac_func in color_set
38258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38259 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38262 echo $ECHO_N "(cached) $ECHO_C" >&6
38263 else
38264 cat >conftest.$ac_ext <<_ACEOF
38265 /* confdefs.h. */
38266 _ACEOF
38267 cat confdefs.h >>conftest.$ac_ext
38268 cat >>conftest.$ac_ext <<_ACEOF
38269 /* end confdefs.h. */
38270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38272 #define $ac_func innocuous_$ac_func
38274 /* System header to define __stub macros and hopefully few prototypes,
38275 which can conflict with char $ac_func (); below.
38276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38277 <limits.h> exists even on freestanding compilers. */
38279 #ifdef __STDC__
38280 # include <limits.h>
38281 #else
38282 # include <assert.h>
38283 #endif
38285 #undef $ac_func
38287 /* Override any GCC internal prototype to avoid an error.
38288 Use char because int might match the return type of a GCC
38289 builtin and then its argument prototype would still apply. */
38290 #ifdef __cplusplus
38291 extern "C"
38292 #endif
38293 char $ac_func ();
38294 /* The GNU C library defines this for functions which it implements
38295 to always fail with ENOSYS. Some functions are actually named
38296 something starting with __ and the normal name is an alias. */
38297 #if defined __stub_$ac_func || defined __stub___$ac_func
38298 choke me
38299 #endif
38302 main ()
38304 return $ac_func ();
38306 return 0;
38308 _ACEOF
38309 rm -f conftest.$ac_objext conftest$ac_exeext
38310 if { (ac_try="$ac_link"
38311 case "(($ac_try" in
38312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38313 *) ac_try_echo=$ac_try;;
38314 esac
38315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38316 (eval "$ac_link") 2>conftest.er1
38317 ac_status=$?
38318 grep -v '^ *+' conftest.er1 >conftest.err
38319 rm -f conftest.er1
38320 cat conftest.err >&5
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); } && {
38323 test -z "$ac_c_werror_flag" ||
38324 test ! -s conftest.err
38325 } && test -s conftest$ac_exeext &&
38326 $as_test_x conftest$ac_exeext; then
38327 eval "$as_ac_var=yes"
38328 else
38329 echo "$as_me: failed program was:" >&5
38330 sed 's/^/| /' conftest.$ac_ext >&5
38332 eval "$as_ac_var=no"
38335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38336 conftest$ac_exeext conftest.$ac_ext
38338 ac_res=`eval echo '${'$as_ac_var'}'`
38339 { echo "$as_me:$LINENO: result: $ac_res" >&5
38340 echo "${ECHO_T}$ac_res" >&6; }
38341 if test `eval echo '${'$as_ac_var'}'` = yes; then
38342 cat >>confdefs.h <<_ACEOF
38343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38344 _ACEOF
38345 cat >>confdefs.h <<\_ACEOF
38346 #define BX_HAVE_COLOR_SET 1
38347 _ACEOF
38350 done
38353 for ac_func in mvhline
38355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38359 echo $ECHO_N "(cached) $ECHO_C" >&6
38360 else
38361 cat >conftest.$ac_ext <<_ACEOF
38362 /* confdefs.h. */
38363 _ACEOF
38364 cat confdefs.h >>conftest.$ac_ext
38365 cat >>conftest.$ac_ext <<_ACEOF
38366 /* end confdefs.h. */
38367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38369 #define $ac_func innocuous_$ac_func
38371 /* System header to define __stub macros and hopefully few prototypes,
38372 which can conflict with char $ac_func (); below.
38373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38374 <limits.h> exists even on freestanding compilers. */
38376 #ifdef __STDC__
38377 # include <limits.h>
38378 #else
38379 # include <assert.h>
38380 #endif
38382 #undef $ac_func
38384 /* Override any GCC internal prototype to avoid an error.
38385 Use char because int might match the return type of a GCC
38386 builtin and then its argument prototype would still apply. */
38387 #ifdef __cplusplus
38388 extern "C"
38389 #endif
38390 char $ac_func ();
38391 /* The GNU C library defines this for functions which it implements
38392 to always fail with ENOSYS. Some functions are actually named
38393 something starting with __ and the normal name is an alias. */
38394 #if defined __stub_$ac_func || defined __stub___$ac_func
38395 choke me
38396 #endif
38399 main ()
38401 return $ac_func ();
38403 return 0;
38405 _ACEOF
38406 rm -f conftest.$ac_objext conftest$ac_exeext
38407 if { (ac_try="$ac_link"
38408 case "(($ac_try" in
38409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38410 *) ac_try_echo=$ac_try;;
38411 esac
38412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38413 (eval "$ac_link") 2>conftest.er1
38414 ac_status=$?
38415 grep -v '^ *+' conftest.er1 >conftest.err
38416 rm -f conftest.er1
38417 cat conftest.err >&5
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); } && {
38420 test -z "$ac_c_werror_flag" ||
38421 test ! -s conftest.err
38422 } && test -s conftest$ac_exeext &&
38423 $as_test_x conftest$ac_exeext; then
38424 eval "$as_ac_var=yes"
38425 else
38426 echo "$as_me: failed program was:" >&5
38427 sed 's/^/| /' conftest.$ac_ext >&5
38429 eval "$as_ac_var=no"
38432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38433 conftest$ac_exeext conftest.$ac_ext
38435 ac_res=`eval echo '${'$as_ac_var'}'`
38436 { echo "$as_me:$LINENO: result: $ac_res" >&5
38437 echo "${ECHO_T}$ac_res" >&6; }
38438 if test `eval echo '${'$as_ac_var'}'` = yes; then
38439 cat >>confdefs.h <<_ACEOF
38440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38441 _ACEOF
38442 cat >>confdefs.h <<\_ACEOF
38443 #define BX_HAVE_MVHLINE 1
38444 _ACEOF
38447 done
38450 for ac_func in mvvline
38452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38456 echo $ECHO_N "(cached) $ECHO_C" >&6
38457 else
38458 cat >conftest.$ac_ext <<_ACEOF
38459 /* confdefs.h. */
38460 _ACEOF
38461 cat confdefs.h >>conftest.$ac_ext
38462 cat >>conftest.$ac_ext <<_ACEOF
38463 /* end confdefs.h. */
38464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38466 #define $ac_func innocuous_$ac_func
38468 /* System header to define __stub macros and hopefully few prototypes,
38469 which can conflict with char $ac_func (); below.
38470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38471 <limits.h> exists even on freestanding compilers. */
38473 #ifdef __STDC__
38474 # include <limits.h>
38475 #else
38476 # include <assert.h>
38477 #endif
38479 #undef $ac_func
38481 /* Override any GCC internal prototype to avoid an error.
38482 Use char because int might match the return type of a GCC
38483 builtin and then its argument prototype would still apply. */
38484 #ifdef __cplusplus
38485 extern "C"
38486 #endif
38487 char $ac_func ();
38488 /* The GNU C library defines this for functions which it implements
38489 to always fail with ENOSYS. Some functions are actually named
38490 something starting with __ and the normal name is an alias. */
38491 #if defined __stub_$ac_func || defined __stub___$ac_func
38492 choke me
38493 #endif
38496 main ()
38498 return $ac_func ();
38500 return 0;
38502 _ACEOF
38503 rm -f conftest.$ac_objext conftest$ac_exeext
38504 if { (ac_try="$ac_link"
38505 case "(($ac_try" in
38506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38507 *) ac_try_echo=$ac_try;;
38508 esac
38509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38510 (eval "$ac_link") 2>conftest.er1
38511 ac_status=$?
38512 grep -v '^ *+' conftest.er1 >conftest.err
38513 rm -f conftest.er1
38514 cat conftest.err >&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); } && {
38517 test -z "$ac_c_werror_flag" ||
38518 test ! -s conftest.err
38519 } && test -s conftest$ac_exeext &&
38520 $as_test_x conftest$ac_exeext; then
38521 eval "$as_ac_var=yes"
38522 else
38523 echo "$as_me: failed program was:" >&5
38524 sed 's/^/| /' conftest.$ac_ext >&5
38526 eval "$as_ac_var=no"
38529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38530 conftest$ac_exeext conftest.$ac_ext
38532 ac_res=`eval echo '${'$as_ac_var'}'`
38533 { echo "$as_me:$LINENO: result: $ac_res" >&5
38534 echo "${ECHO_T}$ac_res" >&6; }
38535 if test `eval echo '${'$as_ac_var'}'` = yes; then
38536 cat >>confdefs.h <<_ACEOF
38537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38538 _ACEOF
38539 cat >>confdefs.h <<\_ACEOF
38540 #define BX_HAVE_MVVLINE 1
38541 _ACEOF
38544 done
38546 LIBS="$old_LIBS"
38549 if test "$with_rfb" = yes; then
38550 # we need the socket function
38551 case $target in
38552 *-pc-windows*)
38553 # is this okay without a check ?
38554 RFB_LIBS="$RFB_LIBS wsock32.lib"
38555 have_socket=yes
38557 *-pc-winnt* | *-pc-cygwin* | *-pc-mingw32*)
38558 # is this okay without a check ?
38559 RFB_LIBS="$RFB_LIBS -lwsock32"
38560 have_socket=yes
38564 for ac_func in socket
38566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38567 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38570 echo $ECHO_N "(cached) $ECHO_C" >&6
38571 else
38572 cat >conftest.$ac_ext <<_ACEOF
38573 /* confdefs.h. */
38574 _ACEOF
38575 cat confdefs.h >>conftest.$ac_ext
38576 cat >>conftest.$ac_ext <<_ACEOF
38577 /* end confdefs.h. */
38578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38580 #define $ac_func innocuous_$ac_func
38582 /* System header to define __stub macros and hopefully few prototypes,
38583 which can conflict with char $ac_func (); below.
38584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38585 <limits.h> exists even on freestanding compilers. */
38587 #ifdef __STDC__
38588 # include <limits.h>
38589 #else
38590 # include <assert.h>
38591 #endif
38593 #undef $ac_func
38595 /* Override any GCC internal prototype to avoid an error.
38596 Use char because int might match the return type of a GCC
38597 builtin and then its argument prototype would still apply. */
38598 #ifdef __cplusplus
38599 extern "C"
38600 #endif
38601 char $ac_func ();
38602 /* The GNU C library defines this for functions which it implements
38603 to always fail with ENOSYS. Some functions are actually named
38604 something starting with __ and the normal name is an alias. */
38605 #if defined __stub_$ac_func || defined __stub___$ac_func
38606 choke me
38607 #endif
38610 main ()
38612 return $ac_func ();
38614 return 0;
38616 _ACEOF
38617 rm -f conftest.$ac_objext conftest$ac_exeext
38618 if { (ac_try="$ac_link"
38619 case "(($ac_try" in
38620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38621 *) ac_try_echo=$ac_try;;
38622 esac
38623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38624 (eval "$ac_link") 2>conftest.er1
38625 ac_status=$?
38626 grep -v '^ *+' conftest.er1 >conftest.err
38627 rm -f conftest.er1
38628 cat conftest.err >&5
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); } && {
38631 test -z "$ac_c_werror_flag" ||
38632 test ! -s conftest.err
38633 } && test -s conftest$ac_exeext &&
38634 $as_test_x conftest$ac_exeext; then
38635 eval "$as_ac_var=yes"
38636 else
38637 echo "$as_me: failed program was:" >&5
38638 sed 's/^/| /' conftest.$ac_ext >&5
38640 eval "$as_ac_var=no"
38643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38644 conftest$ac_exeext conftest.$ac_ext
38646 ac_res=`eval echo '${'$as_ac_var'}'`
38647 { echo "$as_me:$LINENO: result: $ac_res" >&5
38648 echo "${ECHO_T}$ac_res" >&6; }
38649 if test `eval echo '${'$as_ac_var'}'` = yes; then
38650 cat >>confdefs.h <<_ACEOF
38651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38652 _ACEOF
38653 have_socket=yes
38655 done
38657 if test "$have_socket" != yes; then
38658 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38659 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
38660 if test "${ac_cv_lib_socket_socket+set}" = set; then
38661 echo $ECHO_N "(cached) $ECHO_C" >&6
38662 else
38663 ac_check_lib_save_LIBS=$LIBS
38664 LIBS="-lsocket $LIBS"
38665 cat >conftest.$ac_ext <<_ACEOF
38666 /* confdefs.h. */
38667 _ACEOF
38668 cat confdefs.h >>conftest.$ac_ext
38669 cat >>conftest.$ac_ext <<_ACEOF
38670 /* end confdefs.h. */
38672 /* Override any GCC internal prototype to avoid an error.
38673 Use char because int might match the return type of a GCC
38674 builtin and then its argument prototype would still apply. */
38675 #ifdef __cplusplus
38676 extern "C"
38677 #endif
38678 char socket ();
38680 main ()
38682 return socket ();
38684 return 0;
38686 _ACEOF
38687 rm -f conftest.$ac_objext conftest$ac_exeext
38688 if { (ac_try="$ac_link"
38689 case "(($ac_try" in
38690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691 *) ac_try_echo=$ac_try;;
38692 esac
38693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38694 (eval "$ac_link") 2>conftest.er1
38695 ac_status=$?
38696 grep -v '^ *+' conftest.er1 >conftest.err
38697 rm -f conftest.er1
38698 cat conftest.err >&5
38699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700 (exit $ac_status); } && {
38701 test -z "$ac_c_werror_flag" ||
38702 test ! -s conftest.err
38703 } && test -s conftest$ac_exeext &&
38704 $as_test_x conftest$ac_exeext; then
38705 ac_cv_lib_socket_socket=yes
38706 else
38707 echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38710 ac_cv_lib_socket_socket=no
38713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38714 conftest$ac_exeext conftest.$ac_ext
38715 LIBS=$ac_check_lib_save_LIBS
38717 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38718 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
38719 if test $ac_cv_lib_socket_socket = yes; then
38721 RFB_LIBS="$RFB_LIBS -lsocket"
38722 have_socket=yes
38728 esac
38729 if test "$have_socket" != yes; then
38730 echo 'ERROR: socket function required for RFB compile'
38731 exit 1
38735 # The ACX_PTHREAD function was written by
38736 # Steven G. Johnson <stevenj@alum.mit.edu> and
38737 # Alejandro Forero Cuervo <bachue@bachue.com>
38738 # I found it in the ac-archive project on Source Forge.
38741 pthread_ok=no
38744 acx_pthread_ok=no
38746 # First, check if the POSIX threads header, pthread.h, is available.
38747 # If it isn't, don't bother looking for the threads libraries.
38748 if test "${ac_cv_header_pthread_h+set}" = set; then
38749 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38750 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38751 if test "${ac_cv_header_pthread_h+set}" = set; then
38752 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38755 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38756 else
38757 # Is the header compilable?
38758 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
38759 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
38760 cat >conftest.$ac_ext <<_ACEOF
38761 /* confdefs.h. */
38762 _ACEOF
38763 cat confdefs.h >>conftest.$ac_ext
38764 cat >>conftest.$ac_ext <<_ACEOF
38765 /* end confdefs.h. */
38766 $ac_includes_default
38767 #include <pthread.h>
38768 _ACEOF
38769 rm -f conftest.$ac_objext
38770 if { (ac_try="$ac_compile"
38771 case "(($ac_try" in
38772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773 *) ac_try_echo=$ac_try;;
38774 esac
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776 (eval "$ac_compile") 2>conftest.er1
38777 ac_status=$?
38778 grep -v '^ *+' conftest.er1 >conftest.err
38779 rm -f conftest.er1
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest.$ac_objext; then
38786 ac_header_compiler=yes
38787 else
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38791 ac_header_compiler=no
38794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38796 echo "${ECHO_T}$ac_header_compiler" >&6; }
38798 # Is the header present?
38799 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
38800 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
38801 cat >conftest.$ac_ext <<_ACEOF
38802 /* confdefs.h. */
38803 _ACEOF
38804 cat confdefs.h >>conftest.$ac_ext
38805 cat >>conftest.$ac_ext <<_ACEOF
38806 /* end confdefs.h. */
38807 #include <pthread.h>
38808 _ACEOF
38809 if { (ac_try="$ac_cpp conftest.$ac_ext"
38810 case "(($ac_try" in
38811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38812 *) ac_try_echo=$ac_try;;
38813 esac
38814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38816 ac_status=$?
38817 grep -v '^ *+' conftest.er1 >conftest.err
38818 rm -f conftest.er1
38819 cat conftest.err >&5
38820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821 (exit $ac_status); } >/dev/null && {
38822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38823 test ! -s conftest.err
38824 }; then
38825 ac_header_preproc=yes
38826 else
38827 echo "$as_me: failed program was:" >&5
38828 sed 's/^/| /' conftest.$ac_ext >&5
38830 ac_header_preproc=no
38833 rm -f conftest.err conftest.$ac_ext
38834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38835 echo "${ECHO_T}$ac_header_preproc" >&6; }
38837 # So? What about this header?
38838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38839 yes:no: )
38840 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
38841 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38842 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
38843 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
38844 ac_header_preproc=yes
38846 no:yes:* )
38847 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
38848 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
38849 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
38850 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
38851 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
38852 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
38853 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
38854 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
38855 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
38856 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
38857 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
38858 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
38861 esac
38862 { echo "$as_me:$LINENO: checking for pthread.h" >&5
38863 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
38864 if test "${ac_cv_header_pthread_h+set}" = set; then
38865 echo $ECHO_N "(cached) $ECHO_C" >&6
38866 else
38867 ac_cv_header_pthread_h=$ac_header_preproc
38869 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
38870 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
38873 if test $ac_cv_header_pthread_h = yes; then
38875 else
38876 acx_pthread_ok=noheader
38881 # We must check for the threads library under a number of different
38882 # names; the ordering is very important because some systems
38883 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
38884 # libraries is broken (non-POSIX).
38886 # First of all, check if the user has set any of the PTHREAD_LIBS,
38887 # etcetera environment variables, and if threads linking works using
38888 # them:
38889 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
38890 save_CFLAGS="$CFLAGS"
38891 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
38892 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
38893 save_LIBS="$LIBS"
38894 LIBS="$PTHREAD_LIBS $LIBS"
38895 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
38896 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
38897 cat >conftest.$ac_ext <<_ACEOF
38898 /* confdefs.h. */
38899 _ACEOF
38900 cat confdefs.h >>conftest.$ac_ext
38901 cat >>conftest.$ac_ext <<_ACEOF
38902 /* end confdefs.h. */
38904 /* Override any GCC internal prototype to avoid an error.
38905 Use char because int might match the return type of a GCC
38906 builtin and then its argument prototype would still apply. */
38907 #ifdef __cplusplus
38908 extern "C"
38909 #endif
38910 char pthread_join ();
38912 main ()
38914 return pthread_join ();
38916 return 0;
38918 _ACEOF
38919 rm -f conftest.$ac_objext conftest$ac_exeext
38920 if { (ac_try="$ac_link"
38921 case "(($ac_try" in
38922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38923 *) ac_try_echo=$ac_try;;
38924 esac
38925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38926 (eval "$ac_link") 2>conftest.er1
38927 ac_status=$?
38928 grep -v '^ *+' conftest.er1 >conftest.err
38929 rm -f conftest.er1
38930 cat conftest.err >&5
38931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38932 (exit $ac_status); } && {
38933 test -z "$ac_c_werror_flag" ||
38934 test ! -s conftest.err
38935 } && test -s conftest$ac_exeext &&
38936 $as_test_x conftest$ac_exeext; then
38937 acx_pthread_ok=yes
38938 else
38939 echo "$as_me: failed program was:" >&5
38940 sed 's/^/| /' conftest.$ac_ext >&5
38945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38946 conftest$ac_exeext conftest.$ac_ext
38947 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
38948 echo "${ECHO_T}$acx_pthread_ok" >&6; }
38949 if test x"$acx_pthread_ok" = xno; then
38950 PTHREAD_LIBS=""
38951 PTHREAD_CFLAGS=""
38953 LIBS="$save_LIBS"
38954 CFLAGS="$save_CFLAGS"
38957 # Create a list of thread flags to try. Items starting with a "-" are
38958 # C compiler flags, and other items are library names, except for "none"
38959 # which indicates that we try without any flags at all.
38961 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
38963 # The ordering *is* (sometimes) important. Some notes on the
38964 # individual items follow:
38966 # pthreads: AIX (must check this before -lpthread)
38967 # none: in case threads are in libc; should be tried before -Kthread and
38968 # other compiler flags to prevent continual compiler warnings
38969 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
38970 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
38971 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
38972 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
38973 # -pthreads: Solaris/gcc
38974 # -mthreads: Mingw32/gcc, Lynx/gcc
38975 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
38976 # doesn't hurt to check since this sometimes defines pthreads too;
38977 # also defines -D_REENTRANT)
38978 # pthread: Linux, etcetera
38979 # --thread-safe: KAI C++
38981 case "${host_cpu}-${host_os}" in
38982 *solaris*)
38984 # On Solaris (at least, for some versions), libc contains stubbed
38985 # (non-functional) versions of the pthreads routines, so link-based
38986 # tests will erroneously succeed. (We need to link with -pthread or
38987 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
38988 # a function called by this macro, so we could check for that, but
38989 # who knows whether they'll stub that too in a future libc.) So,
38990 # we'll just look for -pthreads and -lpthread first:
38992 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
38994 esac
38996 if test x"$acx_pthread_ok" = xno; then
38997 for flag in $acx_pthread_flags; do
38999 case $flag in
39000 none)
39001 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
39002 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
39006 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
39007 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
39008 PTHREAD_CFLAGS="$flag"
39012 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
39013 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
39014 PTHREAD_LIBS="-l$flag"
39016 esac
39018 save_LIBS="$LIBS"
39019 save_CFLAGS="$CFLAGS"
39020 LIBS="$PTHREAD_LIBS $LIBS"
39021 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39023 # Check for various functions. We must include pthread.h,
39024 # since some functions may be macros. (On the Sequent, we
39025 # need a special flag -Kthread to make this header compile.)
39026 # We check for pthread_join because it is in -lpthread on IRIX
39027 # while pthread_create is in libc. We check for pthread_attr_init
39028 # due to DEC craziness with -lpthreads. We check for
39029 # pthread_cleanup_push because it is one of the few pthread
39030 # functions on Solaris that doesn't have a non-functional libc stub.
39031 # We try pthread_create on general principles.
39032 cat >conftest.$ac_ext <<_ACEOF
39033 /* confdefs.h. */
39034 _ACEOF
39035 cat confdefs.h >>conftest.$ac_ext
39036 cat >>conftest.$ac_ext <<_ACEOF
39037 /* end confdefs.h. */
39038 #include <pthread.h>
39040 main ()
39042 pthread_t th; pthread_join(th, 0);
39043 pthread_attr_init(0); pthread_cleanup_push(0, 0);
39044 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
39046 return 0;
39048 _ACEOF
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (ac_try="$ac_link"
39051 case "(($ac_try" in
39052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39053 *) ac_try_echo=$ac_try;;
39054 esac
39055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39056 (eval "$ac_link") 2>conftest.er1
39057 ac_status=$?
39058 grep -v '^ *+' conftest.er1 >conftest.err
39059 rm -f conftest.er1
39060 cat conftest.err >&5
39061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062 (exit $ac_status); } && {
39063 test -z "$ac_c_werror_flag" ||
39064 test ! -s conftest.err
39065 } && test -s conftest$ac_exeext &&
39066 $as_test_x conftest$ac_exeext; then
39067 acx_pthread_ok=yes
39068 else
39069 echo "$as_me: failed program was:" >&5
39070 sed 's/^/| /' conftest.$ac_ext >&5
39075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39076 conftest$ac_exeext conftest.$ac_ext
39078 LIBS="$save_LIBS"
39079 CFLAGS="$save_CFLAGS"
39081 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
39082 echo "${ECHO_T}$acx_pthread_ok" >&6; }
39083 if test "x$acx_pthread_ok" = xyes; then
39084 break;
39087 PTHREAD_LIBS=""
39088 PTHREAD_CFLAGS=""
39089 done
39092 # Various other checks:
39093 if test "x$acx_pthread_ok" = xyes; then
39094 save_LIBS="$LIBS"
39095 LIBS="$PTHREAD_LIBS $LIBS"
39096 save_CFLAGS="$CFLAGS"
39097 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39099 # Detect AIX lossage: threads are created detached by default
39100 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
39101 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
39102 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
39103 cat >conftest.$ac_ext <<_ACEOF
39104 /* confdefs.h. */
39105 _ACEOF
39106 cat confdefs.h >>conftest.$ac_ext
39107 cat >>conftest.$ac_ext <<_ACEOF
39108 /* end confdefs.h. */
39109 #include <pthread.h>
39111 main ()
39113 int attr=PTHREAD_CREATE_JOINABLE;
39115 return 0;
39117 _ACEOF
39118 rm -f conftest.$ac_objext conftest$ac_exeext
39119 if { (ac_try="$ac_link"
39120 case "(($ac_try" in
39121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39122 *) ac_try_echo=$ac_try;;
39123 esac
39124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39125 (eval "$ac_link") 2>conftest.er1
39126 ac_status=$?
39127 grep -v '^ *+' conftest.er1 >conftest.err
39128 rm -f conftest.er1
39129 cat conftest.err >&5
39130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131 (exit $ac_status); } && {
39132 test -z "$ac_c_werror_flag" ||
39133 test ! -s conftest.err
39134 } && test -s conftest$ac_exeext &&
39135 $as_test_x conftest$ac_exeext; then
39136 ok=PTHREAD_CREATE_JOINABLE
39137 else
39138 echo "$as_me: failed program was:" >&5
39139 sed 's/^/| /' conftest.$ac_ext >&5
39141 ok=unknown
39144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39145 conftest$ac_exeext conftest.$ac_ext
39146 if test x"$ok" = xunknown; then
39147 cat >conftest.$ac_ext <<_ACEOF
39148 /* confdefs.h. */
39149 _ACEOF
39150 cat confdefs.h >>conftest.$ac_ext
39151 cat >>conftest.$ac_ext <<_ACEOF
39152 /* end confdefs.h. */
39153 #include <pthread.h>
39155 main ()
39157 int attr=PTHREAD_CREATE_UNDETACHED;
39159 return 0;
39161 _ACEOF
39162 rm -f conftest.$ac_objext conftest$ac_exeext
39163 if { (ac_try="$ac_link"
39164 case "(($ac_try" in
39165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39166 *) ac_try_echo=$ac_try;;
39167 esac
39168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39169 (eval "$ac_link") 2>conftest.er1
39170 ac_status=$?
39171 grep -v '^ *+' conftest.er1 >conftest.err
39172 rm -f conftest.er1
39173 cat conftest.err >&5
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); } && {
39176 test -z "$ac_c_werror_flag" ||
39177 test ! -s conftest.err
39178 } && test -s conftest$ac_exeext &&
39179 $as_test_x conftest$ac_exeext; then
39180 ok=PTHREAD_CREATE_UNDETACHED
39181 else
39182 echo "$as_me: failed program was:" >&5
39183 sed 's/^/| /' conftest.$ac_ext >&5
39185 ok=unknown
39188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39189 conftest$ac_exeext conftest.$ac_ext
39191 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
39193 cat >>confdefs.h <<\_ACEOF
39194 #define PTHREAD_CREATE_JOINABLE $ok
39195 _ACEOF
39198 { echo "$as_me:$LINENO: result: ${ok}" >&5
39199 echo "${ECHO_T}${ok}" >&6; }
39200 if test x"$ok" = xunknown; then
39201 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
39202 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
39205 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39206 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39207 flag=no
39208 case "${host_cpu}-${host_os}" in
39209 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
39210 *solaris* | alpha*-osf*) flag="-D_REENTRANT";;
39211 esac
39212 { echo "$as_me:$LINENO: result: ${flag}" >&5
39213 echo "${ECHO_T}${flag}" >&6; }
39214 if test "x$flag" != xno; then
39215 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
39218 LIBS="$save_LIBS"
39219 CFLAGS="$save_CFLAGS"
39221 # More AIX lossage: must compile with cc_r
39222 # Extract the first word of "cc_r", so it can be a program name with args.
39223 set dummy cc_r; ac_word=$2
39224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39226 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39228 else
39229 if test -n "$PTHREAD_CC"; then
39230 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
39231 else
39232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39233 for as_dir in $PATH
39235 IFS=$as_save_IFS
39236 test -z "$as_dir" && as_dir=.
39237 for ac_exec_ext in '' $ac_executable_extensions; do
39238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39239 ac_cv_prog_PTHREAD_CC="cc_r"
39240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39241 break 2
39243 done
39244 done
39245 IFS=$as_save_IFS
39247 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
39250 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
39251 if test -n "$PTHREAD_CC"; then
39252 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
39253 echo "${ECHO_T}$PTHREAD_CC" >&6; }
39254 else
39255 { echo "$as_me:$LINENO: result: no" >&5
39256 echo "${ECHO_T}no" >&6; }
39260 else
39261 PTHREAD_CC="$CC"
39268 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
39269 if test x"$acx_pthread_ok" = xyes; then
39271 pthread_ok=yes
39272 #echo Using PTHREAD_LIBS=$PTHREAD_LIBS
39273 #echo Using PTHREAD_CFLAGS=$PTHREAD_CFLAGS
39274 #echo Using PTHREAD_CC=$PTHREAD_CC
39277 else
39278 acx_pthread_ok=no
39285 # since RFB (usually) needs pthread library, check that it was found.
39286 # But on win32 platforms, the pthread library is not needed.
39287 if test "$with_rfb" = yes -a "$cross_configure" = 0; then
39288 if test "$pthread_ok" = yes; then
39289 RFB_LIBS="$RFB_LIBS $PTHREAD_LIBS"
39290 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
39291 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
39292 CC="$PTHREAD_CC"
39293 else
39294 case "$target" in
39295 *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw*)
39296 # pthread not needed for win32 platform
39299 echo ERROR: --with-rfb requires the pthread library, which could not be found.; exit 1
39300 esac
39305 { echo "$as_me:$LINENO: checking for guest to host TLB support (deprecated)" >&5
39306 echo $ECHO_N "checking for guest to host TLB support (deprecated)... $ECHO_C" >&6; }
39307 # Check whether --enable-guest2host-tlb was given.
39308 if test "${enable_guest2host_tlb+set}" = set; then
39309 enableval=$enable_guest2host_tlb; { echo "$as_me:$LINENO: result: $enableval" >&5
39310 echo "${ECHO_T}$enableval" >&6; }
39311 { { echo "$as_me:$LINENO: error: DEPRECATED - ALWAYS ON" >&5
39312 echo "$as_me: error: DEPRECATED - ALWAYS ON" >&2;}
39313 { (exit 1); exit 1; }; }
39315 else
39317 { echo "$as_me:$LINENO: result: no" >&5
39318 echo "${ECHO_T}no" >&6; }
39323 { echo "$as_me:$LINENO: checking for external debugger interface (deprecated)" >&5
39324 echo $ECHO_N "checking for external debugger interface (deprecated)... $ECHO_C" >&6; }
39325 # Check whether --enable-external-debugger was given.
39326 if test "${enable_external_debugger+set}" = set; then
39327 enableval=$enable_external_debugger; { echo "$as_me:$LINENO: result: $enableval" >&5
39328 echo "${ECHO_T}$enableval" >&6; }
39329 { { echo "$as_me:$LINENO: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&5
39330 echo "$as_me: error: DEPRECATED - Peter Tattam's external debugger interface is not supported anymore" >&2;}
39331 { (exit 1); exit 1; }; }
39333 else
39335 { echo "$as_me:$LINENO: result: no" >&5
39336 echo "${ECHO_T}no" >&6; }
39341 { echo "$as_me:$LINENO: checking for magic breakpoints (deprecated)" >&5
39342 echo $ECHO_N "checking for magic breakpoints (deprecated)... $ECHO_C" >&6; }
39343 # Check whether --enable-magic-breakpoints was given.
39344 if test "${enable_magic_breakpoints+set}" = set; then
39345 enableval=$enable_magic_breakpoints; { echo "$as_me:$LINENO: result: $enableval" >&5
39346 echo "${ECHO_T}$enableval" >&6; }
39347 { { echo "$as_me:$LINENO: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&5
39348 echo "$as_me: error: DEPRECATED - magic breakpoints are always enabled with Bochs internal debugger" >&2;}
39349 { (exit 1); exit 1; }; }
39351 else
39353 { echo "$as_me:$LINENO: result: no" >&5
39354 echo "${ECHO_T}no" >&6; }
39359 { echo "$as_me:$LINENO: checking for save/restore (deprecated)" >&5
39360 echo $ECHO_N "checking for save/restore (deprecated)... $ECHO_C" >&6; }
39361 # Check whether --enable-save-restore was given.
39362 if test "${enable_save_restore+set}" = set; then
39363 enableval=$enable_save_restore; { echo "$as_me:$LINENO: result: $enableval" >&5
39364 echo "${ECHO_T}$enableval" >&6; }
39365 { { echo "$as_me:$LINENO: error: DEPRECATED - save/restore feature is always enabled" >&5
39366 echo "$as_me: error: DEPRECATED - save/restore feature is always enabled" >&2;}
39367 { (exit 1); exit 1; }; }
39369 else
39371 { echo "$as_me:$LINENO: result: no" >&5
39372 echo "${ECHO_T}no" >&6; }
39377 # Create some subdirectories for when you run configure from some other
39378 # directory.
39379 if test ! -d instrument; then mkdir instrument; fi
39380 if test ! -d build; then mkdir build; fi
39381 if test ! -d build/linux; then mkdir build/linux; fi
39382 if test ! -d build/win32; then mkdir build/win32; fi
39383 if test ! -d build/win32/nsis; then mkdir build/win32/nsis; fi
39423 # Extract the first word of "gzip", so it can be a program name with args.
39424 set dummy gzip; ac_word=$2
39425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39427 if test "${ac_cv_path_GZIP+set}" = set; then
39428 echo $ECHO_N "(cached) $ECHO_C" >&6
39429 else
39430 case $GZIP in
39431 [\\/]* | ?:[\\/]*)
39432 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
39435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39436 for as_dir in $PATH
39438 IFS=$as_save_IFS
39439 test -z "$as_dir" && as_dir=.
39440 for ac_exec_ext in '' $ac_executable_extensions; do
39441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39442 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
39443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39444 break 2
39446 done
39447 done
39448 IFS=$as_save_IFS
39451 esac
39453 GZIP=$ac_cv_path_GZIP
39454 if test -n "$GZIP"; then
39455 { echo "$as_me:$LINENO: result: $GZIP" >&5
39456 echo "${ECHO_T}$GZIP" >&6; }
39457 else
39458 { echo "$as_me:$LINENO: result: no" >&5
39459 echo "${ECHO_T}no" >&6; }
39463 # Extract the first word of "tar", so it can be a program name with args.
39464 set dummy tar; ac_word=$2
39465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
39466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
39467 if test "${ac_cv_path_TAR+set}" = set; then
39468 echo $ECHO_N "(cached) $ECHO_C" >&6
39469 else
39470 case $TAR in
39471 [\\/]* | ?:[\\/]*)
39472 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
39475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39476 for as_dir in $PATH
39478 IFS=$as_save_IFS
39479 test -z "$as_dir" && as_dir=.
39480 for ac_exec_ext in '' $ac_executable_extensions; do
39481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
39482 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
39483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39484 break 2
39486 done
39487 done
39488 IFS=$as_save_IFS
39491 esac
39493 TAR=$ac_cv_path_TAR
39494 if test -n "$TAR"; then
39495 { echo "$as_me:$LINENO: result: $TAR" >&5
39496 echo "${ECHO_T}$TAR" >&6; }
39497 else
39498 { echo "$as_me:$LINENO: result: no" >&5
39499 echo "${ECHO_T}no" >&6; }
39504 ac_config_files="$ac_config_files Makefile iodev/Makefile bx_debug/Makefile bios/Makefile cpu/Makefile memory/Makefile gui/Makefile disasm/Makefile ${INSTRUMENT_DIR}/Makefile misc/Makefile fpu/Makefile doc/docbook/Makefile build/linux/bochs-dlx bxversion.h bxversion.rc build/macosx/Info.plist build/win32/nsis/Makefile build/win32/nsis/bochs.nsi host/linux/pcidev/Makefile"
39506 cat >confcache <<\_ACEOF
39507 # This file is a shell script that caches the results of configure
39508 # tests run on this system so they can be shared between configure
39509 # scripts and configure runs, see configure's option --config-cache.
39510 # It is not useful on other systems. If it contains results you don't
39511 # want to keep, you may remove or edit it.
39513 # config.status only pays attention to the cache file if you give it
39514 # the --recheck option to rerun configure.
39516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39518 # following values.
39520 _ACEOF
39522 # The following way of writing the cache mishandles newlines in values,
39523 # but we know of no workaround that is simple, portable, and efficient.
39524 # So, we kill variables containing newlines.
39525 # Ultrix sh set writes to stderr and can't be redirected directly,
39526 # and sets the high bit in the cache file unless we assign to the vars.
39528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39529 eval ac_val=\$$ac_var
39530 case $ac_val in #(
39531 *${as_nl}*)
39532 case $ac_var in #(
39533 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
39534 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
39535 esac
39536 case $ac_var in #(
39537 _ | IFS | as_nl) ;; #(
39538 *) $as_unset $ac_var ;;
39539 esac ;;
39540 esac
39541 done
39543 (set) 2>&1 |
39544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39545 *${as_nl}ac_space=\ *)
39546 # `set' does not quote correctly, so add quotes (double-quote
39547 # substitution turns \\\\ into \\, and sed turns \\ into \).
39548 sed -n \
39549 "s/'/'\\\\''/g;
39550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39551 ;; #(
39553 # `set' quotes correctly as required by POSIX, so do not add quotes.
39554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39556 esac |
39557 sort
39559 sed '
39560 /^ac_cv_env_/b end
39561 t clear
39562 :clear
39563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39564 t end
39565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39566 :end' >>confcache
39567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39568 if test -w "$cache_file"; then
39569 test "x$cache_file" != "x/dev/null" &&
39570 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
39571 echo "$as_me: updating cache $cache_file" >&6;}
39572 cat confcache >$cache_file
39573 else
39574 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
39575 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39578 rm -f confcache
39580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39581 # Let make expand exec_prefix.
39582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39584 DEFS=-DHAVE_CONFIG_H
39586 ac_libobjs=
39587 ac_ltlibobjs=
39588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39589 # 1. Remove the extension, and $U if already installed.
39590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39591 ac_i=`echo "$ac_i" | sed "$ac_script"`
39592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39593 # will be set to the directory where LIBOBJS objects are built.
39594 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39595 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39596 done
39597 LIBOBJS=$ac_libobjs
39599 LTLIBOBJS=$ac_ltlibobjs
39603 : ${CONFIG_STATUS=./config.status}
39604 ac_clean_files_save=$ac_clean_files
39605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39608 cat >$CONFIG_STATUS <<_ACEOF
39609 #! $SHELL
39610 # Generated by $as_me.
39611 # Run this file to recreate the current configuration.
39612 # Compiler output produced by configure, useful for debugging
39613 # configure, is in config.log if it exists.
39615 debug=false
39616 ac_cs_recheck=false
39617 ac_cs_silent=false
39618 SHELL=\${CONFIG_SHELL-$SHELL}
39619 _ACEOF
39621 cat >>$CONFIG_STATUS <<\_ACEOF
39622 ## --------------------- ##
39623 ## M4sh Initialization. ##
39624 ## --------------------- ##
39626 # Be more Bourne compatible
39627 DUALCASE=1; export DUALCASE # for MKS sh
39628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39629 emulate sh
39630 NULLCMD=:
39631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39632 # is contrary to our usage. Disable this feature.
39633 alias -g '${1+"$@"}'='"$@"'
39634 setopt NO_GLOB_SUBST
39635 else
39636 case `(set -o) 2>/dev/null` in
39637 *posix*) set -o posix ;;
39638 esac
39645 # PATH needs CR
39646 # Avoid depending upon Character Ranges.
39647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39650 as_cr_digits='0123456789'
39651 as_cr_alnum=$as_cr_Letters$as_cr_digits
39653 # The user is always right.
39654 if test "${PATH_SEPARATOR+set}" != set; then
39655 echo "#! /bin/sh" >conf$$.sh
39656 echo "exit 0" >>conf$$.sh
39657 chmod +x conf$$.sh
39658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39659 PATH_SEPARATOR=';'
39660 else
39661 PATH_SEPARATOR=:
39663 rm -f conf$$.sh
39666 # Support unset when possible.
39667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39668 as_unset=unset
39669 else
39670 as_unset=false
39674 # IFS
39675 # We need space, tab and new line, in precisely that order. Quoting is
39676 # there to prevent editors from complaining about space-tab.
39677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39678 # splitting by setting IFS to empty value.)
39679 as_nl='
39681 IFS=" "" $as_nl"
39683 # Find who we are. Look in the path if we contain no directory separator.
39684 case $0 in
39685 *[\\/]* ) as_myself=$0 ;;
39686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39687 for as_dir in $PATH
39689 IFS=$as_save_IFS
39690 test -z "$as_dir" && as_dir=.
39691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39692 done
39693 IFS=$as_save_IFS
39696 esac
39697 # We did not find ourselves, most probably we were run as `sh COMMAND'
39698 # in which case we are not to be found in the path.
39699 if test "x$as_myself" = x; then
39700 as_myself=$0
39702 if test ! -f "$as_myself"; then
39703 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39704 { (exit 1); exit 1; }
39707 # Work around bugs in pre-3.0 UWIN ksh.
39708 for as_var in ENV MAIL MAILPATH
39709 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39710 done
39711 PS1='$ '
39712 PS2='> '
39713 PS4='+ '
39715 # NLS nuisances.
39716 for as_var in \
39717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39719 LC_TELEPHONE LC_TIME
39721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39722 eval $as_var=C; export $as_var
39723 else
39724 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39726 done
39728 # Required to use basename.
39729 if expr a : '\(a\)' >/dev/null 2>&1 &&
39730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39731 as_expr=expr
39732 else
39733 as_expr=false
39736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39737 as_basename=basename
39738 else
39739 as_basename=false
39743 # Name of the executable.
39744 as_me=`$as_basename -- "$0" ||
39745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39746 X"$0" : 'X\(//\)$' \| \
39747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39748 echo X/"$0" |
39749 sed '/^.*\/\([^/][^/]*\)\/*$/{
39750 s//\1/
39753 /^X\/\(\/\/\)$/{
39754 s//\1/
39757 /^X\/\(\/\).*/{
39758 s//\1/
39761 s/.*/./; q'`
39763 # CDPATH.
39764 $as_unset CDPATH
39768 as_lineno_1=$LINENO
39769 as_lineno_2=$LINENO
39770 test "x$as_lineno_1" != "x$as_lineno_2" &&
39771 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39774 # uniformly replaced by the line number. The first 'sed' inserts a
39775 # line-number line after each line using $LINENO; the second 'sed'
39776 # does the real work. The second script uses 'N' to pair each
39777 # line-number line with the line containing $LINENO, and appends
39778 # trailing '-' during substitution so that $LINENO is not a special
39779 # case at line end.
39780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39781 # scripts with optimization help from Paolo Bonzini. Blame Lee
39782 # E. McMahon (1931-1989) for sed's syntax. :-)
39783 sed -n '
39785 /[$]LINENO/=
39786 ' <$as_myself |
39787 sed '
39788 s/[$]LINENO.*/&-/
39789 t lineno
39791 :lineno
39793 :loop
39794 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39795 t loop
39796 s/-\n.*//
39797 ' >$as_me.lineno &&
39798 chmod +x "$as_me.lineno" ||
39799 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39800 { (exit 1); exit 1; }; }
39802 # Don't try to exec as it changes $[0], causing all sort of problems
39803 # (the dirname of $[0] is not the place where we might find the
39804 # original and so on. Autoconf is especially sensitive to this).
39805 . "./$as_me.lineno"
39806 # Exit status is that of the last command.
39807 exit
39811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39812 as_dirname=dirname
39813 else
39814 as_dirname=false
39817 ECHO_C= ECHO_N= ECHO_T=
39818 case `echo -n x` in
39819 -n*)
39820 case `echo 'x\c'` in
39821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39822 *) ECHO_C='\c';;
39823 esac;;
39825 ECHO_N='-n';;
39826 esac
39828 if expr a : '\(a\)' >/dev/null 2>&1 &&
39829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39830 as_expr=expr
39831 else
39832 as_expr=false
39835 rm -f conf$$ conf$$.exe conf$$.file
39836 if test -d conf$$.dir; then
39837 rm -f conf$$.dir/conf$$.file
39838 else
39839 rm -f conf$$.dir
39840 mkdir conf$$.dir
39842 echo >conf$$.file
39843 if ln -s conf$$.file conf$$ 2>/dev/null; then
39844 as_ln_s='ln -s'
39845 # ... but there are two gotchas:
39846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39848 # In both cases, we have to default to `cp -p'.
39849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39850 as_ln_s='cp -p'
39851 elif ln conf$$.file conf$$ 2>/dev/null; then
39852 as_ln_s=ln
39853 else
39854 as_ln_s='cp -p'
39856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39857 rmdir conf$$.dir 2>/dev/null
39859 if mkdir -p . 2>/dev/null; then
39860 as_mkdir_p=:
39861 else
39862 test -d ./-p && rmdir ./-p
39863 as_mkdir_p=false
39866 if test -x / >/dev/null 2>&1; then
39867 as_test_x='test -x'
39868 else
39869 if ls -dL / >/dev/null 2>&1; then
39870 as_ls_L_option=L
39871 else
39872 as_ls_L_option=
39874 as_test_x='
39875 eval sh -c '\''
39876 if test -d "$1"; then
39877 test -d "$1/.";
39878 else
39879 case $1 in
39880 -*)set "./$1";;
39881 esac;
39882 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39883 ???[sx]*):;;*)false;;esac;fi
39884 '\'' sh
39887 as_executable_p=$as_test_x
39889 # Sed expression to map a string onto a valid CPP name.
39890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39892 # Sed expression to map a string onto a valid variable name.
39893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39896 exec 6>&1
39898 # Save the log message, to keep $[0] and so on meaningful, and to
39899 # report actual input values of CONFIG_FILES etc. instead of their
39900 # values after options handling.
39901 ac_log="
39902 This file was extended by $as_me, which was
39903 generated by GNU Autoconf 2.61. Invocation command line was
39905 CONFIG_FILES = $CONFIG_FILES
39906 CONFIG_HEADERS = $CONFIG_HEADERS
39907 CONFIG_LINKS = $CONFIG_LINKS
39908 CONFIG_COMMANDS = $CONFIG_COMMANDS
39909 $ $0 $@
39911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39914 _ACEOF
39916 cat >>$CONFIG_STATUS <<_ACEOF
39917 # Files that config.status was made for.
39918 config_files="$ac_config_files"
39919 config_headers="$ac_config_headers"
39921 _ACEOF
39923 cat >>$CONFIG_STATUS <<\_ACEOF
39924 ac_cs_usage="\
39925 \`$as_me' instantiates files from templates according to the
39926 current configuration.
39928 Usage: $0 [OPTIONS] [FILE]...
39930 -h, --help print this help, then exit
39931 -V, --version print version number and configuration settings, then exit
39932 -q, --quiet do not print progress messages
39933 -d, --debug don't remove temporary files
39934 --recheck update $as_me by reconfiguring in the same conditions
39935 --file=FILE[:TEMPLATE]
39936 instantiate the configuration file FILE
39937 --header=FILE[:TEMPLATE]
39938 instantiate the configuration header FILE
39940 Configuration files:
39941 $config_files
39943 Configuration headers:
39944 $config_headers
39946 Report bugs to <bug-autoconf@gnu.org>."
39948 _ACEOF
39949 cat >>$CONFIG_STATUS <<_ACEOF
39950 ac_cs_version="\\
39951 config.status
39952 configured by $0, generated by GNU Autoconf 2.61,
39953 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39955 Copyright (C) 2006 Free Software Foundation, Inc.
39956 This config.status script is free software; the Free Software Foundation
39957 gives unlimited permission to copy, distribute and modify it."
39959 ac_pwd='$ac_pwd'
39960 srcdir='$srcdir'
39961 _ACEOF
39963 cat >>$CONFIG_STATUS <<\_ACEOF
39964 # If no file are specified by the user, then we need to provide default
39965 # value. By we need to know if files were specified by the user.
39966 ac_need_defaults=:
39967 while test $# != 0
39969 case $1 in
39970 --*=*)
39971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39973 ac_shift=:
39976 ac_option=$1
39977 ac_optarg=$2
39978 ac_shift=shift
39980 esac
39982 case $ac_option in
39983 # Handling of the options.
39984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39985 ac_cs_recheck=: ;;
39986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39987 echo "$ac_cs_version"; exit ;;
39988 --debug | --debu | --deb | --de | --d | -d )
39989 debug=: ;;
39990 --file | --fil | --fi | --f )
39991 $ac_shift
39992 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39993 ac_need_defaults=false;;
39994 --header | --heade | --head | --hea )
39995 $ac_shift
39996 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39997 ac_need_defaults=false;;
39998 --he | --h)
39999 # Conflict between --help and --header
40000 { echo "$as_me: error: ambiguous option: $1
40001 Try \`$0 --help' for more information." >&2
40002 { (exit 1); exit 1; }; };;
40003 --help | --hel | -h )
40004 echo "$ac_cs_usage"; exit ;;
40005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40007 ac_cs_silent=: ;;
40009 # This is an error.
40010 -*) { echo "$as_me: error: unrecognized option: $1
40011 Try \`$0 --help' for more information." >&2
40012 { (exit 1); exit 1; }; } ;;
40014 *) ac_config_targets="$ac_config_targets $1"
40015 ac_need_defaults=false ;;
40017 esac
40018 shift
40019 done
40021 ac_configure_extra_args=
40023 if $ac_cs_silent; then
40024 exec 6>/dev/null
40025 ac_configure_extra_args="$ac_configure_extra_args --silent"
40028 _ACEOF
40029 cat >>$CONFIG_STATUS <<_ACEOF
40030 if \$ac_cs_recheck; then
40031 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40032 CONFIG_SHELL=$SHELL
40033 export CONFIG_SHELL
40034 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40037 _ACEOF
40038 cat >>$CONFIG_STATUS <<\_ACEOF
40039 exec 5>>config.log
40041 echo
40042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40043 ## Running $as_me. ##
40044 _ASBOX
40045 echo "$ac_log"
40046 } >&5
40048 _ACEOF
40049 cat >>$CONFIG_STATUS <<_ACEOF
40050 _ACEOF
40052 cat >>$CONFIG_STATUS <<\_ACEOF
40054 # Handling of arguments.
40055 for ac_config_target in $ac_config_targets
40057 case $ac_config_target in
40058 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
40059 "ltdlconf.h") CONFIG_HEADERS="$CONFIG_HEADERS ltdlconf.h" ;;
40060 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40061 "iodev/Makefile") CONFIG_FILES="$CONFIG_FILES iodev/Makefile" ;;
40062 "bx_debug/Makefile") CONFIG_FILES="$CONFIG_FILES bx_debug/Makefile" ;;
40063 "bios/Makefile") CONFIG_FILES="$CONFIG_FILES bios/Makefile" ;;
40064 "cpu/Makefile") CONFIG_FILES="$CONFIG_FILES cpu/Makefile" ;;
40065 "memory/Makefile") CONFIG_FILES="$CONFIG_FILES memory/Makefile" ;;
40066 "gui/Makefile") CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;;
40067 "disasm/Makefile") CONFIG_FILES="$CONFIG_FILES disasm/Makefile" ;;
40068 "${INSTRUMENT_DIR}/Makefile") CONFIG_FILES="$CONFIG_FILES ${INSTRUMENT_DIR}/Makefile" ;;
40069 "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
40070 "fpu/Makefile") CONFIG_FILES="$CONFIG_FILES fpu/Makefile" ;;
40071 "doc/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook/Makefile" ;;
40072 "build/linux/bochs-dlx") CONFIG_FILES="$CONFIG_FILES build/linux/bochs-dlx" ;;
40073 "bxversion.h") CONFIG_FILES="$CONFIG_FILES bxversion.h" ;;
40074 "bxversion.rc") CONFIG_FILES="$CONFIG_FILES bxversion.rc" ;;
40075 "build/macosx/Info.plist") CONFIG_FILES="$CONFIG_FILES build/macosx/Info.plist" ;;
40076 "build/win32/nsis/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/Makefile" ;;
40077 "build/win32/nsis/bochs.nsi") CONFIG_FILES="$CONFIG_FILES build/win32/nsis/bochs.nsi" ;;
40078 "host/linux/pcidev/Makefile") CONFIG_FILES="$CONFIG_FILES host/linux/pcidev/Makefile" ;;
40080 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40081 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40082 { (exit 1); exit 1; }; };;
40083 esac
40084 done
40087 # If the user did not use the arguments to specify the items to instantiate,
40088 # then the envvar interface is used. Set only those that are not.
40089 # We use the long form for the default assignment because of an extremely
40090 # bizarre bug on SunOS 4.1.3.
40091 if $ac_need_defaults; then
40092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40096 # Have a temporary directory for convenience. Make it in the build tree
40097 # simply because there is no reason against having it here, and in addition,
40098 # creating and moving files from /tmp can sometimes cause problems.
40099 # Hook for its removal unless debugging.
40100 # Note that there is a small window in which the directory will not be cleaned:
40101 # after its creation but before its name has been assigned to `$tmp'.
40102 $debug ||
40104 tmp=
40105 trap 'exit_status=$?
40106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
40108 trap '{ (exit 1); exit 1; }' 1 2 13 15
40110 # Create a (secure) tmp directory for tmp files.
40113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40114 test -n "$tmp" && test -d "$tmp"
40115 } ||
40117 tmp=./conf$$-$RANDOM
40118 (umask 077 && mkdir "$tmp")
40119 } ||
40121 echo "$me: cannot create a temporary directory in ." >&2
40122 { (exit 1); exit 1; }
40126 # Set up the sed scripts for CONFIG_FILES section.
40129 # No need to generate the scripts if there are no CONFIG_FILES.
40130 # This happens for instance when ./config.status config.h
40131 if test -n "$CONFIG_FILES"; then
40133 _ACEOF
40137 ac_delim='%!_!# '
40138 for ac_last_try in false false false false false :; do
40139 cat >conf$$subs.sed <<_ACEOF
40140 SHELL!$SHELL$ac_delim
40141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
40142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
40143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
40144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
40145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
40146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
40147 exec_prefix!$exec_prefix$ac_delim
40148 prefix!$prefix$ac_delim
40149 program_transform_name!$program_transform_name$ac_delim
40150 bindir!$bindir$ac_delim
40151 sbindir!$sbindir$ac_delim
40152 libexecdir!$libexecdir$ac_delim
40153 datarootdir!$datarootdir$ac_delim
40154 datadir!$datadir$ac_delim
40155 sysconfdir!$sysconfdir$ac_delim
40156 sharedstatedir!$sharedstatedir$ac_delim
40157 localstatedir!$localstatedir$ac_delim
40158 includedir!$includedir$ac_delim
40159 oldincludedir!$oldincludedir$ac_delim
40160 docdir!$docdir$ac_delim
40161 infodir!$infodir$ac_delim
40162 htmldir!$htmldir$ac_delim
40163 dvidir!$dvidir$ac_delim
40164 pdfdir!$pdfdir$ac_delim
40165 psdir!$psdir$ac_delim
40166 libdir!$libdir$ac_delim
40167 localedir!$localedir$ac_delim
40168 mandir!$mandir$ac_delim
40169 DEFS!$DEFS$ac_delim
40170 ECHO_C!$ECHO_C$ac_delim
40171 ECHO_N!$ECHO_N$ac_delim
40172 ECHO_T!$ECHO_T$ac_delim
40173 LIBS!$LIBS$ac_delim
40174 build_alias!$build_alias$ac_delim
40175 host_alias!$host_alias$ac_delim
40176 target_alias!$target_alias$ac_delim
40177 build!$build$ac_delim
40178 build_cpu!$build_cpu$ac_delim
40179 build_vendor!$build_vendor$ac_delim
40180 build_os!$build_os$ac_delim
40181 host!$host$ac_delim
40182 host_cpu!$host_cpu$ac_delim
40183 host_vendor!$host_vendor$ac_delim
40184 host_os!$host_os$ac_delim
40185 target!$target$ac_delim
40186 target_cpu!$target_cpu$ac_delim
40187 target_vendor!$target_vendor$ac_delim
40188 target_os!$target_os$ac_delim
40189 CC!$CC$ac_delim
40190 CFLAGS!$CFLAGS$ac_delim
40191 LDFLAGS!$LDFLAGS$ac_delim
40192 CPPFLAGS!$CPPFLAGS$ac_delim
40193 ac_ct_CC!$ac_ct_CC$ac_delim
40194 EXEEXT!$EXEEXT$ac_delim
40195 OBJEXT!$OBJEXT$ac_delim
40196 CXX!$CXX$ac_delim
40197 CXXFLAGS!$CXXFLAGS$ac_delim
40198 ac_ct_CXX!$ac_ct_CXX$ac_delim
40199 SET_MAKE!$SET_MAKE$ac_delim
40200 GREP!$GREP$ac_delim
40201 EGREP!$EGREP$ac_delim
40202 LN_S!$LN_S$ac_delim
40203 ECHO!$ECHO$ac_delim
40204 AR!$AR$ac_delim
40205 RANLIB!$RANLIB$ac_delim
40206 STRIP!$STRIP$ac_delim
40207 CPP!$CPP$ac_delim
40208 CXXCPP!$CXXCPP$ac_delim
40209 F77!$F77$ac_delim
40210 FFLAGS!$FFLAGS$ac_delim
40211 ac_ct_F77!$ac_ct_F77$ac_delim
40212 LIBTOOL!$LIBTOOL$ac_delim
40213 LIBADD_DL!$LIBADD_DL$ac_delim
40214 XMKMF!$XMKMF$ac_delim
40215 X_CFLAGS!$X_CFLAGS$ac_delim
40216 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
40217 X_LIBS!$X_LIBS$ac_delim
40218 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
40219 BX_USE_IDLE_HACK!$BX_USE_IDLE_HACK$ac_delim
40220 DEFINE_PLUGIN_PATH!$DEFINE_PLUGIN_PATH$ac_delim
40221 NONPLUGIN_GUI_LINK_OPTS!$NONPLUGIN_GUI_LINK_OPTS$ac_delim
40222 OBJS64!$OBJS64$ac_delim
40223 IOAPIC_OBJS!$IOAPIC_OBJS$ac_delim
40224 BX_COMPRESSED_HD_SUPPORT!$BX_COMPRESSED_HD_SUPPORT$ac_delim
40225 NE2K_OBJS!$NE2K_OBJS$ac_delim
40226 BX_SUPPORT_ACPI!$BX_SUPPORT_ACPI$ac_delim
40227 PCI_OBJ!$PCI_OBJ$ac_delim
40228 KERNELDIR!$KERNELDIR$ac_delim
40229 LSMOD!$LSMOD$ac_delim
40230 INSMOD!$INSMOD$ac_delim
40231 RMMOD!$RMMOD$ac_delim
40232 DEPMOD!$DEPMOD$ac_delim
40233 PCIDEV_MODULE_MAKE_ALL!$PCIDEV_MODULE_MAKE_ALL$ac_delim
40234 KERNEL_MODULE_SUFFIX!$KERNEL_MODULE_SUFFIX$ac_delim
40235 USBDEV_OBJS!$USBDEV_OBJS$ac_delim
40236 SCSI_OBJS!$SCSI_OBJS$ac_delim
40237 _ACEOF
40239 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40240 break
40241 elif $ac_last_try; then
40242 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40244 { (exit 1); exit 1; }; }
40245 else
40246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40248 done
40250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40251 if test -n "$ac_eof"; then
40252 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40253 ac_eof=`expr $ac_eof + 1`
40256 cat >>$CONFIG_STATUS <<_ACEOF
40257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40259 _ACEOF
40260 sed '
40261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40262 s/^/s,@/; s/!/@,|#_!!_#|/
40265 s/'"$ac_delim"'$/,g/; t
40266 s/$/\\/; p
40267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40268 ' >>$CONFIG_STATUS <conf$$subs.sed
40269 rm -f conf$$subs.sed
40270 cat >>$CONFIG_STATUS <<_ACEOF
40271 CEOF$ac_eof
40272 _ACEOF
40275 ac_delim='%!_!# '
40276 for ac_last_try in false false false false false :; do
40277 cat >conf$$subs.sed <<_ACEOF
40278 NETLOW_OBJS!$NETLOW_OBJS$ac_delim
40279 SUFFIX_LINE!$SUFFIX_LINE$ac_delim
40280 CPP_SUFFIX!$CPP_SUFFIX$ac_delim
40281 DEBUGGER_VAR!$DEBUGGER_VAR$ac_delim
40282 DISASM_VAR!$DISASM_VAR$ac_delim
40283 READLINE_LIB!$READLINE_LIB$ac_delim
40284 INSTRUMENT_DIR!$INSTRUMENT_DIR$ac_delim
40285 INSTRUMENT_VAR!$INSTRUMENT_VAR$ac_delim
40286 FPU_VAR!$FPU_VAR$ac_delim
40287 CDROM_OBJS!$CDROM_OBJS$ac_delim
40288 SB16_OBJS!$SB16_OBJS$ac_delim
40289 SOUNDLOW_OBJS!$SOUNDLOW_OBJS$ac_delim
40290 SOUND_LINK_OPTS!$SOUND_LINK_OPTS$ac_delim
40291 GAME_OBJS!$GAME_OBJS$ac_delim
40292 GDBSTUB_VAR!$GDBSTUB_VAR$ac_delim
40293 IODEBUG_OBJS!$IODEBUG_OBJS$ac_delim
40294 DOCBOOK2HTML!$DOCBOOK2HTML$ac_delim
40295 BUILD_DOCBOOK_VAR!$BUILD_DOCBOOK_VAR$ac_delim
40296 INSTALL_DOCBOOK_VAR!$INSTALL_DOCBOOK_VAR$ac_delim
40297 IODEV_LIB_VAR!$IODEV_LIB_VAR$ac_delim
40298 EXTRA_BX_OBJS!$EXTRA_BX_OBJS$ac_delim
40299 NONINLINE_VAR!$NONINLINE_VAR$ac_delim
40300 INLINE_VAR!$INLINE_VAR$ac_delim
40301 EXTERNAL_DEPENDENCY!$EXTERNAL_DEPENDENCY$ac_delim
40302 EXT_DEBUG_OBJS!$EXT_DEBUG_OBJS$ac_delim
40303 RC_CMD!$RC_CMD$ac_delim
40304 WX_CONFIG!$WX_CONFIG$ac_delim
40305 XPM_LIB!$XPM_LIB$ac_delim
40306 PKG_CONFIG!$PKG_CONFIG$ac_delim
40307 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
40308 GTK_LIBS!$GTK_LIBS$ac_delim
40309 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
40310 GUI_CXXFLAGS!$GUI_CXXFLAGS$ac_delim
40311 WX_CFLAGS!$WX_CFLAGS$ac_delim
40312 WX_CXXFLAGS!$WX_CXXFLAGS$ac_delim
40313 WGET!$WGET$ac_delim
40314 DIALOG_OBJS!$DIALOG_OBJS$ac_delim
40315 EXPORT_DYNAMIC!$EXPORT_DYNAMIC$ac_delim
40316 PTHREAD_CC!$PTHREAD_CC$ac_delim
40317 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
40318 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
40319 INSTALL_TARGET!$INSTALL_TARGET$ac_delim
40320 INSTALL_LIST_FOR_PLATFORM!$INSTALL_LIST_FOR_PLATFORM$ac_delim
40321 RFB_LIBS!$RFB_LIBS$ac_delim
40322 GUI_OBJS!$GUI_OBJS$ac_delim
40323 DEVICE_LINK_OPTS!$DEVICE_LINK_OPTS$ac_delim
40324 GUI_LINK_OPTS!$GUI_LINK_OPTS$ac_delim
40325 GUI_LINK_OPTS_TERM!$GUI_LINK_OPTS_TERM$ac_delim
40326 GUI_LINK_OPTS_WX!$GUI_LINK_OPTS_WX$ac_delim
40327 BXIMAGE_LINK_OPTS!$BXIMAGE_LINK_OPTS$ac_delim
40328 DASH!$DASH$ac_delim
40329 SLASH!$SLASH$ac_delim
40330 CXXFP!$CXXFP$ac_delim
40331 CFP!$CFP$ac_delim
40332 OFP!$OFP$ac_delim
40333 MAKELIB!$MAKELIB$ac_delim
40334 RMCOMMAND!$RMCOMMAND$ac_delim
40335 LINK!$LINK$ac_delim
40336 LINK_CONSOLE!$LINK_CONSOLE$ac_delim
40337 EXE!$EXE$ac_delim
40338 PRIMARY_TARGET!$PRIMARY_TARGET$ac_delim
40339 PLUGIN_LIBNAME_TRANSFORMATION!$PLUGIN_LIBNAME_TRANSFORMATION$ac_delim
40340 COMMAND_SEPARATOR!$COMMAND_SEPARATOR$ac_delim
40341 CD_UP_ONE!$CD_UP_ONE$ac_delim
40342 CD_UP_TWO!$CD_UP_TWO$ac_delim
40343 CD_UP_THREE!$CD_UP_THREE$ac_delim
40344 VERSION!$VERSION$ac_delim
40345 VER_STRING!$VER_STRING$ac_delim
40346 WIN_VER_STRING!$WIN_VER_STRING$ac_delim
40347 REL_STRING!$REL_STRING$ac_delim
40348 EXTRA_LINK_OPTS!$EXTRA_LINK_OPTS$ac_delim
40349 GUI_NON_PLUGIN_OBJS!$GUI_NON_PLUGIN_OBJS$ac_delim
40350 GUI_PLUGIN_OBJS!$GUI_PLUGIN_OBJS$ac_delim
40351 IODEV_NON_PLUGIN_OBJS!$IODEV_NON_PLUGIN_OBJS$ac_delim
40352 IODEV_PLUGIN_OBJS!$IODEV_PLUGIN_OBJS$ac_delim
40353 PLUGIN_VAR!$PLUGIN_VAR$ac_delim
40354 PLUGIN_TARGET!$PLUGIN_TARGET$ac_delim
40355 INSTALL_PLUGINS_VAR!$INSTALL_PLUGINS_VAR$ac_delim
40356 GZIP!$GZIP$ac_delim
40357 TAR!$TAR$ac_delim
40358 LIBOBJS!$LIBOBJS$ac_delim
40359 LTLIBOBJS!$LTLIBOBJS$ac_delim
40360 _ACEOF
40362 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
40363 break
40364 elif $ac_last_try; then
40365 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40366 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40367 { (exit 1); exit 1; }; }
40368 else
40369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40371 done
40373 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40374 if test -n "$ac_eof"; then
40375 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40376 ac_eof=`expr $ac_eof + 1`
40379 cat >>$CONFIG_STATUS <<_ACEOF
40380 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40382 _ACEOF
40383 sed '
40384 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40385 s/^/s,@/; s/!/@,|#_!!_#|/
40388 s/'"$ac_delim"'$/,g/; t
40389 s/$/\\/; p
40390 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40391 ' >>$CONFIG_STATUS <conf$$subs.sed
40392 rm -f conf$$subs.sed
40393 cat >>$CONFIG_STATUS <<_ACEOF
40394 :end
40395 s/|#_!!_#|//g
40396 CEOF$ac_eof
40397 _ACEOF
40400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40402 # trailing colons and then remove the whole line if VPATH becomes empty
40403 # (actually we leave an empty line to preserve line numbers).
40404 if test "x$srcdir" = x.; then
40405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
40406 s/:*\$(srcdir):*/:/
40407 s/:*\${srcdir}:*/:/
40408 s/:*@srcdir@:*/:/
40409 s/^\([^=]*=[ ]*\):*/\1/
40410 s/:*$//
40411 s/^[^=]*=[ ]*$//
40415 cat >>$CONFIG_STATUS <<\_ACEOF
40416 fi # test -n "$CONFIG_FILES"
40419 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
40421 case $ac_tag in
40422 :[FHLC]) ac_mode=$ac_tag; continue;;
40423 esac
40424 case $ac_mode$ac_tag in
40425 :[FHL]*:*);;
40426 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40427 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40428 { (exit 1); exit 1; }; };;
40429 :[FH]-) ac_tag=-:-;;
40430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40431 esac
40432 ac_save_IFS=$IFS
40433 IFS=:
40434 set x $ac_tag
40435 IFS=$ac_save_IFS
40436 shift
40437 ac_file=$1
40438 shift
40440 case $ac_mode in
40441 :L) ac_source=$1;;
40442 :[FH])
40443 ac_file_inputs=
40444 for ac_f
40446 case $ac_f in
40447 -) ac_f="$tmp/stdin";;
40448 *) # Look for the file first in the build tree, then in the source tree
40449 # (if the path is not absolute). The absolute path cannot be DOS-style,
40450 # because $ac_f cannot contain `:'.
40451 test -f "$ac_f" ||
40452 case $ac_f in
40453 [\\/$]*) false;;
40454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40455 esac ||
40456 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40457 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40458 { (exit 1); exit 1; }; };;
40459 esac
40460 ac_file_inputs="$ac_file_inputs $ac_f"
40461 done
40463 # Let's still pretend it is `configure' which instantiates (i.e., don't
40464 # use $as_me), people would be surprised to read:
40465 # /* config.h. Generated by config.status. */
40466 configure_input="Generated from "`IFS=:
40467 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40468 if test x"$ac_file" != x-; then
40469 configure_input="$ac_file. $configure_input"
40470 { echo "$as_me:$LINENO: creating $ac_file" >&5
40471 echo "$as_me: creating $ac_file" >&6;}
40474 case $ac_tag in
40475 *:-:* | *:-) cat >"$tmp/stdin";;
40476 esac
40478 esac
40480 ac_dir=`$as_dirname -- "$ac_file" ||
40481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40482 X"$ac_file" : 'X\(//\)[^/]' \| \
40483 X"$ac_file" : 'X\(//\)$' \| \
40484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40485 echo X"$ac_file" |
40486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40487 s//\1/
40490 /^X\(\/\/\)[^/].*/{
40491 s//\1/
40494 /^X\(\/\/\)$/{
40495 s//\1/
40498 /^X\(\/\).*/{
40499 s//\1/
40502 s/.*/./; q'`
40503 { as_dir="$ac_dir"
40504 case $as_dir in #(
40505 -*) as_dir=./$as_dir;;
40506 esac
40507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40508 as_dirs=
40509 while :; do
40510 case $as_dir in #(
40511 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40512 *) as_qdir=$as_dir;;
40513 esac
40514 as_dirs="'$as_qdir' $as_dirs"
40515 as_dir=`$as_dirname -- "$as_dir" ||
40516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40517 X"$as_dir" : 'X\(//\)[^/]' \| \
40518 X"$as_dir" : 'X\(//\)$' \| \
40519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40520 echo X"$as_dir" |
40521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40522 s//\1/
40525 /^X\(\/\/\)[^/].*/{
40526 s//\1/
40529 /^X\(\/\/\)$/{
40530 s//\1/
40533 /^X\(\/\).*/{
40534 s//\1/
40537 s/.*/./; q'`
40538 test -d "$as_dir" && break
40539 done
40540 test -z "$as_dirs" || eval "mkdir $as_dirs"
40541 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40542 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40543 { (exit 1); exit 1; }; }; }
40544 ac_builddir=.
40546 case "$ac_dir" in
40547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40549 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40550 # A ".." for each directory in $ac_dir_suffix.
40551 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40552 case $ac_top_builddir_sub in
40553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40555 esac ;;
40556 esac
40557 ac_abs_top_builddir=$ac_pwd
40558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40559 # for backward compatibility:
40560 ac_top_builddir=$ac_top_build_prefix
40562 case $srcdir in
40563 .) # We are building in place.
40564 ac_srcdir=.
40565 ac_top_srcdir=$ac_top_builddir_sub
40566 ac_abs_top_srcdir=$ac_pwd ;;
40567 [\\/]* | ?:[\\/]* ) # Absolute name.
40568 ac_srcdir=$srcdir$ac_dir_suffix;
40569 ac_top_srcdir=$srcdir
40570 ac_abs_top_srcdir=$srcdir ;;
40571 *) # Relative name.
40572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40573 ac_top_srcdir=$ac_top_build_prefix$srcdir
40574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40575 esac
40576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40579 case $ac_mode in
40582 # CONFIG_FILE
40585 _ACEOF
40587 cat >>$CONFIG_STATUS <<\_ACEOF
40588 # If the template does not know about datarootdir, expand it.
40589 # FIXME: This hack should be removed a few years after 2.60.
40590 ac_datarootdir_hack=; ac_datarootdir_seen=
40592 case `sed -n '/datarootdir/ {
40596 /@datadir@/p
40597 /@docdir@/p
40598 /@infodir@/p
40599 /@localedir@/p
40600 /@mandir@/p
40601 ' $ac_file_inputs` in
40602 *datarootdir*) ac_datarootdir_seen=yes;;
40603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40604 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40605 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40606 _ACEOF
40607 cat >>$CONFIG_STATUS <<_ACEOF
40608 ac_datarootdir_hack='
40609 s&@datadir@&$datadir&g
40610 s&@docdir@&$docdir&g
40611 s&@infodir@&$infodir&g
40612 s&@localedir@&$localedir&g
40613 s&@mandir@&$mandir&g
40614 s&\\\${datarootdir}&$datarootdir&g' ;;
40615 esac
40616 _ACEOF
40618 # Neutralize VPATH when `$srcdir' = `.'.
40619 # Shell code in configure.ac might set extrasub.
40620 # FIXME: do we really want to maintain this feature?
40621 cat >>$CONFIG_STATUS <<_ACEOF
40622 sed "$ac_vpsub
40623 $extrasub
40624 _ACEOF
40625 cat >>$CONFIG_STATUS <<\_ACEOF
40627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40628 s&@configure_input@&$configure_input&;t t
40629 s&@top_builddir@&$ac_top_builddir_sub&;t t
40630 s&@srcdir@&$ac_srcdir&;t t
40631 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40632 s&@top_srcdir@&$ac_top_srcdir&;t t
40633 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40634 s&@builddir@&$ac_builddir&;t t
40635 s&@abs_builddir@&$ac_abs_builddir&;t t
40636 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40637 $ac_datarootdir_hack
40638 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40640 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40641 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40642 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40643 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40644 which seems to be undefined. Please make sure it is defined." >&5
40645 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40646 which seems to be undefined. Please make sure it is defined." >&2;}
40648 rm -f "$tmp/stdin"
40649 case $ac_file in
40650 -) cat "$tmp/out"; rm -f "$tmp/out";;
40651 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40652 esac
40656 # CONFIG_HEADER
40658 _ACEOF
40660 # Transform confdefs.h into a sed script `conftest.defines', that
40661 # substitutes the proper values into config.h.in to produce config.h.
40662 rm -f conftest.defines conftest.tail
40663 # First, append a space to every undef/define line, to ease matching.
40664 echo 's/$/ /' >conftest.defines
40665 # Then, protect against being on the right side of a sed subst, or in
40666 # an unquoted here document, in config.status. If some macros were
40667 # called several times there might be several #defines for the same
40668 # symbol, which is useless. But do not sort them, since the last
40669 # AC_DEFINE must be honored.
40670 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40671 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40672 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40673 # PARAMS is the parameter list in the macro definition--in most cases, it's
40674 # just an empty string.
40675 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40676 ac_dB='\\)[ (].*,\\1define\\2'
40677 ac_dC=' '
40678 ac_dD=' ,'
40680 uniq confdefs.h |
40681 sed -n '
40682 t rset
40683 :rset
40684 s/^[ ]*#[ ]*define[ ][ ]*//
40685 t ok
40688 s/[\\&,]/\\&/g
40689 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40690 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40691 ' >>conftest.defines
40693 # Remove the space that was appended to ease matching.
40694 # Then replace #undef with comments. This is necessary, for
40695 # example, in the case of _POSIX_SOURCE, which is predefined and required
40696 # on some systems where configure will not decide to define it.
40697 # (The regexp can be short, since the line contains either #define or #undef.)
40698 echo 's/ $//
40699 s,^[ #]*u.*,/* & */,' >>conftest.defines
40701 # Break up conftest.defines:
40702 ac_max_sed_lines=50
40704 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40705 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40706 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40707 # et cetera.
40708 ac_in='$ac_file_inputs'
40709 ac_out='"$tmp/out1"'
40710 ac_nxt='"$tmp/out2"'
40712 while :
40714 # Write a here document:
40715 cat >>$CONFIG_STATUS <<_ACEOF
40716 # First, check the format of the line:
40717 cat >"\$tmp/defines.sed" <<\\CEOF
40718 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40719 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40721 :def
40722 _ACEOF
40723 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40724 echo 'CEOF
40725 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40726 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40727 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40728 grep . conftest.tail >/dev/null || break
40729 rm -f conftest.defines
40730 mv conftest.tail conftest.defines
40731 done
40732 rm -f conftest.defines conftest.tail
40734 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40735 cat >>$CONFIG_STATUS <<\_ACEOF
40736 if test x"$ac_file" != x-; then
40737 echo "/* $configure_input */" >"$tmp/config.h"
40738 cat "$ac_result" >>"$tmp/config.h"
40739 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40740 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40741 echo "$as_me: $ac_file is unchanged" >&6;}
40742 else
40743 rm -f $ac_file
40744 mv "$tmp/config.h" $ac_file
40746 else
40747 echo "/* $configure_input */"
40748 cat "$ac_result"
40750 rm -f "$tmp/out12"
40754 esac
40756 done # for ac_tag
40759 { (exit 0); exit 0; }
40760 _ACEOF
40761 chmod +x $CONFIG_STATUS
40762 ac_clean_files=$ac_clean_files_save
40765 # configure is writing to config.log, and then calls config.status.
40766 # config.status does its own redirection, appending to config.log.
40767 # Unfortunately, on DOS this fails, as config.log is still kept open
40768 # by configure, so config.status won't be able to write to it; its
40769 # output is simply discarded. So we exec the FD to /dev/null,
40770 # effectively closing config.log, so it can be properly (re)opened and
40771 # appended to by config.status. When coming back to configure, we
40772 # need to make the FD available again.
40773 if test "$no_create" != yes; then
40774 ac_cs_success=:
40775 ac_config_status_args=
40776 test "$silent" = yes &&
40777 ac_config_status_args="$ac_config_status_args --quiet"
40778 exec 5>/dev/null
40779 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40780 exec 5>>config.log
40781 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40782 # would make configure fail if this is the last instruction.
40783 $ac_cs_success || { (exit 1); exit 1; }